/* ==========================================================================
   PLB United — styles
   Monochrome system. Brand colour appears only where a brand is shown.
   ========================================================================== */

/* Font: Inter, self-hosted (no third-party requests) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/noto-sans-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  /* Monochrome */
  --black: #070707;
  --ink: #0b0b0b;
  --surface: #0f0f0f;
  --surface-2: #151515;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --white: #ffffff;
  --fg: #f4f4f4;
  --fg-2: #bdbdbd;
  --muted: #8d8d8d;
  --dim: #5f5f5f;

  --paper: #f3f3f1;
  --paper-2: #ffffff;
  --paper-line: rgba(0, 0, 0, 0.09);
  --paper-ink: #0a0a0a;
  --paper-muted: #5c5c5c;

  /* Brand colours — used only next to a brand's own logo */
  --nanomelt: #0079db;
  --nanomelt-glow: rgba(0, 121, 219, 0.35);
  --heiq: #c8102e;
  --heiq-glow: rgba(200, 16, 46, 0.4);
  --tripler: #1fb151;
  --elektroteks: #00538b;
  --elektroteks-accent: #ff9e18;

  /* Type */
  --font-sans: "Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-sans);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--white); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--light :focus-visible { outline-color: var(--paper-ink); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--white);
  color: var(--black);
  border-radius: 10px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Layout helpers ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(88px, 12vw, 160px);
}

.section--light {
  background: var(--paper);
  color: var(--paper-ink);
}

.section-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.section-head--split {
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.2fr 1fr; gap: 64px; }
}

/* Type -------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__num { color: var(--fg); font-variant-numeric: tabular-nums; }
.eyebrow__line { width: 32px; height: 1px; background: currentColor; opacity: 0.5; }
.section--light .eyebrow { color: var(--paper-muted); }
.section--light .eyebrow__num { color: var(--paper-ink); }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 .soft { color: var(--dim); }
.section--light .h2 .soft { color: #a3a3a3; }

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.section--light .lead { color: var(--paper-muted); }

.body { color: var(--muted); text-wrap: pretty; }
.section--light .body { color: var(--paper-muted); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover svg.icon-ext { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.98); }

.btn--primary { --btn-bg: var(--white); --btn-fg: var(--black); --btn-border: var(--white); }
.btn--primary:hover { --btn-bg: #dcdcdc; --btn-border: #dcdcdc; }

.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.06); --btn-border: rgba(255, 255, 255, 0.32); }

.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

.section--light .btn--ghost { --btn-fg: var(--paper-ink); --btn-border: var(--paper-line); }
.section--light .btn--ghost:hover { --btn-bg: rgba(0, 0, 0, 0.04); --btn-border: rgba(0, 0, 0, 0.25); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(7, 7, 7, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
/* backdrop-filter would make the nav the containing block of the fixed mobile panel */
.nav.is-open {
  background: var(--black);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Nav over light sections */
.nav.is-light {
  background: rgba(243, 243, 241, 0.86);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.nav.is-light .nav__logo img { filter: invert(1); }
.nav.is-light .nav__links a { color: #4a4a4a; }
.nav.is-light .nav__links a:hover { color: #000; background: rgba(0, 0, 0, 0.05); }
.nav.is-light .nav__links a.is-active { color: #000; }
.nav.is-light .nav__links a.is-active::after { background: #000; }
.nav.is-light .btn--ghost { --btn-fg: var(--paper-ink); --btn-border: rgba(0, 0, 0, 0.16); }
.nav.is-light .btn--ghost:hover { --btn-bg: rgba(0, 0, 0, 0.04); --btn-border: rgba(0, 0, 0, 0.3); }
.nav.is-light .btn--primary { --btn-bg: var(--paper-ink); --btn-fg: #fff; --btn-border: var(--paper-ink); }
.nav.is-light .btn--primary:hover { --btn-bg: #2a2a2a; --btn-border: #2a2a2a; }
.nav.is-light .nav__toggle span,
.nav.is-light .nav__toggle span::before,
.nav.is-light .nav__toggle span::after { background: #000; }
.nav.is-light :focus-visible { outline-color: #000; }
.nav__logo img { transition: filter 0.35s var(--ease); }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: block; flex-shrink: 0; }
.nav__logo img { height: 30px; width: auto; }

.nav__links {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--white);
}

.nav__actions { display: none; align-items: center; gap: 10px; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), background 0.2s;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--black);
  padding: 24px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  overflow-y: auto;
}
.nav.is-open .nav__mobile { opacity: 1; visibility: visible; transform: none; }
.nav__mobile ul { display: grid; }
.nav__mobile li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.nav__mobile li a span { font-family: var(--font-sans); font-size: 12px; color: var(--dim); letter-spacing: 0.1em; }
.nav__mobile-cta { display: grid; gap: 10px; margin-top: 32px; }
.nav__mobile-cta .btn { width: 100%; }
.nav__mobile-lang {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Language switch: globe + code opens a dropdown ------------------------- */
.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px; /* same corner as the buttons beside it */
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lang__btn:hover { background: rgba(255, 255, 255, 0.08); }
.lang__btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.lang__globe { width: 18px; height: 18px; }
.lang__chev { width: 14px; height: 14px; opacity: 0.7; transition: transform 0.25s var(--ease); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 110;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(16, 16, 16, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.lang__menu a,
.lang__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--fg);
  transition: background 0.15s;
}
.lang__menu a:hover { background: rgba(255, 255, 255, 0.07); }
.lang__menu a small,
.lang__list a small {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.lang__menu a svg,
.lang__list a svg { width: 18px; height: 18px; }
.lang__menu a[aria-current] small,
.lang__list a[aria-current] small { display: none; }
/* light-section nav */
.nav.is-light .lang__btn { border-color: rgba(0, 0, 0, 0.16); background: rgba(0, 0, 0, 0.03); color: var(--paper-ink); }
.nav.is-light .lang__btn:hover { background: rgba(0, 0, 0, 0.06); }
/* mobile sheet: a plain list under the menu */
.lang__list { display: grid; gap: 2px; width: 100%; }
.nav__mobile .lang__list a { padding: 12px 6px; border-radius: 8px; color: #2a2a2a; }
.nav__mobile .lang__list a:hover { background: rgba(0, 0, 0, 0.04); }
.nav__mobile .lang__list a small { color: #8a8a8a; }

@media (min-width: 1200px) {
  .nav__links, .nav__actions { display: flex; }
  .nav__toggle, .nav__mobile { display: none; }
}

body.menu-open { overflow: hidden; }

/* Mobile nav: a floating glass pill that opens into a sheet ----------------- */
@media (max-width: 1199px) {
  .nav,
  .nav.is-scrolled,
  .nav.is-open,
  .nav.is-light {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* just a pill with a grab handle: the whole pill is the button */
  .nav__inner {
    position: relative;
    justify-content: center;
    width: auto;
    height: 52px;
    margin: 10px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 26px;
    background: #faf9f5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  .nav__logo { display: none; }
  .nav__toggle { width: 100%; height: 100%; margin: 0; border-radius: 26px; }
  .nav__toggle span,
  .nav.is-light .nav__toggle span,
  .nav.is-open .nav__toggle span {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.22);
  }
  .nav__toggle span::before,
  .nav__toggle span::after { display: none; }
  .nav__toggle:hover span { background: rgba(0, 0, 0, 0.36); }
  .nav :focus-visible { outline-color: var(--paper-ink); }

  .nav__mobile {
    position: absolute;
    inset: -1px -1px auto -1px;
    max-height: calc(100svh - 20px);
    padding: 36px 20px 20px;
    border-radius: 24px;
    background: var(--paper);
    color: var(--paper-ink);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    justify-content: flex-start;
    overflow-y: auto;
  }
  .nav__mobile::before { /* grab handle: tap it to close */
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    width: 44px;
    height: 5px;
    margin-left: -22px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.18);
  }
  .nav__mobile li a {
    padding: 20px 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2a2a2a;
  }
  .nav__mobile li a:hover { color: #000; }
  .nav__mobile-cta { margin-top: 18px; gap: 10px; }
  .nav__mobile .btn {
    height: 56px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .nav__mobile .btn--primary { --btn-bg: var(--paper-ink); --btn-fg: #fff; --btn-border: var(--paper-ink); }
  .nav__mobile .btn--primary:hover { --btn-bg: #2a2a2a; --btn-border: #2a2a2a; }
  .nav__mobile .btn--ghost { --btn-fg: #3a3a3a; --btn-border: rgba(0, 0, 0, 0.3); border-style: dashed; }
  .nav__mobile .btn--ghost:hover { --btn-bg: rgba(0, 0, 0, 0.03); --btn-border: rgba(0, 0, 0, 0.45); }
  .nav__mobile-lang { order: 3; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, 0.08); color: #8a8a8a; }
  .nav__mobile-lang > span { padding: 0 6px; }
  .nav__mobile :focus-visible { outline-color: var(--paper-ink); }

  /* dim the page behind the open sheet */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: dim 0.3s var(--ease);
  }
}
@keyframes dim { from { opacity: 0; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  align-items: center;
  gap: 40px;
  padding-block: clamp(40px, 8vh, 96px);
}
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}
.hero__title {
  font-size: clamp(44px, 5.6vw, 84px);
}
.hero__title .soft { color: #6d6d6d; }
.hero__sub {
  margin-top: 28px;
  max-width: 30ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--fg-2);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* The glass spans the whole first screen; the copy always sits above it */
.hero__content { position: relative; z-index: 1; }
.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@media (max-width: 999px) {
  .hero { align-items: flex-start; min-height: max(100svh, 720px); }
}

/* ==========================================================================
   About
   ========================================================================== */
.about__title {
  max-width: 18ch;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.about__title .soft { color: #666; }
.about__text {
  max-width: 40ch;
  margin-top: clamp(32px, 4vw, 56px);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
@media (min-width: 900px) {
  .about__text { margin-left: auto; margin-right: 8%; }
  [dir="rtl"] .about__text { margin-left: 8%; margin-right: auto; }
}

/* ==========================================================================
   Brands
   ========================================================================== */
.brands { padding-top: 0; }
.brands__title { margin-bottom: clamp(40px, 5vw, 64px); max-width: 22ch; }
.brands__grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 980px) {
  .brands__grid { grid-template-columns: 1fr 1fr; }
}

.brand-card {
  --accent: var(--white);
  --glow: rgba(255, 255, 255, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.brand-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 30px 80px -40px var(--glow);
  transform: translateY(-4px);
}
.brand-card--nanomelt { --accent: var(--nanomelt); --glow: var(--nanomelt-glow); }
.brand-card--heiq { --accent: var(--heiq); --glow: var(--heiq-glow); }
@media (max-width: 979px) {
  .brand-card { min-height: 480px; }
}

.brand-card__visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* NanoMelt — hex mesh */
.brand-card--nanomelt .brand-card__visual::before {
  content: "";
  position: absolute;
  left: -20%; right: -20%; bottom: -8%;
  height: 70%;
  background: radial-gradient(60% 70% at 50% 100%, rgba(0, 121, 219, 0.45), transparent 70%);
  filter: blur(10px);
}
.hexmesh {
  position: absolute;
  left: -40%; right: -40%; bottom: 0;
  height: 120%;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 70%);
  mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 70%);
  opacity: 0.8;
  transition: transform 1.2s var(--ease), opacity 0.6s var(--ease);
}
.hexmesh svg { width: 100%; height: 100%; }
.brand-card--nanomelt:hover .hexmesh { transform: perspective(520px) rotateX(60deg); opacity: 1; }

/* HeiQ — key visual with red glows */
.brand-card__photo {
  position: absolute;
  inset: 0;
  background: url("../img/heiq-hero.jpg") center 30% / cover no-repeat;
  filter: grayscale(0.3) brightness(0.36) contrast(1.05);
  transform: scale(1.04);
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}
.brand-card--heiq:hover .brand-card__photo { transform: scale(1.09); filter: grayscale(0.15) brightness(0.42) contrast(1.05); }
.brand-card--heiq .brand-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 45% at 0% 20%, rgba(200, 16, 46, 0.45), transparent 70%),
    radial-gradient(45% 40% at 100% 100%, rgba(200, 16, 46, 0.4), transparent 70%),
    linear-gradient(90deg, rgba(7, 7, 7, 0.55) 0%, rgba(7, 7, 7, 0.15) 75%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.85) 0%, rgba(7, 7, 7, 0.45) 45%, rgba(7, 7, 7, 0.8) 100%);
}

.brand-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(28px, 3.5vw, 44px);
}
.brand-card__logo { align-self: flex-start; height: 26px; width: auto; min-width: 0; object-fit: contain; object-position: left center; }
[dir="rtl"] .brand-card__logo { object-position: right center; }
.brand-card__logo--wordmark { width: min(280px, 100%); height: auto; margin-top: 7px; }
.brand-card--heiq .brand-card__logo { height: 34px; }
.brand-card__label {
  margin-top: clamp(64px, 9vw, 120px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.brand-card--nanomelt .brand-card__label { color: #4ea8f0; }
.brand-card--heiq .brand-card__label { color: #f0566f; }
.brand-card__label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.brand-card__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.brand-card__text {
  margin-top: 16px;
  max-width: 34ch;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.5;
}
.brand-card__foot {
  margin-top: auto;
  padding-top: 40px;
}
.brand-card__cta {
  --btn-bg: var(--accent);
  --btn-border: var(--accent);
  --btn-fg: #fff;
}
.brand-card__cta:hover {
  --btn-bg: color-mix(in srgb, var(--accent) 85%, #fff);
  --btn-border: color-mix(in srgb, var(--accent) 85%, #fff);
}

/* ==========================================================================
   Circularity — secondary: a short note with a small living passport code
   ========================================================================== */
.circular {
  padding-block: clamp(56px, 7vw, 96px);
}
.circular__row {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 800px) { .circular__row { grid-template-columns: 1fr 260px; gap: 64px; } }
.circular__copy { max-width: 56ch; }
.circular__title {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.circular__title .soft { color: var(--dim); }
.circular__text { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.circular__partner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--dim);
}
.circular__partner img { height: 26px; width: auto; opacity: 0.85; }
[dir="rtl"] .circular__title { letter-spacing: 0; }

.passport {
  position: relative;
  width: 260px;
  max-width: 100%;
  aspect-ratio: 1;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink);
  justify-self: center;
}
@media (min-width: 800px) { .passport { justify-self: end; } }
.passport__grid {
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  gap: 2px;
  width: 100%;
  height: 100%;
}
.passport__cell {
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.8s var(--ease);
}
.passport__cell.on,
.passport__cell.finder { background: rgba(255, 255, 255, 0.88); }
.passport__cell.finder-gap { background: transparent; }
.passport__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: var(--white);
}
.passport__mark svg { width: 78%; height: 78%; }

/* ==========================================================================
   Cooperation page
   ========================================================================== */
.page-hero {
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 112px)) 0 clamp(32px, 5vw, 56px);
}
.page-hero__title { margin-top: 24px; font-size: clamp(44px, 7vw, 96px); }
.page-hero__title .soft { color: #6d6d6d; }
.page-hero .lead { margin-top: 24px; }

.partner-section { padding-block: clamp(56px, 7vw, 96px); }
.partner-section__grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .partner-section__grid { grid-template-columns: minmax(300px, 2fr) 3fr; gap: 72px; align-items: center; }
  .partner-section--flip .partner-section__grid { grid-template-columns: 3fr minmax(300px, 2fr); }
  .partner-section--flip .partner-section__side { order: 2; }
}
.partner-section__side { display: grid; gap: 18px; justify-items: start; }
.logo-box {
  --tint: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 80% at 50% 50%, var(--tint), transparent 70%),
    var(--ink);
}
.logo-box img { width: 100%; max-width: 320px; height: auto; }
.logo-box--heiq { --tint: rgba(200, 16, 46, 0.18); }
.logo-box--elektroteks { --tint: rgba(255, 158, 24, 0.14); }
.logo-box--elektroteks img { max-width: 340px; }
.logo-box--tripler { --tint: rgba(31, 177, 81, 0.14); }
.logo-box--tripler img { max-width: 260px; }
.partner-section__role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.partner-section__body { display: grid; gap: 20px; max-width: 64ch; }
.partner-section__body .h2 { margin-bottom: 4px; }
.partner-section__body p { font-size: 17px; line-height: 1.7; color: var(--fg-2); }
.partner-section__body .btn { justify-self: start; margin-top: 8px; }
.inline-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.inline-link:hover { color: var(--white); text-decoration-color: var(--white); }

/* About page: photo hero + two-column text ------------------------------- */
.page-hero--photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 62vh, 680px);
  padding-bottom: clamp(32px, 5vw, 56px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(0.25) contrast(1.05) brightness(0.72);
}
.page-hero__media::after {
  /* keeps the headline readable and blends the photo into the page */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.75) 0%, rgba(7, 7, 7, 0.1) 35%, rgba(7, 7, 7, 0.2) 65%, var(--black) 100%),
    linear-gradient(90deg, rgba(7, 7, 7, 0.55) 0%, rgba(7, 7, 7, 0) 60%);
}
.page-hero__inner { position: relative; }

.about-page { padding-top: clamp(48px, 6vw, 80px); }
.about-page__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .about-page__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.about-page__statement {
  margin-top: 22px;
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-wrap: balance;
}
.about-page__intro {
  margin-top: 22px;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-2);
  text-wrap: pretty;
}
.about-page__facts {
  list-style: none;
  margin-top: 40px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.about-page__facts li {
  display: grid;
  grid-template-columns: 36px 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.about-page__fact-num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.about-page__fact-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.about-page__fact-value { font-size: 16px; color: var(--fg); }
@media (max-width: 480px) {
  .about-page__facts li { grid-template-columns: 36px 1fr; }
  .about-page__fact-value { grid-column: 2; }
}
@media (min-width: 900px) {
  .about-page__lead { position: sticky; top: 112px; }
}
.about-page__body { display: grid; gap: 20px; max-width: 60ch; }
.about-page__body p { font-size: 17px; line-height: 1.7; color: var(--fg-2); }
.about-page__sign {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 14px !important;
  color: var(--muted) !important;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { position: relative; overflow: hidden; }
.contact::before {
  /* a faint pool of light, kept well inside the section so it fades out on every side */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(120vw, 1600px); height: 100%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012) 45%, transparent 72%);
  pointer-events: none;
}
.contact .container { position: relative; }
.contact__title { font-size: clamp(48px, 7.6vw, 108px); }

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg-2);
  transition: color 0.3s var(--ease);
}
.contact__email span {
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.contact__email svg { width: 0.75em; height: 0.75em; transition: transform 0.3s var(--ease); }
.contact__email:hover { color: var(--white); }
.contact__email:hover span { background-size: 100% 1px; }
.contact__email:hover svg { transform: translateX(6px); }

.contact__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }

/* Contact form ------------------------------------------------------------ */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: var(--fg-2); }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 15px;
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; line-height: 1.5; min-height: 132px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07);
}
.form.is-checked :user-invalid,
.form.is-checked input:invalid,
.form.is-checked textarea:invalid { border-color: #c4554d; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.form__status { font-size: 14px; color: var(--fg-2); }
.form__status.is-error { color: #e07b74; }
/* Sent: the whole contact section gives way to the mark assembling, lifting off, and the thank-you */
.contact.is-sent .contact__grid { display: none; }
.contact__sent {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* the column never grows past the panel, so the title can be measured against it */
  place-items: center;
  text-align: center;
}
.contact__sent > * { grid-area: 1 / 1; }
.sent-mark {
  width: clamp(96px, 12vw, 136px);
  height: auto;
  overflow: visible;
  animation: sentLift 1.1s cubic-bezier(0.55, 0, 0.8, 0) 1.35s forwards;
}
.sent-mark rect {
  fill: var(--white);
  transform-box: fill-box;
  transform-origin: center;
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot));
  opacity: 0;
  animation: sentAssemble 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.sent-mark rect:nth-child(1) { --dx: -120px; --dy: 70px; --rot: -28deg; animation-delay: 0.05s; }
.sent-mark rect:nth-child(2) { --dx: 110px; --dy: -80px; --rot: 35deg; animation-delay: 0.17s; }
.sent-mark rect:nth-child(3) { --dx: 100px; --dy: 95px; --rot: -40deg; animation-delay: 0.29s; }
@keyframes sentAssemble {
  from { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
  30% { opacity: 1; }
  to { opacity: 1; transform: translate(0, 0) rotate(0deg); }
}
@keyframes sentLift {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  12% { transform: translateY(8px) scale(1.05); opacity: 1; }
  100% { transform: translateY(-260px) scale(0.55); opacity: 0; }
}
.contact__sent-text {
  max-width: 100%;
  opacity: 0;
  animation: sentText 0.8s cubic-bezier(0.22, 1, 0.36, 1) 2.25s forwards;
}
@keyframes sentText {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.contact__sent-title {
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
  white-space: nowrap; /* one line; main.js shrinks it on narrow screens */
}
.contact__sent-body { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--fg-2); }
.contact__sent-other { margin-top: 14px; font-size: 15px; color: var(--muted); }
.contact__sent-other a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.contact__sent-other a:hover { color: var(--white); text-decoration-color: var(--white); }
@media (prefers-reduced-motion: reduce) {
  .sent-mark { display: none; }
  .contact__sent-text { animation: none; opacity: 1; }
}
[dir="rtl"] .field input,
[dir="rtl"] .field textarea { text-align: right; }


/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  padding-top: clamp(64px, 8vw, 96px);
  background: var(--black);
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 24px;
}
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
  .footer__brand { grid-column: auto; }
}
.footer__brand img { height: 34px; width: auto; }
.footer__brand p { margin-top: 20px; max-width: 32ch; font-size: 15px; color: var(--muted); }
.footer__col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--fg-2);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--white); }
.footer__col a svg { width: 12px; height: 12px; opacity: 0.6; }
.footer__dot {
  width: 7px; height: 7px;
  border-radius: 2px;
  flex-shrink: 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 64px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}
.footer__bottom a:hover { color: var(--fg); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.footer__mark {
  display: flex;
  justify-content: center;
  padding-top: 8px;
  margin-bottom: -2.2vw;
  user-select: none;
  pointer-events: none;
}
.footer__mark span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.6vw;
  line-height: 0.8;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* ==========================================================================
   Motion
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

.no-js .reveal { opacity: 1; transform: none; }

/* Hero animates on load, independent of scroll observers */
.hero .reveal {
  transition: none;
  animation: heroIn 1.1s var(--ease) both;
  animation-delay: calc(var(--d, 0s) + 0.1s);
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Right-to-left (Arabic) ----------------------------------------------------- */
[dir="rtl"] { --font-display: "Noto Sans Arabic", "Inter", system-ui, sans-serif; }
[dir="rtl"] .display,
[dir="rtl"] .h2,
[dir="rtl"] .hero__title,
[dir="rtl"] .brand-card__title { letter-spacing: 0; line-height: 1.25; }
[dir="rtl"] .btn svg,
[dir="rtl"] .contact__email svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .contact__email:hover svg { transform: scaleX(-1) translateX(6px); }
[dir="rtl"] .lang__menu { left: auto; right: 50%; transform: translate(50%, -6px); }
[dir="rtl"] .lang.is-open .lang__menu { transform: translate(50%, 0); }
[dir="rtl"] .lang__menu a small,
[dir="rtl"] .lang__list a small { letter-spacing: 0; }
