/* Custom Scrollbar - Modern & Slim */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(22, 19, 23, 0.12);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

:root {
  --primary: #C8C0C5;
  --primary-hover: #ffffff;
  --accent: #FFFFFF;
  --text-dark: #FFFFFF;
  --text-light: #C8C0C5;
  --bg-dark: #1F1B1F;
  --bg-light: #302A2F;
  --bg-section: #302A2F;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --site-header-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html.lenis,
html.lenis body {
  height: auto;
}

html {
  scrollbar-gutter: stable;
}

/* Inline Lenis baseline styles to avoid an extra stylesheet request. */
.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent],
.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
  overflow-x: clip;
  background-image: radial-gradient(circle at top right, rgba(200, 192, 197, 0.08), transparent 50%),
    radial-gradient(circle at bottom left, rgba(200, 192, 197, 0.03), transparent 50%);
  background-attachment: scroll;
}

html.is-scroll-locked,
body.is-scroll-locked {
  overflow: hidden;
}

html,
body {
  width: 100%;
  max-width: 100%;
}

html {
  overflow-x: hidden;
  overflow-x: clip;
}

main,
#swup,
.transition-fade {
  width: 100%;
  max-width: 100%;
}

i {
  height: auto !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

h1 {
  font-size: 4.5rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 3.5rem;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 2.2rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.9;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.4s ease;
}

a:hover {
  color: var(--accent);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: 75px 0;
  position: relative;
}

.section-title {
  text-align: left;
  margin-bottom: 60px;
  color: var(--text-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-weight: 500;
  border-radius: 99px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid transparent;
  font-size: 1.05rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-clip: padding-box;
}

.btn-primary {
  background-color: var(--primary);
  color: #302A2F;
}

.btn-primary:hover {
  background-color: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(200, 192, 197, 0.2);
}

.btn-accent {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-accent:hover {
  background-color: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.site-header {
  background-color: rgba(22, 19, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a,
.nav-links__contact {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links__contact:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: #1F1B1F;
  background: var(--primary);
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(200, 192, 197, 0.25);
}

.nav-links__contact {
  border: 1px solid rgba(200, 192, 197, 0.24);
  background: linear-gradient(135deg, rgba(200, 192, 197, 0.14), rgba(255, 255, 255, 0.06));
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.nav-links__contact:hover {
  background: linear-gradient(135deg, rgba(200, 192, 197, 0.2), rgba(255, 255, 255, 0.09));
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.nav-links__contact:focus-visible {
  outline: 2px solid rgba(200, 192, 197, 0.5);
  outline-offset: 2px;
}

.nav-panel {
  display: contents;
}

.nav-panel__intro,
.nav-panel__footer,
.nav-toggle,
.nav-backdrop {
  display: none;
}

.nav-panel__eyebrow,
.nav-panel__footer-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
}

.nav-panel__copy {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.nav-panel__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-panel__social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-panel__social a:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

.nav-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  color: var(--text-dark);
  border-radius: 999px;
  padding: 12px 16px;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.nav-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.nav-toggle__icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 16, 20, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.mobile-nav-open {
  overflow: hidden;
}

body.mobile-nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.mobile-nav-open .site-header {
  z-index: 110;
}

.hero {
  background-color: transparent;
  color: var(--text-dark);
  padding: 240px 0 120px;
  text-align: left;
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 6rem;
  margin-bottom: 20px;
  line-height: 1.1;
  max-width: 1200px;
}

.hero .subtitle {
  font-size: 2rem;
  font-weight: 300;
  opacity: 0.8;
  max-width: 900px;
}

.page-hero {
  --hero-image: none;
  --hero-accent: var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(150px, 16vw, 210px) 0 clamp(84px, 8vw, 120px);
  min-height: 72vh;
  background-color: var(--bg-dark);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(31, 27, 31, 0.96) 0%, rgba(31, 27, 31, 0.84) 48%, rgba(31, 27, 31, 0.94) 100%),
    radial-gradient(circle at 18% 18%, rgba(200, 192, 197, 0.16), transparent 32%),
    radial-gradient(circle at 82% 82%, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: auto -12rem -12rem auto;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 192, 197, 0.16) 0%, rgba(200, 192, 197, 0) 72%);
  filter: blur(8px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  animation: heroFloat 16s ease-in-out infinite;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.page-hero__panel {
  width: 100%;
  max-width: 1280px;
  padding: clamp(30px, 4.5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius-lg) + 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.page-hero__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.page-hero__panel::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hero-accent), transparent);
  opacity: 0.55;
}

.page-hero__panel>* {
  position: relative;
  z-index: 1;
}

.page-hero__eyebrow,
.page-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  font-weight: 600;
}

.page-hero__eyebrow::before,
.page-hero__kicker::before {
  content: '';
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--hero-accent), rgba(255, 255, 255, 0));
}

.page-hero h1 {
  margin: 0;
  max-width: none;
  width: max-content;
  font-size: clamp(1rem, 4.7vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: #fff;
  white-space: nowrap;
  text-wrap: nowrap;
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.12s;
}

.page-hero__lead {
  max-width: 860px;
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.22s;
}

.page-hero__body {
  max-width: 780px;
  margin-top: 18px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.68);
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.3s;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.38s;
}

.page-hero__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(200, 192, 197, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.46s;
}

.page-hero--center .container {
  justify-content: center;
}

.page-hero--center .page-hero__panel {
  text-align: center;
}

.page-hero--center .page-hero__eyebrow,
.page-hero--center .page-hero__kicker,
.page-hero--center .page-hero__meta,
.page-hero--center .page-hero__actions {
  justify-content: center;
}

.page-hero--center h1,
.page-hero--center .page-hero__lead,
.page-hero--center .page-hero__body {
  margin-left: auto;
  margin-right: auto;
}

.page-hero--right .container {
  justify-content: flex-end;
}

.page-hero--right .page-hero__panel {
  margin-left: auto;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-18px, 18px, 0) scale(1.06);
  }
}

@media (max-width: 900px) {
  .page-hero {
    min-height: auto;
    padding: 150px 0 80px;
  }

  .page-hero__panel {
    padding: 24px 20px;
  }

  .page-hero h1 {
    font-size: clamp(1rem, 4.7vw, 3.2rem);
  }

  .page-hero__lead {
    font-size: 1.08rem;
  }
}

@media (max-width: 640px) {
  .page-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero__actions .btn {
    width: 100%;
  }

  .page-hero__meta {
    gap: 10px;
  }

  .page-hero__chip {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .page-hero::after,
  .page-hero__eyebrow,
  .page-hero__kicker,
  .page-hero h1,
  .page-hero__lead,
  .page-hero__body,
  .page-hero__meta,
  .page-hero__actions {
    animation: none !important;
  }

  .carousel-track,
  .page-transition-loader__icon,
  .initial-loader__icon {
    animation: none !important;
  }
}

.split-section {
  display: flex;
  align-items: center;
  gap: 80px;
}

.split-content {
  flex: 1;
}

.split-image {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.split-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(48, 42, 47, 0.2);
  pointer-events: none;
}

.split-image img,
.split-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.split-image:hover img,
.split-image:hover video {
  transform: scale(1.05);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 40px;
}

.card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: block;
}

.card:hover {
  transform: translateY(-10px);
  color: inherit;
}

.card-img,
.portfolio-card-media,
.media-card-media {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.7s ease;
  filter: brightness(0.85);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover .card-img,
.card:hover .portfolio-card-media,
.card:hover .media-card-media {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.card-content {
  padding: 30px 0;
}

.transition-fade {
  transition: opacity 0.2s ease;
  opacity: 1;
  transform: none;
}

html.is-animating .transition-fade {
  opacity: 0;
}

body:not(.admin-page)::before {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--admin-toolbar-height, 0px) + var(--site-header-height, 72px));
  bottom: 0;
  z-index: 1450;
  pointer-events: none;
  opacity: 0;
  background: #1A171B;
  transition: opacity 0.24s ease;
}

html.is-animating body:not(.admin-page)::before {
  opacity: 1;
}

.page-transition-loader {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--admin-toolbar-height, 0px) + var(--site-header-height, 72px));
  bottom: 0;
  z-index: 1460;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.1s ease, transform 0.1s ease;
}

body.is-page-transition-loading .page-transition-loader {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.page-transition-loader__icon {
  position: relative;
  font-size: clamp(2rem, 3.8vw, 3rem);
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.18);
  animation: spin 0.65s linear infinite;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(31, 27, 31, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-wrapper {
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 40px 100px;
  overflow-y: auto;
  transform: translateY(40px);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: none;
}

#global-modal-content {
  max-width: 100%;
  padding: 0;
}

.modal-content-wrapper::-webkit-scrollbar {
  display: none;
}

#global-modal {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#global-modal.video-active .modal-content-wrapper,
#global-modal.video-closing .modal-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.detail-shell,
.media-detail-shell {
  background: var(--bg-dark);
  /* Solid opaque backdrop */
  width: 100%;
  min-height: 100%;
}

.modal-overlay.active .modal-content-wrapper {
  transform: translateY(0);
}

.modal-close-btn {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: rotate(90deg);
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0;
  padding: clamp(84px, 8vw, 118px) 0 clamp(24px, 3vw, 36px);
  color: var(--text-dark);
  background:
    linear-gradient(180deg, rgba(18, 14, 19, 0.96) 0%, rgba(14, 11, 15, 1) 100%),
    radial-gradient(circle at top left, rgba(200, 192, 197, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 24%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 140px, 140px 100%;
  opacity: 0.14;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
  pointer-events: none;
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: auto -10rem -12rem auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 192, 197, 0.16) 0%, rgba(200, 192, 197, 0) 72%);
  filter: blur(8px);
  opacity: 0.8;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 54px);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.site-footer__hero {
  max-width: 760px;
  min-width: 0;
}

.site-footer__eyebrow,
.site-footer__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__eyebrow::before,
.site-footer__label::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), rgba(255, 255, 255, 0));
}

.site-footer__brand {
  display: inline-flex;
  font-size: clamp(2.3rem, 4vw, 4.3rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  color: #fff;
  text-wrap: balance;
}

.site-footer__brand:hover {
  color: var(--primary);
}

.site-footer__lead {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin-top: 18px;
  font-size: 1.03rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
  text-wrap: balance;
}

.site-footer__lead-line {
  display: block;
}

.site-footer__lead-line--strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.site-footer__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.site-footer__button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 192, 197, 0.22);
  color: #fff;
}

.site-footer__explore {
  position: relative;
  width: min(100%, 520px);
  justify-self: end;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(200, 192, 197, 0.12), transparent 38%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  min-width: 0;
  overflow: hidden;
}

.site-footer__explore::before {
  content: '';
  position: absolute;
  inset: -72px auto auto -72px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.site-footer__explore-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.site-footer__explore-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.65;
}

.site-footer__nav-grid {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.site-footer__nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.site-footer__nav-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(200, 192, 197, 0.22);
  color: #fff;
}

.site-footer__nav-link:hover .site-footer__nav-arrow {
  background: rgba(200, 192, 197, 0.22);
  color: #fff;
}

.site-footer__nav-grid-item--cta {
  grid-column: 1 / -1;
}

.site-footer__link-title {
  font-weight: 500;
}

.site-footer__nav-arrow {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.site-footer__nav-link--contact {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
  border-color: rgba(200, 192, 197, 0.2);
  background: linear-gradient(135deg, rgba(200, 192, 197, 0.14), rgba(255, 255, 255, 0.06));
  color: #fff;
}

.site-footer__nav-link--contact:hover {
  background: linear-gradient(135deg, rgba(200, 192, 197, 0.2), rgba(255, 255, 255, 0.09));
  border-color: rgba(200, 192, 197, 0.3);
}

.site-footer__nav-link--contact .site-footer__nav-arrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-footer__nav-arrow i {
  font-size: 0.84rem;
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.94rem;
}

.site-footer__bottom p {
  margin: 0;
  font-size: inherit;
  opacity: 1;
}

.site-footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.site-footer__top-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 192, 197, 0.24);
  color: #fff;
}

.carousel-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-track {
  display: inline-flex;
  align-items: center;
  gap: 80px;
  padding: 40px 0;
  animation: scrollCarousel 30s linear infinite;
}

.carousel-track img {
  height: 60px;
  object-fit: contain;
  filter: brightness(0.6) grayscale(100%);
  opacity: 0.6;
  transition: 0.4s ease;
}

.carousel-track img:hover {
  filter: brightness(1) grayscale(0%);
  opacity: 1;
}

@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.text-center {
  text-align: center;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .portfolio-grid,
  .media-grid,
  .home-media-grid,
  .grid-projects {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .container {
    padding: 0 20px;
  }

  .split-section {
    flex-direction: column;
  }

  .nav-container {
    padding: 12px 20px;
    align-items: center;
    gap: 12px;
  }

  .page-hero h1,
  .hero h1 {
    width: auto;
    max-width: 100%;
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 3.2rem);
    line-height: 1;
  }

  .page-hero__panel {
    padding: 24px 20px;
    min-width: 0;
  }

  .page-hero__panel,
  .detail-shell,
  .media-detail-shell,
  .impact-panel,
  .career-panel,
  .aca-panel,
  .podcast-card,
  .bg-panel,
  .home-media-card,
  .home-section-header__copy,
  .home-section-header__actions {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-backdrop {
    display: block;
  }

  .nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(var(--admin-toolbar-height, 0px) + var(--site-header-height, 72px) + 12px);
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px) scale(0.985);
    pointer-events: none;
    transition:
      opacity 0.35s ease,
      transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0.35s;
    display: block;
  }

  .nav-panel {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: min(100%, 520px);
    margin-left: auto;
    margin-right: auto;
    padding: 24px 22px 22px;
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(16, 13, 17, 0.96), rgba(16, 13, 17, 0.86)),
      radial-gradient(circle at top right, rgba(200, 192, 197, 0.16), transparent 34%),
      radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 30%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    max-height: calc(100dvh - var(--admin-toolbar-height, 0px) - var(--site-header-height, 72px) - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-panel__intro,
  .nav-panel__footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nav-panel__intro {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-panel__footer {
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a,
  .nav-links__contact {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    letter-spacing: 0.01em;
  }

  .nav-links a::after {
    content: '>';
    font-size: 1rem;
    opacity: 0.42;
    transform: translateX(0);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links a:hover::after,
  .nav-links a.active::after {
    transform: translateX(2px);
    opacity: 0.9;
  }

  .nav-links a.active {
    color: #1F1B1F;
    background: var(--primary);
  }

  .nav-links__contact {
    border: 1px solid rgba(200, 192, 197, 0.22);
    background: linear-gradient(135deg, rgba(200, 192, 197, 0.16), rgba(255, 255, 255, 0.07));
    color: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  }

  .nav-links__contact:hover {
    background: linear-gradient(135deg, rgba(200, 192, 197, 0.22), rgba(255, 255, 255, 0.1));
    color: #fff;
  }

  body.mobile-nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition:
      opacity 0.35s ease,
      transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s;
  }

  .nav-toggle.is-open .nav-toggle__icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open .nav-toggle__icon span:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
  }

  .nav-toggle.is-open .nav-toggle__icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .modal-content-wrapper {
    padding: 84px 16px 24px;
  }

  .modal-close-btn {
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }

  .site-footer {
    padding: 72px 0 28px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .site-footer__explore {
    justify-self: stretch;
    width: 100%;
    padding: 22px;
  }

  .site-footer__nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 22px;
  }

  .site-footer__top-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 64px 0 24px;
  }

  .site-footer__brand {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .site-footer__lead {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .site-footer__actions {
    flex-direction: column;
  }

  .site-footer__button {
    width: 100%;
    justify-content: center;
  }

  .site-footer__nav-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__nav-link {
    padding: 12px 14px;
  }
}

.cat-filter {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 18px;
  border-radius: 99px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.cat-filter:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dark);
}

.cat-filter.active {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

.archive-controls {
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.archive-controls__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 20px;
  flex-wrap: wrap;
}

.archive-controls__sorting {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.archive-controls__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.archive-controls .custom-select {
  min-width: 220px;
}

@media (max-width: 768px) {
  .archive-controls {
    margin-bottom: 20px;
  }

  .archive-controls__sorting {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    justify-content: flex-start;
  }

  .archive-controls .custom-select {
    width: 100%;
    min-width: 0;
  }

  .archive-controls__chips {
    width: 100%;
  }

  .archive-controls .cat-filter {
    flex: 1 1 calc(50% - 10px);
  }
}

@media (max-width: 520px) {
  .archive-controls .cat-filter {
    flex-basis: 100%;
  }
}

.portfolio-item.hidden {
  display: none !important;
}

#greetings-modal .modal-content {
  background-color: var(--bg-dark);
  color: var(--text-dark);
  margin: 0;
  padding: 60px;
  width: 100%;
  max-width: 1080px;
  max-height: min(780px, calc(100svh - 80px));
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#greetings-modal .modal-content-wrapper {
  overflow: hidden;
}

#greetings-modal .modal-text-col {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#contact-modal {
  background: rgba(24, 20, 25, 0.94);
}

#contact-modal .modal-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1280px;
  padding: clamp(84px, 8vw, 112px) 24px 44px;
}

#contact-modal .modal-close-btn {
  top: 24px;
  right: 24px;
}

body.has-admin-toolbar #contact-modal .modal-close-btn {
  top: calc(var(--admin-toolbar-height, 52px) + 16px);
}

.contact-modal__shell {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(27, 23, 28, 0.98), rgba(39, 33, 38, 0.98));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.42);
  transform: translateY(32px) scale(0.985);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

#contact-modal.active .contact-modal__shell {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.contact-modal__info {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(180deg, rgba(31, 27, 31, 0.98), rgba(20, 17, 21, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-modal__eyebrow,
.contact-modal__detail-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
}

.contact-modal__eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), rgba(255, 255, 255, 0));
}

.contact-modal__title {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  color: #fff;
}

.contact-modal__lead {
  margin: 0;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
  line-height: 1.7;
}

.contact-modal__details {
  display: grid;
  gap: 14px;
}

.contact-modal__detail {
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-modal__detail-value {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-modal__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-modal__note i {
  margin-top: 4px;
  color: var(--primary);
}

.contact-modal__form {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 42px;
  background: linear-gradient(180deg, rgba(50, 42, 48, 0.96), rgba(38, 32, 37, 0.98));
}

.contact-modal__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-modal__field {
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.contact-modal__field input,
.contact-modal__field textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 16px 18px;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-modal__field input::placeholder,
.contact-modal__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.contact-modal__field input:focus,
.contact-modal__field textarea:focus {
  outline: none;
  border-color: rgba(200, 192, 197, 0.34);
  box-shadow: 0 0 0 4px rgba(200, 192, 197, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.contact-modal__field.is-invalid input,
.contact-modal__field.is-invalid textarea {
  border-color: rgba(255, 128, 128, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 128, 128, 0.08);
}

.contact-modal__field--full {
  grid-column: 1 / -1;
}

.contact-modal__status {
  min-height: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-modal__status.is-error {
  color: #ffb0b0;
}

.contact-modal__status.is-success {
  color: #d2f2d7;
}

.contact-modal__submit {
  justify-content: center;
  gap: 12px;
  width: fit-content;
  min-width: 210px;
}

.contact-modal__submit-spinner {
  display: none;
}

.contact-modal__submit.is-loading .contact-modal__submit-spinner {
  display: inline-flex;
  animation: spin 0.75s linear infinite;
}

.contact-modal__submit.is-loading .contact-modal__submit-label {
  opacity: 0.75;
}

.contact-modal__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 980px) {
  #contact-modal .modal-content-wrapper {
    padding: 78px 18px 32px;
  }

  .contact-modal__shell {
    grid-template-columns: 1fr;
  }

  .contact-modal__info {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 640px) {
  #contact-modal .modal-content-wrapper {
    padding: 70px 14px 24px;
  }

  .contact-modal__info,
  .contact-modal__form {
    padding: 24px;
  }

  .contact-modal__form-grid {
    grid-template-columns: 1fr;
  }

  .contact-modal__submit {
    width: 100%;
    min-width: 0;
  }
}

/* Admin toolbar shown on public pages */
body.has-admin-toolbar {
  --admin-toolbar-height: 52px;
  padding-top: var(--admin-toolbar-height);
}

body.has-admin-toolbar .site-header {
  top: var(--admin-toolbar-height);
}

body.asset-browser-open {
  overflow: hidden;
}

.admin-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: linear-gradient(135deg, rgba(20, 17, 21, 0.96) 0%, rgba(28, 23, 29, 0.94) 100%);
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.admin-toolbar-inner {
  min-height: var(--admin-toolbar-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: nowrap;
}

.admin-toolbar-cluster {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.admin-toolbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.admin-toolbar-nav::-webkit-scrollbar {
  display: none;
}

.admin-toolbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-toolbar-link i,
.admin-toolbar-toggle i {
  font-size: 0.84em;
}

.admin-toolbar-logout-form {
  display: inline-flex;
  margin: 0;
}

.admin-toolbar-link--button {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
}

.admin-toolbar-link:hover,
.admin-toolbar-link.is-active,
.admin-toolbar-toggle:hover,
.admin-toolbar-toggle.is-active {
  color: #ffffff;
  background: rgba(200, 192, 197, 0.14);
  border-color: rgba(200, 192, 197, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.admin-toolbar-link--editor {
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.admin-toolbar-link--editor:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.admin-toolbar-link--editor .admin-toolbar-link__state {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-left: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.admin-toolbar-link--editor[aria-pressed="true"],
.admin-toolbar-link--editor.is-active {
  color: #ffffff;
  background: rgba(121, 210, 166, 0.18);
  border-color: rgba(121, 210, 166, 0.42);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(121, 210, 166, 0.15) inset;
}

.admin-toolbar-link--editor[aria-pressed="true"] .admin-toolbar-link__state,
.admin-toolbar-link--editor.is-active .admin-toolbar-link__state {
  background: #79d2a6;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(121, 210, 166, 0.18);
}

.admin-toolbar-link--editor[aria-pressed="true"] i,
.admin-toolbar-link--editor.is-active i {
  color: #effff6;
}

.admin-toolbar-menu-group {
  position: relative;
  display: inline-flex;
}

.admin-toolbar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-toolbar-toggle__chevron {
  margin-left: 2px;
  font-size: 0.68rem;
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.admin-toolbar-menu-group.is-open .admin-toolbar-toggle__chevron {
  transform: rotate(180deg);
  opacity: 0.9;
}

.admin-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.admin-toolbar-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.admin-toolbar-logout-form {
  display: inline-flex;
  margin: 0;
}

.admin-toolbar-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1300;
  width: max-content;
  min-width: 280px;
  max-width: min(360px, calc(100vw - 24px));
  max-height: calc(100dvh - var(--admin-toolbar-height) - 24px);
  overflow: auto;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(24, 20, 25, 0.98) 0%, rgba(17, 14, 18, 0.98) 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform-origin: top left;
  overscroll-behavior: contain;
}

.admin-toolbar-menu.is-aligned-end {
  transform-origin: top right;
}

.admin-toolbar-menu[hidden] {
  display: none !important;
}

.admin-toolbar-menu.is-visible {
  animation: adminToolbarMenuIn 0.18s ease both;
}

.admin-toolbar-menu__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-toolbar-menu__head>span:first-child {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-toolbar-menu__hint {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.7rem;
}

.admin-toolbar-menu__list {
  display: grid;
  gap: 6px;
}

.admin-toolbar-menu__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.84);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-toolbar-menu__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.admin-toolbar-menu__icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 192, 197, 0.08);
  color: var(--primary);
}

.admin-toolbar-menu__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-toolbar-menu__label {
  font-size: 0.84rem;
  font-weight: 500;
  color: #ffffff;
}

.admin-toolbar-menu__note {
  margin-top: 1px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}

.admin-toolbar-menu__arrow {
  margin-left: auto;
  align-self: center;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.72rem;
}

@keyframes adminToolbarMenuIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1180px) {
  .admin-toolbar-inner {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .admin-toolbar-cluster {
    gap: 10px;
  }

  .admin-toolbar-nav {
    justify-content: flex-start;
  }

  .admin-toolbar-actions {
    margin-left: auto;
  }
}

@media (max-width: 780px) {
  .admin-toolbar-user span {
    display: none;
  }

  .admin-toolbar-link,
  .admin-toolbar-toggle {
    padding: 7px 10px;
  }

  .admin-toolbar-menu {
    min-width: min(320px, calc(100vw - 20px));
  }
}

/* Admin asset picker */
.asset-picker {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.asset-picker input[type="text"] {
  flex: 1;
  min-width: 0;
}

.asset-picker .btn {
  white-space: nowrap;
}

.asset-picker-preview {
  margin-top: 12px;
  min-height: 140px;
  border: 1px dashed #cdd9d2;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7faf8 0%, #eef5f1 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
}

.asset-picker-preview.is-empty {
  color: #617069;
  text-align: center;
  font-size: 0.92rem;
}

.asset-picker-preview img,
.asset-picker-preview video {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #111;
}

.asset-picker-preview .asset-picker-path {
  width: 100%;
  font-size: 0.88rem;
  color: #50615a;
  word-break: break-all;
}

/* Admin asset browser modal */
.asset-browser-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.asset-browser-modal.is-open {
  display: block;
}

.asset-browser-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 8, 0.7);
  backdrop-filter: blur(6px);
}

.asset-browser-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.asset-browser-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 16px;
  border-bottom: 1px solid #e3ebe5;
}

.asset-browser-kicker {
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.asset-browser-header h2 {
  margin-bottom: 0;
}

.asset-browser-close-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: #eef5f0;
  color: var(--text-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.asset-browser-close-btn:hover {
  background: var(--primary);
  color: var(--text-light);
}

.asset-browser-help {
  padding: 0 26px 18px;
  color: #5f6d65;
}

.asset-browser-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.6fr) minmax(220px, auto);
  gap: 14px;
  padding: 0 26px 18px;
  align-items: end;
}

.asset-browser-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-browser-field span {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.asset-browser-field input,
.asset-browser-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d6ded8;
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

.asset-browser-selection {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f3f7f4;
  color: #50615a;
  font-size: 0.92rem;
  min-width: 220px;
}

.asset-browser-upload {
  padding: 0 26px 18px;
}

.asset-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) auto;
  gap: 14px;
  align-items: end;
  background: #f7faf8;
  border: 1px solid #e1e8e3;
  border-radius: 18px;
  padding: 16px;
}

.asset-upload-actions {
  display: flex;
  justify-content: flex-end;
}

.asset-browser-status {
  padding: 0 26px 12px;
  font-size: 0.92rem;
  color: #5c6b64;
  min-height: 1.4em;
}

.asset-browser-grid {
  padding: 0 26px 26px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  flex: 1;
}

.asset-browser-item {
  border: 1px solid transparent;
  background: #f8fbf9;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.asset-browser-item:hover,
.asset-browser-item.is-selected {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(25, 201, 118, 0.35);
}

.asset-browser-item-preview {
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #edf4ef, #dfe8e2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.asset-browser-item-preview img,
.asset-browser-item-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #111;
  border-radius: 12px;
}

.asset-browser-fallback {
  padding: 16px;
  text-align: center;
  color: #4d5c55;
  font-size: 0.82rem;
}

.asset-browser-file-name {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
  word-break: break-word;
  font-size: 0.92rem;
}

.asset-browser-file-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #6c7b74;
}

.asset-browser-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #617069;
}

.asset-browser-empty h3 {
  margin-bottom: 10px;
}

@media (max-width: 960px) {

  .asset-browser-toolbar,
  .asset-upload-form {
    grid-template-columns: 1fr;
  }

  .asset-browser-selection {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .asset-browser-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
  }

  .asset-browser-header,
  .asset-browser-help,
  .asset-browser-toolbar,
  .asset-browser-upload,
  .asset-browser-status,
  .asset-browser-grid {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Initial Loader */
.initial-loader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
  opacity: 1;
  visibility: visible;
}

.initial-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.initial-loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.initial-loader__icon {
  display: block;
  width: clamp(2.75rem, 5vw, 3.75rem);
  height: clamp(2.75rem, 5vw, 3.75rem);
  border-radius: 50%;
  border: 4px solid rgba(200, 192, 197, 0.2);
  border-top-color: var(--primary);
  border-right-color: rgba(200, 192, 197, 0.55);
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 18px rgba(200, 192, 197, 0.08);
}

.initial-loader__text {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ── Frontend Editor Mode ────────────────────────────────────────────────── */
body.admin-editor-active .editor-editable,
body.admin-editor-active .editor-editable--action {
  outline: 2px dashed rgba(31, 27, 31, 0.72);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.58);
  transition: outline 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

body.admin-editor-active .editor-editable--block {
  display: block;
  width: 100%;
}

body.admin-editor-active .editor-editable {
  cursor: text;
  display: inline-block;
  min-width: 20px;
  min-height: 1em;
}

body.admin-editor-active .editor-editable--action {
  position: relative;
  cursor: pointer;
  overflow: visible;
  min-width: 20px;
  min-height: 1em;
  user-select: none;
}

body.admin-editor-active .editor-editable--action.editor-inline-editing,
body.admin-editor-active .editor-editable--action.editor-inline-editing:hover,
body.admin-editor-active .editor-editable--action.editor-inline-editing:focus,
body.admin-editor-active .editor-editable--action.editor-inline-editing:focus-visible,
body.admin-editor-active .editor-inline-editing,
body.admin-editor-active .editor-inline-editing:hover,
body.admin-editor-active .editor-inline-editing:focus,
body.admin-editor-active .editor-inline-editing:focus-visible {
  cursor: text;
  user-select: text;
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72), 0 0 0 6px rgba(25, 201, 118, 0.1);
  border-radius: 10px;
}

body.admin-editor-active .editor-inline-source-active {
  pointer-events: none;
}

body.admin-editor-active .editor-inline-source-active .editor-inline-editing,
body.admin-editor-active .editor-inline-source-active [data-editor-inline-editing="1"] {
  pointer-events: auto;
}

body.admin-editor-active .editor-editable--action .editor-inline-handle {
  display: none !important;
}

body.admin-editor-active .editor-editable:hover,
body.admin-editor-active .editor-editable--action:hover {
  outline: 2px solid var(--primary);
  background-color: rgba(200, 192, 197, 0.05);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72), 0 0 0 6px rgba(25, 201, 118, 0.16);
}

body.admin-editor-active .editor-editable:focus,
body.admin-editor-active .editor-editable--action:focus {
  outline: 2px solid var(--accent);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82), 0 0 0 6px rgba(121, 210, 166, 0.16);
}

.editor-action-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10060;
  max-width: min(260px, calc(100vw - 24px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.editor-action-tooltip.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

.editor-action-tooltip__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(31, 27, 31, 0.98), rgba(17, 15, 17, 0.98));
  color: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.editor-action-tooltip__panel::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: inherit;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-action-tooltip.is-positioned-below .editor-action-tooltip__panel::after {
  top: -6px;
  bottom: auto;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-action-tooltip__eyebrow {
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.editor-action-tooltip__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.editor-action-tooltip__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.editor-action-tooltip__button:hover,
.editor-action-tooltip__button:focus-visible {
  transform: translateY(-1px);
}

.editor-action-tooltip__button--edit {
  background: var(--primary);
  color: #0f1210;
}

.editor-action-tooltip__button--edit:hover,
.editor-action-tooltip__button--edit:focus-visible {
  background: #fff;
}

.editor-action-tooltip__button--open {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.editor-action-tooltip__button--open:hover,
.editor-action-tooltip__button--open:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

body.admin-editor-active img[data-editor-slug] {
  cursor: pointer;
  filter: brightness(0.8);
  outline: 2px dashed var(--primary);
  outline-offset: -4px;
  transition: all 0.3s ease;
}

body.admin-editor-active img[data-editor-slug]:hover {
  filter: brightness(1);
  outline: 2px solid var(--accent);
}

.editor-save-bar {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(31, 27, 31, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 10px 10px 24px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 9999;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  opacity: 0;
}

.editor-save-bar.active {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  opacity: 1;
}

.editor-save-bar__info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 500;
}

.editor-save-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: editorPulse 2s infinite;
}

@keyframes editorPulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.editor-save-bar__actions {
  display: flex;
  gap: 8px;
}

.btn-editor-save {
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  padding: 10px 24px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-editor-save:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-editor-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-editor-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Frontend editor overlays */
.editor-card-shell {
  position: relative;
  display: block;
}

body.admin-editor-active .editor-card-shell {
  isolation: isolate;
}

.editor-card-handle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 15, 17, 0.9);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.editor-card-handle:hover {
  transform: translateY(-1px);
  background: rgba(31, 27, 31, 0.98);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.editor-card-handle i {
  font-size: 0.82rem;
}

.frontend-editor-panel,
.frontend-editor-assets {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.frontend-editor-panel.is-open,
.frontend-editor-assets.is-open {
  opacity: 1;
  pointer-events: auto;
}

.frontend-editor-panel__backdrop,
.frontend-editor-assets__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.72));
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  will-change: opacity, backdrop-filter;
  transition: opacity 0.28s ease, backdrop-filter 0.34s ease, -webkit-backdrop-filter 0.34s ease;
}

.frontend-editor-panel.is-open .frontend-editor-panel__backdrop,
.frontend-editor-assets.is-open .frontend-editor-assets__backdrop {
  opacity: 1;
}

.frontend-editor-panel.is-open.is-blurred .frontend-editor-panel__backdrop,
.frontend-editor-assets.is-open.is-blurred .frontend-editor-assets__backdrop {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition-delay: 120ms;
}

.frontend-editor-panel__sheet,
.frontend-editor-assets__sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(980px, 100%);
  max-height: min(90vh, 920px);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(31, 27, 31, 0.98), rgba(15, 13, 15, 0.98));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.frontend-editor-assets__sheet {
  width: min(1180px, 100%);
  max-height: min(92vh, 960px);
}

.frontend-editor-panel__header,
.frontend-editor-assets__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.frontend-editor-panel__eyebrow,
.frontend-editor-assets__eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.frontend-editor-panel__header h2,
.frontend-editor-assets__header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.7rem;
}

.frontend-editor-panel__subtitle,
.frontend-editor-assets__subtitle {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
}

.frontend-editor-panel__close,
.frontend-editor-assets__close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.frontend-editor-panel__close:hover,
.frontend-editor-assets__close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.frontend-editor-panel__message,
.frontend-editor-assets__status,
.frontend-editor-assets__selection {
  margin: 0 28px;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
}

.frontend-editor-panel__message {
  margin-top: 16px;
  display: block;
}

.frontend-editor-panel__message.is-success,
.frontend-editor-assets__status.is-success {
  background: rgba(62, 141, 84, 0.18);
  color: #d8f4df;
}

.frontend-editor-panel__message.is-error,
.frontend-editor-assets__status.is-error {
  background: rgba(181, 78, 78, 0.18);
  color: #ffd8d8;
}

.frontend-editor-panel__body {
  padding: 24px 28px 28px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.frontend-editor-panel__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.frontend-editor-panel__cancel,
.frontend-editor-panel__save,
.frontend-editor-assets__upload-btn,
.frontend-editor-field__button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.frontend-editor-panel__cancel,
.frontend-editor-field__button--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.frontend-editor-panel__save,
.frontend-editor-assets__upload-btn,
.frontend-editor-field__button {
  background: var(--primary);
  color: var(--bg-dark);
  font-weight: 700;
}

.frontend-editor-panel__cancel,
.frontend-editor-panel__save,
.frontend-editor-assets__upload-btn {
  padding: 12px 18px;
}

.frontend-editor-field__button {
  padding: 12px 16px;
  white-space: nowrap;
}

.frontend-editor-panel__cancel:hover,
.frontend-editor-panel__save:hover,
.frontend-editor-assets__upload-btn:hover,
.frontend-editor-field__button:hover {
  transform: translateY(-1px);
}

.frontend-editor-panel__cancel:hover,
.frontend-editor-field__button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.frontend-editor-panel__save:hover,
.frontend-editor-assets__upload-btn:hover,
.frontend-editor-field__button:hover {
  background: #fff;
}

.frontend-editor-form {
  display: block;
}

.frontend-editor-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.frontend-editor-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.frontend-editor-field.is-full {
  grid-column: 1 / -1;
}

.frontend-editor-field__label {
  color: #fff;
  font-size: 0.93rem;
  font-weight: 600;
}

.frontend-editor-field input,
.frontend-editor-field textarea,
.frontend-editor-field select {
  width: 100%;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 11, 12, 0.78);
  color: #fff;
  padding: 14px 16px;
  font: inherit;
}

.frontend-editor-field textarea {
  resize: vertical;
  min-height: 140px;
}

.frontend-editor-field input:focus,
.frontend-editor-field textarea:focus,
.frontend-editor-field select:focus {
  outline: none;
  border-color: rgba(200, 192, 197, 0.5);
  box-shadow: 0 0 0 3px rgba(200, 192, 197, 0.12);
}

.frontend-editor-field__help {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}

.frontend-editor-field__asset,
.frontend-editor-field__url {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.frontend-editor-field__asset input,
.frontend-editor-field__url input {
  flex: 1 1 auto;
}

.frontend-editor-field__preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.frontend-editor-field__preview img,
.frontend-editor-field__preview video {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  background: #000;
}

.frontend-editor-field__preview-path,
.frontend-editor-field__preview-empty {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
}

.frontend-editor-assets__toolbar,
.frontend-editor-assets__upload {
  padding: 20px 28px 0;
}

.frontend-editor-assets__toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
}

.frontend-editor-assets__upload form {
  display: flex;
  gap: 14px;
  align-items: flex-end;
}

.frontend-editor-assets__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
}

.frontend-editor-assets__field input,
.frontend-editor-assets__field select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 11, 12, 0.78);
  color: #fff;
  padding: 12px 14px;
}

.frontend-editor-assets__selection {
  margin-top: 20px;
}

.frontend-editor-assets__status {
  margin-top: 12px;
}

.frontend-editor-assets__results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 20px 28px 28px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.frontend-editor-assets__empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.frontend-editor-assets__item {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.frontend-editor-assets__item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.frontend-editor-assets__item.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(200, 192, 197, 0.35), 0 18px 34px rgba(0, 0, 0, 0.22);
}

.frontend-editor-assets__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.55);
}

.frontend-editor-assets__media img,
.frontend-editor-assets__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frontend-editor-assets__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.frontend-editor-assets__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
}

.frontend-editor-assets__title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
}

.frontend-editor-assets__path,
.frontend-editor-assets__meta,
.frontend-editor-assets__footer {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-word;
}

.frontend-editor-assets__footer {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 900px) {

  .frontend-editor-panel,
  .frontend-editor-assets {
    padding: 14px;
  }

  .frontend-editor-panel__sheet,
  .frontend-editor-assets__sheet {
    max-height: calc(100vh - 28px);
    border-radius: 22px;
  }

  .frontend-editor-panel__header,
  .frontend-editor-assets__header {
    padding: 20px;
  }

  .frontend-editor-form__grid,
  .frontend-editor-assets__toolbar {
    grid-template-columns: 1fr;
  }

  .frontend-editor-panel__body,
  .frontend-editor-panel__footer,
  .frontend-editor-panel__message,
  .frontend-editor-assets__toolbar,
  .frontend-editor-assets__upload,
  .frontend-editor-assets__selection,
  .frontend-editor-assets__status,
  .frontend-editor-assets__results {
    padding-left: 20px;
    padding-right: 20px;
  }

  .frontend-editor-panel__footer {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .frontend-editor-panel__footer>* {
    flex: 1 1 0;
  }

  .frontend-editor-assets__upload form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Admin Agent Console */
.admin-agent-console {
  position: fixed;
  bottom: 80px;
  right: 40px;
  width: 420px;
  max-width: calc(100vw - 80px);
  height: 560px;
  max-height: calc(100vh - 160px);
  background: rgba(31, 27, 31, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.admin-agent-console.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.admin-agent-console__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.admin-agent-console__header {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-agent-console__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-agent-console__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.admin-agent-console__close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.admin-agent-console__mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.admin-agent-console__mode:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-agent-console__mode.is-enabled {
  border-color: rgba(152, 195, 121, 0.35);
  background: rgba(152, 195, 121, 0.12);
  color: #d5f7bf;
}

.admin-agent-console__close:hover {
  color: #fff;
}

.admin-agent-console__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
}

.admin-agent-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.admin-agent-message--system {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  align-self: center;
  text-align: center;
  font-size: 0.85rem;
  border-radius: 12px;
}

.admin-agent-message--user {
  background: var(--primary);
  color: #1F1B1F;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.admin-agent-message--agent {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-agent-message--error {
  background: rgba(255, 68, 68, 0.1);
  color: #ff8080;
  border: 1px solid rgba(255, 68, 68, 0.2);
  align-self: center;
  font-size: 0.85rem;
}

.admin-agent-message__logs {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: monospace;
  font-size: 0.78rem;
}

.admin-agent-log {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.admin-agent-log.is-preview {
  color: #f5c66a;
}

.admin-agent-log.is-success {
  color: #4CAF50;
}

.admin-agent-log.is-error {
  color: #F44336;
}

.admin-agent-log__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.admin-agent-log__snapshot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
}

.admin-agent-log__snapshot span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.admin-agent-log__snapshot pre {
  margin: 0;
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.72rem;
  line-height: 1.45;
  color: inherit;
}

@media (max-width: 560px) {
  .admin-agent-console__header {
    align-items: flex-start;
    gap: 12px;
  }

  .admin-agent-console__header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .admin-agent-log__details {
    grid-template-columns: 1fr;
  }
}

.admin-agent-console__footer {
  padding: 20px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-agent-console__form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.admin-agent-console__input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  height: 44px;
  max-height: 120px;
  transition: border-color 0.2s;
}

.admin-agent-console__input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.admin-agent-console__submit {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #1F1B1F;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
}

.admin-agent-console__submit:hover {
  background: #fff;
  transform: translateY(-2px);
}

.admin-agent-console__form.is-loading .admin-agent-console__submit {
  opacity: 0.5;
  pointer-events: none;
}

.typing-indicator {
  display: flex;
  gap: 4px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
  opacity: 0.4;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.admin-toolbar-link--agent {
  color: var(--primary) !important;
}

.admin-toolbar-link--agent.is-active {
  background: rgba(200, 192, 197, 0.15) !important;
}