:root {
  --primary: #0f2d4e;
  --secondary: #176b87;
  --accent: #f2b253;
  --accent-strong: #d97706;
  --text: #1c2533;
  --text-muted: #5b6470;
  --background: #f5f0e8;
  --background-deep: #ece3d7;
  --surface: #ffffff;
  --surface-muted: #f0e9df;
  --surface-dark: #182332;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --border: #e0d8cc;
  --shadow: 0 16px 38px rgba(15, 45, 78, 0.13);
  --shadow-strong: 0 24px 54px rgba(10, 25, 45, 0.2);
  --nav-shadow: 0 16px 40px rgba(15, 45, 78, 0.12);
  --nav-main-min-height: 76px;
  --nav-brand-min-width: 198px;
  --nav-link-gap: 1.18rem;
  --nav-action-gap: 0.64rem;
  --nav-actions-min-width: 272px;
  --section-shell-y: clamp(3.95rem, 5.3vw, 5.9rem);
  --section-shell-y-tight: clamp(2.7rem, 3.5vw, 3.8rem);
  --glow-gold: rgba(242, 178, 83, 0.22);
  --hero-gradient: radial-gradient(circle at 10% 20%, rgba(242, 178, 83, 0.25), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(23, 107, 135, 0.25), transparent 45%),
    linear-gradient(120deg, rgba(15, 45, 78, 0.9), rgba(15, 45, 78, 0.55), rgba(15, 45, 78, 0.2));
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --fx-depth: 0.22;
  --fx-glow: rgba(96, 165, 250, 0.24);
  --fx-noise: 0.06;
  --fx-hero-overlay: rgba(7, 18, 36, 0.36);
  --fx-motion-duration: 380ms;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Manrope", sans-serif !important;
  color: var(--text);
  background-color: var(--background);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(242, 178, 83, 0.08), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(23, 107, 135, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(245, 240, 232, 0.85));
  background-attachment: scroll;
  line-height: 1.7;
  position: relative;
  min-height: 100%;
}

body.theme-dark {
  --background: #0b1320;
  --background-deep: #0a101b;
  --surface: #121c2b;
  --surface-muted: #121a28;
  --surface-dark: #0d1522;
  --surface-glass: rgba(18, 26, 40, 0.85);
  --text: #f1f5f9;
  --text-muted: #cbd5e1;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 24px 60px rgba(5, 10, 20, 0.5);
  --shadow-strong: 0 30px 70px rgba(5, 10, 20, 0.65);
  --nav-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  --hero-gradient: radial-gradient(circle at 10% 20%, rgba(242, 178, 83, 0.2), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(23, 107, 135, 0.2), transparent 45%),
    linear-gradient(120deg, rgba(8, 16, 26, 0.95), rgba(10, 18, 32, 0.7), rgba(10, 18, 32, 0.3));
  background-color: var(--background);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(23, 107, 135, 0.12), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(242, 178, 83, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(8, 14, 24, 0.8), rgba(6, 12, 20, 0.9));
}

body.page-media {
  background-color: #edf4f8;
  background-image:
    radial-gradient(circle at 12% 12%, rgba(242, 178, 83, 0.16), transparent 24rem),
    radial-gradient(circle at 82% 10%, rgba(23, 107, 135, 0.15), transparent 25rem),
    radial-gradient(circle at 50% 78%, rgba(209, 228, 255, 0.44), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(238, 244, 248, 0.94) 38%, rgba(232, 240, 246, 0.98));
}

body.page-media::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  opacity: 0.78;
  pointer-events: none;
  z-index: -2;
}

body.theme-dark.page-media {
  background-color: #09131d;
  background-image:
    radial-gradient(circle at 16% 14%, rgba(242, 178, 83, 0.12), transparent 22rem),
    radial-gradient(circle at 82% 14%, rgba(23, 107, 135, 0.16), transparent 24rem),
    radial-gradient(circle at 50% 82%, rgba(20, 62, 92, 0.34), transparent 30rem),
    linear-gradient(180deg, rgba(8, 14, 24, 0.92), rgba(7, 14, 24, 0.98));
}

body.theme-dark.page-media::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 22%);
  opacity: 0.42;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/3141232747595-920-bg-8.jpg");
  background-size: 220px;
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: -1;
}

body.theme-dark::before {
  opacity: 0.04;
  mix-blend-mode: screen;
}

body.theme-dark .text-slate-900 { color: #f8fafc !important; }
body.theme-dark .text-slate-800 { color: #f1f5f9 !important; }
body.theme-dark .text-slate-700 { color: #e2e8f0 !important; }
body.theme-dark .text-slate-600 { color: #cbd5e1 !important; }
body.theme-dark .text-slate-500 { color: #94a3b8 !important; }
body.theme-dark .text-gray-500 { color: #94a3b8 !important; }
body.theme-dark .text-slate-100 { color: #f8fafc !important; }

body.theme-dark .bg-white { background-color: rgba(15, 23, 42, 0.9) !important; }
body.theme-dark .bg-white\/70 { background-color: rgba(15, 23, 42, 0.7) !important; }
body.theme-dark .bg-white\/80 { background-color: rgba(15, 23, 42, 0.8) !important; }
body.theme-dark .bg-white\/95 { background-color: rgba(15, 23, 42, 0.92) !important; }
body.theme-dark .bg-white\/10 { background-color: rgba(15, 23, 42, 0.35) !important; }
body.theme-dark .border-slate-200 { border-color: rgba(148, 163, 184, 0.2) !important; }

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
.heading-display {
  font-family: "Fraunces", serif;
  letter-spacing: -0.02em;
}

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

.site-nav {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--nav-shadow);
  border-bottom: 1px solid rgba(15, 45, 78, 0.08);
  z-index: 80 !important;
}

.site-nav__top-inner,
.site-nav__main {
  width: min(1680px, calc(100% - 1.75rem));
  margin: 0 auto;
}

.site-nav__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.62rem;
  line-height: 1.1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(47, 66, 94, 0.84);
}

.site-nav__top-text {
  white-space: nowrap;
}

.site-nav__top-inner > span {
  white-space: nowrap;
}

.site-nav__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  padding: 0.96rem 0;
  min-height: var(--nav-main-min-height);
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  min-width: auto;
  max-width: 214px;
}

.site-nav__brand img {
  display: block;
  height: 52px;
  max-width: min(100%, 194px);
  width: auto;
  object-fit: contain;
}

.site-nav__brand .site-nav__brand-meta {
  display: none;
  flex-direction: column;
  line-height: 1.02;
}

.site-nav__links {
  white-space: nowrap;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  gap: var(--nav-link-gap) !important;
}

.site-nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  color: rgba(47, 66, 94, 0.86);
  transition: color 0.2s ease;
}

.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242, 178, 83, 0.88), rgba(23, 107, 135, 0.9));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.site-nav__links a:hover::after,
.site-nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__links a[aria-current="page"] {
  color: var(--primary);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  gap: var(--nav-action-gap) !important;
  flex-shrink: 0;
  min-width: var(--nav-actions-min-width);
}

.site-nav__socials {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.site-nav__social-link {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f2d4e;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(237, 242, 247, 0.82)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(209, 228, 255, 0.24));
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 24px rgba(15, 45, 78, 0.12);
  backdrop-filter: blur(12px) saturate(150%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.site-nav__social-link::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  opacity: 0.9;
}

.site-nav__social-link i {
  position: relative;
  z-index: 1;
  font-size: 1rem;
}

.site-nav__social-link--instagram {
  color: #b83280;
}

.site-nav__social-link--facebook {
  color: #2563eb;
}

.site-nav__social-link:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(148, 163, 184, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 16px 30px rgba(15, 45, 78, 0.16);
}

.site-nav__social-link:focus-visible {
  outline: 2px solid rgba(76, 96, 120, 0.34);
  outline-offset: 2px;
}

@media (min-width: 1180px) {
  .site-nav__links {
    display: flex !important;
  }

  .site-nav__actions {
    display: flex !important;
  }

  [data-mobile-toggle] {
    display: none !important;
  }
}

.site-nav__phone {
  white-space: nowrap;
  font-size: 0.95rem;
  line-height: 1.12;
  font-weight: 700;
  text-align: right;
  display: none;
}

.site-nav .theme-toggle {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.site-nav__actions .btn-primary {
  white-space: nowrap;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  padding: 0.78rem 1.2rem;
  min-height: 42px;
  box-shadow: 0 12px 26px rgba(15, 45, 78, 0.22);
}

@media (min-width: 1180px) and (max-width: 1519.98px) {
  :root {
    --nav-main-min-height: 68px;
    --nav-brand-min-width: 164px;
    --nav-link-gap: 0.76rem;
    --nav-action-gap: 0.42rem;
    --nav-actions-min-width: 112px;
  }

  .site-nav__top-inner {
    padding: 0.34rem 0;
    font-size: 0.57rem;
    letter-spacing: 0.2em;
    color: rgba(47, 66, 94, 0.9);
  }

  .site-nav__main {
    gap: 0.8rem;
    padding: 0.66rem 0;
  }

  .site-nav__brand {
    max-width: 176px;
  }

  .site-nav__brand img {
    height: 42px;
    max-width: 170px;
  }

  .site-nav__links {
    gap: 0.68rem !important;
  }

  .site-nav__links a {
    font-size: 0.63rem;
    letter-spacing: 0.05em;
  }

  .site-nav__phone {
    display: none !important;
  }

  .site-nav__actions {
    min-width: 108px;
  }

  .site-nav__social-link {
    width: 38px;
    height: 38px;
  }

  .site-nav__actions .btn-primary {
    min-height: 36px;
    font-size: 0.6rem;
    padding: 0.56rem 0.74rem;
  }

  .site-nav__actions .theme-toggle {
    display: inline-flex;
  }
}

@media (min-width: 1180px) and (max-width: 1380px) {
  :root {
    --nav-link-gap: 0.62rem;
    --nav-actions-min-width: 104px;
  }

  .site-nav__brand {
    max-width: 156px;
  }

  .site-nav__brand img {
    height: 38px;
    max-width: 152px;
  }

  .site-nav__main {
    gap: 0.68rem;
  }

  .site-nav__links {
    gap: 0.56rem !important;
  }

  .site-nav__links a {
    font-size: 0.59rem;
    letter-spacing: 0.04em;
  }

  .site-nav__actions {
    min-width: 96px;
  }

  .site-nav__social-link {
    width: 36px;
    height: 36px;
  }

  .site-nav__actions .btn-primary {
    padding: 0.54rem 0.68rem;
    font-size: 0.58rem;
  }
}

@media (min-width: 1520px) {
  :root {
    --nav-main-min-height: 80px;
    --nav-brand-min-width: 220px;
    --nav-link-gap: 1.45rem;
    --nav-action-gap: 0.72rem;
    --nav-actions-min-width: 332px;
  }

  .site-nav__main {
    padding: 0.9rem 0;
  }

  .site-nav__brand {
    min-width: auto;
    max-width: 220px;
  }

  .site-nav__brand img {
    height: 54px;
    max-width: 200px;
  }

  .site-nav__brand .site-nav__brand-meta {
    display: none;
  }

  .site-nav__links {
    gap: var(--nav-link-gap) !important;
  }

  .site-nav__links a {
    font-size: 0.75rem;
    letter-spacing: 0.13em;
  }

  .site-nav__phone {
    font-size: 0.98rem;
    line-height: 1.1;
    display: block;
  }
}



@media (min-width: 1024px) and (max-width: 1179.98px) {
  :root {
    --nav-main-min-height: 64px;
    --nav-link-gap: 0.5rem;
    --nav-actions-min-width: auto;
  }

  .site-nav__top-inner {
    display: none;
  }

  .site-nav__main {
    width: min(1200px, calc(100% - 1.5rem));
    padding: 0.68rem 0;
    gap: 0.6rem;
  }

  .site-nav__brand {
    max-width: 150px;
  }

  .site-nav__brand img {
    height: 38px;
    max-width: 146px;
  }

  .site-nav__links {
    display: flex !important;
    gap: 0.46rem !important;
  }

  .site-nav__links a {
    font-size: 0.54rem;
    letter-spacing: 0.025em;
  }

  .site-nav__actions {
    display: flex !important;
    min-width: auto;
    gap: 0.45rem !important;
  }

  .site-nav__phone,
  .site-nav__actions .btn-primary {
    display: none !important;
  }

  .site-nav__actions .theme-toggle {
    display: inline-flex;
    width: 36px;
    height: 36px;
  }

  [data-mobile-toggle] {
    display: none !important;
  }
}

@media (max-width: 1023.98px) {
  :root {
    --nav-main-min-height: 64px;
  }

  .site-nav__top-inner {
    display: none;
  }

  .site-nav__main {
    width: min(1200px, calc(100% - 1.75rem));
    padding: 0.72rem 0;
    gap: 0.8rem;
  }

  .site-nav__brand {
    max-width: 176px;
  }

  .site-nav__brand img {
    height: 44px;
    max-width: 168px;
  }

  .site-nav__links {
    display: none !important;
  }

  .site-nav__actions {
    display: flex !important;
    align-items: center;
    gap: 0.5rem !important;
    margin-left: auto;
    min-width: auto;
  }

  .site-nav__phone,
  .site-nav__actions .btn-primary {
    display: none !important;
  }

  .site-nav__socials {
    display: none;
  }

  .site-nav__actions .theme-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
  }

  [data-mobile-toggle] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(15, 45, 78, 0.05);
    border: 1px solid rgba(15, 45, 78, 0.08);
  }
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 32, 0.34);
  backdrop-filter: blur(8px);
  z-index: 60;
}

body.theme-dark.menu-open::after {
  background: rgba(2, 8, 18, 0.58);
}

[data-mobile-toggle] {
  border-radius: 16px;
  border: 1px solid rgba(15, 45, 78, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(15, 45, 78, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

[data-mobile-toggle]:hover {
  transform: translateY(-1px);
}

[data-mobile-toggle].is-active {
  color: #ffffff;
  background: var(--primary);
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(15, 45, 78, 0.2);
}

body.theme-dark [data-mobile-toggle] {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
}

@media (max-width: 1023.98px) {
  [data-mobile-menu] {
    position: fixed;
    top: calc(var(--nav-main-min-height) + 0.35rem);
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-width: 420px;
    margin-left: auto;
    padding: 0.45rem;
    border: 1px solid rgba(15, 45, 78, 0.1);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 32px 72px rgba(15, 45, 78, 0.22);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -0.6rem, 0) scale(0.98);
    transition:
      opacity 0.22s ease,
      transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.3s;
    z-index: 75;
    display: block !important;
  }

  [data-mobile-menu].hidden {
    display: block !important;
  }

  [data-mobile-menu].is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 0s;
  }

  [data-mobile-menu] > div:first-child {
    display: grid;
    gap: 0.34rem;
    padding: 0.5rem;
  }

  [data-mobile-menu] > div:first-child::before {
    content: "Hızlı Geçiş";
    padding: 0.55rem 0.65rem 0.2rem;
    font-size: 0.64rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(91, 100, 112, 0.88);
  }

  [data-mobile-menu] > div:first-child a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0.92rem 1rem;
    border-radius: 18px;
    background: rgba(240, 233, 223, 0.88);
    color: var(--primary);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(15, 45, 78, 0.05);
    transition:
      transform 0.18s ease,
      background-color 0.18s ease,
      color 0.18s ease,
      box-shadow 0.18s ease;
  }

  [data-mobile-menu] > div:first-child a:hover,
  [data-mobile-menu] > div:first-child a[aria-current="page"] {
    background: linear-gradient(135deg, rgba(242, 178, 83, 0.22), rgba(23, 107, 135, 0.14));
    color: var(--primary);
    transform: translateX(4px);
    box-shadow: inset 0 0 0 1px rgba(15, 45, 78, 0.12);
  }

  [data-mobile-menu] > div:last-child {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem 0.75rem 0.75rem;
    margin: 0 0.25rem 0.25rem;
    border-top: 1px solid rgba(15, 45, 78, 0.08);
  }

  [data-mobile-menu] > div:last-child > div:first-of-type {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(15, 45, 78, 0.05);
    color: rgba(47, 66, 94, 0.84);
    font-size: 0.67rem;
    line-height: 1.5;
    letter-spacing: 0.22em;
  }

  [data-mobile-menu] .btn-primary {
    width: 100%;
    min-height: 50px;
  }

  [data-mobile-menu] .theme-toggle-row {
    margin-top: 0;
    padding: 0.75rem 0.95rem;
    border-radius: 18px;
    background: rgba(15, 45, 78, 0.05);
  }
}

@media (max-width: 767.98px) {
  .site-nav__top-inner > span:last-child {
    display: none;
  }
}

@media (max-width: 640px) {
  [data-mobile-menu] {
    top: calc(var(--nav-main-min-height) + 0.2rem);
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
    border-radius: 24px;
  }

  [data-mobile-menu] > div:first-child {
    padding: 0.35rem;
  }

  [data-mobile-menu] > div:first-child a {
    min-height: 48px;
    padding: 0.82rem 0.9rem;
    font-size: 0.75rem;
  }

  [data-mobile-menu] > div:last-child {
    padding: 0.82rem 0.5rem 0.5rem;
  }
}

body.theme-dark .site-nav {
  background: rgba(9, 15, 25, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

body.theme-dark .site-nav__top-inner {
  color: rgba(226, 237, 252, 0.96);
}

body.theme-dark .site-nav__actions .btn-primary {
  box-shadow: 0 12px 30px rgba(2, 8, 18, 0.45);
}

body.theme-dark .site-nav__social-link {
  color: #e2e8f0;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.72)),
    linear-gradient(135deg, rgba(148, 163, 184, 0.18), rgba(30, 41, 59, 0.08));
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 28px rgba(2, 8, 18, 0.34);
}

body.theme-dark .site-nav__social-link--instagram {
  color: #f472b6;
}

body.theme-dark .site-nav__social-link--facebook {
  color: #60a5fa;
}

body.theme-dark .site-nav__links a {
  color: rgba(226, 232, 240, 0.86);
}

body.theme-dark .site-nav__links a[aria-current="page"] {
  color: #f8fafc;
}

body.theme-dark [data-mobile-menu] {
  background: rgba(10, 18, 32, 0.96);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45);
}

body.theme-dark [data-mobile-menu] > div:first-child::before {
  color: rgba(226, 232, 240, 0.72);
}

body.theme-dark [data-mobile-menu] > div:first-child a,
body.theme-dark [data-mobile-menu] > div:last-child > div:first-of-type,
body.theme-dark [data-mobile-menu] .theme-toggle-row {
  background: rgba(148, 163, 184, 0.08);
  color: #f1f5f9;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

body.theme-dark [data-mobile-menu] > div:first-child a:hover,
body.theme-dark [data-mobile-menu] > div:first-child a[aria-current="page"] {
  background: linear-gradient(135deg, rgba(242, 178, 83, 0.24), rgba(59, 130, 246, 0.18));
  color: #ffffff;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-text-light { color: var(--text); }
.text-text-dark { color: #f8fafc; }
.text-muted-light { color: var(--text-muted); }
.text-muted-dark { color: #cbd5f5; }

body.theme-dark .text-primary { color: #7dd3fc; }
body.theme-dark .text-secondary { color: #60a5fa; }
body.theme-dark .text-accent { color: #fbbf24; }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-background-light { background-color: var(--background); }
.bg-background-dark { background-color: #0a1522; }
.bg-surface-light { background-color: var(--surface); }
.bg-surface-dark { background-color: var(--surface-dark); }
.bg-surface-muted { background-color: var(--surface-muted); }

.border-primary { border-color: var(--primary); }
.border-secondary { border-color: var(--secondary); }

.section-shell {
  padding: var(--section-shell-y) 0;
  position: relative;
}

.section-shell.section-tight {
  padding: var(--section-shell-y-tight) 0;
}

section.py-16 {
  padding-top: clamp(3.5rem, 4.8vw, 5rem) !important;
  padding-bottom: clamp(3.5rem, 4.8vw, 5rem) !important;
}

section.py-12 {
  padding-top: clamp(2.6rem, 3.5vw, 3.5rem) !important;
  padding-bottom: clamp(2.6rem, 3.5vw, 3.5rem) !important;
}

section.py-10 {
  padding-top: clamp(2.2rem, 3vw, 3rem) !important;
  padding-bottom: clamp(2.2rem, 3vw, 3rem) !important;
}

section.py-14 {
  padding-top: clamp(3rem, 4vw, 4.25rem) !important;
  padding-bottom: clamp(3rem, 4vw, 4.25rem) !important;
}

section.py-20 {
  padding-top: clamp(4.4rem, 5.8vw, 6.4rem) !important;
  padding-bottom: clamp(4.4rem, 5.8vw, 6.4rem) !important;
}

.section-shell.section-spotlight {
  overflow: hidden;
}

.section-shell.section-spotlight::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% -20%;
  height: 65%;
  background: radial-gradient(circle at 50% 0%, rgba(242, 178, 83, 0.2), transparent 65%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.section-shell.section-spotlight > * {
  position: relative;
  z-index: 1;
}

.section-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--secondary);
  font-weight: 700;
}

body.theme-dark .section-eyebrow {
  color: #93c5fd;
}

.section-title {
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 700;
  color: var(--primary);
}

body.theme-dark .section-title {
  color: #f8fafc;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.card-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-soft {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(15, 45, 78, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-soft.text-white {
  background: linear-gradient(145deg, rgba(17, 57, 97, 0.96), rgba(9, 34, 68, 0.95));
  border-color: rgba(82, 132, 184, 0.42);
  box-shadow: 0 24px 52px rgba(9, 30, 58, 0.35);
}

.card-soft.text-white .section-eyebrow {
  color: rgba(229, 237, 249, 0.82) !important;
}

.card-soft.text-white .btn-outline {
  border-color: rgba(236, 244, 255, 0.45);
  color: #f8fbff;
}

.card-soft.text-white .btn-outline:hover {
  background: #f8fbff;
  color: #0f2d4e;
}

body.theme-dark .card-surface {
  background: rgba(18, 26, 40, 0.96);
  border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .card-soft {
  background: rgba(20, 28, 40, 0.75);
  border-color: rgba(148, 163, 184, 0.16);
}

.card-surface:hover,
.card-soft:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

@media (max-width: 767.98px) {
  .card-surface,
  .card-soft {
    box-shadow: 0 16px 34px rgba(10, 25, 45, 0.16);
  }

  .card-surface:hover,
  .card-soft:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(10, 25, 45, 0.2);
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #1f4c79);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 18px 38px rgba(15, 45, 78, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 45px rgba(15, 45, 78, 0.3);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 80%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 45, 78, 0.4);
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

body.theme-dark .btn-outline {
  border-color: rgba(148, 163, 184, 0.6);
  color: #e2e8f0;
}

body.theme-dark .btn-outline:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15, 45, 78, 0.2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(15, 45, 78, 0.08);
  color: var(--primary);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  background: rgba(15, 45, 78, 0.16);
}

.theme-toggle i {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
}

.theme-toggle .icon-moon {
  transform: translate(-0.02em, -0.02em);
}

.theme-toggle .icon-sun {
  transform: translate(0, 0.02em);
}

.theme-toggle .icon-sun { display: none; }

body.theme-dark .theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}

body.theme-dark .theme-toggle .icon-sun { display: inline-flex; }
body.theme-dark .theme-toggle .icon-moon { display: none; }

.theme-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.btn-link {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.25rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(242, 178, 83, 0.2), rgba(242, 178, 83, 0.05));
  color: var(--accent-strong);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  border: 1px solid rgba(242, 178, 83, 0.3);
}

.hero-overlay {
  background: var(--hero-gradient);
}

.hero-pattern {
  background-image: radial-gradient(circle at 15% 15%, rgba(242, 178, 83, 0.2), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(23, 107, 135, 0.22), transparent 38%),
    radial-gradient(circle at 80% 80%, rgba(15, 45, 78, 0.22), transparent 45%);
  mix-blend-mode: screen;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 46vh, 560px);
  isolation: isolate;
}

.page-hero > img {
  transform: scale(1.02);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, rgba(7, 18, 36, 0.78) 0%, rgba(7, 18, 36, 0.42) 48%, rgba(7, 18, 36, 0.18) 100%);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 7.5vw, 5.85rem) 1rem clamp(1.85rem, 3.4vw, 2.6rem);
  display: grid;
  gap: 1.05rem;
  align-content: end;
}

.page-hero__content {
  max-width: min(660px, 100%);
}

.page-hero__title {
  max-width: min(12ch, 100%);
  font-size: clamp(2.25rem, 4.7vw, 4.1rem) !important;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.page-hero__lede {
  margin-top: 0.85rem;
  max-width: 44ch;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero__crumbs {
  margin-top: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero__crumbs a {
  color: inherit;
}

.page-hero__chips {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.page-hero__panel {
  display: grid;
  gap: 0.85rem;
  align-content: end;
  padding: 1.15rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 30, 55, 0.74), rgba(10, 31, 54, 0.44));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 40px rgba(5, 15, 35, 0.2);
  backdrop-filter: blur(14px);
  max-width: 420px;
  justify-self: end;
}

.page-hero__panel-label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242, 178, 83, 0.88);
  font-weight: 700;
}

.page-hero__stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.page-hero__stat {
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero__stat strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  color: #ffffff;
}

.page-hero__stat span {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.page-hero__panel--editorial {
  align-content: start;
  gap: 1rem;
  padding: 1.35rem 1.45rem;
  background: linear-gradient(180deg, rgba(9, 30, 55, 0.86), rgba(10, 31, 54, 0.7));
  border-color: rgba(242, 178, 83, 0.28);
  box-shadow: 0 22px 46px rgba(4, 14, 30, 0.22);
}

.page-hero__panel--editorial h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.2;
  font-weight: 800;
}

.page-hero__panel-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.page-hero__panel-lines {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding: 0.9rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.page-hero__panel-lines li {
  display: grid;
  grid-template-columns: minmax(5.4rem, max-content) 1fr;
  gap: 1rem;
  align-items: baseline;
}

.page-hero__panel-lines span {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero__panel-lines strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

.page-hero__panel--facts {
  position: relative;
  align-content: center;
  padding: 1.25rem 1.35rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(13, 35, 58, 0.78), rgba(8, 25, 43, 0.66));
  border-color: rgba(242, 178, 83, 0.24);
  box-shadow: 0 24px 46px rgba(4, 14, 30, 0.2);
}

.page-hero__panel--facts::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), rgba(242, 178, 83, 0.14));
}

.page-hero__panel-lines--facts {
  gap: 0;
  padding: 0 0 0 0.9rem;
  border-top: 0;
}

.page-hero__panel-lines--facts li {
  padding: 0.82rem 0 0.82rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero__panel-lines--facts li:last-child {
  border-bottom: 0;
}

.page-hero__panel-lines--facts span {
  color: var(--accent);
  font-size: 0.82rem;
}

.page-hero__panel-lines--facts strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

.page-hero__panel--stack {
  grid-template-columns: 1fr;
}

.page-hero__mini-card {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero__mini-card span {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 178, 83, 0.88);
  font-weight: 700;
}

.page-hero__mini-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #ffffff;
  font-weight: 700;
}

.page-hero--about {
  min-height: clamp(380px, 52vh, 620px);
}

.page-hero--about::after {
  background: linear-gradient(100deg, rgba(5, 18, 34, 0.82) 0%, rgba(5, 18, 34, 0.55) 45%, rgba(5, 18, 34, 0.18) 100%);
}

.page-hero--services {
  min-height: clamp(340px, 48vh, 520px);
}

.page-hero--services::after {
  background: linear-gradient(105deg, rgba(8, 29, 48, 0.78) 0%, rgba(8, 29, 48, 0.44) 52%, rgba(8, 29, 48, 0.12) 100%);
}

.page-services .page-hero--services .page-hero__inner {
  grid-template-columns: 1fr;
}

.page-services .page-hero--services .page-hero__content {
  max-width: min(760px, 100%);
}

.page-hero--media {
  min-height: clamp(340px, 48vh, 540px);
}

.page-hero--media::after {
  background: linear-gradient(180deg, rgba(4, 18, 34, 0.58) 0%, rgba(4, 18, 34, 0.44) 45%, rgba(4, 18, 34, 0.7) 100%);
}

.page-media .page-hero--media .page-hero__inner {
  grid-template-columns: 1fr;
}

.page-media .page-hero--media .page-hero__content {
  max-width: min(760px, 100%);
}

.page-hero--projects {
  min-height: clamp(360px, 50vh, 580px);
}

.page-hero--projects::after {
  background: linear-gradient(100deg, rgba(9, 23, 42, 0.72) 0%, rgba(9, 23, 42, 0.38) 45%, rgba(9, 23, 42, 0.2) 100%);
}

.page-hero--quote {
  min-height: clamp(320px, 44vh, 500px);
}

.page-hero--quote::after {
  background: linear-gradient(100deg, rgba(9, 24, 43, 0.8) 0%, rgba(9, 24, 43, 0.42) 55%, rgba(9, 24, 43, 0.16) 100%);
}

.page-hero--contact {
  min-height: clamp(340px, 47vh, 520px);
}

.page-hero--contact::after {
  background: linear-gradient(102deg, rgba(7, 22, 40, 0.82) 0%, rgba(7, 22, 40, 0.46) 50%, rgba(7, 22, 40, 0.16) 100%);
}

.page-hero--news {
  min-height: clamp(360px, 48vh, 540px);
}

.page-hero--news::after {
  background: linear-gradient(105deg, rgba(8, 25, 45, 0.8) 0%, rgba(8, 25, 45, 0.45) 48%, rgba(8, 25, 45, 0.18) 100%);
}

.page-hero--policy {
  min-height: clamp(300px, 40vh, 440px);
}

.page-hero--policy::after {
  background: linear-gradient(102deg, rgba(10, 25, 44, 0.84) 0%, rgba(10, 25, 44, 0.5) 48%, rgba(10, 25, 44, 0.2) 100%);
}

.page-hero--policy .page-hero__lede {
  max-width: 52ch;
}

.page-hero--references {
  min-height: clamp(360px, 50vh, 560px);
}

.page-hero--references::after {
  background: linear-gradient(100deg, rgba(7, 23, 43, 0.82) 0%, rgba(7, 23, 43, 0.46) 52%, rgba(7, 23, 43, 0.16) 100%);
}

.page-hero--error {
  min-height: clamp(320px, 44vh, 480px);
}

.page-hero--error::after {
  background: linear-gradient(180deg, rgba(7, 22, 40, 0.7) 0%, rgba(7, 22, 40, 0.5) 44%, rgba(7, 22, 40, 0.78) 100%);
}

.page-hero--center .page-hero__inner {
  justify-items: center;
  text-align: center;
}

.page-hero--center .page-hero__content {
  max-width: min(620px, 100%);
}

.page-hero--center .page-hero__title {
  max-width: min(10ch, 100%);
  font-size: clamp(2.1rem, 3.8vw, 3.5rem) !important;
}

.page-hero--center .page-hero__lede {
  margin-left: auto;
  margin-right: auto;
}

.page-hero--center .page-hero__crumbs,
.page-hero--center .page-hero__chips {
  justify-content: center;
}

.page-hero--center .page-hero__panel {
  justify-self: center;
}

.page-hero__meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.page-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.page-hero__meta-item--email {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding-inline: 0.72rem;
  text-transform: lowercase;
}

a[href^="mailto:"],
[data-mobile-menu] > div:last-child > div.text-xs,
.page-hero__meta-item--email {
  text-transform: lowercase !important;
}

.page-hero--quiet {
  min-height: clamp(240px, 34vh, 340px);
}

.page-hero--quiet::after {
  background: linear-gradient(102deg, rgba(9, 24, 43, 0.84) 0%, rgba(9, 24, 43, 0.56) 55%, rgba(9, 24, 43, 0.2) 100%);
}

.page-hero--quiet .page-hero__inner {
  max-width: min(1120px, calc(100% - 3rem));
  padding-top: clamp(4.2rem, 6.4vw, 5.1rem);
  padding-bottom: clamp(1.35rem, 2.4vw, 1.95rem);
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.page-hero--quiet .page-hero__content {
  max-width: min(760px, 100%);
}

.page-hero--quiet .page-hero__lede {
  max-width: 58ch;
  font-size: clamp(0.98rem, 1.3vw, 1.06rem);
  color: rgba(255, 255, 255, 0.82);
}

.page-hero--quiet .page-hero__title {
  max-width: min(16ch, 100%);
  font-size: clamp(1.95rem, 3.4vw, 3rem) !important;
}

.page-hero--quiet .page-hero__crumbs {
  margin-top: 0.85rem;
  font-size: 0.82rem;
}

.page-hero--quiet .page-hero__chips,
.page-hero--quiet .page-hero__panel {
  display: none;
}

.page-hero--center .page-hero__meta {
  justify-content: center;
}

@media (min-width: 1024px) {
  .page-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.7fr);
    align-items: end;
  }

  .page-hero--center .page-hero__inner {
    grid-template-columns: 1fr;
  }

  .page-services .page-hero--services .page-hero__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023.98px) {
  .page-hero {
    min-height: clamp(320px, 44vh, 420px);
  }

  .page-hero__panel {
    max-width: none;
    justify-self: stretch;
  }

  .page-contact .page-hero,
  .page-quote .page-hero {
    min-height: clamp(280px, 34vh, 360px);
  }

  .page-contact .page-hero__inner,
  .page-quote .page-hero__inner {
    gap: 1rem;
    padding-top: clamp(4.8rem, 8vw, 5.8rem);
    padding-bottom: clamp(1.7rem, 4vw, 2.4rem);
  }

  .page-contact .page-hero__panel,
  .page-quote .page-hero__panel {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-hero__inner {
    padding-top: 5.35rem;
    padding-bottom: 2rem;
    gap: 0.95rem;
  }

  .page-hero__title {
    font-size: clamp(2.15rem, 9vw, 3.2rem) !important;
  }

  .page-hero__lede {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .page-hero__chips {
    gap: 0.45rem;
  }

  .page-hero__chip {
    font-size: 0.6rem;
    padding: 0.45rem 0.7rem;
    letter-spacing: 0.1em;
  }

  .page-hero__panel {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .page-hero__meta {
    gap: 0.45rem;
  }

  .page-hero__meta-item {
    font-size: 0.62rem;
    padding: 0.42rem 0.68rem;
    letter-spacing: 0.08em;
  }

  .page-hero__stat strong {
    font-size: 1.1rem;
  }

  .page-hero__stat span {
    font-size: 0.62rem;
  }

  .page-contact .page-hero__chips,
  .page-quote .page-hero__chips {
    margin-top: 0.9rem;
  }

  .page-contact .page-hero__chip:last-child,
  .page-quote .page-hero__chip:last-child {
    display: none;
  }
}

.architectural-pattern {
  background-image: linear-gradient(to right, rgba(15, 45, 78, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 45, 78, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.texture-overlay {
  position: relative;
  overflow: hidden;
}

.texture-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--texture-image);
  background-size: var(--texture-size, 280px);
  background-repeat: repeat;
  background-position: center;
  opacity: var(--texture-opacity, 0.12);
  pointer-events: none;
}

.texture-overlay > * {
  position: relative;
  z-index: 1;
}

.texture-map {
  --texture-image: url("../img/bg-map.png");
  --texture-size: 260px;
}

.texture-cross {
  --texture-image: url("../img/3141232747595-920-bg-8.jpg");
  --texture-size: 220px;
}

.texture-grid {
  --texture-image: url("../img/3141232747595-920-bg-8.jpg");
  --texture-size: 420px;
}

.texture-dot {
  --texture-image: url("../img/3141232747595-920-bg-8.jpg");
  --texture-size: 260px;
}

.texture-noise {
  --texture-image: url("../img/3141232747595-920-bg-8.jpg");
  --texture-size: 240px;
  --texture-opacity: 0.08;
}

.brush-mask {
  mask-image: url("https://www.transparenttextures.com/patterns/brush-strokes.png");
  mask-size: cover;
  -webkit-mask-image: url("https://www.transparenttextures.com/patterns/brush-strokes.png");
  -webkit-mask-size: cover;
}

.brush-shape {
  clip-path: polygon(8% 0, 100% 0%, 92% 100%, 0% 100%);
}

.paint-stroke-mask {
  mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path d="M44.7,-76.4C58.9,-69.2,71.8,-59.1,81.6,-46.6C91.4,-34.1,98.1,-19.2,95.8,-5.3C93.5,8.6,82.2,21.5,70.6,31.7C59,41.9,47.1,49.5,35.4,56.8C23.7,64.1,12.2,71.1,-0.9,72.7C-14,74.3,-26.7,70.6,-37.2,62.8C-47.7,55,-56,43.2,-63.3,30.3C-70.6,17.4,-76.9,3.4,-75.4,-9.8C-73.9,-23,-64.6,-35.4,-53.2,-44.6C-41.8,-53.8,-28.3,-59.8,-15.1,-62.4C-1.9,-65,11.5,-64.2,24.9,-63.4L30.5,-83.6" fill="black" /></svg>');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.masonry-grid {
  column-count: 1;
  column-gap: 32px;
}

:is(.page-media, .page-projects) .media-filter-band {
  position: relative;
  z-index: 5;
  margin-top: clamp(-2.4rem, -3vw, -1.8rem);
  padding: 0 0 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(247, 250, 252, 0.68) 28%, rgba(241, 246, 250, 0.92) 100%);
}

:is(.page-media, .page-projects) .media-filter-deck {
  position: relative;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 249, 252, 0.54)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(209, 228, 255, 0.18)),
    radial-gradient(circle at top left, rgba(242, 178, 83, 0.1), transparent 34%),
    radial-gradient(circle at top right, rgba(23, 107, 135, 0.1), transparent 32%);
  box-shadow:
    0 22px 46px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px) saturate(140%);
}

:is(.page-media, .page-projects) .media-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 0.8rem;
  align-items: center;
  justify-content: flex-start;
}

:is(.page-media, .page-projects) .media-filter-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.92rem 1.42rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 250, 0.96));
  color: rgba(38, 58, 86, 0.84);
  font-size: 0.71rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition:
    transform 0.24s ease,
    color 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

:is(.page-media, .page-projects) .media-filter-button::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 30%, rgba(242, 178, 83, 0.34), transparent 42%),
    radial-gradient(circle at 78% 76%, rgba(23, 107, 135, 0.28), transparent 46%);
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.28s ease;
  pointer-events: none;
}

:is(.page-media, .page-projects) .media-filter-button::after {
  content: "";
  position: absolute;
  top: -28%;
  left: -32%;
  width: 34%;
  height: 156%;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.68) 48%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transform: translate3d(-180%, 0, 0) rotate(14deg);
  filter: blur(0.4px);
  transition: transform 0.58s ease, opacity 0.28s ease;
  pointer-events: none;
}

:is(.page-media, .page-projects) .media-filter-button:hover,
:is(.page-media, .page-projects) .media-filter-button:focus-visible {
  transform: translateY(-2px);
  color: var(--primary);
  border-color: rgba(242, 178, 83, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 34px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(242, 178, 83, 0.12);
}

:is(.page-media, .page-projects) .media-filter-button:hover::before,
:is(.page-media, .page-projects) .media-filter-button:hover::after,
:is(.page-media, .page-projects) .media-filter-button:focus-visible::before,
:is(.page-media, .page-projects) .media-filter-button:focus-visible::after {
  opacity: 1;
}

:is(.page-media, .page-projects) .media-filter-button:hover::after,
:is(.page-media, .page-projects) .media-filter-button:focus-visible::after {
  transform: translate3d(370%, 0, 0) rotate(14deg);
}

:is(.page-media, .page-projects) .media-filter-button[aria-pressed="true"] {
  background:
    linear-gradient(135deg, rgba(15, 45, 78, 0.98), rgba(17, 65, 90, 0.96)),
    radial-gradient(circle at top left, rgba(242, 178, 83, 0.16), transparent 30%);
  color: #ffffff;
  border-color: rgba(242, 178, 83, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(8, 28, 48, 0.22);
}

:is(.page-media, .page-projects) .media-filter-button[aria-pressed="true"]::before {
  opacity: 0.5;
}

:is(.page-media, .page-projects) .media-filter-button[aria-pressed="true"]::after {
  opacity: 0.32;
  transform: translate3d(250%, 0, 0) rotate(14deg);
}

body.theme-dark :is(.page-media, .page-projects) .media-filter-button {
  background: rgba(10, 18, 30, 0.82);
  color: rgba(226, 232, 240, 0.8);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: none;
}

body.theme-dark :is(.page-media, .page-projects) .media-filter-button:hover,
body.theme-dark :is(.page-media, .page-projects) .media-filter-button:focus-visible {
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(2, 6, 12, 0.28);
}

body.theme-dark :is(.page-media, .page-projects) .media-filter-button[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(15, 36, 60, 0.98), rgba(18, 74, 99, 0.94));
  color: #ffffff;
}

.page-media .media-gallery-grid-shell {
  display: grid;
  gap: 2rem;
}

.page-media .media-gallery-grid-shell .media-gallery-carousel__head {
  display: block;
}

.page-media .media-gallery-grid-shell .media-gallery-carousel__toolbar {
  display: none;
}

.page-media .media-project-gallery-frame .media-gallery-carousel__edge {
  display: none;
}

.page-media .media-project-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.page-media .media-project-gallery-grid .masonry-item {
  display: block;
  margin: 0;
  break-inside: auto;
  opacity: 1 !important;
  transform: none !important;
}

.page-media .media-project-gallery-grid .masonry-item.hidden {
  display: none !important;
}

.page-media .media-project-gallery-grid a[data-lightbox] {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  box-shadow: 0 18px 36px rgba(15, 45, 78, 0.16);
}

.page-media .media-project-gallery-grid a[data-lightbox]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.page-media .media-project-gallery-grid a[data-lightbox]:hover::after,
.page-media .media-project-gallery-grid a[data-lightbox]:focus-visible::after {
  opacity: 1;
}

.page-media .media-project-gallery-grid img {
  display: block;
  width: 100%;
  height: 15rem;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.page-media .media-project-gallery-grid a[data-lightbox]:hover img,
.page-media .media-project-gallery-grid a[data-lightbox]:focus-visible img {
  transform: scale(1.05);
}

@media (min-width: 640px) {
  .page-media .media-project-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .page-media .media-project-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-media .media-gallery-section {
  position: relative;
  padding-top: clamp(1.15rem, 2.2vw, 1.9rem);
  padding-bottom: clamp(0.8rem, 1.6vw, 1.4rem);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(241, 246, 250, 0.16)),
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0) 42%);
}

.page-media .media-gallery-section::before,
.page-media .media-gallery-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.page-media .media-gallery-section::before {
  inset: 0 auto auto -8%;
  width: clamp(15rem, 30vw, 28rem);
  height: clamp(15rem, 30vw, 28rem);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(242, 178, 83, 0.22) 0%, rgba(242, 178, 83, 0.08) 38%, rgba(242, 178, 83, 0) 72%);
  filter: blur(8px);
  opacity: 0.92;
}

.page-media .media-gallery-section::after {
  inset: auto -4% 0 auto;
  width: clamp(16rem, 32vw, 30rem);
  height: clamp(14rem, 26vw, 22rem);
  background:
    radial-gradient(circle at 50% 50%, rgba(23, 107, 135, 0.18), rgba(23, 107, 135, 0));
  filter: blur(12px);
  opacity: 0.9;
}

.page-media .media-gallery-carousel {
  display: grid;
  gap: 1.35rem;
  min-width: 0;
  position: relative;
  z-index: 1;
  --gallery-portal-line: rgba(228, 183, 106, 0.28);
  --gallery-portal-surface: rgba(228, 238, 248, 0.28);
  --gallery-floor-glow: rgba(96, 151, 201, 0.18);
}

.page-media .media-gallery-carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.page-media .media-gallery-carousel__title-group {
  min-width: 0;
}

.page-media .media-gallery-carousel__frame {
  position: relative;
  isolation: isolate;
  contain: layout paint;
  min-width: 0;
  overflow: hidden;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(244, 248, 252, 0.34) 42%, rgba(231, 239, 247, 0.22)),
    radial-gradient(circle at 18% 12%, rgba(242, 178, 83, 0.16), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(82, 130, 186, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(233, 241, 248, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 18px 36px rgba(53, 88, 123, 0.08),
    0 32px 58px rgba(83, 126, 170, 0.08);
  transform-style: preserve-3d;
  perspective: 2200px;
  padding: clamp(1.35rem, 2.2vw, 1.9rem) clamp(0.95rem, 1.9vw, 1.45rem) clamp(2.9rem, 4.6vw, 3.9rem);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.page-media .media-gallery-carousel__frame::before,
.page-media .media-gallery-carousel__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-media .media-gallery-carousel__frame::before {
  inset: 1px;
  border-radius: 37px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.02) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  opacity: 0.95;
}

.page-media .media-gallery-carousel__frame::after {
  inset: auto 12% -7%;
  height: 22%;
  border-radius: 999px;
  background: radial-gradient(circle, var(--gallery-floor-glow), rgba(15, 45, 78, 0));
  filter: blur(12px);
  opacity: 0.46;
  transform: translateZ(-1px);
}

.page-media .media-gallery-carousel__toolbar {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.84)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(209, 228, 255, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 20px 36px rgba(15, 45, 78, 0.08);
  backdrop-filter: blur(10px) saturate(145%);
}

.page-media .media-gallery-carousel__count {
  min-width: 4.8rem;
  font-size: 0.71rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(15, 45, 78, 0.72);
  font-variant-numeric: tabular-nums;
}

.page-media .media-gallery-carousel__progress {
  position: relative;
  width: clamp(110px, 14vw, 170px);
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.page-media .media-gallery-carousel__progress::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
}

.page-media .media-gallery-carousel__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(242, 178, 83, 0.98), rgba(23, 107, 135, 0.94));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.28s ease;
}

.page-media .media-gallery-carousel__controls {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.page-media .media-gallery-carousel__arrow {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.86)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(209, 228, 255, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(15, 45, 78, 0.12);
  color: #183555;
  backdrop-filter: blur(12px) saturate(150%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.page-media .media-gallery-carousel__arrow::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.04));
  opacity: 0.84;
}

.page-media .media-gallery-carousel__arrow-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-media .media-gallery-carousel__arrow svg {
  width: 1.16rem;
  height: 1.16rem;
}

.page-media .media-gallery-carousel__arrow:hover,
.page-media .media-gallery-carousel__arrow:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 30px rgba(15, 45, 78, 0.16);
  color: var(--primary);
}

.page-media .media-gallery-carousel__arrow:focus-visible {
  outline: 2px solid rgba(242, 178, 83, 0.24);
  outline-offset: 3px;
}

.page-media .media-gallery-carousel__arrow:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 8px 18px rgba(148, 163, 184, 0.08);
}

.page-media .media-gallery-carousel__edge {
  position: absolute;
  top: clamp(2.1rem, 4vw, 2.9rem);
  bottom: clamp(2.5rem, 4vw, 3.2rem);
  width: clamp(5.3rem, 8vw, 6.6rem);
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.45s ease;
  border: 1px solid var(--gallery-portal-line);
  border-radius: 48px 48px 24px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(236, 243, 249, 0.08)),
    linear-gradient(180deg, rgba(228, 183, 106, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 28px rgba(83, 126, 170, 0.08);
  backdrop-filter: blur(10px) saturate(132%);
  opacity: 0.72;
}

.page-media .media-gallery-carousel__edge--left {
  left: 0;
  transform: perspective(1500px) rotateY(50deg) translateX(-14px);
}

.page-media .media-gallery-carousel__edge--right {
  right: 0;
  transform: perspective(1500px) rotateY(-50deg) translateX(14px);
}

.page-media .media-gallery-carousel__edge::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 40px 40px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-media .media-gallery-carousel__edge::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  width: 22px;
  background: linear-gradient(180deg, rgba(228, 183, 106, 0.22), rgba(255, 255, 255, 0));
  filter: blur(6px);
  opacity: 0.62;
}

.page-media .media-gallery-carousel__edge--left::after {
  right: 12px;
}

.page-media .media-gallery-carousel__edge--right::after {
  left: 12px;
  transform: scaleX(-1);
}

.page-media .media-gallery-carousel.is-dragging .media-gallery-carousel__frame {
  cursor: grabbing;
}

.page-media .media-gallery-carousel__viewport.masonry-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  display: block;
  column-count: initial;
  overflow: hidden;
  contain: layout paint;
  height: clamp(520px, 54vw, 680px);
  padding: 0;
  perspective: 2200px;
  transform-style: preserve-3d;
}

.page-media .media-gallery-carousel__viewport::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 56%;
  height: 34%;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transform: rotateX(76deg);
  pointer-events: none;
}

.page-media .media-gallery-carousel__viewport::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 4%;
  height: 14%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(118, 160, 210, 0.12), rgba(15, 45, 78, 0));
  filter: blur(10px);
  pointer-events: none;
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-entering {
  animation: galleryItemReveal 0.76s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--gallery-enter-delay, 0ms);
}

.page-media .media-gallery-carousel__viewport > .masonry-item {
  --gallery-slot-x: 0px;
  --gallery-slot-y: 0px;
  --gallery-slot-z: 0px;
  --gallery-item-rotate-y: 0deg;
  --gallery-item-rotate-x: 0deg;
  --gallery-item-scale: 1;
  --gallery-item-opacity: 1;
  --gallery-item-blur: 0px;
  --gallery-item-saturate: 1;
  --gallery-item-brightness: 1;
  position: absolute;
  left: 50%;
  top: 52%;
  width: clamp(340px, 39vw, 500px);
  margin: 0;
  padding: 0;
  break-inside: auto;
  contain: layout paint style;
  content-visibility: visible;
  will-change: transform, opacity;
  opacity: var(--gallery-item-opacity);
  transform: translate(-50%, -50%) translate3d(var(--gallery-slot-x), var(--gallery-slot-y), 0);
  transform-style: preserve-3d;
  pointer-events: none;
  transition:
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.page-media .media-gallery-carousel.is-gesture-active .media-gallery-carousel__viewport > .masonry-item {
  transition-duration: 0.16s, 0.16s;
}

.page-media .media-gallery-carousel.is-dragging .media-gallery-carousel__viewport > .masonry-item {
  transition: none;
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-active,
.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-near {
  pointer-events: auto;
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-virtual-hidden {
  display: none;
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-outside {
  pointer-events: none;
}

.page-media .media-gallery-carousel__viewport > .masonry-item a {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0.62rem;
  border-radius: 32px;
  border: 1px solid rgba(226, 232, 240, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.86)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(209, 228, 255, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 28px rgba(53, 88, 123, 0.08),
    0 26px 46px rgba(53, 88, 123, 0.1);
  transform:
    perspective(2400px)
    translateZ(var(--gallery-slot-z))
    rotateY(var(--gallery-item-rotate-y))
    rotateX(var(--gallery-item-rotate-x))
    scale(var(--gallery-item-scale));
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform, box-shadow;
  transition:
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease,
    background 0.32s ease;
  backface-visibility: hidden;
}

.page-media .media-gallery-carousel.is-dragging .media-gallery-carousel__viewport > .masonry-item a {
  transition: none;
}

.page-media .media-gallery-carousel__viewport > .masonry-item a::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -10%;
  height: 24%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(242, 178, 83, 0.22), rgba(15, 45, 78, 0));
  filter: blur(12px);
  opacity: 0.26;
  pointer-events: none;
  transform: translateZ(6px);
  transition: opacity 0.42s ease;
}

.page-media .media-gallery-carousel__viewport > .masonry-item a::after {
  content: "";
  position: absolute;
  inset: 0.58rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.page-media .media-gallery-carousel__viewport > .masonry-item img {
  display: block;
  width: 100%;
  height: clamp(380px, 44vw, 520px);
  object-fit: cover;
  border-radius: 24px;
  box-shadow:
    0 18px 30px rgba(53, 88, 123, 0.1),
    0 6px 14px rgba(53, 88, 123, 0.06);
  transition:
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.38s ease;
  will-change: transform;
  filter: saturate(var(--gallery-item-saturate)) brightness(var(--gallery-item-brightness));
  transform: translateZ(28px) scale(1.018);
  backface-visibility: hidden;
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-active a {
  border-color: rgba(242, 178, 83, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 22px 40px rgba(53, 88, 123, 0.12),
    0 34px 60px rgba(53, 88, 123, 0.14);
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-near a {
  border-color: rgba(226, 232, 240, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 24px rgba(53, 88, 123, 0.08),
    0 24px 42px rgba(53, 88, 123, 0.1);
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-far a {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 18px rgba(53, 88, 123, 0.06),
    0 18px 30px rgba(53, 88, 123, 0.08);
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-active img {
  transform: translateZ(36px) scale(1.052);
}

.page-media .media-gallery-card__shine {
  position: absolute;
  inset: -24% 26% 10% -18%;
  border-radius: 42px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0) 54%);
  mix-blend-mode: screen;
  opacity: 0.58;
  pointer-events: none;
  transform: translate3d(0, 0, 38px) rotate(16deg);
  transition:
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease;
}

.page-media .media-gallery-card__meta {
  display: none !important;
}

.page-media .media-gallery-card__eyebrow {
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 232, 198, 0.92);
}

.page-media .media-gallery-card__title {
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

.page-media .media-gallery-carousel__viewport > .masonry-item a:hover,
.page-media .media-gallery-carousel__viewport > .masonry-item a:focus-visible {
  border-color: rgba(242, 178, 83, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 28px 48px rgba(53, 88, 123, 0.14),
    0 42px 74px rgba(53, 88, 123, 0.16);
  transform:
    perspective(2400px)
    translateZ(calc(var(--gallery-slot-z) + 28px))
    rotateY(var(--gallery-item-rotate-y))
    rotateX(calc(var(--gallery-item-rotate-x) - 0.8deg))
    scale(calc(var(--gallery-item-scale) + 0.028));
}

.page-media .media-gallery-carousel__viewport > .masonry-item a:hover::before,
.page-media .media-gallery-carousel__viewport > .masonry-item a:focus-visible::before {
  opacity: 0.58;
}

.page-media .media-gallery-carousel__viewport > .masonry-item a:hover img,
.page-media .media-gallery-carousel__viewport > .masonry-item a:focus-visible img {
  transform: translateZ(44px) scale(1.066);
  filter:
    saturate(calc(var(--gallery-item-saturate) + 0.08))
    brightness(calc(var(--gallery-item-brightness) + 0.04));
}

.page-media .media-gallery-carousel__viewport > .masonry-item a:hover .media-gallery-card__shine,
.page-media .media-gallery-carousel__viewport > .masonry-item a:focus-visible .media-gallery-card__shine,
.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-active .media-gallery-card__shine {
  opacity: 0.94;
  transform: translate3d(0, -4px, 48px) rotate(16deg);
}

@media (prefers-reduced-motion: reduce) {
  .page-media .media-gallery-carousel__viewport {
    scroll-behavior: auto;
  }

  .page-media .media-gallery-carousel__viewport > .masonry-item,
  .page-media .media-gallery-carousel__viewport > .masonry-item a,
  .page-media .media-gallery-carousel__viewport > .masonry-item img,
  .page-media .media-gallery-card__shine {
    animation: none !important;
    transition: none !important;
  }
}

body.theme-dark .page-media .media-gallery-carousel__arrow {
  color: #e2e8f0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.78)),
    linear-gradient(135deg, rgba(148, 163, 184, 0.18), rgba(30, 41, 59, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 28px rgba(2, 8, 18, 0.34);
}

body.theme-dark .page-media .media-gallery-section::before {
  opacity: 0.55;
}

body.theme-dark .page-media .media-gallery-section::after {
  opacity: 0.52;
}

body.theme-dark .page-media .media-gallery-carousel__toolbar,
body.theme-dark .page-media .media-gallery-carousel__controls {
  background: rgba(8, 16, 26, 0.72);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 30px rgba(2, 8, 18, 0.28);
}

body.theme-dark .page-media .media-gallery-carousel__count {
  color: rgba(226, 232, 240, 0.72);
}

body.theme-dark .page-media .media-gallery-carousel__progress {
  background: rgba(148, 163, 184, 0.14);
}

body.theme-dark .page-media .media-gallery-carousel__frame {
  border-color: rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(145deg, rgba(24, 38, 56, 0.78), rgba(33, 52, 74, 0.46) 44%, rgba(52, 82, 112, 0.2)),
    radial-gradient(circle at 18% 16%, rgba(242, 178, 83, 0.12), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(23, 107, 135, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(25, 38, 56, 0.32), rgba(15, 23, 42, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(2, 8, 18, 0.18),
    0 28px 54px rgba(2, 8, 18, 0.16);
}

body.theme-dark .page-media .media-gallery-carousel__arrow:hover,
body.theme-dark .page-media .media-gallery-carousel__arrow:focus-visible {
  color: #ffffff;
}

body.theme-dark .page-media .media-gallery-carousel__edge {
  border-color: rgba(255, 223, 158, 0.18);
  background:
    linear-gradient(180deg, rgba(28, 42, 60, 0.64), rgba(20, 32, 48, 0.24)),
    linear-gradient(135deg, rgba(242, 178, 83, 0.08), rgba(148, 163, 184, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 28px rgba(2, 8, 18, 0.16);
}

body.theme-dark .page-media .media-gallery-carousel__edge::before {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

body.theme-dark .page-media .media-gallery-carousel__edge::after {
  background: linear-gradient(180deg, rgba(242, 178, 83, 0.28), rgba(255, 255, 255, 0.02));
  opacity: 0.88;
}

body.theme-dark .page-media .media-gallery-carousel__viewport > .masonry-item a {
  border-color: rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(20, 31, 47, 0.88), rgba(35, 52, 71, 0.56)),
    linear-gradient(135deg, rgba(148, 163, 184, 0.18), rgba(30, 41, 59, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(2, 8, 18, 0.18),
    0 28px 52px rgba(2, 8, 18, 0.16);
}

body.theme-dark .page-media .media-gallery-carousel__viewport > .masonry-item a::after {
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-active a {
  border-color: rgba(255, 223, 158, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 44px rgba(2, 8, 18, 0.22),
    0 36px 64px rgba(2, 8, 18, 0.18);
}

body.theme-dark .page-media .media-gallery-card__shine {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 58%);
  opacity: 0.55;
}

body.theme-dark .page-media .media-gallery-card__eyebrow {
  color: rgba(255, 222, 171, 0.9);
}

@media (max-width: 640px) {
  :is(.page-media, .page-projects) .media-filter-band {
    margin-top: -1.4rem;
    padding-bottom: 0.9rem;
  }

  :is(.page-media, .page-projects) .media-filter-deck {
    padding: 0.9rem 0.85rem 0.95rem;
    border-radius: 24px;
  }

  :is(.page-media, .page-projects) .media-filter-row {
    gap: 0.65rem;
  }

  :is(.page-media, .page-projects) .media-filter-button {
    min-height: 2.82rem;
    padding: 0.78rem 1.02rem;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .page-media .media-gallery-carousel {
    gap: 1rem;
  }

  .page-media .media-gallery-carousel__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-media .media-gallery-carousel__toolbar {
    width: 100%;
    justify-content: space-between;
    padding-inline: 0.78rem;
  }

  .page-media .media-gallery-carousel__progress {
    flex: 1 1 auto;
    width: auto;
  }

  .page-media .media-gallery-carousel__arrow {
    width: 42px;
    height: 42px;
  }

  .page-media .media-gallery-carousel__viewport.masonry-grid {
    height: clamp(430px, 98vw, 560px);
    padding: 1rem 0.8rem 1.25rem;
  }

  .page-media .media-gallery-carousel__viewport > .masonry-item {
    top: 53%;
    width: min(88vw, 392px);
  }

  .page-media .media-gallery-carousel__viewport > .masonry-item img {
    height: clamp(320px, 84vw, 430px);
  }

  .page-media .media-gallery-carousel__edge {
    top: 1.8rem;
    bottom: 2.2rem;
    width: 4.4rem;
    opacity: 0.68;
  }

  .page-media .media-gallery-card__title {
    font-size: 0.92rem;
  }
}

.page-media .media-gallery-carousel {
  --gallery-card-border: rgba(255, 255, 255, 0.62);
  --gallery-card-shadow:
    0 18px 38px rgba(53, 88, 123, 0.12),
    0 6px 14px rgba(53, 88, 123, 0.06);
}

.page-media .media-gallery-carousel__frame {
  border-radius: 34px;
  border-color: rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(246, 250, 253, 0.22) 42%, rgba(231, 239, 247, 0.14)),
    radial-gradient(circle at 18% 0%, rgba(242, 178, 83, 0.12), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(82, 130, 186, 0.11), transparent 24%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 22px 48px rgba(53, 88, 123, 0.09),
    0 8px 20px rgba(53, 88, 123, 0.05);
  padding: clamp(1rem, 1.9vw, 1.45rem) clamp(0.8rem, 1.7vw, 1.35rem) clamp(2rem, 3.2vw, 2.8rem);
  perspective: none;
  transform-style: flat;
  backdrop-filter: none;
}

.page-media .media-gallery-carousel__frame::before {
  inset: 1px;
  border-radius: 33px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06) 36%, rgba(255, 255, 255, 0));
  opacity: 0.82;
}

.page-media .media-gallery-carousel__frame::after,
.page-media .media-gallery-carousel__viewport::before,
.page-media .media-gallery-carousel__viewport::after {
  content: none;
  display: none;
}

.page-media .media-gallery-carousel__toolbar,
.page-media .media-gallery-carousel__arrow {
  backdrop-filter: none;
}

.page-media .media-gallery-carousel__edge,
body.theme-dark .page-media .media-gallery-carousel__edge {
  display: none;
}

.page-media .media-gallery-carousel__viewport.masonry-grid {
  height: clamp(480px, 50vw, 620px);
  perspective: none;
  transform-style: flat;
  contain: layout paint;
}

.page-media .media-gallery-carousel__viewport > .masonry-item {
  top: 50%;
  width: clamp(360px, 38vw, 520px);
  will-change: auto;
  transform:
    translate(-50%, -50%)
    translate3d(var(--gallery-slot-x), var(--gallery-slot-y), 0)
    scale(var(--gallery-item-scale));
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}

.page-media .media-gallery-carousel.is-gesture-active .media-gallery-carousel__viewport > .masonry-item {
  transition-duration: 0.14s, 0.14s;
}

.page-media .media-gallery-carousel__viewport > .masonry-item a {
  padding: 0.5rem;
  border-radius: 28px;
  border: 1px solid var(--gallery-card-border);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.48), rgba(248, 250, 252, 0.24));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    var(--gallery-card-shadow);
  transform: rotateY(var(--gallery-item-rotate-y));
  transform-style: flat;
  will-change: auto;
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.page-media .media-gallery-carousel__viewport > .masonry-item a::before {
  content: none;
  display: none;
}

.page-media .media-gallery-carousel__viewport > .masonry-item a::after {
  inset: 0.5rem;
  border-radius: 23px;
  border-color: rgba(255, 255, 255, 0.32);
}

.page-media .media-gallery-carousel__viewport > .masonry-item img {
  height: clamp(400px, 44vw, 560px);
  border-radius: 22px;
  box-shadow: 0 12px 24px rgba(53, 88, 123, 0.1);
  transform: scale(var(--gallery-item-image-scale, 1));
  filter: none;
  will-change: auto;
  transition: transform 0.22s ease;
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-active img {
  transform: scale(calc(var(--gallery-item-image-scale, 1) + 0.012));
  filter: none;
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-active a {
  border-color: rgba(242, 178, 83, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 22px 48px rgba(53, 88, 123, 0.15),
    0 8px 18px rgba(53, 88, 123, 0.08);
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-near a {
  border-color: rgba(226, 232, 240, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 16px 32px rgba(53, 88, 123, 0.11),
    0 6px 14px rgba(53, 88, 123, 0.06);
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-far a {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 10px 22px rgba(53, 88, 123, 0.08),
    0 4px 10px rgba(53, 88, 123, 0.04);
}

.page-media .media-gallery-carousel__viewport > .masonry-item a:hover,
.page-media .media-gallery-carousel__viewport > .masonry-item a:focus-visible {
  border-color: rgba(242, 178, 83, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 24px 52px rgba(53, 88, 123, 0.16),
    0 8px 18px rgba(53, 88, 123, 0.08);
  transform: rotateY(var(--gallery-item-rotate-y)) scale(1.012);
}

.page-media .media-gallery-carousel__viewport > .masonry-item a:hover img,
.page-media .media-gallery-carousel__viewport > .masonry-item a:focus-visible img {
  transform: scale(calc(var(--gallery-item-image-scale, 1) + 0.014));
  filter: none;
}

.page-media .media-gallery-card__shine {
  display: none;
}

body.theme-dark .page-media .media-gallery-carousel__frame {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(16, 27, 42, 0.5), rgba(21, 36, 54, 0.22) 42%, rgba(39, 65, 92, 0.16)),
    radial-gradient(circle at 18% 0%, rgba(242, 178, 83, 0.12), transparent 26%),
    radial-gradient(circle at 84% 8%, rgba(99, 164, 212, 0.1), transparent 24%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 46px rgba(2, 8, 18, 0.22),
    0 8px 18px rgba(2, 8, 18, 0.12);
}

body.theme-dark .page-media .media-gallery-carousel__toolbar,
body.theme-dark .page-media .media-gallery-carousel__controls {
  background: rgba(9, 17, 29, 0.48);
  backdrop-filter: none;
}

body.theme-dark .page-media .media-gallery-carousel__arrow {
  background:
    linear-gradient(180deg, rgba(18, 30, 46, 0.86), rgba(27, 42, 60, 0.62)),
    linear-gradient(135deg, rgba(148, 163, 184, 0.14), rgba(30, 41, 59, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(2, 8, 18, 0.24);
  backdrop-filter: none;
}

body.theme-dark .page-media .media-gallery-carousel__viewport > .masonry-item a {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(160deg, rgba(18, 30, 46, 0.52), rgba(25, 41, 62, 0.24));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 38px rgba(2, 8, 18, 0.24),
    0 6px 14px rgba(2, 8, 18, 0.12);
}

body.theme-dark .page-media .media-gallery-carousel__viewport > .masonry-item a::after {
  border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-active a {
  border-color: rgba(255, 223, 158, 0.32);
}

@media (max-width: 640px) {
  .page-media .media-gallery-carousel__frame {
    border-radius: 26px;
    padding: 0.8rem 0.65rem 1.65rem;
  }

  .page-media .media-gallery-carousel__frame::before {
    border-radius: 25px;
  }

  .page-media .media-gallery-carousel__viewport.masonry-grid {
    height: clamp(400px, 94vw, 520px);
  }

  .page-media .media-gallery-carousel__viewport > .masonry-item {
    width: min(90vw, 405px);
  }

  .page-media .media-gallery-carousel__viewport > .masonry-item img {
    height: clamp(330px, 80vw, 440px);
  }
}

.page-media .media-gallery-carousel__viewport.masonry-grid {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.35rem);
  overflow-x: auto;
  overflow-y: hidden;
  min-height: clamp(430px, 47vw, 610px);
  height: auto;
  padding:
    0.75rem
    clamp(11vw, 13vw, 14rem)
    1.15rem;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(11vw, 13vw, 14rem);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  contain: layout paint;
}

.page-media .media-gallery-carousel__viewport.masonry-grid::-webkit-scrollbar {
  display: none;
}

.page-media .media-gallery-carousel__viewport > .masonry-item {
  position: relative;
  left: auto;
  top: auto;
  flex: 0 0 clamp(350px, 36vw, 490px);
  width: clamp(350px, 36vw, 490px);
  margin: 0;
  margin-bottom: 0;
  opacity: var(--gallery-card-opacity, 1);
  transform: none;
  z-index: auto;
  contain: layout paint style;
  scroll-snap-align: center;
  scroll-snap-stop: normal;
  pointer-events: auto;
}

.page-media .media-gallery-carousel__viewport > .masonry-item a {
  transform:
    perspective(1200px)
    rotateY(var(--gallery-card-tilt, 0deg))
    translateY(var(--gallery-card-shift-y, 0px))
    scale(var(--gallery-card-scale, 0.92));
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease;
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-active a {
  border-color: rgba(242, 178, 83, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 38px rgba(53, 88, 123, 0.12),
    0 8px 18px rgba(53, 88, 123, 0.07);
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-near a {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 24px rgba(53, 88, 123, 0.1),
    0 4px 10px rgba(53, 88, 123, 0.05);
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-far a {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 6px 14px rgba(53, 88, 123, 0.08),
    0 2px 8px rgba(53, 88, 123, 0.04);
}

.page-media .media-gallery-carousel__viewport > .masonry-item img {
  width: 100%;
  height: clamp(400px, 43vw, 560px);
  object-fit: cover;
  filter: none;
  transform: scale(var(--gallery-item-image-scale, 0.98));
  transition: transform 0.18s ease;
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-active img {
  transform: scale(var(--gallery-item-image-scale, 1));
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-near img {
  transform: scale(var(--gallery-item-image-scale, 0.985));
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-far img {
  transform: scale(var(--gallery-item-image-scale, 0.965));
}

.page-media .media-gallery-carousel__viewport > .masonry-item a:hover,
.page-media .media-gallery-carousel__viewport > .masonry-item a:focus-visible {
  transform:
    perspective(1200px)
    rotateY(var(--gallery-card-tilt, 0deg))
    translateY(calc(var(--gallery-card-shift-y, 0px) - 2px))
    scale(calc(var(--gallery-card-scale, 0.92) + 0.008));
}

.page-media .media-gallery-carousel__viewport > .masonry-item a:hover img,
.page-media .media-gallery-carousel__viewport > .masonry-item a:focus-visible img {
  transform: scale(calc(var(--gallery-item-image-scale, 0.98) + 0.01));
}

.page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-entering {
  animation: galleryRailReveal 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--gallery-enter-delay, 0ms);
}

body.theme-dark .page-media .media-gallery-carousel__viewport > .masonry-item.is-gallery-active a {
  border-color: rgba(255, 223, 158, 0.28);
}

@media (max-width: 640px) {
  .page-media .media-gallery-carousel__viewport.masonry-grid {
    min-height: 0;
    padding: 0.65rem 6vw 1rem;
    scroll-padding-inline: 6vw;
  }

  .page-media .media-gallery-carousel__viewport > .masonry-item {
    flex-basis: min(84vw, 380px);
    width: min(84vw, 380px);
  }

  .page-media .media-gallery-carousel__viewport > .masonry-item img {
    height: clamp(330px, 78vw, 430px);
  }
}

@keyframes galleryRailReveal {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: var(--gallery-card-opacity, 1);
    transform: translateY(0);
  }
}

@keyframes galleryItemReveal {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate(-50%, -46%) translate3d(var(--gallery-slot-x), calc(var(--gallery-slot-y) + 32px), 0);
  }
  100% {
    opacity: var(--gallery-item-opacity, 1);
    filter: blur(var(--gallery-item-blur, 0px));
    transform: translate(-50%, -50%) translate3d(var(--gallery-slot-x), var(--gallery-slot-y), 0);
  }
}

@media (min-width: 640px) {
  .masonry-grid { column-count: 2; }
}
@media (min-width: 1024px) {
  .masonry-grid { column-count: 3; }
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 32px;
}

.stat-grid {
  display: grid;
  gap: 1.5rem;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(8, 16, 26, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.theme-dark .stat-card {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.2);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(8, 16, 26, 0.35);
}

.feature-card {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(15, 45, 78, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: 0 12px 25px rgba(15, 45, 78, 0.22);
  font-size: 1.2rem;
}

.page-services .feature-icon {
  color: var(--accent);
  background: linear-gradient(135deg, var(--primary), #174766);
  border: 1px solid rgba(242, 178, 83, 0.36);
}

.page-services .feature-card:hover .feature-icon {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-strong), var(--primary));
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  display: grid;
  place-items: center;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 16px 32px rgba(15, 45, 78, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-card img {
  max-height: 54px;
  width: auto;
  opacity: 0.72;
  filter: grayscale(100%);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.partner-card:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

body.theme-dark .partner-card {
  background: rgba(12, 18, 30, 0.75);
  border-color: rgba(148, 163, 184, 0.2);
}

body.theme-dark .partner-card img {
  filter: grayscale(1) brightness(0.95);
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
}

.list-check li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
}

.list-check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  padding: 1.1rem 1.4rem;
  box-shadow: 0 16px 34px rgba(15, 45, 78, 0.12);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 45, 78, 0.08);
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
  background: rgba(242, 178, 83, 0.2);
  color: var(--accent-strong);
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline {
  position: relative;
  padding-left: 2.35rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.62rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 3px;
  background: rgba(15, 45, 78, 0.15);
  border-radius: 999px;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.85rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.04rem;
  top: 0.24rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(242, 178, 83, 0.18);
}

.timeline .info-chip {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.timeline-item > p {
  margin-top: 0.56rem;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--text);
}

.split-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.home-intro {
  margin-top: -1.5rem;
}

.home-service-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.94));
  border: 1px solid rgba(15, 45, 78, 0.08);
  box-shadow: 0 18px 38px rgba(15, 45, 78, 0.07);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-service-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(23, 107, 135, 0.18), transparent 68%);
  pointer-events: none;
}

.home-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(15, 45, 78, 0.11);
}

.home-service-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(15, 45, 78, 0.08);
  color: var(--primary);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.home-service-card__media {
  width: 5.35rem;
  height: 5.35rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 45, 78, 0.08), rgba(23, 107, 135, 0.14));
}

.home-service-card__media img {
  height: 3.5rem;
  width: auto;
}

.home-service-card__eyebrow {
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(15, 45, 78, 0.6);
  font-weight: 800;
}

.home-service-card h3 {
  font-size: 1.18rem;
  color: var(--primary);
}

.home-service-card p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.home-process-card {
  position: relative;
  padding: 1.45rem 1.25rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(15, 45, 78, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 16px 34px rgba(15, 45, 78, 0.06);
  overflow: hidden;
}

.home-process-card::before {
  content: none;
}

.home-process-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--secondary), rgba(23, 107, 135, 0.24));
}

.home-process-card .text-secondary {
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 45, 78, 0.06);
}

.home-process-card p {
  max-width: 24ch;
}

@media (min-width: 768px) {
  .home-intro {
    margin-top: -2.5rem;
  }
}

.showcase-panel {
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.showcase-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(242, 178, 83, 0.18), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(23, 107, 135, 0.18), transparent 45%);
  opacity: 0.6;
  pointer-events: none;
}

.showcase-panel__content,
.showcase-panel__media {
  position: relative;
  z-index: 1;
}

.showcase-panel__media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 280px;
}

.showcase-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.showcase-panel__media:hover img {
  transform: scale(1.03);
}

.showcase-panel__badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(15, 45, 78, 0.92);
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(8, 16, 26, 0.35);
}

@media (min-width: 1024px) {
  .split-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-panel {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 45, 78, 0.15);
  background: var(--surface-glass);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--primary);
  backdrop-filter: blur(6px);
}

.chip-link {
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.chip-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: rgba(15, 45, 78, 0.25);
  transform: translateY(-1px);
}

body.theme-dark .info-chip {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.25);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.archive-notice {
  background: linear-gradient(90deg, rgba(15, 45, 78, 0.95), rgba(23, 107, 135, 0.92));
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.archive-notice__inner {
  width: min(1680px, calc(100% - 1.75rem));
  margin: 0 auto;
  padding: 0.55rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.archive-notice__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.32rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  font-weight: 800;
}

.archive-notice__text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 767.98px) {
  .archive-notice__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.62rem 0;
    gap: 0.35rem;
  }
}

.article-layout {
  display: grid;
  gap: 2.2rem;
  align-items: start;
  grid-template-columns: minmax(0, 1.72fr) minmax(280px, 0.6fr);
}

.article-layout__main {
  min-width: 0;
}

.article-layout__aside {
  min-width: 0;
  position: sticky;
  top: 104px;
}

@media (max-width: 1023.98px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-layout__aside {
    position: static;
    top: auto;
  }
}

.project-hero-title--long {
  font-size: clamp(1.9rem, 4.1vw, 3.85rem) !important;
  max-width: 17ch;
  line-height: 1.08 !important;
  text-wrap: balance;
}

.page-kentsel .article-layout {
  grid-template-columns: minmax(0, 1.98fr) minmax(300px, 0.62fr);
  gap: clamp(1.5rem, 2.5vw, 2.4rem);
}

.page-kentsel .article-layout__main .prose {
  max-width: 78ch;
  font-size: 1.03rem;
  line-height: 1.88;
}

.page-kentsel .article-layout__aside {
  top: 110px;
}

.page-references .timeline-item > p {
  font-size: 1.04rem;
  line-height: 1.8;
}

.page-references .timeline-item {
  padding-bottom: 2.2rem;
}

.page-references .timeline {
  padding-left: 2.65rem;
}

.page-references .timeline::before {
  left: 0.72rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(15, 45, 78, 0.1), rgba(15, 45, 78, 0.32), rgba(15, 45, 78, 0.1));
}

.page-references .timeline-item::before {
  top: 0.32rem;
  width: 15px;
  height: 15px;
}

.page-references .timeline--compact .timeline-item::before {
  top: 0.5rem;
}

.page-references .timeline--compact .timeline-item > p {
  margin-top: 0;
  padding-left: 1rem;
}

.reference-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.reference-stat {
  position: relative;
  min-width: 7rem;
  padding: 0.72rem 0.9rem 0.68rem;
  overflow: hidden;
  border: 1px solid rgba(242, 178, 83, 0.26);
  border-left: 3px solid var(--accent);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(242, 178, 83, 0.13), rgba(15, 45, 78, 0.05));
  box-shadow: 0 18px 38px rgba(15, 45, 78, 0.12);
}

.reference-stat::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: radial-gradient(circle, rgba(242, 178, 83, 0.28), transparent 54%);
  opacity: 0.75;
  animation: referenceStatGlow 3.8s ease-in-out infinite;
}

.reference-stat:nth-child(2)::after {
  animation-delay: 0.45s;
}

.reference-stat__value {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--primary);
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 18px rgba(242, 178, 83, 0.38);
}

.reference-stat__label {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes referenceStatGlow {
  0%,
  100% {
    transform: translateX(-10%) scale(0.9);
    opacity: 0.4;
  }

  50% {
    transform: translateX(10%) scale(1);
    opacity: 0.85;
  }
}

.page-references .timeline .info-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  background: rgba(15, 45, 78, 0.08);
  border-color: rgba(15, 45, 78, 0.15);
}

.page-contact .contact-layout {
  align-items: start !important;
  gap: clamp(1.25rem, 2.2vw, 1.95rem);
}

.page-contact .contact-form-card {
  align-self: start;
  min-height: 0;
  height: auto;
}

.page-contact .contact-sidebar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 1.05rem;
  min-height: 0;
}

.page-contact .contact-sidebar > * + * {
  margin-top: 0 !important;
}

.page-contact .contact-sidebar > .card-surface:not(.contact-location-card) {
  min-height: 100%;
  padding: clamp(1.05rem, 1.45vw, 1.35rem) !important;
}

.page-contact .contact-sidebar > .card-surface:not(.contact-location-card) h3 {
  font-size: clamp(1rem, 1.05vw, 1.15rem);
  line-height: 1.2;
}

.page-contact .contact-sidebar > .card-surface:not(.contact-location-card) .list-check {
  margin-top: 0.85rem;
  line-height: 1.5;
}

.page-contact .contact-sidebar > .card-surface:not(.contact-location-card) .list-check li {
  gap: 0.65rem;
}

.page-contact .contact-sidebar > .card-surface:nth-child(2) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(15, 45, 78, 0.06)),
    #ffffff;
  border-color: rgba(245, 158, 11, 0.34);
}

.page-contact .contact-sidebar > .card-surface:nth-child(2) div {
  margin-top: 0.75rem;
  font-size: clamp(1.18rem, 1.65vw, 1.55rem);
  letter-spacing: 0.05em;
  color: var(--secondary);
}

.page-contact .contact-sidebar > .card-surface:nth-child(2) h3 {
  color: var(--primary);
}

.page-contact .contact-map-card {
  overflow: hidden;
}

.page-contact .contact-location-card {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.9rem;
}

.page-contact .contact-location-card__action {
  min-height: 2.85rem;
}

.page-contact .contact-map-card iframe {
  display: block;
  height: clamp(218px, 32vh, 272px) !important;
}

@media (min-width: 1024px) {
  .page-contact .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .page-contact .contact-form-card,
  .page-contact .contact-sidebar {
    grid-column: auto !important;
  }
}

.page-quote .contact-form-card {
  padding: clamp(1.25rem, 2vw, 1.75rem);
}

.quote-form-heading {
  margin-bottom: 1.15rem;
}

.quote-form-heading h2 {
  margin-top: 0.55rem;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  line-height: 1.14;
  font-weight: 700;
  color: var(--text-strong);
}

.quote-form-heading p:last-child {
  margin-top: 0.65rem;
  max-width: 50ch;
  color: var(--text-muted);
  line-height: 1.65;
}

.quote-form {
  display: grid;
  gap: 1rem;
}

.quote-form-step {
  position: relative;
  padding: 1.15rem 1.2rem 1.1rem;
  border: 1px solid rgba(15, 45, 78, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.94));
  box-shadow: 0 12px 30px rgba(15, 45, 78, 0.05);
}

.quote-form-step::before {
  content: attr(data-step);
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #1f4c79);
  color: #ffffff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(15, 45, 78, 0.18);
}

.quote-form-step legend {
  padding-left: 3rem;
  padding-top: 0.2rem;
}

.quote-form-step__lead {
  padding-left: 3rem;
  margin-top: 0.3rem;
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 58ch;
}

.quote-form-step .border-b-input {
  border-bottom-color: rgba(15, 45, 78, 0.18);
}

.quote-form-submit {
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15, 45, 78, 0.94), rgba(23, 107, 135, 0.85));
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 18px 38px rgba(15, 45, 78, 0.18);
}

.quote-form-submit__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(242, 178, 83, 0.88);
  font-weight: 700;
}

.quote-form-submit__note {
  margin-top: 0.35rem;
  max-width: 44ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(236, 242, 248, 0.82);
}

.quote-form-submit .btn-primary {
  box-shadow: none;
}

.quote-sidebar-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.quote-sidebar-metric {
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(15, 45, 78, 0.05);
  border: 1px solid rgba(15, 45, 78, 0.08);
}

.quote-sidebar-metric strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  color: var(--primary);
}

.quote-sidebar-metric span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.page-quote .contact-sidebar .card-surface,
.page-quote .contact-sidebar .bg-surface-muted {
  box-shadow: 0 12px 28px rgba(10, 25, 45, 0.08);
}

body.theme-dark .quote-form-step {
  background: rgba(16, 24, 38, 0.96);
  border-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .quote-form-step__lead,
body.theme-dark .quote-sidebar-metric span {
  color: rgba(203, 213, 225, 0.78);
}

body.theme-dark .quote-sidebar-metric {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .quote-sidebar-metric strong {
  color: #f8fafc;
}

@media (max-width: 640px) {
  .page-contact .contact-layout,
  .page-quote .contact-layout {
    gap: 0.95rem !important;
  }

  .page-contact .contact-form-card,
  .page-quote .contact-form-card {
    padding: 1rem;
    border-radius: 20px;
  }

  .quote-form-heading {
    margin-bottom: 0.8rem;
  }

  .quote-form-heading p:last-child {
    display: none;
  }

  .quote-form-step {
    padding: 1rem;
    border-radius: 18px;
  }

  .quote-form-step::before {
    top: 0.85rem;
    left: 0.85rem;
    width: 1.8rem;
    height: 1.8rem;
  }

  .quote-form-step legend,
  .quote-form-step__lead {
    padding-left: 2.55rem;
  }

  .quote-form-submit {
    padding: 0.9rem;
  }
}

@media (min-width: 1280px) {
  .page-contact .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.75rem;
  }

  .page-contact .contact-sidebar {
    position: sticky;
    top: 104px;
  }

  .page-references .section-shell > .max-w-6xl {
    max-width: min(1240px, calc(100% - 3rem));
  }
}

@media (max-width: 1023.98px) {
  .page-contact .contact-sidebar {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  .page-contact .contact-sidebar {
    grid-template-columns: 1fr;
  }

  .page-contact .contact-location-card {
    grid-column: auto;
  }
}

.page-news .split-panel {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: clamp(1.35rem, 2.4vw, 2.1rem);
}

.page-news .page-hero__inner {
  grid-template-columns: 1fr;
}

.page-news .split-panel aside {
  display: grid;
  align-content: start;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .page-news .split-panel aside {
    position: sticky;
    top: 102px;
  }
}

@media (max-width: 1023.98px) {
  .page-news .split-panel {
    grid-template-columns: 1fr;
  }

  .page-news .split-panel aside {
    position: static;
    top: auto;
  }
}

.page-project-detail header[data-three-hero] h1,
.page-project-detail .project-hero-title--long {
  font-size: clamp(2.1rem, 4.9vw, 4.85rem) !important;
  line-height: 1.05 !important;
  max-width: 16ch;
  text-wrap: balance;
}

.page-project-detail .project-summary > .max-w-6xl {
  max-width: min(1240px, calc(100% - 3rem));
}

.page-project-detail .project-summary > .max-w-6xl > .grid {
  align-items: start;
}

.page-project-detail .project-summary .space-y-6 {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.page-project-detail .project-summary .card-surface.p-6,
.page-project-detail .project-summary .card-soft.p-6 {
  padding: clamp(1.15rem, 1.7vw, 1.65rem);
}

.page-project-detail .project-summary .card-surface.p-6 .space-y-4 {
  gap: 0.82rem;
}

.page-project-detail .project-summary .media-card,
.page-project-detail .media-card {
  border-radius: 18px;
}

.page-project-detail .project-location-grid {
  display: grid;
  gap: 1.35rem;
  align-items: stretch;
}

.page-project-detail .project-location-copy,
.page-project-detail .project-location-card {
  height: 100%;
  padding: clamp(1.3rem, 2vw, 1.85rem);
  border-radius: 30px;
  border: 1px solid rgba(15, 45, 78, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(247, 249, 251, 0.96));
  box-shadow:
    0 22px 44px rgba(15, 45, 78, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.page-project-detail .project-location-copy {
  display: grid;
  align-content: start;
  gap: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(248, 250, 252, 0.95)),
    radial-gradient(circle at top left, rgba(242, 178, 83, 0.1), transparent 36%),
    radial-gradient(circle at bottom right, rgba(23, 107, 135, 0.08), transparent 28%);
}

.project-location-copy .section-title {
  max-width: 14ch;
}

.project-location-copy .section-eyebrow {
  color: #176b87;
}

.project-location-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.project-location-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(15, 45, 78, 0.07);
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.project-location-note {
  max-width: 46ch;
  color: #475569;
  font-size: 1rem;
  line-height: 1.75;
}

.project-location-caption {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.65;
}

.project-location-action {
  width: fit-content;
  min-height: 2.9rem;
}

.page-project-detail .project-location-card {
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 248, 250, 0.96)),
    radial-gradient(circle at top right, rgba(23, 107, 135, 0.1), transparent 28%);
}

.project-location-map {
  overflow: hidden;
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(15, 45, 78, 0.08);
  background: #dbe4ee;
}

.project-location-map iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 44vh, 410px);
}

.project-location-card__footer {
  display: grid;
  gap: 0.45rem;
  padding: 0 0.15rem 0.15rem;
}

.project-location-card__eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #176b87;
}

.project-location-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
}

.project-location-card__caption {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (min-width: 1024px) {
  .page-project-detail .project-location-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }
}

@media (max-width: 1023px) {
  .project-location-action {
    width: 100%;
    justify-content: center;
  }
}

.page-project-detail > header:first-of-type {
  min-height: clamp(380px, 54vh, 520px) !important;
}

.page-project-detail > header:first-of-type .relative.z-10 {
  min-height: clamp(380px, 54vh, 520px) !important;
  max-width: min(1120px, calc(100% - 3rem));
  padding-top: clamp(5.9rem, 9vw, 7rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  justify-content: end;
}

.page-project-detail > header:first-of-type .badge-pill,
.page-project-detail > header:first-of-type .btn-outline {
  display: none;
}

.page-project-detail > header:first-of-type h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem) !important;
  max-width: 14ch;
}

.page-project-detail > header:first-of-type .text-white\/85 {
  max-width: 46ch;
}

.page-project-detail > header:first-of-type [data-reveal][data-delay="300"] {
  margin-top: 1.4rem !important;
}

.page-project-detail > header:first-of-type .text-white\/80 {
  margin-top: 1rem !important;
}

.page-project-detail .project-gallery-shell {
  margin-top: 1.25rem;
}

.page-project-detail .project-hero--no-image {
  background:
    radial-gradient(circle at 18% 24%, rgba(242, 178, 83, 0.22), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(23, 107, 135, 0.18), transparent 28%),
    linear-gradient(135deg, #0f2d4e 0%, #163a60 48%, #11263f 100%);
}

.page-project-detail .project-stage--no-image {
  background:
    radial-gradient(circle at 16% 24%, rgba(242, 178, 83, 0.14), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(135deg, #0d2743 0%, #123255 55%, #173a60 100%);
}

.project-gallery-note {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 251, 0.96)),
    radial-gradient(circle at top left, rgba(242, 178, 83, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(23, 107, 135, 0.08), transparent 30%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.project-gallery-note p {
  max-width: 62ch;
}

body.theme-dark .page-project-detail .project-location-copy,
body.theme-dark .page-project-detail .project-location-card {
  border-color: rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.92));
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.36);
}

body.theme-dark .project-location-note {
  color: rgba(226, 232, 240, 0.78);
}

body.theme-dark .project-location-caption,
body.theme-dark .project-location-card__caption {
  color: rgba(203, 213, 225, 0.72);
}

body.theme-dark .project-location-pill {
  background: rgba(148, 163, 184, 0.14);
  color: #f8fafc;
}

body.theme-dark .project-location-map {
  border-color: rgba(148, 163, 184, 0.18);
  background: #0f172a;
}

body.theme-dark .project-location-card__eyebrow {
  color: #7dd3fc;
}

body.theme-dark .project-location-card__title {
  color: #f8fafc;
}

.project-card__placeholder {
  position: relative;
  min-height: 14rem;
  display: flex;
  align-items: flex-end;
  padding: 1.35rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(160deg, rgba(15, 45, 78, 0.98), rgba(17, 38, 63, 0.94)),
    radial-gradient(circle at top left, rgba(242, 178, 83, 0.22), transparent 38%),
    radial-gradient(circle at bottom right, rgba(23, 107, 135, 0.24), transparent 34%);
}

.project-card__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.18;
  pointer-events: none;
}

.project-card__placeholder > div {
  position: relative;
  z-index: 1;
}

.project-card__placeholder span {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(242, 178, 83, 0.9);
  font-weight: 800;
}

.project-card__placeholder strong {
  display: block;
  margin-top: 0.45rem;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
}

.page-contact .page-hero--quiet .page-hero__content,
.page-quote .page-hero--quiet .page-hero__content,
.page-policy .page-hero--quiet .page-hero__content {
  max-width: min(840px, 100%);
}

.page-about .page-hero .section-eyebrow.text-accent,
.page-services .page-hero .section-eyebrow.text-accent,
.page-projects .page-hero .section-eyebrow.text-accent,
.page-references .page-hero .section-eyebrow.text-accent,
.page-news .page-hero .section-eyebrow.text-accent,
.page-contact .page-hero .section-eyebrow.text-accent {
  color: var(--accent);
}

body.theme-dark .page-about .page-hero .section-eyebrow.text-accent,
body.theme-dark .page-services .page-hero .section-eyebrow.text-accent,
body.theme-dark .page-projects .page-hero .section-eyebrow.text-accent,
body.theme-dark .page-references .page-hero .section-eyebrow.text-accent,
body.theme-dark .page-news .page-hero .section-eyebrow.text-accent,
body.theme-dark .page-contact .page-hero .section-eyebrow.text-accent {
  color: #fbbf24;
}

.page-contact .contact-sidebar .card-surface,
.page-contact .contact-sidebar .bg-surface-muted,
.page-quote .contact-sidebar .card-surface,
.page-quote .contact-sidebar .bg-surface-muted {
  box-shadow: 0 10px 24px rgba(10, 25, 45, 0.06);
}

.page-contact .page-hero__meta-item,
.page-quote .page-hero__meta-item,
.page-policy .page-hero__meta-item {
  background: rgba(255, 255, 255, 0.12);
}

.page-projects .showcase-panel__badge {
  display: none;
}

.page-policy .policy-content {
  max-width: 44rem;
}

.page-policy .policy-content p,
.page-policy .policy-content li {
  line-height: 1.8;
}

.page-policy .policy-support {
  max-width: min(960px, calc(100% - 3rem));
}

.page-policy .policy-support .info-chip {
  display: none;
}

.project-downloads--compact {
  padding-top: clamp(2.75rem, 5vw, 4.25rem);
  padding-bottom: clamp(2.75rem, 5vw, 4.25rem);
}

.project-downloads__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.35rem;
}

.project-downloads__copy {
  max-width: 44rem;
}

.project-downloads__header .section-title {
  margin: 0;
}

.project-downloads__header .section-lead {
  margin: 0;
}

.project-downloads__hint {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
}

.project-download-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.45rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 45, 78, 0.28) transparent;
}

.project-download-strip::-webkit-scrollbar {
  height: 8px;
}

.project-download-strip::-webkit-scrollbar-thumb {
  background: rgba(15, 45, 78, 0.22);
  border-radius: 999px;
}

.project-download-card {
  --download-accent: #f2b253;
  --download-accent-dark: #0f355b;
  --download-glow: rgba(242, 178, 83, 0.2);
  position: relative;
  flex: 1 0 228px;
  min-width: 228px;
  max-width: 248px;
  padding: 1rem 1rem 0.95rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  color: var(--primary);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  scroll-snap-align: start;
}

.project-download-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--download-accent), var(--download-accent-dark));
}

.project-download-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: var(--download-glow);
  filter: blur(24px);
  pointer-events: none;
}

.project-download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 45, 78, 0.2);
}

.project-download-card__top,
.project-download-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-download-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  background: rgba(15, 45, 78, 0.05);
  border: 1px solid rgba(15, 45, 78, 0.08);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(15, 45, 78, 0.68);
}

.project-download-card__size {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(47, 66, 94, 0.74);
}

.project-download-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.95rem;
}

.project-download-card__symbol {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--download-accent), var(--download-accent-dark));
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.project-download-card__copy {
  min-width: 0;
}

.project-download-card__eyebrow {
  margin: 0;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(47, 66, 94, 0.54);
}

.project-download-card__title {
  margin: 0.38rem 0 0;
  font-size: 1.08rem;
  line-height: 1.15;
  font-weight: 800;
  color: #0f2237;
}

.project-download-card__sub {
  margin: 0.28rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(47, 66, 94, 0.72);
}

.project-download-card__footer {
  margin-top: 1rem;
}

.project-download-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
}

.project-download-card--wide {
  min-width: min(100%, 320px);
  max-width: 360px;
}

.project-download-card--tr {
  --download-accent: #d44d3c;
  --download-accent-dark: #8c291f;
  --download-glow: rgba(212, 77, 60, 0.2);
}

.project-download-card--en {
  --download-accent: #2d7cc7;
  --download-accent-dark: #143b67;
  --download-glow: rgba(45, 124, 199, 0.2);
}

.project-download-card--ru {
  --download-accent: #345fb4;
  --download-accent-dark: #b43a45;
  --download-glow: rgba(92, 89, 186, 0.2);
}

.project-download-card--ar {
  --download-accent: #c99232;
  --download-accent-dark: #6f4f18;
  --download-glow: rgba(201, 146, 50, 0.24);
}

.project-download-card--maracity {
  --download-accent: #f2b253;
  --download-accent-dark: #0f355b;
  --download-glow: rgba(242, 178, 83, 0.22);
}

.project-download-card--ar .project-download-card__body {
  flex-direction: row-reverse;
}

.project-download-card--ar .project-download-card__copy,
.project-download-card--ar .project-download-card__footer {
  text-align: right;
}

.project-download-strip--single {
  overflow: visible;
}

@media (max-width: 767.98px) {
  .project-download-card {
    min-width: min(82vw, 248px);
  }

  .project-download-card--wide {
    min-width: min(88vw, 320px);
  }

  .project-download-card__title {
    font-size: 1rem;
  }
}

.page-error .error-actions {
  margin-top: 1.75rem;
}

.page-error .error-actions .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.redirect-card {
  max-width: 720px;
  margin: 0 auto;
}

.redirect-card .btn-primary {
  min-width: 220px;
}

.media-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 22px 50px rgba(15, 45, 78, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 28, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-card:hover img {
  transform: scale(1.06);
}

.media-card:hover::after {
  opacity: 1;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.media-card__label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.media-card:hover .media-card__label {
  opacity: 1;
}

.video-button {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.video-button:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.video-card {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.video-card-group {
  position: relative;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 45, 78, 0.65), rgba(15, 45, 78, 0.25));
}

.video-card:hover img {
  transform: scale(1.05);
}

.video-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 1;
  color: #ffffff;
  text-align: center;
}

.video-card__label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  font-weight: 700;
}

.video-card__player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #000;
  box-shadow: var(--shadow-strong);
}

.video-card__player-shell[hidden] {
  display: none !important;
}

.video-card__player-shell iframe,
.video-card__player-shell video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.video-card__player-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 18, 34, 0.72);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.video-card__player-close:hover {
  transform: translateY(-1px);
  background: rgba(7, 18, 34, 0.86);
  border-color: rgba(242, 178, 83, 0.42);
}

.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 14, 24, 0.92);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  z-index: 1300;
}

.video-overlay__frame {
  width: min(960px, 92vw);
  background: linear-gradient(180deg, rgba(8, 18, 30, 0.98), rgba(3, 8, 15, 0.98));
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(5, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-overlay__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  color: #ffffff;
  background: rgba(5, 12, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-overlay__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.video-overlay__badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff3030, #d60000);
  box-shadow: 0 14px 28px rgba(214, 0, 0, 0.28);
  font-size: 1.05rem;
}

.video-overlay__meta-text {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.video-overlay__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.video-overlay__title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-overlay__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.video-overlay__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.video-overlay__link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(242, 178, 83, 0.35);
}

.video-overlay__player {
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-overlay iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-overlay__close {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: grid;
  place-items: center;
  background: rgba(8, 16, 26, 0.55);
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.video-overlay__close:hover {
  transform: translateY(-1px);
  background: rgba(8, 16, 26, 0.86);
  border-color: rgba(242, 178, 83, 0.42);
}

@media (max-width: 640px) {
  .video-overlay__topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-overlay__actions {
    width: 100%;
    justify-content: space-between;
  }

  .video-overlay__link {
    flex: 1 1 auto;
  }
}

body.page-home .section-shell {
  padding: clamp(3.1rem, 4.35vw, 4.95rem) 0;
}

body.page-home .home-hero-slider {
  position: relative;
  min-height: clamp(34.5rem, 71vh, 40.5rem);
  background: #0a1829;
  overflow: hidden;
  isolation: isolate;
}

body.page-home .home-hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(242, 178, 83, 0.2), transparent 38%),
    radial-gradient(circle at 85% 18%, rgba(23, 107, 135, 0.18), transparent 34%);
  pointer-events: none;
  z-index: 1;
}

.home-hero-slider__stage {
  position: relative;
  min-height: inherit;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.1s ease;
}

.home-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 2;
}

.home-hero-slide__image,
.home-hero-slide__wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero-slide__image {
  object-fit: cover;
}

.home-hero-slide__wash {
  background:
    linear-gradient(102deg, rgba(6, 18, 34, 0.86) 0%, rgba(6, 18, 34, 0.62) 38%, rgba(8, 20, 34, 0.28) 72%, rgba(8, 20, 34, 0.62) 100%),
    linear-gradient(180deg, rgba(10, 24, 42, 0.08), rgba(10, 24, 42, 0.72));
}

.home-hero-slide__inner {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 3rem));
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(3.35rem, 5.1vw, 4.15rem) 0 clamp(2.45rem, 3.8vw, 3.45rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: end;
}

.home-hero-slide__copy {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.7s ease;
}

.home-hero-slide.is-active .home-hero-slide__copy {
  opacity: 1;
  transform: translateY(0);
}

.home-hero-slide__copy {
  max-width: 59rem;
}

.home-hero-slide__eyebrow {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(242, 178, 83, 0.96);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.home-hero-slide__kicker {
  margin-top: 1.2rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 700;
}

.home-hero-slide__title {
  margin-top: 1rem;
  max-width: 14.2ch;
  font-family: "Fraunces", serif;
  font-size: clamp(2.45rem, 4.15vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #ffffff;
  text-wrap: balance;
}

.home-hero-slide__lede {
  margin-top: 1rem;
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
  line-height: 1.68;
}

.home-hero-slide__actions {
  margin-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.home-hero-slide__metrics {
  margin-top: 1.45rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-hero-slide__metrics--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 32rem;
}

.home-hero-slide__metrics--signature {
  position: relative;
  max-width: 44rem;
  gap: 0;
  padding: 0.72rem;
  overflow: hidden;
  border: 1px solid rgba(242, 178, 83, 0.34);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(9, 30, 55, 0.72), rgba(15, 45, 78, 0.34));
  box-shadow: 0 28px 60px rgba(2, 10, 22, 0.25);
  backdrop-filter: blur(16px);
}

.home-hero-slide__metrics--signature::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  right: 0.8rem;
  left: 0.8rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242, 178, 83, 0.92), rgba(242, 178, 83, 0.1));
}

.home-hero-slide__metrics--signature .home-hero-metric {
  position: relative;
  padding: 1.05rem 1.1rem 0.95rem;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.home-hero-slide__metrics--signature .home-hero-metric + .home-hero-metric {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.home-hero-slide__metrics--signature .home-hero-metric strong {
  color: #ffffff;
  text-shadow: 0 8px 20px rgba(2, 10, 22, 0.26);
}

.home-hero-slide__metrics--signature .home-hero-metric span {
  color: rgba(242, 178, 83, 0.95);
  letter-spacing: 0.13em;
}

.home-hero-metric {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 46px rgba(2, 10, 22, 0.18);
}

.home-hero-metric strong {
  font-size: clamp(1rem, 1.65vw, 1.45rem);
  line-height: 1;
  color: #ffffff;
  font-weight: 800;
}

.home-hero-metric span {
  color: rgba(242, 178, 83, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 700;
}

.home-hero-slider__footer {
  position: relative;
  z-index: 4;
  padding: 1rem 1.5rem 1.35rem;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 -16px 34px rgba(10, 25, 45, 0.08);
}

.home-hero-slider__progress-track {
  width: min(1320px, calc(100% - 0rem));
  height: 3px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: rgba(15, 28, 46, 0.08);
  overflow: hidden;
}

.home-hero-slider__progress-track span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(242, 178, 83, 0.98), rgba(23, 107, 135, 0.95));
  transform-origin: left center;
  transform: scaleX(0);
}

.home-hero-slider__toolbar {
  width: min(1320px, calc(100% - 0rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.home-hero-slider__tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.home-hero-slider__tab {
  display: flex;
  align-items: center;
  min-width: 160px;
  min-height: 56px;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.92);
  color: rgba(15, 28, 46, 0.72);
  text-align: left;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.home-hero-slider__tab strong {
  font-size: 0.86rem;
  line-height: 1.35;
  font-weight: 700;
}

.home-hero-slider__tab:hover,
.home-hero-slider__tab[aria-selected="true"] {
  transform: translateY(-2px);
  border-color: rgba(242, 178, 83, 0.38);
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.home-hero-slider__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-hero-slider__arrow {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #ffffff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.home-hero-slider__arrow:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 178, 83, 0.38);
  background: rgba(15, 45, 78, 0.06);
  color: var(--primary);
}

body.page-home .home-intro {
  margin-top: -0.55rem;
}

.home-intro__points {
  max-width: 38rem;
}

.home-preview-intro {
  margin-top: 0.9rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

body.theme-dark .home-hero-slider__tab,
body.theme-dark .home-hero-slider__arrow,
body.theme-dark .home-hero-metric {
  border-color: rgba(148, 163, 184, 0.18);
}

.home-social-strip {
  background: #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.home-social-strip__inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.home-social-strip__label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
}

.home-social-strip__links {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.home-social-strip__links a {
  color: rgba(15, 28, 46, 0.76);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.home-social-strip__links a:hover {
  transform: translateY(-1px);
  color: var(--secondary);
}

body.theme-dark .home-hero-slider__footer {
  background: rgba(10, 18, 30, 0.96);
  border-top-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 -18px 34px rgba(2, 6, 12, 0.32);
}

body.theme-dark .home-hero-slider__progress-track {
  background: rgba(148, 163, 184, 0.12);
}

body.theme-dark .home-hero-slider__tab {
  background: rgba(7, 18, 34, 0.62);
  color: rgba(241, 245, 249, 0.76);
  box-shadow: none;
}

body.theme-dark .home-hero-slider__tab:hover,
body.theme-dark .home-hero-slider__tab[aria-selected="true"] {
  background: rgba(15, 29, 48, 0.92);
  color: #ffffff;
}

body.theme-dark .home-hero-slider__arrow {
  background: rgba(7, 18, 34, 0.72);
  color: #f8fafc;
  box-shadow: none;
}

body.theme-dark .home-hero-slider__arrow:hover {
  background: rgba(15, 29, 48, 0.92);
}

@media (max-width: 1023.98px) {
  .home-hero-slider {
    min-height: auto;
  }

  .home-hero-slide {
    position: absolute;
  }

  .home-hero-slide__inner {
    width: min(100%, calc(100% - 2rem));
    padding: 4rem 0 3.15rem;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .home-hero-slide__copy {
    max-width: 100%;
  }

  .home-hero-slide__title {
    max-width: 12.2ch;
    font-size: clamp(2.2rem, 7.4vw, 3.45rem);
  }

  .home-hero-slide__lede {
    max-width: 100%;
  }

  .home-hero-slide__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero-metric:last-child {
    grid-column: 1 / -1;
  }

  .home-hero-slider__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-slider__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .home-hero-slider__tabs::-webkit-scrollbar {
    display: none;
  }

  .home-hero-slider__tab {
    min-width: 148px;
  }

  .home-hero-slider__controls {
    justify-content: flex-end;
  }

  .home-social-strip__inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .home-hero-slide__inner {
    width: calc(100% - 1.5rem);
    padding-top: 3.55rem;
    padding-bottom: 2.65rem;
  }

  .home-hero-slide__eyebrow {
    font-size: 0.64rem;
  }

  .home-hero-slide__kicker {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }

  .home-hero-slide__title {
    max-width: 12.1ch;
    font-size: clamp(1.85rem, 8.3vw, 2.62rem);
  }

  .home-hero-slide__lede {
    max-width: 100%;
    font-size: 0.92rem;
    line-height: 1.58;
  }

  .home-hero-slide__actions {
    gap: 0.7rem;
  }

  .home-hero-slide__actions .btn-primary,
  .home-hero-slide__actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .home-hero-metric {
    padding: 0.82rem 0.84rem;
  }

  .home-hero-metric strong {
    font-size: 0.96rem;
  }

  .home-hero-metric span {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .home-hero-slider__footer {
    padding: 0.9rem 0.75rem 0.95rem;
  }

  .home-hero-slider__progress-track {
    margin-bottom: 0.8rem;
  }

  .home-hero-slider__tab {
    min-width: 132px;
    padding: 0.8rem 0.9rem;
  }

  .home-hero-slider__arrow {
    width: 42px;
    height: 42px;
  }

  .home-social-strip__inner {
    padding: 0.85rem 0 1rem;
    flex-direction: column;
  }

  .home-social-strip__label {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .home-social-strip__links {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-slide,
  .home-hero-slide__copy,
  .home-hero-slider__tab,
  .home-hero-slider__arrow {
    transition: none !important;
  }
}

.stat-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.4rem, 2.2vw, 2.5rem);
  align-items: end;
}

.stat-showcase__intro {
  display: grid;
  gap: 1rem;
}

.stat-showcase__lede {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.85;
}

.stat-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.collaboration-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1.45rem;
  min-height: 220px;
  border-radius: 24px;
  border: 1px solid rgba(15, 45, 78, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 240, 232, 0.94));
  box-shadow: 0 18px 36px rgba(15, 45, 78, 0.1);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.collaboration-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -34% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(23, 107, 135, 0.18), transparent 70%);
  pointer-events: none;
}

.collaboration-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px rgba(15, 45, 78, 0.16);
}

.collaboration-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(15, 45, 78, 0.08);
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.collaboration-card h3 {
  color: var(--primary);
  font-size: 1.12rem;
  line-height: 1.22;
}

.collaboration-card p {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.project-list-card,
.page-projects [data-project] {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.project-list-card:hover,
.page-projects [data-project]:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.project-list-card .p-6,
.page-projects [data-project] .p-6 {
  display: grid;
  gap: 0.55rem;
}

.project-list-card .text-secondary,
.page-projects [data-project] .text-secondary {
  display: inline;
  width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 800;
}

.project-list-card [data-lightbox],
.page-projects [data-project] [data-lightbox] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-list-card:hover [data-lightbox],
.page-projects [data-project]:hover [data-lightbox] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.project-list-card .btn-link,
.page-projects [data-project] .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.project-list-card .btn-link::after,
.page-projects [data-project] .btn-link::after {
  content: "→";
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.project-list-card:hover .btn-link::after,
.page-projects [data-project]:hover .btn-link::after {
  transform: translateX(2px);
}

.article-summary {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
  margin-bottom: 1.5rem;
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(15, 45, 78, 0.08);
  background: linear-gradient(180deg, rgba(245, 240, 232, 0.95), rgba(255, 255, 255, 0.96));
}

.article-summary__lead {
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--text);
}

.article-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.article-summary__item {
  display: grid;
  gap: 0.28rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 45, 78, 0.07);
}

.article-summary__item span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 45, 78, 0.62);
  font-weight: 800;
}

.article-summary__item strong {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--primary);
}

.article-quick-nav {
  display: grid;
  gap: 0.7rem;
}

.article-quick-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(240, 233, 223, 0.72);
  border: 1px solid rgba(15, 45, 78, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.article-quick-nav a::after {
  content: "→";
  font-size: 0.9rem;
}

.article-quick-nav a:hover {
  transform: translateX(2px);
  background: rgba(242, 178, 83, 0.16);
}

.article-callout {
  margin-top: 1.2rem;
  padding: 1.2rem 1.35rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 45, 78, 0.98), rgba(23, 107, 135, 0.92));
  box-shadow: 0 22px 42px rgba(15, 45, 78, 0.22);
  color: rgba(255, 255, 255, 0.84);
}

.article-callout span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.64);
}

.article-callout p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.82;
}

.page-kentsel .article-layout__main {
  overflow: visible;
}

.page-kentsel .article-layout__main .prose > h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
  color: var(--primary);
  font-size: clamp(1.34rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.page-kentsel .article-layout__main .prose > p {
  margin-top: 1rem;
}

.page-kentsel .article-layout__main .prose > ul {
  margin: 1.35rem 0 1.7rem;
  padding: 1.2rem 1.25rem 1.2rem 2.4rem;
  border-radius: 22px;
  background: rgba(240, 233, 223, 0.72);
  border: 1px solid rgba(15, 45, 78, 0.08);
}

.project-gallery-shell {
  display: grid;
  gap: 1.5rem;
}

.project-gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.project-gallery-head p {
  max-width: 42rem;
}

.project-gallery-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(15, 45, 78, 0.08);
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.project-gallery-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-gallery-featured > a:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.project-gallery-featured > a {
  min-height: 220px;
}

.project-gallery-more {
  border-radius: 24px;
  border: 1px solid rgba(15, 45, 78, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 32px rgba(15, 45, 78, 0.1);
  overflow: hidden;
}

.project-gallery-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  color: var(--primary);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.project-gallery-more summary::-webkit-details-marker {
  display: none;
}

.project-gallery-more summary::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
}

.project-gallery-more[open] summary::after {
  content: "−";
}

.project-gallery-more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 1.2rem 1.2rem;
}

body.theme-dark .collaboration-card,
body.theme-dark .article-summary,
body.theme-dark .project-gallery-more {
  background: rgba(12, 18, 30, 0.84);
  border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .collaboration-card p,
body.theme-dark .article-summary__item span,
body.theme-dark .article-summary__lead,
body.theme-dark .project-gallery-count {
  color: #cbd5e1;
}

body.theme-dark .article-summary__item,
body.theme-dark .article-quick-nav a,
body.theme-dark .page-kentsel .article-layout__main .prose > ul {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .project-gallery-count {
  background: rgba(148, 163, 184, 0.14);
}

@media (max-width: 1023.98px) {
  .hero-proof-bar,
  .stat-showcase,
  .collaboration-grid,
  .article-summary__grid,
  .project-gallery-head,
  .project-gallery-featured,
  .project-gallery-more__grid {
    grid-template-columns: 1fr;
  }

  .project-gallery-featured > a:first-child {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 767.98px) {
  .hero-proof-item,
  .collaboration-card,
  .article-summary__item {
    padding: 1rem;
  }

  .hero-proof-item__label,
  .project-list-card .btn-link,
  .article-quick-nav a,
  .project-gallery-count,
  .project-gallery-more summary {
    letter-spacing: 0.12em;
  }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

html.reveal-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.reveal-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 26, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
}

.lightbox-figure {
  position: relative;
  display: grid;
  gap: 0.85rem;
  margin: 0;
  justify-items: center;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(8, 16, 26, 0.45);
}

.lightbox-caption {
  max-width: min(760px, 82vw);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: grid;
  place-items: center;
  background: rgba(8, 16, 26, 0.4);
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: grid;
  place-items: center;
  background: rgba(8, 16, 26, 0.48);
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.lightbox-nav:focus-visible,
.lightbox-close:focus-visible {
  box-shadow: 0 0 0 3px rgba(242, 178, 83, 0.5);
}

.lightbox-nav--prev {
  left: clamp(14px, 3vw, 42px);
}

.lightbox-nav--next {
  right: clamp(14px, 3vw, 42px);
}

.lightbox-counter {
  position: absolute;
  left: 24px;
  bottom: 22px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.78rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 16, 26, 0.45);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

@media (max-width: 767.98px) {
  .lightbox-overlay {
    padding: 1rem;
  }

  .lightbox-overlay img {
    max-width: 94vw;
    max-height: 74vh;
  }

  .lightbox-nav {
    top: auto;
    bottom: 22px;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .lightbox-nav--prev {
    left: calc(50% - 58px);
  }

  .lightbox-nav--next {
    right: calc(50% - 58px);
  }

  .lightbox-counter {
    left: 16px;
    bottom: 82px;
  }
}

.video-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 1450;
  isolation: isolate;
}

.video-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 16, 0.82);
  backdrop-filter: blur(12px) saturate(125%);
}

.video-modal__dialog {
  position: relative;
  width: min(1024px, calc(100vw - 1.5rem));
  display: grid;
  gap: 0;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background:
    linear-gradient(180deg, rgba(252, 253, 255, 0.82), rgba(235, 240, 245, 0.74)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(209, 228, 255, 0.24));
  box-shadow:
    0 20px 54px rgba(12, 15, 16, 0.22),
    0 8px 24px rgba(12, 15, 16, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(171, 179, 183, 0.14);
  backdrop-filter: blur(24px) saturate(180%);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.24s ease;
  overflow: hidden;
}

.video-modal.is-visible .video-modal__dialog {
  transform: translateY(0) scale(1);
}

.video-modal__dialog::before,
.video-modal__dialog::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.video-modal__dialog::before {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(209, 228, 255, 0.62), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 26%);
  opacity: 0.92;
}

.video-modal__dialog::after {
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -18px 32px rgba(148, 163, 184, 0.08);
}

.video-modal__header {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
}

.video-modal__open-link,
.video-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
}

.video-modal__open-link {
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, rgba(76, 96, 120, 0.94), rgba(65, 84, 108, 0.9));
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 28px rgba(76, 96, 120, 0.24);
  backdrop-filter: blur(16px) saturate(150%);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.video-modal__close {
  width: 38px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 247, 251, 0.42));
  color: rgba(43, 52, 55, 0.88);
  font-size: 1.28rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(12, 15, 16, 0.08);
  backdrop-filter: blur(12px) saturate(145%);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.video-modal__close:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 24px rgba(12, 15, 16, 0.1);
}

.video-modal__frame-shell {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(219, 228, 231, 0.96), rgba(241, 244, 246, 0.92));
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(171, 179, 183, 0.26);
  outline: 1px solid rgba(171, 179, 183, 0.16);
  outline-offset: -1px;
  box-shadow:
    0 20px 50px rgba(12, 15, 16, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.video-modal__frame-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 28%, transparent 72%, rgba(12, 15, 16, 0.06));
  pointer-events: none;
  z-index: 2;
}

.video-modal__poster,
.video-modal__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-modal__poster {
  display: block;
  z-index: 0;
}

.video-modal__poster img {
  object-fit: cover;
  filter: saturate(1.02) contrast(1.03) brightness(0.98);
  transform: scale(1.005);
  transition: transform 0.6s ease, filter 0.35s ease;
}

.video-modal__poster:hover img,
.video-modal__poster:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.06) brightness(1);
}

.video-modal__poster:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: -2px;
}

.video-modal__poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 15, 16, 0.18), rgba(12, 15, 16, 0.04) 34%, rgba(12, 15, 16, 0.34));
  z-index: 1;
  pointer-events: none;
}

.video-modal__play-cluster {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  z-index: 3;
  pointer-events: none;
}

.video-modal__ripple {
  position: absolute;
  border-radius: 999px;
  animation: video-modal-ripple 2.8s ease-in-out infinite;
}

.video-modal__ripple--outer {
  width: 128px;
  height: 128px;
  background: rgba(255, 223, 158, 0.2);
}

.video-modal__ripple--middle {
  width: 92px;
  height: 92px;
  background: rgba(241, 208, 142, 0.42);
  animation-duration: 2.2s;
}

.video-modal__play-core {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 16px 36px rgba(12, 15, 16, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.video-modal__play-triangle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #4c6078;
}

@keyframes video-modal-ripple {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.56;
  }
}

@media (max-width: 767px) {
  .video-modal {
    padding: 0.75rem;
  }

  .video-modal__dialog {
    width: min(100%, calc(100vw - 1rem));
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .video-modal__open-link {
    padding: 0.68rem 0.92rem;
    font-size: 0.84rem;
  }

  .video-modal__play-cluster {
    width: 112px;
    height: 112px;
  }

  .video-modal__ripple--outer {
    width: 102px;
    height: 102px;
  }

  .video-modal__ripple--middle {
    width: 76px;
    height: 76px;
  }

  .video-modal__play-core {
    width: 52px;
    height: 52px;
  }

}

.toast-container {
  position: fixed;
  right: 1.5rem;
  bottom: 5.25rem;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(420px, calc(100vw - 3rem));
}

.toast {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1rem 1rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  backdrop-filter: blur(12px);
  animation: toast-in 220ms ease forwards;
}

.toast__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  flex: 0 0 auto;
  box-shadow: 0 16px 26px rgba(15, 45, 78, 0.22);
}

.toast--success .toast__icon {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.toast--error .toast__icon {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.toast__title {
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  font-size: 0.95rem;
}

.toast__message {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.toast__close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: rgba(91, 100, 112, 0.9);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.toast__close:hover {
  color: var(--primary);
  background: rgba(15, 45, 78, 0.06);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    width: auto;
    bottom: 6.75rem;
  }
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(15, 45, 78, 0.95);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 34px rgba(15, 45, 78, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  font-size: 0;
  line-height: 1;
  text-indent: 0;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-4px);
}

.cookie-consent.visible ~ .back-to-top {
  bottom: 5.25rem;
}

.back-to-top::before {
  content: "\2191";
  display: block;
  width: 1em;
  height: 1em;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .home-hero-slide__metrics--signature {
    grid-template-columns: 1fr;
  }

  .home-hero-slide__metrics--signature .home-hero-metric,
  .home-hero-slide__metrics--signature .home-hero-metric:last-child {
    grid-column: auto;
  }

  .home-hero-slide__metrics--signature .home-hero-metric + .home-hero-metric {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }
}

.cookie-consent {
  position: fixed;
  --cookie-consent-x: 0%;
  right: 1rem;
  bottom: 1rem;
  transform: translateX(var(--cookie-consent-x));
  width: min(392px, calc(100% - 2rem));
  background: linear-gradient(135deg, rgba(15, 45, 78, 0.94), rgba(16, 46, 82, 0.9));
  color: #ffffff;
  padding: 0.76rem 0.84rem;
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(15, 45, 78, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  display: none;
  z-index: 1200;
  transition: opacity 0.18s ease, transform 0.22s ease;
}

.cookie-consent.visible {
  display: block;
  animation: cookie-consent-enter 0.22s ease-out both;
}

.cookie-consent__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-consent__content {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.cookie-consent__content h4 {
  margin: 0;
  max-width: 30ch;
  font-size: 0.95rem;
  line-height: 1.18;
}

.cookie-consent__content p {
  margin-top: 0;
  max-width: 44ch;
  font-size: 0.78rem;
  line-height: 1.34;
}

.cookie-consent__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242, 178, 83, 0.8);
  font-weight: 700;
}

.cookie-consent__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: rgba(242, 178, 83, 0.95);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.cookie-consent__toggle::after {
  content: "+";
  font-size: 0.88rem;
  line-height: 1;
}

.cookie-consent.is-expanded .cookie-consent__toggle::after {
  content: "\2212";
}

.cookie-consent.is-compact .cookie-consent__content p {
  display: none;
}

.cookie-consent.is-compact .cookie-consent__content {
  gap: 0.16rem;
}

.cookie-consent.is-compact {
  width: min(390px, calc(100% - 2rem));
  padding: 0.72rem 0.82rem;
}

.cookie-consent.is-compact .cookie-consent__content h4 {
  font-size: 0.95rem;
}

.cookie-consent.is-compact .cookie-consent__actions button {
  padding: 0.46rem 0.8rem;
  font-size: 0.62rem;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-consent__actions button {
  border-radius: 999px;
  padding: 0.46rem 0.92rem;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  white-space: nowrap;
}

body.menu-open .cookie-consent.visible,
body.menu-open .back-to-top.visible {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateX(var(--cookie-consent-x)) translateY(10px) !important;
}

body.menu-open .cookie-consent.visible {
  animation: none !important;
}

@media (min-width: 768px) {
  .cookie-consent__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .cookie-consent__actions {
    justify-content: flex-end;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .video-modal {
    padding: 0.75rem;
  }

  .video-modal__dialog {
    width: min(100%, 680px);
    padding: 0.6rem;
  }

  .video-modal__header {
    flex-wrap: wrap;
  }

  .video-modal__open-link {
    flex: 1 1 auto;
  }

  .video-modal__frame-shell::after {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    font-size: 0.62rem;
    text-align: center;
  }

  .video-modal__play-badge {
    width: 64px;
    height: 64px;
  }

  .video-modal__play-badge::before {
    border-top-width: 11px;
    border-bottom-width: 11px;
    border-left-width: 18px;
  }

  .home-hero__title {
    max-width: 8.8ch;
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .home-hero__lede {
    font-size: 0.92rem;
    line-height: 1.58;
  }

  .hero-proof-bar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero-proof-item {
    padding: 0.9rem 1rem;
    border-radius: 18px;
  }

  .home-preview-intro {
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .cookie-consent {
    --cookie-consent-x: 0%;
    left: 0.4rem;
    right: 0.4rem;
    bottom: 0.4rem;
    width: auto;
    transform: translateX(var(--cookie-consent-x));
    padding: 0.32rem 0.42rem;
    border-radius: 8px;
    max-height: min(14vh, 110px);
    overflow-y: auto;
  }

  .cookie-consent__inner {
    gap: 0.24rem;
  }

  .cookie-consent__eyebrow {
    display: none;
  }

  .cookie-consent__content h4 {
    font-size: 0.68rem;
    line-height: 1.02;
  }

  .cookie-consent__content p {
    font-size: 0.72rem;
    line-height: 1.1;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.22rem;
  }

  .cookie-consent__actions button {
    width: 100%;
    padding: 0.28rem 0.5rem;
    font-size: 0.58rem;
  }

   .cookie-consent__toggle {
    font-size: 0.5rem;
    letter-spacing: 0.14em;
  }
}

@keyframes cookie-consent-enter {
  from {
    opacity: 0;
    transform: translateX(var(--cookie-consent-x)) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(var(--cookie-consent-x)) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent.visible {
    animation: none;
  }
}

.border-b-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(15, 45, 78, 0.2);
  padding: 0.75rem 0;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.border-b-input:focus {
  outline: none;
  border-bottom-color: var(--secondary);
  box-shadow: 0 2px 0 var(--secondary);
}

.policy-content h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.policy-content ul {
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #efe8dd; }
::-webkit-scrollbar-thumb { background: #bbaea1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9f9286; }

.fx-cinematic [data-three-hero],
.fx-cinematic [data-three-project-wall],
.fx-cinematic [data-three-gallery-wall] {
  position: relative;
  overflow: hidden;
}

.fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fx-layer--hero {
  mix-blend-mode: screen;
  opacity: 0.78;
}

.fx-layer--gallery {
  background-image: linear-gradient(90deg, rgba(242, 178, 83, 0.15), rgba(23, 107, 135, 0.08), rgba(255, 255, 255, 0.04));
  opacity: 0.55;
}

.fx-cinematic [data-three-hero] > *:not(.fx-layer):not(.absolute),
.fx-cinematic [data-three-project-wall] > *:not(.fx-layer):not(.absolute),
.fx-cinematic [data-three-gallery-wall] > *:not(.fx-layer):not(.absolute) {
  position: relative;
  z-index: 1;
}

.fx-project-card {
  transform-style: preserve-3d;
  transition: transform var(--fx-motion-duration) ease, box-shadow var(--fx-motion-duration) ease;
  will-change: transform;
}

.fx-fallback .fx-layer,
.fx-disabled .fx-layer,
[data-three-disabled] .fx-layer {
  display: none !important;
}

body.onka-modern section.py-16 {
  padding-top: var(--section-shell-y) !important;
  padding-bottom: var(--section-shell-y) !important;
}

body.onka-modern section.py-12 {
  padding-top: clamp(2.6rem, 3.5vw, 3.5rem) !important;
  padding-bottom: clamp(2.6rem, 3.5vw, 3.5rem) !important;
}

body.onka-modern section.py-14 {
  padding-top: clamp(3rem, 4vw, 4.25rem) !important;
  padding-bottom: clamp(3rem, 4vw, 4.25rem) !important;
}

body.onka-modern section.py-20 {
  padding-top: clamp(4.4rem, 5.8vw, 6.4rem) !important;
  padding-bottom: clamp(4.4rem, 5.8vw, 6.4rem) !important;
}

@media (max-width: 767.98px) {
  .fx-layer--hero {
    opacity: 0.58;
  }

  .card-surface,
  .card-soft {
    box-shadow: 0 12px 24px rgba(10, 25, 45, 0.14);
  }
}


