/* =====================================================================
   s0sta.com — Aurora Network theme
   Layout: one centred column (max 1240px). Dark "night" sections and
   light "paper" sections alternate; two giant headlines cross the
   border between them. The logo's constellation S is the hero.
   ===================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Sora"; src: url("../fonts/sora-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Alexandria"; src: url("../fonts/alexandria-arabic.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }

/* ---------- Tokens ---------- */
:root {
  --night: #0f0c26;      /* page background, deep indigo */
  --night-2: #18143c;    /* raised dark surface */
  --deep: #0a081d;       /* footer */
  --line-d: rgba(196, 181, 253, .16);
  --line-d2: rgba(196, 181, 253, .3);
  --text-d: #efecff;
  --muted-d: #aea8d8;

  --violet: #7c3aed;
  --violet-2: #6d28d9;
  --lilac: #c4b5fd;
  --cyan: #22c3e6;
  --cyan-2: #0891b2;
  --sun: #f2c14e;

  --paper: #f4f2ff;      /* light sections */
  --ink: #16123a;
  --muted-l: #57507f;
  --line-l: rgba(22, 18, 58, .13);

  --ok: #34d399;
  --warn: #fbbf24;
  --down: #fb7185;

  --display: "Sora", "Alexandria", "Segoe UI", system-ui, sans-serif;
  --body: "Geist", "Plex Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-l: 28px;
  --r-m: 18px;
  --section-y: clamp(80px, 10vw, 140px);
  color-scheme: dark;
}
:root:lang(ar) {
  --display: "Alexandria", "Sora", "Segoe UI", Tahoma, system-ui, sans-serif;
  --body: "Plex Arabic", "Geist", "Segoe UI", Tahoma, system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text-d);
  font: 400 17px/1.62 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(ar) body { line-height: 1.85; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(124, 58, 237, .5); color: #fff; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--violet-2); }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; inset-inline-start: 16px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.light { background: var(--paper); color: var(--ink); }

.ic { width: 18px; height: 18px; flex: none; }

/* ---------- Type ---------- */
.h2 {
  font: 300 clamp(38px, 5vw, 66px)/1.02 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h3 {
  font: 400 clamp(22px, 2.2vw, 30px)/1.16 var(--display);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted-d); max-width: 46ch; }
.light .lead { color: var(--muted-l); }
.statement {
  font: 300 clamp(24px, 2.6vw, 34px)/1.28 var(--display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.num { font: 300 clamp(54px, 5.6vw, 78px)/.92 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.num-label { font-weight: 600; font-size: 15.5px; margin-top: 4px; }

:lang(ar) :is(.h2, .h3, .statement, .hero-title, .split, .tl-role, .cert-name, .side-title, .form-title, .skill-name, .sys-name, .pv-h, .nf-code) { letter-spacing: 0; }
:lang(ar) .h2 { line-height: 1.3; }
:lang(ar) .h3 { line-height: 1.45; }
:lang(ar) .statement { line-height: 1.65; }
:lang(de) :is(.h3, .tl-role, .card-text, .proj-text, .prose) { hyphens: auto; }
/* long German words (zusammenarbeiten) must not push small phones wider */
:lang(de) .h2 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.contact-copy, .about-copy, .exp-grid > * { min-width: 0; }
:lang(de) .tl-points li { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.tl-points { grid-template-columns: minmax(0, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15.5px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text-d); border-color: rgba(239, 236, 255, .3); }
.btn-ghost:hover { border-color: rgba(239, 236, 255, .65); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2269; }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }
[dir="rtl"] .ic-flip { transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 50; padding-top: calc(12px + env(safe-area-inset-top, 0px)); pointer-events: none; }
.nav-bar {
  pointer-events: auto; display: flex; align-items: center; gap: 14px;
  background: rgba(244, 242, 255, .94); color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 18px;
  padding-block: 8px; padding-inline: 16px 8px;
  box-shadow: 0 12px 34px -16px rgba(0, 0, 0, .6);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled .nav-bar { box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .55), 0 0 0 1px rgba(22, 18, 58, .08); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font: 600 19px/1 "Sora", system-ui, sans-serif; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 2px; margin-inline-start: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--ink); white-space: nowrap; transition: background-color .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { background: rgba(22, 18, 58, .07); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(22, 18, 58, .06); }
.lang-switch a { padding: 7px 9px; border-radius: 8px; font: 600 12.5px/1 var(--body); color: var(--muted-l); text-decoration: none; }
.lang-switch a[lang="ar"] { font-family: "Plex Arabic", Tahoma, system-ui, sans-serif; font-size: 13px; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(22, 18, 58, .16); }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .ic { width: 20px; height: 20px; }
.menu-btn .ic-close, .menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
.mobile-menu {
  pointer-events: auto; margin-top: 8px; padding: 10px; display: grid; gap: 10px;
  background: rgba(244, 242, 255, .98); color: var(--ink); border-radius: 18px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6);
}
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: 12px 14px; border-radius: 12px; font: 400 21px/1.3 var(--display); color: var(--ink); text-decoration: none; }
.mobile-menu nav a:hover { background: rgba(22, 18, 58, .06); }
.mobile-menu .btn { justify-self: stretch; }

@media (max-width: 1120px) {
  :lang(de) .nav-cta { display: none; }   /* the German menu words are longer */
  .nav-links a { padding-inline: 10px; }
}
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-tools { margin-inline-start: auto; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 600px) {
  .nav-cta { display: none; }
  .brand-mark { width: 26px; height: 26px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(118px, 13vw, 168px) clamp(64px, 8vw, 112px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -2; width: min(72vw, 940px); aspect-ratio: 1; border-radius: 50%;
  filter: blur(80px); opacity: .5; pointer-events: none;
}
.hero::before { background: radial-gradient(circle, #6d28d9 0%, transparent 66%); left: -16vw; top: -34vw; animation: drift 20s ease-in-out infinite alternate; }
.hero::after { background: radial-gradient(circle, #0891b2 0%, transparent 66%); right: -20vw; bottom: -44vw; animation: drift 24s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(6vw, 4vw) scale(1.12); } }
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 11px;
  border: 1px solid var(--line-d); border-radius: 999px; background: rgba(255, 255, 255, .04);
  font-size: 14px; color: var(--muted-d); text-decoration: none; transition: border-color .2s, color .2s;
}
.pill:hover { border-color: var(--line-d2); color: var(--text-d); }
[dir="rtl"] .pill { padding: 7px 11px 7px 14px; }
.pulse-dot { --c: 34, 195, 230; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--c)); animation: ping 2.4s ease-out infinite; }
.pill[data-state="ok"] .pulse-dot { --c: 52, 211, 153; }
.pill[data-state="warn"] .pulse-dot { --c: 251, 191, 36; }
.pill[data-state="down"] .pulse-dot { --c: 251, 113, 133; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(var(--c), .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(var(--c), 0); } }
.hero-title {
  margin-block: 24px 22px;
  font: 300 clamp(42px, 5.6vw, 82px)/1 var(--display);
  letter-spacing: -.045em;
}
.hero-title span { display: block; text-wrap: balance; }
:lang(ar) .hero-title { font-size: clamp(36px, 4.8vw, 70px); line-height: 1.25; font-weight: 300; }
:lang(de) .hero-title { font-size: clamp(42px, 5.4vw, 78px); }   /* longer German words: keep "Smart Contracts," on one line */
.hero-lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted-d); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 26px; font-size: 14.5px; }
.hero-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-d); text-decoration: none; }
.hero-links a:hover { color: var(--text-d); }
.hero-links .ic { width: 15px; height: 15px; }
.hero-visual { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; justify-self: center; }
.hero-static { position: absolute; inset: 5%; width: 90%; height: 90%; transition: opacity .6s ease; }
.hero.is-live .hero-static { opacity: 0; }
.hero-hint { position: absolute; inset-inline: 0; bottom: 0; text-align: center; font-size: 13.5px; color: var(--muted-d); opacity: .8; }
.hero-tip {
  position: absolute; z-index: 4; transform: translate(-50%, calc(-100% - 16px));
  background: rgba(22, 18, 58, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(196, 181, 253, .35); border-radius: 12px; padding: 9px 13px;
  font-size: 13.5px; line-height: 1.4; color: var(--text-d); pointer-events: none; white-space: nowrap;
}
.hero-tip b { display: block; font: 500 15px/1.3 var(--display); margin-bottom: 2px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 330px; margin-block: -18px -40px; }
  .hero-hint { display: none; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.portrait { position: relative; max-width: 440px; }
.portrait-frame {
  padding: 2px; border-radius: 32px;
  background: linear-gradient(145deg, rgba(167, 139, 250, .95), rgba(34, 195, 230, .6) 55%, rgba(255, 255, 255, .08));
  box-shadow: 0 34px 80px -34px rgba(124, 58, 237, .7);
}
.portrait-frame img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 30px; background: var(--night-2); }
.portrait-tag {
  position: absolute; inset-inline-start: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 14px;
  background: rgba(15, 12, 38, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-d2);
}
.portrait-tag .ic { width: 16px; height: 16px; color: var(--cyan); }
.portrait-nodes { position: absolute; width: 130px; inset-inline-end: -34px; top: -30px; overflow: visible; }
.portrait-nodes path { fill: none; stroke: url(#mk-line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.portrait-nodes circle { fill: url(#mk-node); }
.about { padding-bottom: clamp(40px, 5vw, 72px); }
.about-copy .statement { margin-block: 22px 26px; }
.prose { color: var(--muted-d); max-width: 62ch; display: grid; gap: 14px; }
.facts { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.fact { padding-block: 14px; border-top: 1px solid var(--line-d); }
.fact dt { font-size: 13.5px; color: var(--muted-d); }
.fact dd { margin-top: 2px; font-size: 16px; }
.fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
  .portrait-nodes { inset-inline-end: -10px; width: 100px; }
}
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Work (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden; border-radius: var(--r-l); padding: clamp(22px, 2.6vw, 32px); }
.card-net { grid-column: span 7; grid-row: span 2; background: var(--night-2); border: 1px solid var(--line-d); }
.card-tests { grid-column: span 5; background: var(--violet); color: #fff; }
.card-store { grid-column: span 5; background: var(--sun); color: var(--ink); }
.card-research { grid-column: span 4; background: var(--paper); color: var(--ink); }
.card-systems { grid-column: span 4; border: 1px solid var(--line-d); }
.card-portal { grid-column: span 4; border: 1px solid var(--line-d); background: linear-gradient(155deg, #221a5c 0%, #0c3a4e 100%); }
.kicker { font-size: 14px; color: var(--muted-d); }
.card-text { font-size: 15.5px; max-width: 46ch; opacity: .92; }
.card-note { font-size: 14px; color: var(--muted-d); }
.card-link {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding-block: 6px 2px;
  font-weight: 600; font-size: 14.5px; text-decoration: none; border-bottom: 1.5px solid currentColor;
}
.card-link .ic { width: 15px; height: 15px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ring { width: 104px; height: 104px; flex: none; }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: rgba(255, 255, 255, .25); }
.ring-fg { stroke: #fff; stroke-linecap: round; }
.ring text { fill: #fff; font: 500 18px var(--display); }
.netmap { width: 100%; height: auto; margin-top: auto; }
.nm-ring line { stroke: rgba(196, 181, 253, .18); stroke-width: 1.5; }
.nm-spokes line { stroke: rgba(167, 139, 250, .42); stroke-width: 1.5; stroke-dasharray: 3 5; }
.nm-packet.nm-out { fill: #d4c8ff; }
.nm-packet.nm-in { fill: var(--cyan); }
.nm-nodes circle { fill: var(--night); stroke: #a78bfa; stroke-width: 2; }
.nm-hq-glow { fill: rgba(124, 58, 237, .28); }
.nm-hq-text { fill: #fff; font: 600 12.5px "Sora", sans-serif; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; font-weight: 550; border: 1px solid rgba(22, 18, 58, .2); border-radius: 999px; padding: 4px 11px; }
.sys-list div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding-block: 11px; border-top: 1px solid var(--line-d); }
.sys-list dt { font: 500 16px var(--display); }
.sys-list dd { color: var(--muted-d); font-size: 15px; }
@media (max-width: 1080px) {
  .card-net { grid-column: span 12; grid-row: auto; }
  .card-tests, .card-store, .card-research, .card-systems { grid-column: span 6; }
  .card-portal { grid-column: span 12; }
}
@media (max-width: 680px) { .bento > .card { grid-column: 1 / -1; } }

/* ---------- Split headline (crosses dark and light) ---------- */
.split {
  --pad: 6px;
  --k: .7em;     /* where the colour changes, measured from the top of the first line */
  font: 300 clamp(40px, 8.8vw, 124px)/1 var(--display);
  letter-spacing: -.05em;
}
:lang(ar) .split { font-size: clamp(32px, 6.6vw, 100px); line-height: 1.45; --k: 1em; }
.split-down { background: linear-gradient(to bottom, var(--night) 0 calc(var(--pad) + var(--k)), var(--paper) calc(var(--pad) + var(--k)) 100%); }
.split-up { background: linear-gradient(to bottom, var(--paper) 0 calc(var(--pad) + var(--k)), var(--night) calc(var(--pad) + var(--k)) 100%); }
.split-in { position: relative; padding-block: var(--pad) clamp(10px, 2vw, 26px); }
.split-l { display: block; }
.split-a { clip-path: inset(0 0 calc(100% - var(--k)) 0); }
.split-b { position: absolute; inset: 0; padding-block: var(--pad) clamp(10px, 2vw, 26px); clip-path: inset(calc(var(--pad) + var(--k)) 0 0 0); }
.split-down .split-a { color: var(--text-d); }
.split-down .split-b { color: var(--ink); }
.split-up .split-a { color: var(--ink); }
.split-up .split-b { color: var(--text-d); }
.split + .section { padding-top: clamp(40px, 6vw, 80px); }

/* ---------- Experience ---------- */
.exp-grid { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.exp-side { position: sticky; top: 112px; display: grid; gap: 18px; justify-items: start; }
.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; inset-block: 12px 40px; inset-inline-start: 7px; width: 2px;
  background: linear-gradient(to bottom, #7c3aed, #0891b2 45%, rgba(22, 18, 58, .12));
}
.tl-item { position: relative; padding-inline-start: 46px; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid #7c3aed; }
.tl-item.is-current::before { background: linear-gradient(135deg, #6d28d9, #0891b2); border-color: transparent; box-shadow: 0 0 0 6px rgba(124, 58, 237, .16); }
.tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tl-date { font: 500 14px var(--mono); color: var(--muted-l); font-variant-numeric: tabular-nums; }
:lang(ar) .tl-date { font-family: var(--body); }
.tag { font-size: 12.5px; font-weight: 600; color: #fff; background: var(--violet); border-radius: 999px; padding: 2px 10px; }
.tl-role { margin-top: 6px; font: 400 clamp(23px, 2.4vw, 31px)/1.15 var(--display); letter-spacing: -.025em; }
:lang(ar) .tl-role { line-height: 1.45; }
.tl-org { margin-top: 2px; color: var(--muted-l); }
.tl-points { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 9px; max-width: 70ch; }
.tl-points li { position: relative; padding-inline-start: 20px; font-size: 16px; line-height: 1.62; }
.tl-points li::before { content: ""; position: absolute; inset-inline-start: 1px; top: .66em; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #0891b2); }
:lang(ar) .tl-points li { line-height: 1.9; }
:lang(ar) .tl-points li::before { top: .8em; }
@media (max-width: 900px) {
  .exp-grid { grid-template-columns: 1fr; }
  .exp-side { position: static; }
}

/* ---------- Skills ---------- */
.skills { padding-top: 0; }
.skill-sheet { border-top: 1px solid var(--line-l); }
.skill-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr); gap: 12px 32px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line-l); }
.skill-name { display: flex; align-items: center; gap: 14px; font: 400 20px/1.3 var(--display); letter-spacing: -.015em; }
.skill-ic { width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: #fff; color: var(--violet-2); box-shadow: inset 0 0 0 1px var(--line-l); }
.skill-items { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-items li { background: #fff; border: 1px solid var(--line-l); border-radius: 999px; padding: 6px 13px; font-size: 14.5px; line-height: 1.35; }
@media (max-width: 760px) { .skill-row { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.proj { min-width: 0; border-radius: var(--r-l); padding: clamp(22px, 2.8vw, 36px); background: var(--night-2); border: 1px solid var(--line-d); }
.proj-web3 {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 52px); align-items: center;
  background: radial-gradient(120% 140% at 100% 0%, rgba(124, 58, 237, .3), transparent 55%), var(--night-2);
}
.proj-systems { grid-column: 1 / -1; }
.proj-hacks { grid-column: span 6; display: flex; flex-direction: column; gap: 0; background: var(--paper); color: var(--ink); border-color: transparent; }
.proj-sites { grid-column: span 6; }
.proj .h3 { display: flex; align-items: center; gap: 14px; }
.proj-ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: rgba(167, 139, 250, .15); color: var(--lilac); }
.proj-hacks .proj-ic { background: rgba(124, 58, 237, .12); color: var(--violet-2); }
.proj-text { margin-top: 14px; color: var(--muted-d); max-width: 62ch; }
.proj-hacks .proj-text { color: var(--muted-l); }
.series { list-style: none; padding: 0; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.series li { display: inline-flex; align-items: center; gap: 8px; padding-block: 5px; padding-inline: 6px 13px; border: 1px solid var(--line-d2); border-radius: 999px; font-size: 14px; }
.series-n { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding-inline: 6px; border-radius: 999px; background: rgba(167, 139, 250, .2); color: #ddd2ff; font: 600 11.5px var(--mono); }
.proj-stats { display: flex; flex-wrap: wrap; gap: 18px 36px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-d); }
.proj-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; min-width: 0; }
.proj-stats dd { font: 300 clamp(26px, 2.6vw, 36px)/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.proj-stats dt { font-size: 13.5px; color: var(--muted-d); }
.proj-stats-3 { border-color: var(--line-l); }
.proj-hacks .proj-stats dt { color: var(--muted-l); }
.proj-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.proj-hacks .proj-links { clear: both; gap: 10px 28px; }
.proj-hacks .proj-links .card-link { margin-top: 0; }
.term { border-radius: 18px; overflow: hidden; background: #0b0920; border: 1px solid var(--line-d2); box-shadow: 0 30px 70px -36px rgba(0, 0, 0, .8); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #15123a; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3566; }
.term-bar span { margin-left: 10px; font: 12.5px var(--mono); color: #8e88bd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-body { margin: 0; padding: 18px 20px 22px; font: 13.5px/1.8 var(--mono); color: #d8d4f5; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }
.term-body .tp { color: #b49bff; }
.term-body .tm { color: #8e88bd; }
.term-body .tk { color: #5fe3a1; }
.term-caret { display: inline-block; width: 8px; height: 1.05em; vertical-align: -3px; background: #d8d4f5; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.proj-head { max-width: 72ch; }
.sys-cards { list-style: none; padding: 0; margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sys-card { display: grid; align-content: start; gap: 8px; padding: 14px 14px 20px; border-radius: 20px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .025); }
.sys-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 4px 0; font: 400 22px/1.2 var(--display); }
.sys-name span { font: 500 13.5px var(--body); color: var(--muted-d); }
.sys-card p { margin-inline: 4px; color: var(--muted-d); font-size: 15px; }
.sys-card .sys-langs { font: 500 12.5px var(--mono); color: var(--lilac); }
[dir="rtl"] .sys-card .sys-langs { text-align: right; }
.proj-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-d); }
.proj-foot .card-link { margin-top: 0; }
.proj-note { display: flex; align-items: flex-start; gap: 10px; color: var(--muted-d); font-size: 14.5px; max-width: 72ch; }
.proj-note .ic { color: var(--ok); margin-top: 3px; }
.proj-hacks .chips { margin-top: 22px; }
.proj-hacks .card-link { margin-top: 26px; }
.chips-cause li { background: #fff; }

/* abstract app pictures */
.ui { height: 150px; overflow: hidden; display: grid; align-content: start; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #0c0a24; border: 1px solid var(--line-d); }
.ui-top { display: flex; gap: 5px; margin-bottom: 2px; }
.ui-top i { width: 7px; height: 7px; border-radius: 50%; background: #2f2a5a; }
.ui-row { display: flex; align-items: center; gap: 8px; }
.ui-pill { width: 26px; height: 9px; border-radius: 99px; flex: none; }
.ui-ok { background: var(--ok); }
.ui-warn { background: var(--warn); }
.ui-down { background: var(--down); }
.ui-line { height: 8px; border-radius: 99px; background: rgba(196, 181, 253, .22); }
.ui-w46 { width: 46%; } .ui-w58 { width: 58%; } .ui-w60 { width: 60%; } .ui-w64 { width: 64%; } .ui-w72 { width: 72%; } .ui-w80 { width: 80%; }
.ui-step { position: relative; display: flex; align-items: center; gap: 10px; padding-block: 3px; }
.ui-node { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid #a78bfa; background: #0c0a24; }
.ui-done .ui-node { background: #a78bfa; }
.ui-now .ui-node { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 195, 230, .2); }
.ui-wait .ui-node { border-color: #3a3566; }
.ui-step:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 6px; top: 19px; width: 2px; height: 14px; background: #3a3566; }
.ui-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-col { display: grid; align-content: start; gap: 6px; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.ui-head { height: 7px; width: 60%; border-radius: 99px; background: rgba(196, 181, 253, .35); }
.ui-card { height: 18px; border-radius: 6px; background: rgba(196, 181, 253, .14); }
.ui-hot { background: linear-gradient(90deg, rgba(124, 58, 237, .65), rgba(34, 195, 230, .5)); }

.site-list { list-style: none; padding: 0; margin-top: 20px; }
.site-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 14px; align-items: start; padding-block: 15px; border-top: 1px solid var(--line-d); }
.site-list a { display: inline-flex; align-items: center; gap: 6px; font: 500 16px var(--mono); text-decoration: none; }
.site-list a:hover { color: var(--lilac); }
.site-list a .ic { width: 15px; height: 15px; }
.site-list p { margin-top: 3px; color: var(--muted-d); font-size: 14.5px; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: #4b4675; margin-top: 7px; }
[data-state="ok"] > .st-dot, [data-state="ok"] .st-site .st-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .16); }
[data-state="warn"] > .st-dot, [data-state="warn"] .st-site .st-dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(251, 191, 36, .16); }
[data-state="down"] > .st-dot, [data-state="down"] .st-site .st-dot { background: var(--down); box-shadow: 0 0 0 4px rgba(251, 113, 133, .16); }

/* ---------- 3D pictures ---------- */
[dir="rtl"] .card .num { text-align: right; }
.card > :not(.card-art) { position: relative; z-index: 1; }
.card-art { position: absolute; z-index: 0; height: auto; pointer-events: none; user-select: none; filter: drop-shadow(0 16px 22px rgba(10, 6, 40, .26)); }
.card-store .card-art { top: 16px; inset-inline-end: 16px; width: clamp(108px, 30%, 172px); }
.card-research .card-art { top: 14px; inset-inline-end: 10px; width: clamp(100px, 40%, 150px); }
.card-portal .card-art { bottom: 12px; inset-inline-end: 8px; width: clamp(130px, 50%, 200px); }

.proj-visual { position: relative; display: grid; min-width: 0; }
.proj-art { position: relative; z-index: 0; display: block; width: min(100%, 560px); height: auto; margin: -10px auto -44px; filter: drop-shadow(0 26px 38px rgba(5, 3, 25, .5)); pointer-events: none; }
.proj-visual .term { position: relative; z-index: 1; }
.proj-systems, .proj-sites { display: flow-root; }
.proj-hacks { display: flow-root; }
.proj-art-float { float: inline-end; width: clamp(130px, 30%, 250px); height: auto; margin-block: -12px 8px; margin-inline: 16px -10px; filter: drop-shadow(0 22px 30px rgba(10, 6, 40, .35)); pointer-events: none; }
.proj-systems .proj-art-float { width: clamp(130px, 17%, 196px); margin-block: -18px -36px; }
.proj-systems .sys-cards, .proj-systems .proj-foot, .proj-hacks .proj-stats, .proj-sites .site-list { clear: both; }
.proj-hacks .card-link { margin-top: 26px; }

.skill-art { flex: none; width: 58px; height: 58px; margin-block: -8px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(22, 18, 58, .12)); }

.proj-more { grid-column: span 6; display: flex; flex-direction: column; }
.more-pic { display: grid; place-items: center; height: clamp(170px, 18vw, 230px); margin-bottom: 20px; overflow: hidden; border-radius: 20px; background: radial-gradient(70% 90% at 50% 40%, rgba(124, 58, 237, .3), transparent 72%), #110e30; border: 1px solid var(--line-d); }
.more-art { max-width: 76%; max-height: 86%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 20px 26px rgba(5, 3, 25, .45)); }
.more-art.is-photo { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; filter: none; }
.proj-more .chips { margin-top: 18px; }
.proj-more .chips li { border-color: var(--line-d2); color: var(--text-d); }
.proj-more .card-link { margin-top: auto; }
.proj-more > :nth-last-child(2) { margin-bottom: 22px; }

@media (max-width: 680px) {
  .card-portal .card-art { top: 14px; bottom: auto; width: clamp(96px, 30%, 140px); }
  .proj-art-float, .proj-systems .proj-art-float { float: none; display: block; width: min(58%, 230px); margin: -10px auto 4px; }
}

@media (max-width: 980px) {
  .proj-web3 { grid-template-columns: 1fr; }
  .proj-hacks, .proj-sites, .proj-more { grid-column: 1 / -1; }
  .proj-art { width: min(86%, 460px); }
  .sys-cards { grid-template-columns: 1fr; }
  .ui { height: 128px; }
}


/* ---------- Live status ---------- */
.status { padding-top: 0; }
.st-board { border-radius: var(--r-l); overflow: hidden; background: var(--night-2); border: 1px solid var(--line-d); }
.st-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 18px 24px; border-bottom: 1px solid var(--line-d); background: rgba(255, 255, 255, .03); color: #8e88bd; }
.st-banner[data-state="ok"] { background: linear-gradient(90deg, rgba(52, 211, 153, .2), rgba(52, 211, 153, .04)); color: var(--ok); }
.st-banner[data-state="warn"] { background: linear-gradient(90deg, rgba(251, 191, 36, .2), rgba(251, 191, 36, .04)); color: var(--warn); }
.st-banner[data-state="down"] { background: linear-gradient(90deg, rgba(251, 113, 133, .2), rgba(251, 113, 133, .04)); color: var(--down); }
[dir="rtl"] .st-banner[data-state] { background-image: none; }
.st-pulse { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.st-banner[data-state="ok"] .st-pulse, .st-banner[data-state="wait"] .st-pulse { animation: glow 2s ease-out infinite; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.st-title { font: 500 18px var(--display); color: var(--text-d); }
.st-time { margin-inline-start: auto; font-size: 14px; color: var(--muted-d); }
.st-list { list-style: none; padding: 0; }
.st-row { display: grid; grid-template-columns: minmax(0, 1.25fr) 104px minmax(0, 1.7fr) minmax(0, 1.15fr); gap: 14px 24px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line-d); }
.st-site { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.st-name { font: 500 15.5px var(--mono); text-decoration: none; }
.st-name:hover { color: var(--lilac); }
.st-site small { display: block; color: var(--muted-d); font-size: 13.5px; }
.st-state { font-weight: 600; font-size: 14px; color: #8e88bd; }
[data-state="ok"] > .st-state { color: var(--ok); }
[data-state="warn"] > .st-state { color: var(--warn); }
[data-state="down"] > .st-state { color: var(--down); }
.st-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-metrics dt { font-size: 12.5px; color: var(--muted-d); }
.st-metrics dd { font: 500 14.5px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
:lang(ar) .st-metrics dd { font-family: var(--body); }
.st-hist { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; height: 30px; direction: ltr; }
.st-hist i { border-radius: 2px; background: #2c2758; }
.st-hist i[data-s="ok"] { background: var(--ok); }
.st-hist i[data-s="warn"] { background: var(--warn); }
.st-hist i[data-s="down"] { background: var(--down); }
.st-note { padding: 14px 24px; font-size: 13.5px; color: var(--muted-d); }
@media (max-width: 980px) {
  .st-row { grid-template-columns: minmax(0, 1fr) auto; }
  .st-metrics, .st-hist { grid-column: 1 / -1; }
}

/* ---------- Certificates ---------- */
.certs-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cert-list { list-style: none; padding: 0; margin-top: 30px; border-top: 1px solid var(--line-l); }
.cert { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line-l); }
.cert-ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff; color: var(--violet-2); box-shadow: inset 0 0 0 1px var(--line-l); }
.cert-name { font: 400 18px/1.3 var(--display); letter-spacing: -.01em; }
.cert-org { color: var(--muted-l); font-size: 14.5px; }
.cert-date { font: 500 13.5px var(--mono); color: var(--muted-l); white-space: nowrap; }
:lang(ar) .cert-date { font-family: var(--body); }
.certs-side { display: grid; gap: 16px; padding-top: 6px; }
.side-block { background: #fff; border: 1px solid var(--line-l); border-radius: 20px; padding: 22px; }
.side-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 400 20px/1.3 var(--display); }
.side-title .ic { width: 22px; height: 22px; color: var(--violet-2); }
.lang-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line-l); }
.lang-row dt { font-weight: 600; }
.lang-row dd { color: var(--muted-l); text-align: end; }
.lang-2 dd { color: var(--violet-2); }
@media (max-width: 900px) { .certs-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .cert { grid-template-columns: 40px minmax(0, 1fr); }
  .cert-date { grid-column: 2; }
}

/* ---------- Services: work with me ---------- */
.services {
  padding-bottom: clamp(40px, 5vw, 72px);
  background: radial-gradient(70% 55% at 100% 0%, rgba(124, 58, 237, .18), transparent 62%), var(--night);
}
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-l);
  background: var(--night-2); border: 1px solid var(--line-d);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.svc:hover { transform: translateY(-3px); border-color: var(--line-d2); box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .7); }
.svc:first-child { background: linear-gradient(160deg, #2a1d6e 0%, var(--night-2) 62%); border-color: rgba(167, 139, 250, .34); }
.svc-ic { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: rgba(167, 139, 250, .15); color: var(--lilac); }
.svc-title { font: 400 clamp(22px, 2vw, 27px)/1.2 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.svc-text { color: var(--muted-d); font-size: 15.5px; }
.svc-points { list-style: none; padding: 0; display: grid; gap: 8px; margin-bottom: 8px; }
.svc-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.svc-points .ic { width: 16px; height: 16px; margin-top: 4px; color: var(--ok); }
:lang(ar) .svc-points li { line-height: 1.8; }
:lang(ar) .svc-title { line-height: 1.45; letter-spacing: 0; }
.svc .btn { margin-top: auto; align-self: flex-start; }
.svc-note { margin-top: 22px; font-size: 14.5px; color: var(--muted-d); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(124, 58, 237, .22), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(8, 145, 178, .2), transparent 60%),
    var(--night);
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact .lead { margin-top: 16px; max-width: 50ch; }
.ways { list-style: none; padding: 0; margin-top: 34px; display: grid; gap: 10px; }
.way { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .03); }
.way-ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(167, 139, 250, .15); color: var(--lilac); }
.way-text { min-width: 0; }
.way-label { display: block; font-size: 13px; color: var(--muted-d); }
.way-value { display: block; font: 500 15.5px var(--mono); overflow-wrap: anywhere; }
[dir="rtl"] .way-value { text-align: right; }
.way-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-d2); background: transparent; color: var(--text-d); font: 500 13.5px/1.2 var(--body); text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.chip-btn:hover { border-color: var(--lilac); background: rgba(196, 181, 253, .08); }
.chip-btn .ic { width: 15px; height: 15px; }
.chip-btn.is-done { border-color: var(--ok); color: #a7f3d0; }
@media (max-width: 560px) {
  .way { grid-template-columns: 40px minmax(0, 1fr); }
  .way-ic { width: 40px; height: 40px; padding: 10px; }
  .way-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

.form-card { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-l); background: var(--night-2); border: 1px solid var(--line-d); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.form-title { font: 400 24px/1.25 var(--display); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 14px; color: var(--muted-d); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-d2);
  background: #0d0a26; color: var(--text-d); font: 400 16px/1.4 var(--body);
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23aea8d8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
[dir="rtl"] .field select { background-position: left 15px center; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 4px rgba(167, 139, 250, .2); }
.field [aria-invalid="true"] { border-color: var(--down); }
.hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-privacy { font-size: 13.5px; color: var(--muted-d); flex: 1 1 200px; }
.form-privacy a { color: var(--text-d); }
.btn-send[disabled] { opacity: .7; cursor: progress; transform: none; }
/* extra fields for an audit or a project: hidden for the other topics */
.req-extra { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 14px 16px 16px; border: 1px dashed var(--line-d2); border-radius: 18px; }
.req-extra legend { padding-inline: 8px; font-size: 13.5px; font-weight: 600; color: var(--lilac); }
.form-card:has([data-topic-select] :is(option[value="job"], option[value="other"]):checked) .req-extra { display: none; }
.form-result { padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.form-result[data-kind="ok"] { background: rgba(52, 211, 153, .12); color: #b5f5da; border: 1px solid rgba(52, 211, 153, .35); }
.form-result[data-kind="error"] { background: rgba(251, 113, 133, .1); color: #ffd1d9; border: 1px solid rgba(251, 113, 133, .35); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); border-top: 1px solid var(--line-d); padding-block: 44px calc(30px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; }
.footer-note { margin-top: 10px; font-size: 14px; color: var(--muted-d); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; }
.footer-links a { color: var(--muted-d); text-decoration: none; }
.footer-links a:hover { color: var(--text-d); }
.footer-copy { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line-d); font-size: 13.5px; color: var(--muted-d); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Privacy and 404 ---------- */
.privacy { padding-top: clamp(130px, 14vw, 170px); }
.pv-in { max-width: 780px; }
.pv-updated { margin-top: 12px; color: var(--muted-l); font-size: 14.5px; }
.pv-block { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-l); }
.pv-h { font: 400 22px/1.3 var(--display); letter-spacing: -.015em; margin-bottom: 8px; }
.pv-block p { color: #3d3768; }
.privacy .btn { margin-top: 40px; }
.notfound { min-height: 78vh; display: grid; align-items: center; padding-top: 140px; }
.nf-in { display: grid; gap: 18px; justify-items: start; }
.nf-code {
  font: 200 clamp(110px, 20vw, 240px)/.86 "Sora", sans-serif; letter-spacing: -.06em;
  background: linear-gradient(120deg, #a78bfa, #22c3e6); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .nm-packets { display: none; }
}
