:root {
  --green-950: #071a11;
  --green-900: #0b2418;
  --green-800: #123521;
  --green-700: #1b4a2d;
  --green-600: #2a6a3c;
  --lime: #a9c94b;
  --gold: #c8a24c;
  --gold-soft: #e3cc8f;
  --cream: #f8f4ea;
  --cream-2: #f1ead9;
  --ink: #18261d;
  --muted: #5d6b61;
  --line: rgba(24, 38, 29, 0.12);
  --radius: 18px;
  --shadow: 0 20px 50px -24px rgba(7, 26, 17, 0.45);
  --font-head: "Amiri", "Cormorant Garamond", serif;
  --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --header-h: 76px;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c8a24c' stroke-width='1'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z'/%3E%3Cpath d='M40 16l17 7 7 17-7 17-17 7-17-7-7-17 7-17z'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

html[lang="en"] {
  --font-head: "Cormorant Garamond", "Amiri", serif;
  --font-body: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html[lang="en"] body {
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.3;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--green-800);
}

h3 {
  font-size: 1.45rem;
  color: var(--green-800);
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -60px;
  background: var(--gold);
  color: var(--green-950);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font: 600 1rem var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--green-950);
  box-shadow: 0 10px 30px -12px rgba(200, 162, 76, 0.8);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-block {
  width: 100%;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s, box-shadow 0.35s;
}

.site-header.scrolled {
  background: rgba(7, 26, 17, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.6);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  font: 700 1.5rem/1 "Amiri", serif;
  padding-bottom: 4px;
}

.brand-text {
  font: 700 1.2rem var(--font-head);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: auto;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.main-nav .nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  margin-inline-start: 0.4rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font: 600 0.9rem "Inter", "IBM Plex Sans Arabic", sans-serif;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------- shared section styles ---------- */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
}

.tinted {
  background: var(--cream-2);
}

.dark {
  background: radial-gradient(ellipse at top, var(--green-800), var(--green-950) 70%);
  color: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.dark h2,
.dark h3 {
  color: #fff;
}

.pattern {
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 80px;
  opacity: 0.07;
  pointer-events: none;
}

.dark > .container {
  position: relative;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green-600);
  margin-bottom: 0.8rem;
}

html[lang="en"] .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.kicker.light {
  color: var(--gold-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head.center .kicker::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
}

.dark .lead {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-bg {
    animation: none !important;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--green-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 26, 17, 0.92) 0%, rgba(7, 26, 17, 0.55) 45%, rgba(7, 26, 17, 0.9) 100%),
    url("../img/hero.webp") center 70% / cover no-repeat;
  animation: slowzoom 24s ease-in-out infinite alternate;
}

@keyframes slowzoom {
  to {
    transform: scale(1.08);
  }
}

.hero .pattern {
  opacity: 0.06;
}

.hero-grid {
  position: relative;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-portrait {
  margin: 0;
  position: relative;
  animation: rise 1.2s 0.2s ease both;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(200, 162, 76, 0.45);
  border-radius: 260px 260px 24px 24px;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 3.7;
  object-fit: cover;
  object-position: 45% center;
  border-radius: 240px 240px 18px 18px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

.eyebrow {
  color: var(--gold-soft);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  animation: rise 1.2s 0.15s ease both;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  margin-bottom: 0.4em;
  animation: rise 1.2s 0.25s ease both;
}

.hero-lead {
  max-width: 680px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  animation: rise 1.2s 0.35s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
  animation: rise 1.2s 0.45s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  inset-inline: 0;
  margin-inline: auto;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrolldot 1.8s infinite;
}

@keyframes scrolldot {
  to {
    transform: translateY(14px);
    opacity: 0;
  }
}

/* ---------- stats ---------- */
.stats {
  background: var(--green-900);
  color: #fff;
  border-top: 1px solid rgba(200, 162, 76, 0.25);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.stat {
  padding: 2.2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat + .stat {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
}

.stat strong {
  font: 700 2.3rem/1.2 "Cormorant Garamond", var(--font-head);
  color: var(--gold-soft);
}

.stat > span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- about ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-media {
  position: relative;
  margin: 0;
}

.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  width: 100%;
}

.about-media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

[dir="rtl"] .about-media::before {
  inset: 22px 22px -22px -22px;
}

.badge-founded {
  position: absolute;
  bottom: -26px;
  inset-inline-end: -10px;
  background: var(--green-900);
  color: #fff;
  border-radius: 16px;
  padding: 1rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column-reverse;
}

.badge-founded strong {
  font: 700 2rem/1 "Cormorant Garamond", serif;
  color: var(--gold-soft);
}

.badge-founded span {
  font-size: 0.85rem;
  opacity: 0.8;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.facts li {
  background: var(--cream);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
}

.facts span {
  font-size: 0.82rem;
  color: var(--muted);
}

.facts strong {
  color: var(--green-800);
  font-weight: 600;
}

/* ---------- message ---------- */
.message-inner {
  max-width: 860px;
  text-align: center;
}

.message-inner .kicker::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.message blockquote {
  margin: 1rem 0 0;
  position: relative;
  font-size: 1.1rem;
  line-height: 2;
}

html[lang="en"] .message blockquote {
  line-height: 1.8;
}

.message blockquote::before {
  content: "”";
  display: block;
  font: 7rem/0.6 "Amiri", serif;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 0.4rem;
}

html[lang="en"] .message blockquote::before {
  content: "“";
}

.message-lead {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  color: #fff;
  line-height: 1.8;
}

.signature {
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(200, 162, 76, 0.3);
  width: min(320px, 100%);
}

.signature strong {
  font: 700 1.3rem var(--font-head);
  color: var(--gold-soft);
}

/* ---------- approach ---------- */
.approach {
  align-items: start;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.steps li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font: 700 1.8rem/1 "Cormorant Garamond", serif;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.steps strong {
  font: 700 1.2rem var(--font-head);
  color: var(--green-800);
}

.steps span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- journey ---------- */
.journey-line {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 820px;
  position: relative;
}

.journey-line::before {
  content: "";
  position: absolute;
  inset-inline-start: 44px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(200, 162, 76, 0.1));
}

.journey-line li {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
  position: relative;
}

.journey-line .year {
  flex: 0 0 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--green-900);
  color: var(--gold-soft);
  font: 700 1.15rem "Cormorant Garamond", var(--font-head);
  box-shadow: 0 0 0 6px var(--cream-2);
}

.journey-line li > div {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
}

.journey-line h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.journey-line p {
  margin: 0;
  color: var(--muted);
}

/* ---------- bayyinat ---------- */
.bayyinat-logo {
  width: 170px;
  margin-bottom: 1.4rem;
}

.vm-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
}

.vm-mini > div {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
}

.vm-mini h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.vm-mini p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.license {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

[dir="ltr"] .license {
  transform: rotate(1.5deg);
}

.license img {
  border-radius: 8px;
  cursor: zoom-in;
  width: 100%;
}

.license figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- achievements ---------- */
.work {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: 3rem 0;
}

.work + .work {
  border-top: 1px solid var(--line);
}

.work.reverse .work-media {
  order: 2;
}

.work-media {
  position: relative;
  padding-bottom: 3rem;
}

.work-media > img:first-child {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  width: 88%;
  cursor: zoom-in;
}

.work-media-sub {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 42%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  border: 6px solid var(--cream);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  background: #fff;
}

.work-num {
  font: 700 3.8rem/1 "Cormorant Garamond", serif;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}

.work-body h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.work-body > p {
  color: var(--muted);
}

.chips {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chips li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.chips strong {
  color: var(--green-700);
  font-size: 1.1rem;
}

.chips span {
  font-size: 0.8rem;
  color: var(--muted);
}

.regions {
  font-size: 0.95rem;
  color: var(--green-600);
  font-weight: 500;
}

.award-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--green-950);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.award-tag::before {
  content: "★";
}

/* ---------- projects ---------- */
.projects-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 26, 17, 0.96), rgba(7, 26, 17, 0.86) 50%, rgba(7, 26, 17, 0.97)),
    url("../img/back-cover.webp") center 60% / cover no-repeat;
  filter: blur(2px);
  transform: scale(1.03);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 162, 76, 0.5);
}

.lang-glyph {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 1.3rem "Cormorant Garamond", serif;
  color: var(--green-950);
  background: linear-gradient(135deg, var(--lime), var(--gold));
  margin-bottom: 1.2rem;
}

.glass-card p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.75);
}

.eta {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--gold-soft) !important;
  font-weight: 500;
}

/* ---------- awards ---------- */
.awards-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.award-seal {
  display: grid;
  place-items: center;
  position: relative;
}

.award-seal::before {
  content: "";
  position: absolute;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 162, 76, 0.25), transparent 70%);
}

.award-seal img {
  position: relative;
  width: min(340px, 80%);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 34px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--gold);
}

.timeline li {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
  position: relative;
}

.timeline .year {
  flex: 0 0 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-900);
  color: var(--gold-soft);
  font: 700 1.15rem "Cormorant Garamond", serif;
  box-shadow: 0 0 0 6px var(--cream);
}

.timeline p {
  margin: 0;
  padding: 1rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  flex: 1;
}

/* ---------- downloads ---------- */
.downloads-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.downloads-list:empty {
  display: none;
}

.dl-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.dl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.dl-icon {
  flex: 0 0 52px;
  height: 62px;
  border-radius: 8px;
  background: var(--green-800);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font: 700 0.8rem "Inter", sans-serif;
  letter-spacing: 0.08em;
  position: relative;
}

.dl-icon::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  border-width: 0 12px 12px 0;
  border-style: solid;
  border-color: var(--cream-2) var(--cream-2) var(--green-600) var(--green-600);
}

.dl-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dl-meta strong {
  color: var(--green-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-meta small {
  color: var(--muted);
}

.dl-action {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-700);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--cream-2);
}

.empty-state {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  border: 1.5px dashed rgba(42, 106, 60, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.empty-state svg {
  width: 52px;
  fill: var(--gold);
  margin-bottom: 0.8rem;
}

.empty-state p {
  color: var(--muted);
  margin: 0;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-info li {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact-info svg {
  flex: 0 0 48px;
  height: 48px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(200, 162, 76, 0.12);
  fill: var(--gold-soft);
}

.contact-info div {
  display: flex;
  flex-direction: column;
}

.contact-info div > span:first-child {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.contact-info a,
.contact-info div > span:last-child {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

[dir="rtl"] .contact-info [dir="ltr"] {
  text-align: right;
}

.contact-info a:hover {
  color: var(--gold-soft);
}

.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  backdrop-filter: blur(10px);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(7, 26, 17, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field select option {
  background: var(--green-900);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 162, 76, 0.2);
}

.form-error {
  color: #f3b3a6;
  font-size: 0.92rem;
}

.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0 2rem;
  text-align: center;
  font-size: 0.92rem;
  border-top: 1px solid rgba(200, 162, 76, 0.2);
}

.footer-name {
  font: 700 1.6rem var(--font-head);
  color: var(--gold-soft);
  margin-bottom: 0.4rem;
}

.copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 26, 17, 0.94);
  display: grid;
  place-items: center;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 88vh;
  max-width: 92vw;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1.2rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .menu-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: rgba(7, 26, 17, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.3rem;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav a {
    font-size: 1.15rem;
    padding: 0.9rem 1rem;
  }
  .main-nav .nav-cta {
    margin: 0.8rem 0 0;
    text-align: center;
  }
  .header-actions {
    margin-inline-start: auto;
  }
  .site-header:has(.main-nav.open) {
    background: rgba(7, 26, 17, 0.98);
  }
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat:nth-child(4) {
    border-inline-start: 0;
  }
  .two-col,
  .hero-grid,
  .work,
  .awards-grid,
  .contact-grid,
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    text-align: center;
    padding-top: calc(var(--header-h) + 2.5rem);
  }
  .hero-text {
    order: 2;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero-portrait {
    width: min(230px, 58vw);
    margin-inline: auto;
  }
  .hero-portrait img {
    aspect-ratio: 3 / 3.4;
  }
  .work.reverse .work-media {
    order: 0;
  }
  .license {
    max-width: 420px;
    margin-inline: auto;
  }
  .award-seal img {
    width: 240px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 1.5rem 0.5rem;
  }
  .stat:nth-child(odd) {
    border-inline-start: 0;
  }
  .stat:nth-child(even) {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
  }
  .stat:last-child {
    grid-column: span 2;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .steps,
  .vm-mini {
    grid-template-columns: 1fr;
  }
  .journey-line::before {
    inset-inline-start: 32px;
  }
  .journey-line li {
    gap: 1rem;
  }
  .journey-line .year {
    flex-basis: 64px;
    height: 64px;
    font-size: 0.95rem;
  }
  .downloads-list {
    grid-template-columns: 1fr;
  }
  .brand-text {
    font-size: 1.05rem;
  }
}
