
[hidden] { display: none !important; }

/* ============ V3 Vercel-inspired dark ============ */
:root {
  --bg: #000000;
  --ink: #FFFFFF;
  --muted: #FFFFFF;
  --line: rgba(255,255,255,0.15);
  --sand: #FFFFFF;
  --wire: rgba(255,255,255,0.3);
  --radius: 6px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --max: 1120px;
  --lk-ink: #FFFFFF;
  --lk-sand: #FFFFFF;
  --lk-badge: #FFFFFF;
  --lk-badge-text: #000000;
  color-scheme: dark;
}

html[lang="en"] {
  --f-head: 'Geist', 'IBM Plex Sans Arabic', sans-serif;
  --f-body: 'Geist', 'IBM Plex Sans Arabic', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'Geist', monospace;
}
html[lang="ar"] {
  --f-head: 'IBM Plex Sans Arabic', sans-serif;
  --f-body: 'IBM Plex Sans Arabic', sans-serif;
  --f-mono: 'IBM Plex Sans Arabic', monospace;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
html, select, option, input, textarea, button { font-family: var(--f-body); }
body {
  font-family: var(--f-body);
  font-size: 1rem; line-height: 1.65;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.9; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
section { padding: 96px 0; scroll-margin-top: 84px; }
main { padding-bottom: 56px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 32px; height: 32px; flex: none; }
.wordmark {
  font-family: var(--f-body); font-weight: 600; font-size: 0.95rem;
  letter-spacing: .14em; color: var(--ink);
  display: flex; align-items: center;
}
.wordmark-ai {
  display: inline-grid; place-items: center;
  background: var(--lk-badge); color: var(--lk-badge-text);
  font-family: var(--f-mono); font-weight: 600; font-size: .65rem; letter-spacing: .08em;
  border-radius: 4px; padding: 2px 6px; margin-inline-start: .5em;
}
.links { display: flex; gap: 2px; list-style: none; padding: 0; }
.links a {
  display: block; padding: 8px 14px; color: var(--muted);
  font-size: .84rem; font-weight: 500;
  transition: color .2s var(--ease);
}
.links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  width: 36px; height: 36px; border-radius: 4px; flex: none; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-family: var(--f-body); font-size: .85rem; font-weight: 500;
  display: grid; place-items: center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.lang-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.menu-btn {
  display: none; width: 36px; height: 36px; border-radius: 4px;
  border: 1px solid var(--line); background: transparent;
  cursor: pointer; font-size: 18px; color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 24px; border-radius: 6px; cursor: pointer;
  font-family: var(--f-body); font-size: .875rem; font-weight: 500;
  background: #FFFFFF; color: #000000; border: 1px solid #FFFFFF;
  transition: opacity .2s var(--ease), transform .15s var(--ease);
}
html[lang="ar"] .btn { font-weight: 600; }
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); opacity: 1; }
.btn .arrow { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; }
h1 {
  font-size: clamp(2.4rem, 1.8rem + 3vw, 3.8rem);
  font-weight: 600; letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
  font-weight: 600; letter-spacing: -0.02em;
}
h3 { font-weight: 600; font-size: 1.08rem; line-height: 1.45; }
html[lang="ar"] h1, html[lang="ar"] h2 { line-height: 1.5; letter-spacing: 0; font-weight: 700; }
h1 em { font-style: normal; color: var(--muted); }
.eyebrow {
  font-family: var(--f-mono); font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em; color: var(--muted);
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--sand); border-radius: 50%; flex: none; }
html[lang="ar"] .eyebrow { text-transform: none; letter-spacing: 0; font-size: .88rem; font-family: var(--f-body); font-weight: 600; }
.section-head p { margin-top: 12px; font-size: .98rem; max-width: 64ch; color: var(--muted); }
.lead { font-size: 1.05rem; max-width: 52ch; color: var(--muted); }
.section-head { text-align: center; max-width: 66ch; margin: 0 auto 48px; }
.section-head .eyebrow { justify-content: center; }
.section-head p { margin-inline: auto; }

/* ---------- Hero (3-column) ---------- */
.hero { padding: 100px 0 80px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: center;
}
.hero-left { max-width: 380px; }
.hero-center {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-logo {
  width: 200px; height: 200px;
  filter: drop-shadow(0 0 60px rgba(255,255,255,0.15)) drop-shadow(0 0 120px rgba(255,255,255,0.08));
}
.hero-right {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 280px; justify-self: end;
}
.hero-feature {
  font-size: .88rem; color: var(--muted); line-height: 1.55;
  padding-inline-start: 14px;
  border-inline-start: 1px solid var(--line);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Diagram ---------- */
.diagram-frame {
  background: transparent;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 28px;
}
.d-stage { display: grid; grid-template-columns: 1fr 310px; gap: 20px; align-items: start; }
.d-cols { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 56px; position: relative; }
.d-col-head {
  font-family: var(--f-mono); font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  text-align: center; margin-bottom: 14px;
}
html[lang="ar"] .d-col-head { font-size: .85rem; letter-spacing: 0; text-transform: none; font-family: var(--f-body); font-weight: 600; }
.d-in, .d-out { display: grid; gap: 10px; align-content: start; }
.d-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; cursor: pointer; text-align: start;
  font-family: var(--f-body); font-size: .92rem; font-weight: 500; color: var(--ink);
  transition: border-color .25s var(--ease), opacity .35s var(--ease), transform .25s var(--ease);
}
.d-item .logos { display: flex; gap: 5px; flex: none; }
.d-item .logos img { width: 20px; height: 20px; border-radius: 4px; background: var(--logo-tile, transparent); }
.d-item:hover { border-color: rgba(255,255,255,0.4); transform: translateY(-1px); }
.d-item.on { border-color: #FFFFFF; box-shadow: 0 0 0 1px #FFFFFF; }
.d-stack { display: grid; gap: 10px; }
.d-layer {
  display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 4px 10px; width: 100%;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; cursor: pointer; text-align: start;
  font-family: var(--f-body); color: var(--ink);
  transition: border-color .25s var(--ease), opacity .35s var(--ease), transform .25s var(--ease);
}
.d-layer .no { font-family: var(--f-mono); font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .1em; grid-row: span 2; }
html[lang="ar"] .d-layer .no { letter-spacing: 0; }
.d-layer .nm { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.d-layer .hint { font-size: .8rem; line-height: 1.45; color: var(--muted); }
.d-layer .nm, .d-layer .hint { overflow-wrap: anywhere; }
.d-layer:hover { border-color: rgba(255,255,255,0.4); transform: translateY(-1px); }
.d-layer.on { border-color: #FFFFFF; box-shadow: 0 0 0 1px #FFFFFF; }
.d-layer.approve { border: 1px solid var(--line); border-inline-start: 4px solid var(--sand); }
.d-legend { margin-top: 16px; font-size: .84rem; text-align: center; font-family: var(--f-mono); color: var(--muted); }
html[lang="ar"] .d-legend { font-family: var(--f-body); }

/* Wires */
.d-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.d-in, .d-out, .d-stack { position: relative; z-index: 1; }
.d-wires .w { fill: none; stroke: var(--wire); stroke-width: 1.5; transition: stroke .35s var(--ease), opacity .35s var(--ease); }
.d-wires .w-dot { fill: var(--wire); transition: fill .35s var(--ease); }
.d-wires .w.on { stroke: #FFFFFF; stroke-width: 2.2; stroke-dasharray: 5 5; animation: wireflow 1.1s linear infinite; }
.d-wires .w-dot.on { fill: #FFFFFF; }
.d-cols.has-sel .d-wires .w:not(.on), .d-cols.has-sel .d-wires .w-dot:not(.on) { opacity: .2; }
@keyframes wireflow { to { stroke-dashoffset: -20; } }
.d-cols.has-sel .d-item:not(.on), .d-cols.has-sel .d-layer:not(.on) { opacity: .4; }

/* Panel */
.d-panel {
  background: transparent; border: 1px solid var(--line);
  border-radius: 8px; padding: 22px; position: sticky; top: 84px;
}
.p-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.d-panel .p-eyebrow {
  font-family: var(--f-mono); font-size: .66rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 8px;
}
html[lang="ar"] .d-panel .p-eyebrow { text-transform: none; letter-spacing: 0; font-size: .82rem; font-family: var(--f-body); font-weight: 600; }
.p-top .p-eyebrow { margin: 0; }
.p-close {
  width: 32px; height: 32px; flex: none; border-radius: 4px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer; font-size: 18px; line-height: 1;
  display: grid; place-items: center; transition: border-color .2s var(--ease);
}
.p-close:hover { border-color: rgba(255,255,255,0.4); }
.d-panel h3 { font-family: var(--f-head); font-size: 1.4rem; font-weight: 600; margin: 10px 0; }
html[lang="ar"] .d-panel h3 { font-family: var(--f-head); line-height: 1.6; font-weight: 700; }
.d-panel .p-what { font-size: .92rem; color: var(--muted); }
.d-panel .p-label {
  font-family: var(--f-mono); font-size: .66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 16px 0 8px;
}
html[lang="ar"] .d-panel .p-label { text-transform: none; letter-spacing: 0; font-size: .82rem; font-family: var(--f-body); }
.d-panel .p-ex { list-style: none; padding: 0; display: grid; gap: 10px; }
.d-panel .p-ex li { display: flex; gap: 12px; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.d-panel .p-ex .n { font-family: var(--f-mono); color: var(--ink); font-weight: 600; font-size: .75rem; padding-top: 3px; flex: none; }
.d-panel .p-save {
  margin-top: 16px; border-inline-start: 3px solid var(--sand);
  padding: 10px 14px; font-size: .9rem; display: grid; gap: 4px; color: var(--muted);
}
.p-save-k {
  font-family: var(--f-mono); font-size: .66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--ink);
}
html[lang="ar"] .p-save-k { text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: .82rem; }
.d-panel .p-def { font-size: .92rem; color: var(--muted); }
.d-panel.swap #panelBody { animation: panelIn .4s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .25s var(--ease);
}
.card:hover { border-color: rgba(255,255,255,0.3); }
.dept-no {
  font-family: var(--f-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; color: var(--muted); margin-bottom: 16px;
}
html[lang="ar"] .dept-no { letter-spacing: 0; font-size: .85rem; }
.dept { min-height: 200px; }
.steps { counter-reset: step; }
.steps .card::before {
  content: "0" counter(step); counter-increment: step;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; color: var(--muted);
  display: block; margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
html[lang="ar"] .steps .card::before { letter-spacing: 0; }

/* ---------- Packages ---------- */
.package { display: flex; flex-direction: column; gap: 14px; }
.package.featured { border-color: #FFFFFF; }
.badge {
  align-self: flex-start;
  font-family: var(--f-mono); font-size: .64rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: #000; background: #FFF;
  border-radius: 4px; padding: 3px 9px;
}
html[lang="ar"] .badge { text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: .78rem; }
.price { font-family: var(--f-mono); font-size: 1.4rem; font-weight: 500; color: var(--ink); }
.price small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.checks {
  list-style: none; padding: 14px 0 0; display: grid; gap: 8px;
  font-size: .88rem; border-top: 1px solid var(--line); color: var(--muted);
}
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before {
  content: ""; flex: none; width: 10px; height: 6px;
  transform: translateY(-2px) rotate(-45deg);
  border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
}
.package .btn { margin-top: auto; }
.pay {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin-top: 28px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .875rem; color: var(--muted);
}
.chip { color: var(--ink); font-weight: 600; }
.chip.bnpl { text-decoration: underline; text-underline-offset: 4px; }
.soon {
  font-family: var(--f-mono); font-size: .66rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px;
  text-transform: uppercase; letter-spacing: .1em;
}
html[lang="ar"] .soon { text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: .8rem; }
.pay-note { flex-basis: 100%; margin: 0; color: var(--muted); }

/* ---------- Work ---------- */
.work-image {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  margin: -28px -28px 20px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--muted); font-family: var(--f-mono); font-size: .85rem;
}
html[lang="ar"] .work-image { font-family: var(--f-body); }
.work-note { margin-top: 20px; font-size: .875rem; text-align: center; font-family: var(--f-mono); color: var(--muted); }
html[lang="ar"] .work-note { font-family: var(--f-body); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
html[dir="rtl"] .faq summary::after { transform: scaleX(-1) rotate(45deg); }
.faq details[open] summary::after { transform: rotate(225deg); }
html[dir="rtl"] .faq details[open] summary::after { transform: scaleX(-1) rotate(225deg); }
.faq details p { padding-bottom: 20px; max-width: 62ch; font-size: .95rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
form { display: grid; gap: 14px; }
label {
  font-weight: 600; font-size: .82rem;
  font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted);
}
html[lang="ar"] label { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: .92rem; }
input, textarea, select {
  width: 100%; font: inherit; font-family: var(--f-body); font-size: 1rem;
  color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 14px; min-height: 44px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #FFFFFF; box-shadow: 0 0 0 1px #FFFFFF; }
textarea { min-height: 130px; resize: vertical; }
select option { background: #111; color: #fff; }
.c-details { display: grid; gap: 18px; }
.c-row strong {
  display: block; font-weight: 600; font-size: .78rem; margin-bottom: 4px;
  font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
html[lang="ar"] .c-row strong { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: .92rem; }
.c-row p, .c-row a, .c-row span { font-size: .95rem; }
.c-row a { color: var(--ink); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.soon-tag {
  font-family: var(--f-mono); font-size: .7rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 2px 10px; display: inline-block;
  text-transform: uppercase; letter-spacing: .08em;
}
html[lang="ar"] .soon-tag { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: .84rem; }

/* ---------- CTA + footer ---------- */
.cta {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 64px 48px; text-align: center;
}
.cta h2 { max-width: 30ch; margin: 0 auto 28px; }
footer { border-top: 1px solid var(--line); padding: 30px 0; font-size: .875rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.foot-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot-word { font-weight: 600; letter-spacing: .14em; color: var(--ink); display: inline-flex; align-items: center; }
.foot-word em {
  font-style: normal;
  background: var(--lk-badge); color: var(--lk-badge-text);
  font-family: var(--f-mono); font-weight: 600; font-size: .65rem; letter-spacing: .08em;
  border-radius: 4px; padding: 2px 6px; margin-inline-start: .5em;
}

/* ---------- Preview bar ---------- */
.preview-bar {
  position: fixed; bottom: 14px; inset-inline-start: 50%; transform: translateX(-50%);
  z-index: 40; background: #111; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px;
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
}
html[dir="rtl"] .preview-bar { transform: translateX(50%); }
.preview-bar .pb-label {
  font-family: var(--f-mono); font-size: .64rem; color: var(--muted);
  padding-inline-end: 4px; letter-spacing: .1em;
}
.preview-bar a {
  font-family: var(--f-mono); font-size: .7rem; color: var(--muted);
  text-decoration: none; padding: 4px 10px; border-radius: 999px;
}
.preview-bar a:hover { color: var(--ink); }
.preview-bar a.cur { background: #FFF; color: #000; }
.preview-bar .pb-sep { width: 1px; height: 16px; background: var(--line); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
main, .links, footer { transition: opacity .16s ease; }
body.lang-fading main, body.lang-fading .links, body.lang-fading footer { opacity: 0; }
html.no-vt main { animation: 440ms var(--ease) both rise-in; }
html.no-vt.leaving main { animation: 200ms var(--ease) both fade-out; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; } }


@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Logo always LTR */
.brand, .wordmark, .foot-word { direction: ltr; unicode-bidi: isolate; }

/* ---------- Narrow ---------- */
@media (max-width: 1100px) {
  .d-stage { grid-template-columns: 1fr; }
  .d-panel { position: static; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-left { max-width: none; margin: 0 auto; }
  .hero-center { order: -1; }
  .hero-logo { width: 140px; height: 140px; }
  .hero-right { justify-self: center; max-width: none; align-items: center; }
  .hero-feature { border: none; padding: 0; text-align: center; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 900px) {
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .d-cols { display: block; gap: 0; }
  .d-in, .d-out { grid-template-columns: 1fr 1fr; }
  .d-stack { margin: 20px 0; }
  .d-col-head { text-align: start; }
}
@media (max-width: 860px) {
  .links {
    position: absolute; top: 64px; inset-inline: 16px;
    flex-direction: column; background: #0a0a0a;
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 8px; opacity: 0; pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .links.open { opacity: 1; pointer-events: auto; transform: none; }
  .links a { padding: 12px 14px; font-size: 1rem; }
  .menu-btn { display: grid; place-items: center; }
  .nav-end .btn { display: none; }
  .hero { padding: 60px 0 50px; }
  section { padding: 64px 0; }
  .cta { padding: 40px 28px; }
  .diagram-frame { padding: 18px; }
}
@media (max-width: 560px) {
  .d-in, .d-out { grid-template-columns: 1fr; }
  .hero-logo { width: 110px; height: 110px; }
}
