/* ==========================================================================
   Renas IT — public site
   Black + acid lime. Archivo (wide display) + JetBrains Mono (labels).
   ========================================================================== */

:root {
  --bg: #050605;
  --bg-2: #0a0c09;
  --card: #0d100c;
  --card-2: #11150f;
  --ink: #eef1e6;
  --ink-2: #b9bdb0;
  --dim: #7c8173;
  --line: rgba(238, 241, 230, 0.10);
  --line-2: rgba(238, 241, 230, 0.18);
  --lime: #c8ff2e;
  --lime-2: #a6e000;
  --lime-ink: #0b0d05;
  --lime-glow: rgba(200, 255, 46, 0.35);
  --danger: #ff6b5a;

  --font: "Archivo", "Noto Kufi Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Noto Kufi Arabic", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--lime-ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Subtle grain/grid in the background */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: .45;
}

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px var(--lime-glow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn--lime { background: var(--lime); color: var(--lime-ink); }
.btn--lime:hover { background: #d6ff5c; box-shadow: 0 0 0 6px rgba(200,255,46,.12), 0 10px 30px -10px var(--lime-glow); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(5,6,5,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { color: var(--lime); display: inline-flex; }
.brand__word { font-weight: 700; font-size: 19px; letter-spacing: -.01em; font-variation-settings: "wdth" 120; }
.brand__word b { color: var(--lime); font-weight: 800; margin-left: 2px; }
.nav__links { display: flex; gap: 6px; margin-inline-start: auto; }
.nav__links a { position: relative; padding: 8px 14px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); border-radius: 999px; transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: rgba(238,241,230,.06); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--lime); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 112px 0 84px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; }
.hero__globe { position: absolute; z-index: -1; top: 46%; right: max(-6vw, calc(50% - 760px)); width: min(60vw, 900px); aspect-ratio: 1; transform: translateY(-50%); }
.hero__globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__halo { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, transparent 52%, rgba(200,255,46,.06) 62%, transparent 72%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 15fr); gap: 40px 40px; align-items: end; }
.hero__copy { grid-column: 1 / -1; }
.hero__lead { grid-column: 1; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: rgba(5,6,5,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

.hero__title { margin: 0; font-size: clamp(44px, 7.4vw, 112px); line-height: .92; letter-spacing: -.035em; font-weight: 750; font-variation-settings: "wdth" 112; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero__title .line--lime > span { color: var(--lime); animation-delay: .12s; }
@keyframes rise { to { transform: none; } }

.hero__intro { max-width: 520px; margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); opacity: 0; animation: fade .9s .35s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; opacity: 0; animation: fade .9s .5s var(--ease) forwards; }
.hero__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px 0 13px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; background: rgba(5,6,5,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .25s, color .25s, background-color .25s; }
.hero__links a span { font: 500 11px/1 var(--mono); color: var(--dim); transition: color .25s; }
.hero__links a:hover { border-color: var(--lime); color: var(--lime); }
.hero__links a:hover span { color: var(--lime); }
.hero__links a:first-child { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.hero__links a:first-child span { color: rgba(11,13,5,.6); }
.hero__links a:first-child:hover { background: #d6ff5c; color: var(--lime-ink); }

.hero__panels { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; align-items: stretch; opacity: 0; animation: fade .9s .7s var(--ease) forwards; }

.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--dim); text-decoration: none; font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 32px; background: linear-gradient(var(--lime), 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; } }

/* ---------- Panels ---------- */
.panel {
  position: relative;
  display: flex; flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17,21,15,.82), rgba(10,12,9,.82));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(0,0,0,.8);
}
.panel::before { content: ""; position: absolute; top: -1px; left: 20px; width: 40px; height: 2px; background: var(--lime); border-radius: 2px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel__label { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.panel__step { font: 500 11px/1 var(--mono); color: var(--dim); }
.panel__meta { margin: 8px 0 0; font: 400 12px/1.4 var(--mono); color: var(--dim); }
.panel__link { display: inline-flex; gap: 6px; margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--lime); }
.panel__link:hover { text-decoration: underline; text-underline-offset: 4px; }

.live { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); color: var(--lime); text-transform: uppercase; letter-spacing: .08em; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 var(--lime-glow); animation: ping 2s infinite; }
.live.is-stale { color: var(--dim); }
.live.is-stale i { animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(200,255,46,.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(200,255,46,0); } }

.count { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 6px; }
.count__num { display: block; font-size: 96px; line-height: .82; font-weight: 750; letter-spacing: -.05em; font-variation-settings: "wdth" 115; color: var(--ink); font-variant-numeric: tabular-nums; transition: color .4s; }
.count__num.is-bump { color: var(--lime); }
.count__unit { font-size: 14px; line-height: 1.25; font-weight: 500; color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover span { border-color: rgba(200,255,46,.6); color: var(--ink); }
.chip input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.picker__desc { min-height: 3.1em; margin: 14px 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.picker__desc.is-swap { animation: fade .35s var(--ease); }
.picker__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.picker__actions .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
.picker__subject { margin: 12px 0 0; font: 400 11.5px/1.4 var(--mono); color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__subject code { font: inherit; color: var(--ink-2); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; contain: paint; padding: 20px 0; }
.marquee__track { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 40s linear infinite; }
.marquee__track span { font-size: clamp(22px, 3vw, 36px); font-weight: 650; letter-spacing: -.02em; font-variation-settings: "wdth" 120; white-space: nowrap; }
.marquee__track b { color: var(--lime); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.section__head { max-width: 860px; margin-bottom: clamp(36px, 6vw, 64px); }
.section__index { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.section__index span { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--lime); color: var(--lime-ink); font-weight: 600; letter-spacing: 0; }
.section__title { margin: 0; font-size: clamp(34px, 5.4vw, 72px); line-height: 1; font-weight: 720; letter-spacing: -.035em; font-variation-settings: "wdth" 108; }
.section__title em { font-style: normal; color: var(--dim); }
.section__lede { margin: 22px 0 0; max-width: 560px; font-size: 18px; color: var(--ink-2); }
.empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--dim); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; transition: background-color .35s var(--ease); overflow: hidden; }
.service::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.service:hover { background: var(--card); }
.service:hover::after { transform: scaleX(1); }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 44px; }
.service__num { font: 500 12px/1 var(--mono); color: var(--dim); }
.service__icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--lime); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.service:hover .service__icon { background: var(--lime); color: var(--lime-ink); transform: rotate(-6deg); }
.service__title { margin: 0 0 10px; font-size: 24px; line-height: 1.15; font-weight: 680; letter-spacing: -.02em; font-variation-settings: "wdth" 106; }
.service__summary { margin: 0 0 12px; color: var(--ink); font-size: 16px; }
.service__desc { margin: 0 0 22px; color: var(--dim); font-size: 14.5px; line-height: 1.6; }
.service__cta { margin-top: auto; align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--lime); text-decoration: none; }
.service__cta:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Work ---------- */
.section--work { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.project { grid-column: span 6; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; transition: border-color .35s, transform .5s var(--ease); }
.project:nth-child(3n) { grid-column: span 12; flex-direction: row; }
.project:nth-child(3n) .project__cover { flex: 1 1 58%; aspect-ratio: auto; min-height: 340px; }
.project:nth-child(3n) .project__body { flex: 1 1 42%; justify-content: center; padding: 40px; }
.project:hover { border-color: rgba(200,255,46,.45); transform: translateY(-3px); }
.project__cover { position: relative; aspect-ratio: 16 / 10; background: #0f130d; overflow: hidden; }
.project__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project__cover img { transform: scale(1.04); }
.project__cover--gen {
  background:
    radial-gradient(circle at 70% 40%, rgba(200,255,46,.18), transparent 55%),
    repeating-linear-gradient(0deg, rgba(200,255,46,.10) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(200,255,46,.10) 0 1px, transparent 1px 28px),
    #0b0e09;
}
.project__cover--gen::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; right: -16%; top: 50%; transform: translateY(-50%); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 26px, rgba(200,255,46,.28) 26px 27px); -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 71%); mask-image: radial-gradient(circle, #000 55%, transparent 71%); transition: transform 1.2s var(--ease); }
.project:hover .project__cover--gen::before { transform: translateY(-50%) scale(1.06); }
.project__mono { position: absolute; left: 26px; bottom: 18px; font-size: clamp(64px, 9vw, 120px); line-height: .8; font-weight: 800; letter-spacing: -.06em; font-variation-settings: "wdth" 125; color: transparent; -webkit-text-stroke: 1.2px var(--lime); opacity: .9; }
.project__idx { position: absolute; top: 16px; left: 16px; padding: 6px 9px; border-radius: 8px; background: rgba(5,6,5,.7); font: 500 11px/1 var(--mono); color: var(--ink-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.project__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.project__cat { margin: 0 0 10px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.project__title { margin: 0; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.12; font-weight: 680; letter-spacing: -.025em; font-variation-settings: "wdth" 106; }
.project__desc { margin: 14px 0 0; color: var(--ink-2); font-size: 15.5px; }
.project__link { margin-top: 18px; align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--lime); text-decoration: none; }
.project__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 64px; }
.about .section__head { margin-bottom: 0; }
.about__body { padding-top: 46px; }
.about__body p { margin: 0 0 18px; color: var(--ink-2); font-size: 17px; }
.about__body .about__lead { font-size: clamp(20px, 2vw, 25px); line-height: 1.4; color: var(--ink); letter-spacing: -.01em; }
.steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
.step { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.step__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--lime); border-radius: 50%; font: 600 13px/1 var(--mono); color: var(--lime); }
.step h3 { margin: 22px 0 8px; font-size: 21px; font-weight: 660; letter-spacing: -.015em; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---------- Contact ---------- */
.section--contact { border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; align-items: start; }
.contact__list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__k { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.contact__v { font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
a.contact__v:hover { color: var(--lime); }
.contact__v--plain { font-size: 17px; font-weight: 500; color: var(--ink-2); }

.form { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* spam trap, hidden in a way that works in LTR and RTL */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.field .opt { color: var(--dim); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 15px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.4 var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%), linear-gradient(135deg, var(--lime) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #5a5f52; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200,255,46,.12); }
.field__err { min-height: 0; color: var(--danger); font-size: 13px; }
.field__err:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.notice { margin: 0 0 18px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 15px; }
.notice--success { border-color: rgba(200,255,46,.5); background: rgba(200,255,46,.08); color: var(--lime); }
.notice--error { border-color: rgba(255,107,90,.5); background: rgba(255,107,90,.08); color: #ffb3a9; }
.notice--info { color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 34px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__big { margin: 0 0 24px; font-size: clamp(64px, 17vw, 250px); line-height: .8; font-weight: 800; letter-spacing: -.06em; font-variation-settings: "wdth" 125; color: transparent; -webkit-text-stroke: 1px rgba(238,241,230,.18); white-space: nowrap; }
.footer__big b { -webkit-text-stroke: 1px var(--lime); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--dim); }
.footer__row p { margin: 0; }
.footer__row nav { display: flex; gap: 18px; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--lime); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero__globe { right: -24vw; width: 84vw; top: 38%; opacity: .75; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__lead, .hero__panels { grid-column: 1; }
  .hero__panels { max-width: 720px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  body { font-size: 16px; }

  .hero { padding-top: 96px; justify-content: flex-start; min-height: 0; }
  .hero__globe { position: relative; top: auto; right: auto; transform: none; width: min(108vw, 560px); margin: -20px auto -38%; opacity: 1; z-index: -1; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero__panels { grid-template-columns: minmax(0, 1fr); }
  .hero__scroll { display: none; }
  .eyebrow { font-size: 10.5px; margin-bottom: 20px; }

  .services { grid-template-columns: minmax(0, 1fr); }
  .service__top { margin-bottom: 26px; }

  .project, .project:nth-child(3n) { grid-column: span 12; flex-direction: column; }
  .project:nth-child(3n) .project__cover { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
  .project:nth-child(3n) .project__body { padding: 24px 26px 26px; }

  .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .about__body { padding-top: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (max-width: 420px) {
  .nav__cta { display: none; }
  .eyebrow__extra { display: none; }
  .nav__toggle { margin-inline-start: auto; }
  .hero__links a { flex: 1 1 calc(50% - 10px); justify-content: flex-start; }
  .count__num { font-size: 72px; }
  .contact__list li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ==========================================================================
   Reduced motion: no entrance animations, no marquee, no reveals.
   The globe script renders a single still frame.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__title .line > span { transform: none; }
  .hero__intro, .hero__links, .hero__panels { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .live i { animation: none; }
}

/* ==========================================================================
   v2 — boot intro, 3D stack, Network Lab, tilt cards
   ========================================================================== */
[hidden] { display: none !important; }

/* ---------- Boot intro ---------- */
.boot { display: none; }
html.is-booting .boot {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--bg); color: var(--lime);
  animation: bootFailsafe .01s 5s forwards; /* never trap the page if JS fails */
}
.boot.is-leaving { animation: bootOut .75s var(--ease) forwards !important; }
.boot__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; width: min(440px, calc(100vw - 48px)); }
.boot__mark { color: var(--lime); animation: bootSpin 2.4s linear infinite; filter: drop-shadow(0 0 14px var(--lime-glow)); }
.boot__log { margin: 0; min-height: 7.5em; font: 400 13px/1.55 var(--mono); color: var(--ink-2); white-space: pre-wrap; }
.boot__log b { color: var(--lime); font-weight: 500; }
.boot__bar { width: 100%; height: 2px; background: var(--line-2); overflow: hidden; }
.boot__bar span { display: block; height: 100%; width: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--lime); }
@keyframes bootOut { to { clip-path: inset(0 0 100% 0); } }
@keyframes bootFailsafe { to { visibility: hidden; opacity: 0; } }
@keyframes bootSpin { to { transform: rotateY(360deg); } }
html.is-booting .hero__title .line > span,
html.is-booting .hero__intro, html.is-booting .hero__links, html.is-booting .hero__panels,
html.is-booting .hero__lab, html.is-booting .hero__globe { animation-play-state: paused; }
.hero__globe { animation: globeIn 1.6s var(--ease) both; }
@keyframes globeIn { from { opacity: 0; scale: .82; rotate: -8deg; } }

/* ---------- Hero: 3D lab link ---------- */
.hero__lab { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 16px 10px 12px; border: 1px dashed rgba(200,255,46,.45); border-radius: 14px; color: var(--ink); text-decoration: none; font-size: 14.5px; background: rgba(200,255,46,.04); opacity: 0; animation: fade .9s .62s var(--ease) forwards; transition: border-color .25s, background-color .25s; }
.hero__lab b { margin-right: 6px; padding: 3px 6px; border-radius: 5px; background: var(--lime); color: var(--lime-ink); font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; vertical-align: 2px; }
.hero__lab:hover { border-style: solid; border-color: var(--lime); background: rgba(200,255,46,.08); }
.hero__lab-cube { position: relative; width: 20px; height: 20px; transform-style: preserve-3d; animation: cube 6s linear infinite; flex: none; }
.hero__lab-cube i { position: absolute; inset: 0; border: 1px solid var(--lime); background: rgba(200,255,46,.08); }
.hero__lab-cube i:nth-child(1) { transform: translateZ(10px); }
.hero__lab-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(10px); }
.hero__lab-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(10px); }
.hero__lab-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(10px); }
.hero__lab-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(10px); }
.hero__lab-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(10px); }
@keyframes cube { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }

/* ---------- Tilt + spotlight cards ---------- */
[data-tilt] { will-change: transform; }
.project { position: relative; }
.spot { position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(200,255,46,.10), transparent 60%); }
[data-tilt]:hover > .spot { opacity: 1; }
[data-tilt] > *:not(.spot) { position: relative; z-index: 1; }
.project__cover { z-index: 1; }

/* ---------- Marquee reacts to scroll speed ---------- */
.marquee { transform: skewX(var(--skew, 0deg)); transition: transform .4s var(--ease); }

/* ---------- STACK: scroll-driven 3D layers ---------- */
.stack { position: relative; height: 340vh; border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(200,255,46,.05), transparent 70%); }
.stack__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.stack__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3.6fr); gap: 32px; align-items: center; }
.stack__head .section__title { font-size: clamp(34px, 4.6vw, 64px); }
.stack__scene { position: relative; height: min(72vh, 640px); display: grid; place-items: center; perspective: 1500px; }
.stack__layers { --p: 0; position: relative; width: min(28vw, 360px); aspect-ratio: 1; max-width: 100%; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(calc(-40deg + var(--p) * 22deg)); }
.stack__layers::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(circle, rgba(200,255,46,.22), transparent 65%); filter: blur(24px); transform: translateZ(-40px); }
.layer { --i: 0; position: absolute; inset: 0; border: 1px solid rgba(200,255,46,.38); border-radius: 6px; background: rgba(10,13,8,.82); transform: translateZ(calc(var(--i) * (12px + var(--p) * var(--sep, 78px)))); transition: border-color .45s, background-color .45s, box-shadow .45s; }
.layer:nth-child(2) { --i: 1; } .layer:nth-child(3) { --i: 2; } .layer:nth-child(4) { --i: 3; } .layer:nth-child(5) { --i: 4; }
.layer.is-active { border-color: var(--lime); background: rgba(22,30,10,.9); box-shadow: 0 0 0 1px var(--lime), 0 0 70px rgba(200,255,46,.28); }
.layer__tag { position: absolute; left: 10px; bottom: 8px; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.layer.is-active .layer__tag { color: var(--lime); }
.layer__art { position: absolute; inset: 14% 12% 20%; opacity: .7; }
.layer.is-active .layer__art { opacity: 1; }
.layer--cable .layer__art { background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(200,255,46,.55) 9px 10px), linear-gradient(transparent 46%, rgba(200,255,46,.55) 46% 54%, transparent 54%); }
.layer--net .layer__art { background: radial-gradient(circle, var(--lime) 2px, transparent 2.5px) 0 0 / 22px 22px; }
.layer--sec .layer__art { background: repeating-radial-gradient(circle at 15% 85%, transparent 0 12px, rgba(255,201,77,.55) 12px 13px), repeating-radial-gradient(circle at 85% 15%, transparent 0 12px, rgba(255,201,77,.4) 12px 13px); }
.layer--srv .layer__art { background: repeating-linear-gradient(0deg, transparent 0 10px, rgba(238,241,230,.4) 10px 12px), linear-gradient(90deg, transparent 80%, rgba(200,255,46,.7) 80% 84%, transparent 84%); }
.layer--app .layer__art { background: linear-gradient(rgba(200,255,46,.55), rgba(200,255,46,.55)) 0 0 / 100% 14% no-repeat, linear-gradient(rgba(238,241,230,.25), rgba(238,241,230,.25)) 0 26% / 30% 74% no-repeat, linear-gradient(rgba(238,241,230,.12), rgba(238,241,230,.12)) 40% 26% / 60% 74% no-repeat; border: 1px solid rgba(200,255,46,.45); border-radius: 4px; }
.stack__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stack__list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); opacity: .35; transition: opacity .4s; }
.stack__list li.is-active { opacity: 1; }
.stack__n { font: 500 11px/1.9 var(--mono); color: var(--dim); }
.stack__list li.is-active .stack__n { color: var(--lime); }
.stack__list h3 { margin: 0 0 4px; font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.stack__list p { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.5; }
.stack__list li.is-active p { color: var(--ink-2); }

/* ---------- NETWORK LAB ---------- */
.section--lab { border-top: 1px solid var(--line); background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(200,255,46,.06), transparent 70%); }
.lab { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "stage side" "insp side"; gap: 16px; align-items: start; }
.lab__stage { grid-area: stage; position: relative; height: clamp(460px, 64vh, 660px); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(200,255,46,.07), transparent 65%), #060805; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04); }
.lab__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.lab__canvas:active { cursor: grabbing; }
.lab__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lab-tag { position: absolute; left: 0; top: 0; translate: -50% -100%; transform: translate(-999px, -999px); padding: 3px 7px; border: 1px solid rgba(200,255,46,.35); border-radius: 6px; background: rgba(5,6,5,.82); font: 500 10.5px/1.2 var(--mono); color: var(--ink); white-space: nowrap; transition: opacity .2s; }
.lab-tag--sm { font-size: 9.5px; padding: 2px 6px; color: var(--ink-2); }
.lab-tag--zone { translate: 0 -100%; border: 0; background: none; padding: 0; color: var(--lime); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.lab__tip { position: absolute; left: 0; top: 0; z-index: 3; padding: 6px 10px; border-radius: 8px; background: var(--lime); color: var(--lime-ink); font: 600 12px/1 var(--mono); pointer-events: none; white-space: nowrap; }
.lab__top { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; pointer-events: none; }
.lab__top > * { pointer-events: auto; }
.lab__left { display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.lab__left > * { pointer-events: auto; }
.lab__mode button { font-weight: 600; }
.lab__mode, .lab__layers, .lab__view { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(5,6,5,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lab__mode button, .lab__layers button, .lab__view button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 12.5px/1 var(--font); cursor: pointer; transition: background-color .2s, color .2s; }
.lab__view button { width: 32px; padding: 0; justify-content: center; font-size: 16px; }
.lab__mode button:hover, .lab__layers button:hover, .lab__view button:hover { color: var(--ink); background: rgba(238,241,230,.08); }
.lab__mode button[aria-pressed="true"], .lab__layers button[aria-pressed="true"], .lab__view button[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }
.sw { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sw--staff { background: var(--lime); } .sw--cctv { background: #ffc94d; } .sw--wifi { background: #7fe7ff; }
button[aria-pressed="true"] .sw { box-shadow: 0 0 0 1.5px var(--lime-ink); }
.lab__status { position: absolute; z-index: 2; left: 14px; bottom: 14px; right: 140px; margin: 0; font: 500 11.5px/1.4 var(--mono); color: var(--ink-2); text-shadow: 0 1px 6px #000; }
.lab__status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); vertical-align: 1px; }
.lab__status.is-ok { color: var(--lime); }
.lab__status.is-warn { color: #ffc94d; } .lab__status.is-warn::before { background: #ffc94d; box-shadow: 0 0 8px #ffc94d; }
.lab__status.is-bad { color: #ff8a7d; } .lab__status.is-bad::before { background: var(--danger); box-shadow: 0 0 8px var(--danger); animation: ping 1s infinite; }
.lab__hint { position: absolute; z-index: 2; right: 14px; bottom: 14px; margin: 0; font: 400 11px/1 var(--mono); color: var(--dim); }
.lab__loading { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 14px; font: 500 12px/1 var(--mono); color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; background: #060805; }
.lab__loading span { width: 34px; height: 34px; border: 1.5px solid var(--line-2); border-top-color: var(--lime); border-radius: 50%; animation: bootSpinFlat .8s linear infinite; }
@keyframes bootSpinFlat { to { transform: rotate(360deg); } }
.lab__fallback { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--ink-2); background: #060805; }

.lab__side { grid-area: side; display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); }
.lab__h { margin: 0 0 4px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.lab__form { display: flex; flex-direction: column; gap: 14px; }
.rng { display: flex; flex-direction: column; gap: 6px; }
.rng > span { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.rng output { font: 600 14px/1 var(--mono); color: var(--lime); font-variant-numeric: tabular-nums; }
.rng input { --fill: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 0; background: transparent; cursor: pointer; }
.rng input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--lime) var(--fill), rgba(238,241,230,.14) var(--fill)); }
.rng input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--lime); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--lime), 0 0 14px var(--lime-glow); }
.rng input::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(238,241,230,.14); }
.rng input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--lime); }
.rng input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--lime); }
.rng input:focus-visible { outline: none; }
.rng input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--lime); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.seg legend { grid-column: 1 / -1; margin-bottom: 8px; padding: 0; font-size: 14px; color: var(--ink-2); }
.seg label { position: relative; flex: 1; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 34px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12.5px/1 var(--mono); color: var(--ink-2); transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 1px; }
.lab__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sel { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.sel select { min-height: 38px; padding: 0 30px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--ink); font: 500 13px/1 var(--font); }
.tog { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; font-size: 14px; color: var(--ink); cursor: pointer; }
.tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tog__ui { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); transition: background-color .2s; flex: none; }
.tog__ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-2); transition: transform .2s, background-color .2s; }
.tog input:checked + .tog__ui { background: var(--lime); border-color: var(--lime); }
.tog input:checked + .tog__ui::after { transform: translateX(18px); background: var(--lime-ink); }
.tog input:focus-visible + .tog__ui { outline: 2px solid var(--lime); outline-offset: 2px; }
.lab__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.lab__stats > div { padding: 11px 12px; background: var(--bg-2); }
.lab__stats dt { font: 500 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.lab__stats dd { margin: 5px 0 0; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); }
.lab__assume { font-size: 13px; color: var(--dim); }
.lab__assume summary { cursor: pointer; color: var(--ink-2); font-size: 13.5px; }
.lab__assume p { margin: 8px 0 0; line-height: 1.5; }
.lab__actions { display: flex; flex-direction: column; gap: 8px; }
.lab__actions .btn { min-height: 44px; font-size: 14px; }
.lab__actions [data-lab-fail][aria-pressed="true"] { border-color: var(--danger); color: #ff9d90; }

.lab__insp { --vlan: var(--lime); grid-area: insp; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto auto 1fr; grid-template-areas: "head code" "jump code" "meta code"; gap: 12px 22px; align-content: start; padding: 20px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); }
.insp__head { grid-area: head; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.insp__type { margin: 0; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.insp__title { margin: 6px 0 0; font-size: 26px; font-weight: 720; letter-spacing: -.02em; font-variation-settings: "wdth" 112; }
.insp__vlan { padding: 5px 9px; border: 1px solid var(--vlan); border-radius: 999px; font: 500 11px/1 var(--mono); color: var(--vlan); white-space: nowrap; }
.insp__jump { grid-area: jump; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.insp__jump select { flex: 1; min-width: 0; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--ink); font: 500 13px/1 var(--mono); }
.insp__meta { grid-area: meta; margin: 0; display: grid; gap: 0; }
.insp__meta > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.insp__meta dt { font: 500 10.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.insp__meta dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.insp__code { grid-area: code; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-left: 2px solid var(--vlan); border-radius: 12px; background: #060805; overflow: hidden; }
.insp__codehead { padding: 9px 14px; border-bottom: 1px solid var(--line); font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.insp__code pre { margin: 0; padding: 14px; overflow: auto; max-height: 340px; white-space: pre; font: 400 12.5px/1.6 var(--mono); color: #d9f7a0; }

/* ---------- v2 responsive ---------- */
@media (max-width: 1080px) {
  .lab { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "side" "insp"; }
  .lab__side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
  .lab__form { grid-row: span 3; }
  .stack__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stack__head { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .lab__stage { height: min(72vh, 520px); border-radius: 18px; }
  .lab__side { display: flex; }
  .lab__insp { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "jump" "meta" "code"; }
  .lab__hint { display: none; }
  .lab__status { right: 14px; font-size: 10.5px; }
  .lab__layers button { padding: 0 9px; font-size: 12px; }
  .lab__top { flex-direction: column; align-items: flex-start; }
  .stack { height: 300vh; }
  .stack__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .stack__head .section__lede { display: none; }
  .stack__scene { height: 42vh; height: 42svh; margin-top: 4vh; }
  .stack__layers { --sep: 28px; width: min(52vw, 230px); }
  .stack__head { position: relative; z-index: 2; }
  .lab-tag { font-size: 9.5px; padding: 2px 6px; }
  .lab-tag--sm { display: none; }
  .lab-tag--zone { font-size: 9px; }
  .stack__list li:not(.is-active) { display: none; }
  .stack__list li { opacity: 1; min-height: 6.5em; }
}
@media (prefers-reduced-motion: reduce) {
  .stack { height: auto; }
  .stack__sticky { position: static; height: auto; padding: 96px 0; }
  .stack__layers { --p: .6; }
  .stack__list li { opacity: 1; display: grid !important; }
  .hero__lab-cube { animation: none; }
  .marquee { transform: none; }
}

/* ==========================================================================
   v3 — device showcase, CCTV planner, rack view
   ========================================================================== */
.hero__labs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__labs .hero__lab { margin-top: 0; }
.lab-tag.is-sel { border-color: var(--lime); background: var(--lime); color: var(--lime-ink); }
@media (max-width: 1240px) and (min-width: 1101px) {
  .nav__links a { padding: 8px 10px; }
}

/* ---------- Devices ---------- */
.section--dev { overflow: hidden; border-top: 1px solid var(--line); }
.dev { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
.dev__copy .section__title { font-size: clamp(34px, 4.6vw, 64px); }
.dev__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 30px 0 22px; padding: 5px; border: 1px solid var(--line-2); border-radius: 999px; width: fit-content; max-width: 100%; }
.dev__tabs button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 14px/1 var(--font); cursor: pointer; transition: background-color .2s, color .2s; }
.dev__tabs button:hover { color: var(--ink); background: rgba(238,241,230,.06); }
.dev__tabs button[aria-selected="true"] { background: var(--lime); color: var(--lime-ink); }
.dev__panel p { margin: 0 0 16px; font-size: 18px; color: var(--ink); max-width: 520px; }
.dev__panel ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.dev__panel li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15.5px; }
.dev__panel li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border: 1.5px solid var(--lime); border-radius: 3px; transform: rotate(45deg) scale(.8); }
.dev__cta { font-weight: 600; color: var(--lime); text-decoration: none; }
.dev__cta:hover { text-decoration: underline; text-underline-offset: 4px; }
.dev__stage { position: relative; height: clamp(420px, 60vh, 620px); }
.dev__stage::before { content: ""; position: absolute; inset: 10% 5% 0; background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(200,255,46,.12), transparent 70%); pointer-events: none; }
.dev__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dev.is-nogl .dev__stage { display: none; }

/* ---------- CCTV planner ---------- */
.section--cctv { border-top: 1px solid var(--line); background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255,201,77,.05), transparent 70%); }
.cctv { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.cctv__stage { position: relative; height: clamp(480px, 66vh, 680px); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255,201,77,.05), transparent 65%), #060805; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.cctv__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.cctv.is-planning .cctv__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,201,77,.08), transparent) 0 0 / 40% 100% no-repeat; animation: sweep 1.1s linear infinite; }
@keyframes sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.cctv__hint { left: 14px; right: auto; top: 64px; bottom: auto; max-width: 42%; text-align: left; }

.cctv__pov { position: absolute; z-index: 3; overflow: hidden; border: 1px solid rgba(255,201,77,.6); border-radius: 10px; pointer-events: none; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.cctv__pov::before { content: ""; position: absolute; inset: 0; z-index: 2; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55)); }
.pov__hud { position: absolute; z-index: 3; left: 8px; right: 8px; top: 6px; display: flex; gap: 10px; align-items: center; font: 500 10.5px/1 var(--mono); color: #fff; text-shadow: 0 1px 2px #000; }
.pov__rec { display: inline-flex; align-items: center; gap: 5px; color: #ff6b5a; }
.pov__rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5a4a; animation: recBlink 1s steps(2) infinite; }
@keyframes recBlink { 50% { opacity: 0; } }
.pov__time { margin-left: auto; white-space: nowrap; }
.pov__meta { position: absolute; z-index: 3; left: 8px; bottom: 6px; font: 500 10px/1 var(--mono); color: #ffc94d; text-shadow: 0 1px 2px #000; }
.pov__boxes { position: absolute; inset: 0; z-index: 3; }
.pov__box { position: absolute; left: 0; top: 0; border: 1.5px solid var(--lime); box-shadow: 0 0 8px rgba(200,255,46,.4); }
.pov__box i { position: absolute; left: -1.5px; bottom: 100%; padding: 1px 3px; background: var(--lime); color: var(--lime-ink); font: 600 8px/1.2 var(--mono); font-style: normal; white-space: nowrap; }

.cctv__side { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); }
.cctv__stats dd { font-size: 20px; }
.cctv__stats > div:first-child dd { color: #ffc94d; }
.meter { --cov: 0%; position: relative; height: 10px; border-radius: 999px; background: rgba(255,90,74,.22); overflow: visible; margin-bottom: 14px; }
.meter span { position: absolute; inset: 0 auto 0 0; width: var(--cov); border-radius: inherit; background: linear-gradient(90deg, #a88420, #ffc94d); transition: width .35s var(--ease); box-shadow: 0 0 12px rgba(255,201,77,.4); }
.meter i { position: absolute; right: 0; top: 16px; font: 400 11px/1 var(--mono); font-style: normal; color: var(--dim); }
.cctv__cam { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid rgba(200,255,46,.35); border-radius: 16px; background: var(--bg-2); }
.cctv__camhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cctv__camhead h3 { margin: 0; font-size: 22px; font-weight: 720; letter-spacing: -.01em; font-variation-settings: "wdth" 112; }
.cctv__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cctv__empty { margin: 0; padding: 16px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--dim); font-size: 14px; }
.btn--danger { background: transparent; color: #ff9d90; border-color: rgba(255,107,90,.35); }
.btn--danger:hover { background: rgba(255,107,90,.12); border-color: var(--danger); }

@media (max-width: 1080px) {
  .cctv { grid-template-columns: minmax(0, 1fr); }
  .cctv__side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .cctv__side > .lab__stats, .cctv__side > .meter, .cctv__side > [data-cctv-send], .cctv__side > .lab__assume { grid-column: 1 / -1; }
  .dev { grid-template-columns: minmax(0, 1fr); }
  .dev__stage { order: -1; height: clamp(320px, 52vh, 480px); }
}
@media (max-width: 860px) {
  .cctv__stage { height: min(74vh, 560px); border-radius: 18px; }
  .cctv__side { display: flex; align-items: stretch; }
  .pov__date { display: none; }
  .cctv__hint { display: block; left: 14px; right: auto; bottom: auto; top: 112px; max-width: 70%; text-align: left; font-size: 10px; }
  .dev__tabs { width: 100%; }
  .dev__tabs button { flex: 1; padding: 0 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .pov__rec::before { animation: none; }
  .cctv.is-planning .cctv__stage::after { animation: none; }
}

/* ==========================================================================
   v4 — languages & RTL, footer, project pages, privacy, 404
   ========================================================================== */

/* ---------- Language switcher ---------- */
.langs { position: relative; margin-inline-start: 4px; }
.langs__btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 13.5px/1 var(--font); cursor: pointer; transition: border-color .2s, color .2s; }
.langs__btn:hover, .langs__btn[aria-expanded="true"] { border-color: var(--lime); color: var(--ink); }
.langs__menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; min-width: 160px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(10,12,9,.97); box-shadow: 0 20px 40px rgba(0,0,0,.6); }
.langs__menu a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.langs__menu a:hover { background: rgba(238,241,230,.06); color: var(--ink); }
.langs__menu a[aria-current="true"] { color: var(--lime); }
.langs__menu a[aria-current="true"]::after { content: " ✓"; }
.nav__langs--menu { display: none; }
.nav__inner { gap: 14px; }
.nav__links { margin-inline-start: auto; margin-left: unset; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-bottom: 46px; border-bottom: 1px solid var(--line); }
.footer__logo { margin: 0 0 12px; font-size: 26px; font-weight: 800; font-variation-settings: "wdth" 120; color: var(--ink); }
.footer__logo b { color: var(--lime); }
.footer__tag { margin: 0 0 18px; max-width: 320px; color: var(--dim); font-size: 15px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink-2); }
.footer__social a:hover { border-color: var(--lime); color: var(--lime); }
.footer__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer__col h2 { margin: 0 0 6px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.footer__col a, .footer__col span { color: var(--ink-2); font-size: 14.5px; text-decoration: none; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--lime); }
.footer__big { margin: 30px 0 18px; }
.footer__langs { display: flex; gap: 14px; }
.footer__langs a[aria-current="true"] { color: var(--lime); }

/* ---------- WhatsApp button (only when a number is set in Settings) ---------- */
.wa-float { position: fixed; z-index: 45; inset-inline-end: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 30px -6px rgba(200,255,46,.5); transition: transform .25s var(--ease); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-3px); }

/* ---------- Inner pages ---------- */
.page { padding-top: 72px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 34px; font: 500 12px/1.4 var(--mono); color: var(--dim); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.crumbs [aria-current] { color: var(--ink); }
.phero { padding: clamp(48px, 8vw, 96px) 0 40px; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: end; }
.phero__title { margin: 0; font-size: clamp(38px, 6vw, 86px); line-height: 1; font-weight: 750; letter-spacing: -.035em; font-variation-settings: "wdth" 110; text-wrap: balance; }
.phero__desc { margin: 0 0 24px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--ink); max-width: 560px; }
.phero__desc--muted { color: var(--dim); }
.phero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pcover__frame { position: relative; aspect-ratio: 21 / 9; max-width: 100%; border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; background: #0f130d; }
.pcover__frame img { width: 100%; height: 100%; object-fit: cover; }
.pcover__frame .project__mono { font-size: clamp(90px, 16vw, 220px); left: 40px; bottom: 30px; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery__item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.gallery__cap { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-size: 13.5px; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(3,4,3,.94); color: var(--ink); }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 120px); }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; }
.lightbox__fig figcaption { color: var(--ink-2); font-size: 15px; text-align: center; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(10,12,9,.8); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox__btn:hover { border-color: var(--lime); color: var(--lime); }
.lightbox__close { top: 18px; inset-inline-end: 18px; }
.lightbox__prev { inset-inline-start: 18px; top: 50%; translate: 0 -50%; }
.lightbox__next { inset-inline-end: 18px; top: 50%; translate: 0 -50%; }
[dir="rtl"] .lightbox__prev, [dir="rtl"] .lightbox__next { transform: scaleX(-1); }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; font: 500 12px/1 var(--mono); color: var(--dim); }
.pcta { padding: 40px 0 70px; }
.pcta__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(26px, 4vw, 48px); border: 1px solid rgba(200,255,46,.35); border-radius: 26px; background: radial-gradient(ellipse at 100% 0%, rgba(200,255,46,.12), transparent 55%), var(--card); }
.pcta__box .section__title { font-size: clamp(28px, 3.6vw, 46px); }
.pcta__box .section__lede { margin-top: 12px; }
.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 80px; }
.pnav__item { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); background: var(--card); transition: border-color .25s; }
.pnav__item:hover { border-color: rgba(200,255,46,.5); }
.pnav__item--next { text-align: end; }
.pnav__k { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.pnav__t { font-size: 20px; font-weight: 650; }
.project__title a { color: inherit; text-decoration: none; }
.project__title a:hover { color: var(--lime); }
a.project__cover { display: block; text-decoration: none; }
.prose-sec { padding-top: 10px; }
.prose { max-width: 760px; }
.prose h2 { margin: 36px 0 10px; font-size: 22px; font-weight: 650; }
.prose p { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose a { color: var(--lime); }
.nf { min-height: 70vh; display: grid; align-items: center; }
.nf__inner { padding: 80px var(--gutter); }
.nf__code { margin: 0; font-size: clamp(110px, 22vw, 260px); line-height: .85; font-weight: 800; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--lime); }
.nf .section__lede { margin: 18px 0 28px; }
.form__privacy { margin: -4px 0 16px; font-size: 13px; color: var(--dim); }
.form__privacy a { color: var(--ink-2); }

/* ---------- RTL (Kurdish, Arabic) ---------- */
[dir="rtl"] body { font-size: 16.5px; line-height: 1.85; }
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] .hero__title { font-family: "Noto Kufi Arabic", var(--font); font-weight: 800; line-height: 1.32; font-size: clamp(38px, 6.6vw, 96px); }
[dir="rtl"] .hero__title .line { padding-bottom: .12em; }
[dir="rtl"] .section__title, [dir="rtl"] .phero__title { font-family: "Noto Kufi Arabic", var(--font); line-height: 1.38; font-weight: 750; }
[dir="rtl"] .section__title { font-size: clamp(30px, 4.6vw, 62px); }
[dir="rtl"] .stack__head .section__title, [dir="rtl"] .dev__copy .section__title { font-size: clamp(30px, 4vw, 54px); }
[dir="rtl"] .service__title, [dir="rtl"] .project__title, [dir="rtl"] .insp__title, [dir="rtl"] .about__lead { line-height: 1.5; }
[dir="rtl"] .hero__intro, [dir="rtl"] .section__lede { line-height: 1.9; }
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .progress span { transform-origin: 100% 50%; }
[dir="rtl"] .service::after { transform-origin: right; }
[dir="rtl"] .panel::before { left: auto; right: 20px; }
[dir="rtl"] .hero__globe { right: auto; left: max(-6vw, calc(50% - 760px)); }
[dir="rtl"] .marquee__track { direction: ltr; }
[dir="rtl"] .dev__panel li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .dev__panel li::before { left: auto; right: 0; }
[dir="rtl"] .field select { background-position: 20px 22px, 15px 22px; padding-right: 15px; padding-left: 40px; }
[dir="rtl"] .rng input { direction: ltr; }
[dir="rtl"] .tog__ui::after { left: auto; right: 2px; }
[dir="rtl"] .tog input:checked + .tog__ui::after { transform: translateX(-18px); }
[dir="rtl"] .lab__status { left: 140px; right: 14px; }
[dir="rtl"] .lab__hint { right: auto; left: 14px; }
[dir="rtl"] .cctv__hint { left: auto; right: 14px; }
[dir="rtl"] .project__mono { left: auto; right: 26px; }
[dir="rtl"] .project__cover--gen::before { right: auto; left: -16%; }
[dir="rtl"] .eyebrow, [dir="rtl"] .section__index, [dir="rtl"] .panel__label, [dir="rtl"] .contact__k, [dir="rtl"] .field label, [dir="rtl"] .lab__h, [dir="rtl"] .footer__col h2, [dir="rtl"] .project__cat, [dir="rtl"] .pnav__k, [dir="rtl"] .insp__type, [dir="rtl"] .lab__stats dt { font-family: "Noto Kufi Arabic", var(--mono); text-transform: none; }
[dir="rtl"] .lab__stats dt { font-size: 11.5px; }
[dir="rtl"] .footer__top { direction: rtl; }
[dir="rtl"] .hero__lab b { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .hero__links a { padding: 0 13px 0 16px; }
[dir="rtl"] .lab-tag--zone { translate: -100% -100%; }

@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .phero__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .pcover__frame { aspect-ratio: 4 / 3; border-radius: 18px; }
  .pnav { grid-template-columns: minmax(0, 1fr); }
  [dir="rtl"] .lab__status { left: 14px; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .lightbox__fig { max-width: calc(100vw - 24px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; translate: none; }
}

/* Navigation collapses into the menu button below 1100px (six links + language switcher need the room) */
@media (max-width: 1100px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 22px;
    background: rgba(5,6,5,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; }
  .nav.is-open { background: rgba(5,6,5,.96); }
  .nav__links a { padding: 16px 4px; font-size: 22px; font-weight: 600; color: var(--ink); border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__links a.is-active::after { display: none; }
  .nav__toggle { display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; }
  .nav__toggle i { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .25s; }
  .nav.is-open .nav__toggle i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__cta { display: none; }
  .langs { display: none; }
  .nav__toggle { margin-inline-start: auto; }
  .nav__langs--menu { display: flex; gap: 8px; padding: 18px 4px 4px; }
  .nav__langs--menu a { flex: 1; padding: 10px 6px !important; border: 1px solid var(--line-2) !important; border-radius: 999px !important; font-size: 15px !important; text-align: center; }
  .nav__langs--menu a[aria-current="true"] { border-color: var(--lime) !important; color: var(--lime) !important; }
}
