:root {
  --ink: #122033;
  --muted: #5b6b80;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.52);
  --accent: #116d6e;
  --accent-2: #f4a261;
  --accent-3: #5a7dff;
  --shadow: 0 24px 70px rgba(30, 52, 86, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg,
    radial-gradient(circle at 12% 18%, rgba(244, 162, 97, 0.34), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(90, 125, 255, 0.24), transparent 30rem),
    linear-gradient(135deg, #f7fbff 0%, #e9f7ef 46%, #fff5e8 100%));
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 78%);
}

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

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

.section-pad {
  padding: 96px 0;
}

/* Frosted glass navigation */
.glass-nav {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 36px rgba(31, 48, 78, 0.12);
}

.navbar-brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  min-width: 0;
}

.brand-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 76px;
  color: var(--brand-line-1, #3c1f6d);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.56rem;
  font-weight: 800;
  line-height: 0.96;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-title span:last-child {
  color: var(--brand-line-2, #e90088);
  font-size: 1.18em;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 62px;
  height: 76px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 62px;
  padding: 4px;
  background: var(--logo-bg, rgba(255, 255, 255, 0.72));
  border: 1px solid var(--logo-border, rgba(255, 255, 255, 0.78));
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(69, 41, 126, 0.18);
  overflow: visible;
}

.brand-mark img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.nav-link {
  color: rgba(18, 32, 51, 0.78);
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-cta {
  margin-left: 8px;
  padding: 9px 16px !important;
  color: #fff !important;
  background: var(--accent);
  border-radius: 999px;
}

.navbar-toggler {
  border: 0;
  box-shadow: none !important;
}

.hero-section {
  padding-top: 172px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-subtitle {
  max-width: 670px;
  margin: 24px 0 32px;
  color: #405268;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

/* Reusable glass surface used across cards, forms, and panels */
.glass-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.glass-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 42%);
}

.glass-btn,
.glass-btn-outline {
  min-width: 142px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1f8f80);
  border: 0;
  box-shadow: 0 16px 30px rgba(17, 109, 110, 0.22);
}

.btn-primary:hover,
.glass-btn:hover,
.glass-btn-outline:hover {
  transform: translateY(-3px);
}

.glass-btn-outline {
  color: var(--ink);
  border-color: rgba(18, 32, 51, 0.24);
  background: rgba(255, 255, 255, 0.28);
}

.hero-visual {
  padding: 14px;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
}

.floating-impact {
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 2;
  max-width: 190px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  backdrop-filter: blur(16px);
}

.floating-impact strong {
  display: block;
  color: var(--accent);
  font-size: 2.2rem;
  line-height: 1;
}

.floating-impact span {
  color: var(--ink);
  font-weight: 700;
}

/* Impact counters */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 72px 0 86px;
}

.stat {
  padding: 26px;
  text-align: center;
}

.counter {
  display: block;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}

.stat p {
  margin: 6px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading.text-center {
  margin-right: auto;
  margin-left: auto;
}

.sector-card,
.value-card,
.center-card,
.contact-info,
.contact-form,
.profile-card {
  padding: 30px;
}

.sector-card,
.project-card,
.center-card,
.value-card,
.profile-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sector-card:hover,
.project-card:hover,
.center-card:hover,
.value-card:hover,
.profile-card:hover {
  transform: translateY(-8px);
  border-color: rgba(17, 109, 110, 0.28);
  box-shadow: 0 30px 80px rgba(30, 52, 86, 0.22);
}

.sector-card i,
.value-card i,
.profile-card > i {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  border-radius: 18px;
  font-size: 1.4rem;
}

.project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.project-card .card-body {
  position: relative;
  z-index: 1;
  padding: 26px;
}

.center-card p,
.contact-info p {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.center-card p i,
.contact-info p i {
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1.7;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.mini-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
}

/* Masonry-style gallery with CSS grid spans */
.media-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 16px;
}

.media-item {
  position: relative;
  min-height: 190px;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.media-item.tall {
  grid-row: span 2;
}

.media-item.wide {
  grid-column: span 2;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.media-item::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(to top, rgba(18, 32, 51, 0.78), rgba(18, 32, 51, 0.08) 62%, transparent);
  opacity: 0.88;
  transition: opacity 0.28s ease;
}

.media-item:hover img {
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.08);
}

.media-item:hover,
.media-item:focus-visible {
  transform: translateY(-7px);
  box-shadow: 0 32px 80px rgba(30, 52, 86, 0.26);
  outline: none;
}

.media-item:focus-visible {
  box-shadow: 0 0 0 4px rgba(17, 109, 110, 0.18), 0 32px 80px rgba(30, 52, 86, 0.26);
}

.media-item:hover::after,
.media-item:focus-visible::after {
  opacity: 1;
}

.media-copy {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  gap: 5px;
  padding: 14px 46px 14px 15px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(18, 32, 51, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.media-copy strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  font-weight: 700;
}

.media-copy span {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.media-copy i {
  position: absolute;
  right: 14px;
  top: 50%;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.1rem;
  transform: translateY(-50%);
}

.media-popup .modal-content {
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.media-popup-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  opacity: 1;
}

.media-popup-img {
  width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
  background: rgba(18, 32, 51, 0.92);
  border-radius: 22px;
}

.media-popup-copy {
  padding: 20px 10px 8px;
}

.media-popup-copy h3 {
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.media-popup-copy p {
  max-width: 880px;
  margin-bottom: 0;
}

.gallery-section {
  padding-top: 40px;
}

.gallery-wall {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 18px;
}

.gallery-photo {
  position: relative;
  min-height: 180px;
  display: block;
  padding: 10px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.gallery-photo.large {
  grid-row: span 2;
  grid-column: span 2;
}

.gallery-photo.wide {
  grid-column: span 2;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-photo:hover img {
  filter: saturate(1.08);
  transform: scale(1.05);
}

.gallery-photo span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  max-width: calc(100% - 48px);
  padding: 9px 14px;
  color: #fff;
  background: rgba(18, 32, 51, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 0.92rem;
  font-weight: 800;
}

.value-card.vision i {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.about-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 12px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-cloud span {
  padding: 9px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  font-weight: 700;
}

.profile-card {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.profile-card p {
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 800;
}

.profile-card a {
  display: block;
  color: var(--muted);
  overflow: hidden;
  max-width: 100%;
  font-size: clamp(0.72rem, 1.25vw, 0.94rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card a:hover {
  color: var(--accent);
}

.profile-photo {
  width: min(100%, 150px);
  height: 150px;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 6px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(30, 52, 86, 0.16);
}

.governing-slider-wrap {
  position: relative;
}

.governing-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  padding: 8px 6px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.governing-slide {
  min-width: 0;
  scroll-snap-align: start;
}

.governing-slide .profile-card {
  min-height: 320px;
  padding: 18px 18px 24px;
}

.governing-slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.slider-btn {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(30, 52, 86, 0.14);
  transition: transform 0.22s ease, background 0.22s ease;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.84);
  transform: translateY(-2px);
}

.contact-section {
  padding-bottom: 110px;
}

.form-label {
  color: var(--ink);
  font-weight: 800;
}

.form-control {
  min-height: 52px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(17, 109, 110, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(17, 109, 110, 0.12);
}

.form-note {
  display: inline-block;
  margin-left: 14px;
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  padding: 38px 0;
  background: rgba(18, 32, 51, 0.92);
  backdrop-filter: blur(16px);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.footer-quote {
  margin-bottom: 8px !important;
  color: #fff !important;
  font-weight: 800;
}

/* Scroll reveal state toggled from main.js */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.panel-body {
  min-height: 100vh;
}

.panel-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.panel-sidebar {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  padding: 22px;
  overflow-y: auto;
}

.panel-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.panel-brand img {
  width: 54px;
  height: 68px;
  object-fit: contain;
}

.panel-nav {
  display: grid;
  gap: 8px;
}

.panel-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  color: rgba(18, 32, 51, 0.78);
  border-radius: 16px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.panel-nav a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.64);
  transform: translateX(3px);
}

.panel-note {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.panel-note i {
  color: var(--accent);
}

.panel-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.panel-top,
.panel-tools,
.panel-block {
  padding: 28px;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.panel-top h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.panel-top p,
.panel-tools p,
.panel-block p {
  margin-bottom: 0;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.panel-grid {
  display: grid;
  gap: 22px;
}

.panel-block-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.56);
}

.panel-block-header h2,
.panel-tools h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.panel-block-tools {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.panel-block-tools > span {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.repeatable-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.panel-help {
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
}

.panel-tools textarea {
  min-height: 190px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
}

.panel-status {
  min-height: 26px;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 800;
}

.panel-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  cursor: pointer;
  font-weight: 800;
}

.panel-check-input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: var(--accent);
}

.image-upload-control {
  display: grid;
  grid-template-columns: minmax(150px, max-content) minmax(88px, 120px);
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.image-upload-control input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.image-upload-btn {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.92rem;
}

.image-upload-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(30, 52, 86, 0.12);
}

.btn-outline-danger {
  border-color: rgba(220, 53, 69, 0.38);
  color: #b02a37;
  background: rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-weight: 800;
}

.btn-outline-danger:hover {
  color: #fff;
  background: #b02a37;
  border-color: #b02a37;
}

@media (max-width: 1199.98px) {
  .governing-slider {
    grid-auto-columns: minmax(280px, 42%);
  }

  .panel-shell {
    grid-template-columns: 1fr;
  }

  .panel-sidebar {
    position: static;
    height: auto;
  }

  .panel-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navbar-collapse {
    margin-top: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 22px;
    backdrop-filter: blur(18px);
  }

  .nav-cta {
    display: inline-block;
    margin-top: 8px;
    margin-left: 0;
  }

  .stats-grid,
  .media-grid,
  .gallery-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-item.wide,
  .gallery-photo.wide {
    grid-column: span 1;
  }

  .gallery-photo.large {
    grid-column: span 2;
  }
}

@media (max-width: 767.98px) {
  .governing-slider {
    grid-auto-columns: minmax(260px, 86%);
  }

  .governing-slide .profile-card {
    min-height: 310px;
  }

  .panel-shell {
    width: min(100% - 20px, 1480px);
    padding: 10px 0;
  }

  .panel-top,
  .panel-block-header {
    display: grid;
  }

  .panel-block-tools {
    justify-content: flex-start;
  }

  .panel-actions,
  .panel-actions .btn {
    width: 100%;
  }

  .panel-nav {
    grid-template-columns: 1fr;
  }

  .image-upload-control {
    grid-template-columns: 1fr;
  }

  .section-pad {
    padding: 72px 0;
  }

  .hero-section {
    padding-top: 152px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 4.2rem);
  }

  .hero-visual img {
    aspect-ratio: 1 / 1;
  }

  .floating-impact {
    right: 22px;
    bottom: 22px;
  }

  .stats-grid,
  .media-grid,
  .gallery-wall {
    grid-template-columns: 1fr;
  }

  .media-grid,
  .gallery-wall {
    grid-auto-rows: 240px;
  }

  .media-item.tall,
  .gallery-photo.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .mini-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .brand-title {
    max-width: 178px;
    min-height: 64px;
    align-items: flex-start;
    font-size: 1.12rem;
    line-height: 1.15;
  }

  .brand-mark {
    width: 52px;
    height: 64px;
    flex-basis: 52px;
  }

  .glass-card {
    border-radius: 22px;
  }

  .sector-card,
  .value-card,
  .center-card,
  .contact-info,
  .contact-form,
  .profile-card {
    padding: 24px;
  }

  .glass-btn,
  .glass-btn-outline {
    width: 100%;
  }

  .form-note {
    display: block;
    margin: 12px 0 0;
  }
}
