:root {
  --bg: #F7F3EC;
  --sand: #EAE1D4;
  --sand-soft: #F0E9DE;
  --line: #DCD0BE;
  --navy: #1B2A41;
  --navy-2: #24364F;
  --ink: #1B2A41;
  --muted: #4A5A70;
  --accent: #8B5E3C;
  --accent-ink: #74492B;
  --accent-hover: #74492B;
  --on-navy: #F7F3EC;
  --on-navy-muted: #B9C3D1;
  --white: #FFFDF9;

  --font-head: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27, 42, 65, .05), 0 8px 24px rgba(27, 42, 65, .06);
  --shadow-hover: 0 2px 4px rgba(27, 42, 65, .06), 0 14px 32px rgba(27, 42, 65, .10);
  --gutter: 20px;
  --max: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

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

.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.icon { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: var(--on-navy);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-navy); font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.brand:hover { color: var(--on-navy); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: .82rem; letter-spacing: .5px; font-family: var(--font-head);
}
.nav__links { display: none; gap: 4px; list-style: none; }
.nav__links a {
  color: var(--on-navy-muted); padding: 8px 14px; border-radius: 8px; font-size: .95rem;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--on-navy); background: rgba(247, 243, 236, .08); }
.nav__toggle {
  background: transparent; border: 1px solid rgba(247, 243, 236, .2); color: var(--on-navy);
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
}
.nav__menu {
  display: none; background: var(--navy); border-top: 1px solid rgba(247, 243, 236, .1);
  padding: 8px var(--gutter) 16px;
}
.nav__menu.is-open { display: block; }
.nav__menu a { display: block; color: var(--on-navy); padding: 12px 4px; border-bottom: 1px solid rgba(247, 243, 236, .08); }
.nav__menu a:last-child { border-bottom: 0; }
@media (min-width: 760px) {
  .nav__links { display: flex; }
  .nav__toggle, .nav__menu, .nav__menu.is-open { display: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--on-navy); }
.btn--soft { background: var(--sand); color: var(--navy); }
.btn--soft:hover { background: var(--line); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding-block: 72px; scroll-margin-top: 64px; }
.section--sand { background: var(--sand-soft); border-block: 1px solid var(--sand); }
.section__head { margin-bottom: 36px; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-ink); font-family: var(--font-head); font-size: .88rem; font-weight: 500; margin-bottom: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.section__title { font-size: clamp(1.55rem, 4.5vw, 2.1rem); }
.section__lead { color: var(--muted); margin-top: 10px; }

.hero { padding-block: 56px 64px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__hello { color: var(--accent-ink); font-family: var(--font-head); font-weight: 500; margin-bottom: 6px; }
.hero__name { font-size: clamp(2.3rem, 9vw, 3.6rem); font-weight: 700; letter-spacing: -.5px; }
.hero__role { font-size: clamp(1.15rem, 4vw, 1.45rem); color: var(--navy-2); font-weight: 500; margin-top: 4px; }
.hero__bio { color: var(--muted); font-size: 1.06rem; margin-block: 18px 28px; max-width: 34em; }
.hero__actions .btn { flex: 1 1 auto; }
.hero__cv { margin-top: 14px; }
.hero__cv[hidden] { display: none; }
@media (min-width: 900px) {
  .hero { padding-block: 96px 104px; }
  .hero__grid { grid-template-columns: 1.4fr 1fr; gap: 64px; }
  .hero__actions .btn { flex: 0 0 auto; }
}

.skills { display: grid; gap: 16px; }
@media (min-width: 640px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .skills { grid-template-columns: repeat(4, 1fr); } }
.skill {
  background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 22px;
}
.skill__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.skill__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--sand); color: var(--accent-ink); display: grid; place-items: center; }
.skill h3 { font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip {
  font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: var(--sand-soft);
  color: var(--navy); border: 1px solid var(--sand); direction: ltr; unicode-bidi: isolate; line-height: 1.7;
}

.timeline { list-style: none; position: relative; display: grid; gap: 20px; padding-inline-start: 28px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__item { position: relative; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 22px; }
.timeline__item::before {
  content: ""; position: absolute; inset-inline-start: -28px; top: 28px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.timeline__item h3 { font-size: 1.15rem; }
.timeline__org { color: var(--muted); font-size: .95rem; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-family: var(--font-head);
  padding: 3px 12px; border-radius: 999px; background: var(--sand); color: var(--navy); font-weight: 500;
}
.timeline__points { margin-top: 12px; padding-inline-start: 18px; color: var(--ink); display: grid; gap: 6px; }
.timeline__points li::marker { color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon--dir { transform: translateX(-3px); }
[dir="ltr"] .icon--dir { transform: scaleX(-1); }
[dir="ltr"] .text-link:hover .icon--dir { transform: scaleX(-1) translateX(-3px); }
[dir="ltr"] .cs-hero__en { text-align: left; }

.cards { display: grid; gap: 20px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--sand);
  border-radius: var(--radius); overflow: hidden; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--line); color: var(--ink); }
.card__media { aspect-ratio: 16 / 10; background: var(--sand); position: relative; overflow: hidden; }
.card__diagram { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px 18px; background: linear-gradient(135deg, var(--sand) 0%, var(--sand-soft) 100%); }
.card__diagram svg { width: 100%; height: 100%; }
.card__media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__tag { color: var(--accent-ink); font-size: .85rem; font-family: var(--font-head); font-weight: 500; }
.card__title { font-size: 1.15rem; }
.card__text { color: var(--muted); font-size: .95rem; }
.card__chips { margin-top: auto; padding-top: 10px; }
.card__chips .chip { font-size: .78rem; padding: 2px 10px; }
.card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-family: var(--font-head); font-weight: 500; font-size: .92rem; margin-top: 6px; }
.center-row { display: flex; justify-content: center; margin-top: 32px; }

.empty {
  text-align: center; background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 44px 24px; color: var(--muted);
}
.empty__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--sand); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h3 { font-size: 1.15rem; margin-bottom: 6px; }

.cert__img { aspect-ratio: 4 / 3; background: var(--sand); cursor: zoom-in; border: 0; padding: 0; width: 100%; display: block; }
.cert__img img { width: 100%; height: 100%; object-fit: cover; }
.cert__meta { color: var(--muted); font-size: .9rem; }

.contact { display: grid; gap: 14px; }
@media (min-width: 760px) { .contact { grid-template-columns: repeat(3, 1fr); } }
.contact__item {
  display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--sand);
  border-radius: var(--radius); padding: 18px; color: var(--ink); min-width: 0;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.contact__item:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.contact__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; flex-shrink: 0; }
.contact__label { font-family: var(--font-head); font-weight: 500; color: var(--navy); }
.contact__value { color: var(--muted); font-size: .88rem; direction: ltr; text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.contact__text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.contact__text .contact__value { text-align: start; unicode-bidi: plaintext; max-width: 100%; }

.footer { background: var(--navy); color: var(--on-navy-muted); padding-block: 36px; font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer__name { color: var(--on-navy); font-family: var(--font-head); font-weight: 500; }
.footer__links { display: flex; gap: 8px; }
.footer__links a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  color: var(--on-navy); border: 1px solid rgba(247, 243, 236, .16); transition: background-color .2s var(--ease);
}
.footer__links a:hover { background: rgba(247, 243, 236, .1); color: var(--on-navy); }

.page-head { padding-block: 48px 8px; }
.page-head h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 40em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.crumbs a { color: var(--accent-ink); }

.cs-hero { padding-block: 40px 32px; }
.cs-hero__tag { margin-bottom: 10px; }
.cs-hero h1 { font-size: clamp(1.8rem, 6.5vw, 2.7rem); }
.cs-hero__en { color: var(--muted); font-family: var(--font-head); direction: ltr; unicode-bidi: isolate; display: block; text-align: right; font-size: 1rem; margin-top: 4px; }
.cs-hero__lead { color: var(--muted); font-size: 1.06rem; margin-block: 14px 24px; max-width: 40em; }

.cs-steps { display: flex; flex-wrap: wrap; gap: 6px 4px; list-style: none; margin-bottom: 8px; font-size: .85rem; color: var(--muted); }
.cs-steps li { display: inline-flex; align-items: center; gap: 4px; }
.cs-steps a { color: var(--muted); padding: 2px 8px; border-radius: 6px; background: var(--sand-soft); border: 1px solid var(--sand); }
.cs-steps a:hover { color: var(--navy); border-color: var(--line); }

.cs-block { padding-block: 40px; border-top: 1px solid var(--sand); scroll-margin-top: 80px; }
.cs-block__grid { display: grid; gap: 14px 48px; align-items: start; }
@media (min-width: 900px) { .cs-block__grid { grid-template-columns: 220px 1fr; } }
.cs-block__label { display: flex; align-items: center; gap: 10px; }
.cs-block__num { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; font-family: var(--font-head); font-size: .85rem; flex-shrink: 0; }
.cs-block__label h2 { font-size: 1.3rem; }
.cs-text { font-size: 1.05rem; max-width: 42em; }
.cs-list { list-style: none; display: grid; gap: 10px; max-width: 46em; }
.cs-list li { display: flex; gap: 10px; align-items: flex-start; }
.cs-list .icon { color: var(--accent); margin-top: 5px; }

.role-box {
  background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 24px;
  border-inline-start: 5px solid var(--accent); max-width: 46em;
}
.role-box p { font-size: 1.05rem; }
.role-box__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); color: #E2C3A3; font-size: .9rem; margin-bottom: 8px; }
.role-box .chip { background: rgba(247, 243, 236, .08); color: var(--on-navy); border-color: rgba(247, 243, 236, .18); }

.challenge { display: grid; gap: 12px; margin-top: 18px; max-width: 46em; }
@media (min-width: 680px) { .challenge { grid-template-columns: 1fr 1fr; } }
.challenge > div { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 18px; }
.challenge h3 { font-size: .98rem; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.challenge .icon { color: var(--accent); }

.metrics { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.metric { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 22px 20px; }
.metric__value { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 7vw, 2.6rem); color: var(--accent-ink); line-height: 1.1; direction: ltr; unicode-bidi: isolate; display: block; text-align: start; }
.metric__label { color: var(--muted); margin-top: 8px; font-size: .95rem; }

.showcase { padding-block: 48px 64px; border-top: 1px solid var(--sand); }
.showcase__title { font-size: 1.4rem; margin-bottom: 6px; }
.showcase__lead { color: var(--muted); margin-bottom: 28px; }
.sub-title { font-size: 1.1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }

.demo { display: grid; gap: 32px; align-items: center; justify-items: center; }
@media (min-width: 900px) { .demo { grid-template-columns: auto 1fr; justify-items: start; gap: 64px; } }
.phone {
  width: min(310px, 78vw); aspect-ratio: 9 / 19; background: #10192A; border-radius: 46px; padding: 30px 10px 22px;
  box-shadow: 0 30px 60px -20px rgba(27, 42, 65, .45), inset 0 0 0 2px #2C3B54; position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 7px; background: #2C3B54; border-radius: 6px;
}
.phone__screen { width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: var(--bg); position: relative; }
.phone__screen iframe { width: 100%; height: 100%; border: 0; display: block; padding-top: 0; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__hint { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }

.qr-card { display: flex; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 18px; max-width: 460px; margin-block: 22px; }
.qr-card img { width: 128px; height: 128px; border-radius: 10px; flex-shrink: 0; }
.qr-card strong { font-family: var(--font-head); font-weight: 600; color: var(--navy); display: block; font-size: 1.05rem; margin-bottom: 4px; }
.qr-card p { color: var(--muted); font-size: .92rem; }

.ba { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; max-width: 720px; }
.ba figure { margin: 0; }
.ba__label { display: inline-flex; font-family: var(--font-head); font-size: .85rem; font-weight: 500; padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; }
.ba__label--before { background: var(--sand); color: var(--navy); }
.ba__label--after { background: var(--accent); color: #fff; }
.ba figcaption { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.ba .media { aspect-ratio: 4 / 5; }

.media { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); }

.media img, .media video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery__item { border: 0; padding: 0; background: none; cursor: zoom-in; text-align: start; font: inherit; color: inherit; }
.gallery__item .media { aspect-ratio: 16 / 10; border: 1px solid var(--sand); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.gallery__item:hover .media { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.gallery__item span { display: block; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.gallery__item:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .gallery__item:first-child { grid-column: span 2; grid-row: span 2; } .gallery__item:first-child .media { aspect-ratio: auto; height: calc(100% - 30px); } }


.diagram { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 18px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; height: auto; min-width: 300px; }
.diagram--wide svg { min-width: 540px; }
.diagram--erd svg { min-width: 640px; }
.diagram-hint { display: none; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; margin-top: 8px; }
@media (max-width: 640px) { .diagram-hint { display: flex; } }
.diagram-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .85rem; color: var(--muted); }
.diagram-legend span { display: inline-flex; align-items: center; gap: 6px; }
.diagram-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.two-col { display: grid; gap: 36px; }
.two-col .diagram { max-width: 760px; }
.stack { display: grid; gap: 36px; }
.stack > *, .two-col > *, .cs-block__grid > *, .demo > * { min-width: 0; }

.code {
  background: var(--navy); color: #DDE3EC; border-radius: var(--radius); overflow: hidden; direction: ltr;
}
.code__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: #15223A; font-size: .8rem; color: var(--on-navy-muted); font-family: var(--font-code); }
.code__dots { display: flex; gap: 6px; }
.code__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3A4B66; display: block; }
.code pre { margin: 0; padding: 18px 18px 20px; overflow-x: auto; font-family: var(--font-code); font-size: .82rem; line-height: 1.75; tab-size: 4; }
.tok-kw { color: #E6B98F; }
.tok-str { color: #A9D3A0; }
.tok-com { color: #8090A8; font-style: italic; }
.tok-fn { color: #8EC1F0; }
.tok-num { color: #F0B8A0; }
.tok-attr { color: #C6B4F0; }

.erd-note { color: var(--muted); font-size: .9rem; margin-top: 10px; }

.cs-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cs-nav { display: flex; justify-content: space-between; gap: 12px; padding-block: 32px 64px; border-top: 1px solid var(--sand); flex-wrap: wrap; }
.cs-nav a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--sand); border-radius: var(--radius); background: var(--white); min-width: 0; flex: 1 1 220px; color: var(--ink); transition: border-color .2s var(--ease); }
.cs-nav a:hover { border-color: var(--accent); color: var(--ink); }
.cs-nav small { color: var(--muted); }
.cs-nav strong { font-family: var(--font-head); font-weight: 500; color: var(--navy); }
.cs-nav a.next { text-align: end; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(16, 25, 42, .92);
  display: none; align-items: center; justify-content: center; padding: 56px 12px 64px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.lightbox__caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--on-navy); font-size: .92rem; padding-inline: 70px; }
.lightbox__btn {
  position: absolute; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(247, 243, 236, .2);
  background: rgba(27, 42, 65, .6); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.lightbox__btn:hover { background: var(--accent); }
.lightbox__close { top: 10px; inset-inline-end: 12px; }
.lightbox__prev { inset-inline-start: 12px; bottom: 10px; }
.lightbox__next { inset-inline-end: 12px; bottom: 10px; }
@media (min-width: 760px) {
  .lightbox { padding: 64px 80px; }
  .lightbox__prev, .lightbox__next { bottom: auto; top: 50%; transform: translateY(-50%); }
}

.loading { color: var(--muted); padding: 48px 0; text-align: center; }
.not-found { text-align: center; padding-block: 96px; }
.not-found h1 { font-size: 2rem; margin-bottom: 10px; }
.not-found p { color: var(--muted); margin-bottom: 24px; }

.lang-toggle {
  position: fixed; z-index: 60; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
  background: var(--navy); color: var(--on-navy); border: 1.5px solid rgba(247, 243, 236, .25);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; letter-spacing: .5px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(27, 42, 65, .25);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.lang-toggle:hover { background: var(--accent); transform: translateY(-2px); }

.hero__art { width: 100%; max-width: 400px; margin-inline: auto; }
.hero__art svg { width: 100%; height: auto; display: block; }
@media (min-width: 900px) { .hero__art { max-width: 520px; } }
