﻿:root {
  --color-primary: #0f4c6b;
  --color-professional: #17326a;
  --color-accent: #d57a30;
  --color-bg: #ffffff;
  --color-bg-alt: #f2f7fc;
  --color-text: #1b2a3f;
  --color-text-muted: #53657b;
  --color-border: #d2dfeb;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 64px;
  --container-max: 1240px;
  --header-max: 1460px;
  --radius-large: 28px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 40px rgba(10, 35, 68, 0.12);
  --shadow-glow: 0 14px 30px rgba(21, 58, 110, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", "Inter", sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  line-height: 1.65;
  text-align: center;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.container {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
  text-align: center;
}

.site-header .container {
  width: min(100% - 32px, var(--header-max));
}

.section { padding-block: var(--space-7); }
.section-muted { background: var(--color-bg-alt); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 14px 0 12px;
  background: linear-gradient(180deg, rgba(244, 248, 253, 0.96) 0%, rgba(244, 248, 253, 0.78) 100%);
  backdrop-filter: blur(16px);
}

.header-inner {
  position: relative;
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  row-gap: 12px;
  gap: 12px var(--space-2);
  padding: 14px 18px;
  border: 1px solid rgba(196, 211, 230, 0.95);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at top left, rgba(229, 141, 69, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(42, 79, 151, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 249, 255, 0.95) 48%, rgba(236, 243, 251, 0.92) 100%);
  box-shadow: var(--shadow-card);
  overflow: clip;
  animation: header-settle 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.12) 34%, transparent 60%);
  pointer-events: none;
}

.header-inner > * {
  position: relative;
  z-index: 1;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 1 / -1;
  padding: 12px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 247, 255, 0.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  min-width: min(100%, 300px);
}

.brand-logo-shell {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 242, 250, 0.98) 100%);
  border: 1px solid rgba(205, 218, 234, 0.96);
  box-shadow: 0 10px 24px rgba(14, 40, 76, 0.1);
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: start;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: none;
  background: transparent;
  padding: 0;
}

.brand-name {
  margin: 0;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.14em;
  color: var(--color-professional);
  font-size: clamp(1.05rem, 1vw, 1.28rem);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-tagline {
  margin: 0;
  color: #425368;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.main-nav {
  position: relative;
  justify-self: end;
  z-index: 2;
}

.nav-toggle {
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 1px solid rgba(188, 204, 224, 0.98);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 10px 24px rgba(12, 41, 83, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.2s ease;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--color-professional);
  border-radius: 999px;
}

.nav-list {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-end: 0;
  min-width: min(340px, 88vw);
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(201, 214, 231, 0.98);
  border-radius: 24px;
  box-shadow: 0 22px 40px rgba(10, 35, 68, 0.16);
  display: none;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(14px);
}

.nav-list.open {
  display: flex;
}

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--color-text);
  border-radius: var(--radius-pill);
  transition: transform 0.28s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.28s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  inset-inline: 18px;
  bottom: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 76, 107, 0) 0%, rgba(15, 76, 107, 0.95) 50%, rgba(213, 122, 48, 0) 100%);
  transform: scaleX(0.2);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  color: var(--color-professional);
  background: rgba(15, 76, 107, 0.08);
  box-shadow: inset 0 0 0 1px rgba(140, 165, 201, 0.3);
  transform: translateY(-1px);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  opacity: 1;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(196, 211, 230, 0.96);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 247, 255, 0.92) 100%);
  box-shadow: var(--shadow-glow);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 44, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 820;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #e58d45;
  border-color: #e58d45;
}

.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  height: 48px;
  padding-inline: 14px 12px;
  border: 1px solid #c2d0e2;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.tool-label {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #607188;
  white-space: nowrap;
}

.lang-switcher::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 14px;
  width: 7px;
  height: 7px;
  border-inline-end: 2px solid #2b3f66;
  border-bottom: 2px solid #2b3f66;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.lang-select {
  width: 68px;
  height: 100%;
  border: none;
  background: transparent;
  color: #1f3556;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  padding-inline: 6px 18px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 0;
  transition: color 0.2s ease;
}

.lang-select:hover {
  color: var(--color-professional);
}

.lang-select:focus {
  outline: none;
}

.lang-select::-ms-expand {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  min-width: 108px;
  border: 1px solid #c2d0e2;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  color: #1f3556;
  font: inherit;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.theme-toggle::before {
  content: "◐";
  font-size: 0.9rem;
  line-height: 1;
}

.theme-toggle:focus-visible,
.lang-select:focus-visible,
.nav-toggle:focus-visible,
.nav-list a:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(213, 122, 48, 0.35);
  outline-offset: 2px;
}

.theme-toggle:focus {
  outline: none;
  border-color: var(--color-professional);
  box-shadow: 0 0 0 3px rgba(23, 50, 106, 0.1);
}

.lang-switcher:focus-within {
  border-color: var(--color-professional);
  box-shadow: 0 0 0 3px rgba(23, 50, 106, 0.1);
}

.header-cta {
  white-space: nowrap;
  min-height: 48px;
  border-radius: 18px;
  box-shadow: 0 14px 26px rgba(213, 122, 48, 0.22);
}

.btn:hover,
.btn:focus-visible,
.theme-toggle:hover,
.lang-switcher:hover,
.header-cta:hover,
.nav-toggle:hover {
  transform: translateY(-2px);
}

.theme-toggle:hover,
.lang-switcher:hover,
.nav-toggle:hover {
  box-shadow: 0 14px 28px rgba(12, 41, 83, 0.14);
}

.hero {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(106deg, rgba(10, 31, 58, 0.92) 10%, rgba(23, 62, 109, 0.74) 52%, rgba(51, 78, 125, 0.58) 100%), url("hero/1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f5f8ff;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.hero.section {
  padding-block: 80px;
}

.sponsor-band {
  padding-block: var(--space-7);
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fe 100%);
}

.sponsor-marquee {
  --sponsor-gap: 14px;
  --sponsor-height: 144px;
  --sponsor-duration: 34s;
  position: relative;
  display: block;
  min-height: var(--sponsor-height);
  overflow: hidden;
  overflow: clip;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 8px 22px rgba(13, 37, 74, 0.06);
  isolation: isolate;
}

.sponsor-marquee::before,
.sponsor-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.sponsor-marquee::before {
  inset-inline-start: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.sponsor-marquee::after {
  inset-inline-end: 0;
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.sponsor-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: max-content;
  min-width: max-content;
  gap: var(--sponsor-gap);
  padding: 12px;
  animation: sponsor-scroll var(--sponsor-duration) linear infinite;
  will-change: transform;
}

.sponsor-track:nth-child(2) {
  left: calc(100% + var(--sponsor-gap));
}

.sponsor-item {
  flex: 0 0 clamp(130px, 16vw, 190px);
  height: 120px;
  border: 1px solid #dde5f0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.sponsor-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  display: block;
}

@keyframes sponsor-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-100% - var(--sponsor-gap)), 0, 0); }
}

@keyframes header-settle {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #d6deff;
}

h1 {
  margin: 0;
  font-family: "Inter", "Cairo", sans-serif;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.hero-text {
  margin-top: 10px;
  margin-inline: auto;
  max-width: 860px;
  color: #e7ecff;
}

h2 {
  margin: 0;
  font-family: "Inter", "Cairo", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1.25;
  color: var(--color-professional);
}

.gallery-heading {
  max-width: 760px;
  margin: 0 auto var(--space-5);
  text-align: center;
}

.gallery-heading p:last-child {
  margin-top: 10px;
  color: var(--color-text-muted);
}

.gallery-eyebrow {
  color: #40628f;
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-gallery-card {
  position: relative;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid #cad6e6;
  border-radius: 10px;
  background: #dfe7f1;
  box-shadow: 0 16px 34px rgba(9, 33, 66, 0.1);
  isolation: isolate;
  transform-origin: center;
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.42s ease, border-color 0.42s ease;
}

.project-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.65s ease;
}

.project-gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 27, 54, 0) 20%, rgba(8, 27, 54, 0.88) 100%);
  opacity: 0;
  transition: opacity 0.42s ease;
}

.project-gallery-card figcaption {
  position: absolute;
  inset-inline: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 8px;
  color: #fff;
  text-align: start;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-gallery-index {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.14);
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.project-gallery-title {
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.project-gallery-card:hover,
.project-gallery-card:focus,
.project-gallery-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(17, 17, 132, 0.38);
  box-shadow: 0 26px 52px rgba(9, 33, 66, 0.18);
}

.project-gallery-card:hover img,
.project-gallery-card:focus img,
.project-gallery-card:focus-within img {
  transform: scale(1.08);
  filter: saturate(1.06) contrast(1.03);
}

.project-gallery-card:hover::before,
.project-gallery-card:focus::before,
.project-gallery-card:focus-within::before,
.project-gallery-card:hover figcaption,
.project-gallery-card:focus figcaption,
.project-gallery-card:focus-within figcaption {
  opacity: 1;
}

.project-gallery-card:hover figcaption,
.project-gallery-card:focus figcaption,
.project-gallery-card:focus-within figcaption {
  transform: translateY(0);
}

.project-gallery-card:focus {
  outline: none;
}

.project-gallery-card:focus-visible {
  box-shadow: 0 0 0 4px rgba(17, 17, 132, 0.18), 0 26px 52px rgba(9, 33, 66, 0.18);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-professional);
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(8, 30, 60, 0.06);
  transition: transform 0.34s ease, box-shadow 0.34s ease, border-color 0.34s ease;
}

.stat .num {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-professional);
  line-height: 1.1;
}

.stat .label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.controls-wrap {
  display: flex;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.control-field {
  display: grid;
  gap: 6px;
}

.control-grow { flex: 1; }

label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #2f4260;
}

select,
input[type="search"] {
  height: 42px;
  border: 1px solid #c7d4e4;
  background: #fff;
  padding: 0 12px;
  font: inherit;
  color: var(--color-text);
}

select:focus,
input[type="search"]:focus {
  outline: none;
  border-color: var(--color-professional);
  box-shadow: 0 0 0 3px rgba(17, 17, 132, 0.08);
}

.table-shell {
  border: 1px solid #cad6e6;
  background: #fff;
  overflow: auto;
  max-height: 68vh;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(9, 33, 66, 0.06);
  transition: transform 0.36s ease, box-shadow 0.36s ease, border-color 0.36s ease;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.projects-table th,
.projects-table td {
  text-align: center;
  vertical-align: top;
  padding: 12px;
  border-bottom: 1px solid #e8eef5;
}

.projects-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f7fd;
  color: #1f3050;
  font-size: 0.84rem;
}

.projects-table td {
  font-size: 0.92rem;
}

.projects-table tbody tr:hover {
  background: #f6faff;
}

.sponsor-item,
.stat,
.control-field,
.table-shell,
.projects-table tbody tr,
.footer-grid > div {
  transition: transform 0.36s ease, box-shadow 0.36s ease, border-color 0.36s ease, background-color 0.36s ease;
}

.sponsor-item:hover,
.stat:hover,
.control-field:hover,
.table-shell:hover,
.projects-table tbody tr:hover,
.footer-grid > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 38px rgba(12, 41, 83, 0.13);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.985);
  filter: blur(4px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.projects-table td:nth-child(1) {
  color: #5f6e82;
  width: 54px;
}

.projects-table td:nth-child(3) {
  white-space: nowrap;
  color: #223a69;
  font-weight: 600;
}

.result-note {
  color: var(--color-text-muted);
}

.results-line {
  margin: 10px 0 0;
  color: #5a6775;
  font-size: 0.9rem;
}

.site-footer {
  background: linear-gradient(160deg, #0a2846 0%, #12355f 54%, #1e4a88 100%);
  color: #d5e2ee;
  padding-top: var(--space-6);
}

.footer-grid {
  display: grid;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  justify-items: center;
  text-align: center;
}

.footer-brand {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
}

.footer-tagline {
  margin: 0 0 8px;
}

.site-footer h4 {
  color: #ffffff;
  margin: 0 0 var(--space-1);
}

.site-footer a,
.site-footer li,
.site-footer p {
  color: #d5e2ee;
}

.site-footer a {
  display: block;
}

.footer-home {
  margin-top: 6px;
  font-weight: 700;
  color: #ffffff;
}

.contact-value {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
  font-family: "Inter", "Cairo", sans-serif;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.footer-bottom {
  border-top: 1px solid rgba(215, 226, 234, 0.3);
  padding-block: var(--space-2);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  .section { padding-block: 44px; }

  .container {
    width: min(100% - 20px, var(--container-max));
  }

  .site-header .container {
    width: min(100% - 20px, var(--header-max));
  }

  .site-header {
    padding: 8px 0;
    backdrop-filter: none;
  }

  .header-inner {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand nav"
      "tools tools";
    justify-items: stretch;
    align-items: center;
    gap: 8px 10px;
    padding: 8px;
    border-radius: 18px;
    overflow: visible;
  }

  .brand-block {
    grid-area: brand;
    grid-column: auto;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .brand-logo-shell {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-copy {
    gap: 2px;
  }

  .brand-name {
    font-size: clamp(0.78rem, 3.3vw, 0.95rem);
    line-height: 1.1;
    letter-spacing: 0.08em;
  }

  .brand-tagline {
    display: none;
  }

  .main-nav {
    grid-area: nav;
    grid-column: auto;
    justify-self: end;
    align-self: center;
    position: relative;
    width: auto;
    display: flex;
    justify-content: flex-end;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 11px;
  }

  .nav-list {
    position: fixed;
    top: 116px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100vw - 20px), 430px);
    min-width: 0;
    max-height: calc(100dvh - 132px);
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(9, 30, 66, 0.2);
    padding: 8px;
    gap: 4px;
    z-index: 930;
  }

  .nav-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.94rem;
  }

  .header-tools {
    grid-area: tools;
    grid-column: auto;
    width: 100%;
    max-width: 100%;
    justify-self: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    padding: 6px;
    border-radius: 14px;
  }

  .lang-switcher {
    min-width: 76px;
    height: 38px;
    flex: 0 0 76px;
    justify-content: space-between;
    gap: 0;
    padding-inline: 10px 8px;
  }

  .tool-label {
    display: none;
  }

  .theme-toggle {
    min-width: 74px;
    height: 38px;
    padding-inline: 10px;
    font-size: 0.78rem;
    flex: 0 0 auto;
  }

  .lang-select {
    min-width: 0;
    height: 100%;
    width: 54px;
    font-size: 0.78rem;
    padding-inline: 4px 14px;
  }

  .header-cta {
    min-width: 0;
    width: auto;
    min-height: 38px;
    padding-inline: 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    white-space: nowrap;
    flex: 1 1 auto;
  }

  .hero.section {
    padding-block: 42px 38px;
  }

  .hero-text {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .sponsor-band {
    padding-block: 44px;
  }

  .controls-wrap select,
  input[type="search"] {
    min-height: 44px;
  }

  .stats-grid { grid-template-columns: 1fr; }

  .gallery-heading {
    margin-bottom: 28px;
    text-align: start;
  }

  .projects-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-gallery-card {
    min-height: 230px;
    border-radius: 8px;
  }

  .project-gallery-card::before,
  .project-gallery-card figcaption {
    opacity: 1;
  }

  .project-gallery-card figcaption {
    inset-inline: 14px;
    bottom: 14px;
    transform: none;
  }

  .controls-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .table-shell {
    max-height: none;
    overflow: visible;
    border: none;
    background: transparent;
  }

  .projects-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .projects-table thead {
    display: none;
  }

  .projects-table tbody,
  .projects-table tr,
  .projects-table td {
    display: block;
    width: 100%;
  }

  .projects-table tr {
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
  }

  .projects-table td {
    border: 0;
    padding: 8px 0;
    display: grid;
    grid-template-columns: minmax(92px, 42%) 1fr;
    gap: 8px;
    align-items: start;
  }

  .projects-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--color-professional);
    font-size: 0.8rem;
  }

  .projects-table tr.no-data-row {
    text-align: center;
  }

  .projects-table tr.no-data-row td {
    display: block;
    padding: 6px 0;
  }

  .projects-table tr.no-data-row td::before {
    content: "";
    display: none;
  }

  .results-line {
    margin-top: 4px;
  }

  .sponsor-marquee {
    --sponsor-gap: 12px;
    --sponsor-height: 132px;
    --sponsor-duration: 28s;
  }

  .sponsor-marquee::before,
  .sponsor-marquee::after {
    width: 28px;
  }
}

@media (min-width: 760px) {
  .header-inner {
    grid-template-columns: minmax(290px, auto) auto 1fr;
    row-gap: 0;
  }

  .brand-block {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (min-width: 760px) and (max-width: 1080px) {
  .projects-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .header-inner {
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr) auto;
    gap: 18px;
    align-items: stretch;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    justify-self: stretch;
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .nav-list {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 8px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(196, 211, 230, 0.96);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 246, 255, 0.9) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    justify-content: center;
    backdrop-filter: none;
  }

  .header-tools {
    justify-self: end;
    flex-shrink: 0;
  }
}

@media (min-width: 980px) and (max-width: 1380px) {
  .header-inner {
    grid-template-columns: minmax(320px, 1fr) auto;
    grid-template-areas:
      "brand tools"
      "nav nav";
    row-gap: 14px;
  }

  .brand-block {
    grid-area: brand;
    grid-column: auto;
  }

  .main-nav {
    grid-area: nav;
  }

  .header-tools {
    grid-area: tools;
  }

  .nav-list {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .header-inner {
    animation: none;
  }

  .sponsor-track {
    animation: none;
  }
}

html[data-theme="dark"] {
  --color-bg: #0f1725;
  --color-bg-alt: #152033;
  --color-text: #e6eef8;
  --color-text-muted: #b5c4d6;
  --color-border: #2c3c54;
  --color-professional: #8fb7ff;
  --color-accent: #f39a52;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .nav-list,
html[data-theme="dark"] .brand-block,
html[data-theme="dark"] .sponsor-marquee,
html[data-theme="dark"] .sponsor-item,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .table-shell,
html[data-theme="dark"] .projects-table th {
  background: #1a263a;
  border-color: #2f435f;
}

html[data-theme="dark"] .nav-list a,
html[data-theme="dark"] .brand-name,
html[data-theme="dark"] .tool-label,
html[data-theme="dark"] .brand-tagline {
  color: #dce8f9;
}

html[data-theme="dark"] h2 {
  color: #f5f8ff;
}

html[data-theme="dark"] .gallery-heading p:last-child,
html[data-theme="dark"] .gallery-eyebrow {
  color: #d7e4f5;
}

html[data-theme="dark"] .project-gallery-card {
  background: #1a263a;
  border-color: #2f435f;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .sponsor-marquee::before {
  background: linear-gradient(90deg, #1a263a 0%, rgba(26, 38, 58, 0) 100%);
}

html[data-theme="dark"] .sponsor-marquee::after {
  background: linear-gradient(270deg, #1a263a 0%, rgba(26, 38, 58, 0) 100%);
}

html[data-theme="dark"] .section-muted {
  background: #131d2e;
}

html[data-theme="dark"] .projects-table tr {
  background: #1a263a;
  border-color: #2f435f;
}

html[data-theme="dark"] select,
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] .theme-toggle {
  background: #101929;
  color: #e6eef8;
  border-color: #365074;
}

html[data-theme="dark"] .lang-select {
  background: transparent;
  color: #e6eef8;
  border-color: transparent;
}

html[data-theme="dark"] .brand-logo-shell,
html[data-theme="dark"] .lang-switcher,
html[data-theme="dark"] .nav-toggle {
  background: #101929;
  border-color: #365074;
}

html[data-theme="dark"] .header-tools {
  background: linear-gradient(180deg, rgba(37, 53, 81, 0.95) 0%, rgba(26, 38, 58, 0.95) 100%);
  border-color: #365074;
}

html[data-theme="dark"] .nav-list a:hover,
html[data-theme="dark"] .nav-list a:focus-visible {
  background: #22324b;
}
