:root {
  --primary: #1f3a5f;
  --primary-dark: #13243d;
  --bg: #f5f7fa;
  --bg-soft: #e4ebf5;
  --text: #2f343b;
  --muted: #6f7b8a;
  --line: #d8e0ea;
  --danger: #e74c3c;
  --danger-bg: #fdecea;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(31, 58, 95, .12);
  --display: "Bebas Neue", Impact, sans-serif;
  --latin: "Archivo", Arial, sans-serif;
  --code: "JetBrains Mono", monospace;
  --mono-dark: #0b0b0a;
  --mono-panel: #12110f;
  --mono-line: #262521;
  --mono-text: #f2efe9;
  --mono-muted: #8a867e;
  --accent: #c9793f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", Arial, sans-serif;
  color: var(--text);
  background: var(--mono-dark);
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: relative;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 5vw, 70px);
  padding: 32px clamp(18px, 4vw, 56px) 28px;
  background: #1d1c1a;
  border-bottom: 0;
}
.brand { display: inline-grid; gap: 2px; align-items: center; font-weight: 700; color: var(--mono-muted); direction: ltr; line-height: 1; min-width: max-content; }
.brand-logo {
  width: 164px;
  height: auto;
  display: block;
  object-fit: contain;
}
.brand small { color: var(--accent); font-family: var(--code); font-size: 9px; font-weight: 500; letter-spacing: .26em; white-space: nowrap; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #555;
  color: #aaa;
  font-weight: 700;
  font-size: 13px;
}
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); color: var(--mono-muted); font-family: var(--latin); font-weight: 600; font-size: 15px; direction: ltr; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: #f1f1f1; }
.nav-cta { padding: 0; background: transparent; color: var(--mono-text); border-radius: 0; font-weight: 700; }

.hero {
  min-height: min(390px, 44svh);
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(48px, 7vw, 86px) 20px;
  overflow: hidden;
  color: var(--white);
  background: var(--mono-dark);
}
.hero-media { position: absolute; inset: 0; background: #000; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .64; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.28)); }
.hero-content { position: relative; max-width: 720px; padding-bottom: 0; text-align: center; }
.eyebrow { margin: 0 0 10px; color: var(--mono-muted); font-weight: 800; letter-spacing: 0; }
.studio-kicker { margin: 0 0 18px; color: var(--accent); font-family: var(--code); font-size: 11px; font-weight: 500; letter-spacing: .24em; direction: ltr; white-space: nowrap; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(86px, 15vw, 168px); line-height: .82; letter-spacing: .01em; color: var(--mono-text); font-weight: 400; direction: ltr; white-space: nowrap; }
.hero p { margin: 22px auto 0; max-width: 520px; font-family: var(--latin); font-size: 16px; line-height: 1.7; color: rgba(242,239,233,.56); direction: ltr; text-wrap: balance; }
.hero-logo {
  display: block;
  width: min(420px, 86vw);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.button {
  border: 0;
  min-height: 40px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.button:disabled, button:disabled {
  cursor: wait;
  opacity: .62;
}
.button.primary { background: var(--mono-text); color: #111; }
.button.ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.32); }
.button.secondary { background: var(--bg-soft); color: var(--primary); }
.button.danger { background: var(--danger); color: var(--white); }

.portfolio-section { background: var(--mono-dark); min-height: 400px; content-visibility: auto; contain-intrinsic-size: 1200px; }
.portfolio-title {
  margin: 0;
  padding: clamp(20px, 4vw, 42px) 20px clamp(34px, 5vw, 58px);
  color: var(--mono-text);
  font-size: clamp(64px, 9vw, 104px);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1;
  text-align: center;
}
.masonry-grid { width: min(1750px, calc(100% - 8vw)); margin: 0 auto; column-count: 3; column-gap: 4px; background: var(--mono-dark); }
.masonry-item { break-inside: avoid; cursor: zoom-in; overflow: hidden; background: #000; margin: 0 0 4px; }
.masonry-item img { width: 100%; height: auto; transition: transform .28s ease; transform-origin: center; }
.portfolio-more { display: grid; place-items: center; padding: 36px 16px 56px; background: var(--mono-dark); }
.portfolio-more-button { background: #fff; color: #111; border: 1px solid rgba(255,255,255,.2); }
.portfolio-more-button[hidden] { display: none; }
@media (hover: hover) { .masonry-item:hover img { transform: scale(1.02); } }

.content-band { padding: clamp(70px, 10vw, 130px) clamp(18px, 4vw, 56px); background: var(--mono-panel); color: #d0d0d0; border-top: 1px solid var(--mono-line); }
.section-inner { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
h1, h2, h3 { color: var(--primary-dark); letter-spacing: 0; }
h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.35; margin: 0; }
.editorial-about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: end; }
.editorial-about h2 { color: var(--mono-text); font-family: "Cairo", Arial, sans-serif; font-weight: 300; font-size: clamp(34px, 5vw, 58px); line-height: 1.35; text-wrap: balance; }
.editorial-about p:not(.eyebrow) { color: #9c9c9c; font-size: 18px; }
.text-link { display: inline-block; margin-top: 18px; color: #efefef; border-bottom: 1px solid #777; padding-bottom: 5px; }
p { line-height: 1.9; }
.main-nav a,
  .brand small,
.button,
.portfolio-title,
.pricing-hero h1,
.pricing-hero p,
.pricing-card h2,
.pricing-card > strong,
.pricing-details h2,
.booking-head h1,
.booking-section-title,
.package-section-title,
.package-card strong,
.package-card span,
.package-card em,
.date-check label,
.lang-switch-btn,
.submit-btn,
.page-title .eyebrow,
.client-album-page .page-title h1,
.footer-links a {
  white-space: nowrap;
}

p,
li,
label,
.customer-summary-item span,
.notes-section li,
.pricing-card li,
.pricing-details li,
.muted {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.customer-summary-item span,
.pricing-details li span,
.notes-section li {
  overflow-wrap: anywhere;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--mono-dark);
  color: var(--mono-muted);
  border-top: 1px solid var(--mono-line);
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; }
.site-footer .brand-logo {
  width: 132px;
  max-width: 100%;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.floating-whatsapp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.92);
  z-index: 100;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: var(--white);
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 32px;
}
.lightbox-close { top: 20px; left: 20px; }
.lightbox-arrow.prev { right: 20px; top: 50%; }
.lightbox-arrow.next { left: 20px; top: 50%; }

.booking-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(201,121,63,.10), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(242,239,233,.04), transparent 22%),
    var(--mono-dark);
  overflow-x: hidden;
  color: var(--mono-text);
}
.booking-page .site-header { background: #11100f; }
.booking-shell, .auth-shell { min-height: 78vh; display: grid; place-items: center; padding: 36px 18px; }
.booking-card, .auth-card, .admin-card {
  background: linear-gradient(180deg, rgba(18,18,16,.96), rgba(12,12,11,.96));
  border: 1px solid rgba(242,239,233,.08);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 38px);
  color: var(--mono-text);
}
.booking-card { width: min(900px, 100%); }
.booking-contract { position: relative; width: min(940px, 100%); }
.booking-head { text-align: center; margin-bottom: 26px; }
.booking-head h1 { color: var(--mono-text); margin: 0; font-size: clamp(28px, 5vw, 44px); }
.lang-switch-btn {
  position: absolute;
  top: 22px;
  left: 22px;
  border: 0;
  background: rgba(242,239,233,.06);
  color: var(--mono-text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  border: 1px solid rgba(242,239,233,.12);
}
body.en .lang-switch-btn { left: auto; right: 22px; }
.date-check {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
  padding: 20px;
  border: 1px solid var(--mono-line);
  border-radius: 8px;
  background: rgba(242,239,233,.03);
  text-align: center;
}
.date-check label { color: var(--mono-text); font-weight: 800; }
.date-field { text-align: center; }
.booking-section-title {
  color: var(--mono-text);
  font-size: 22px;
  margin: 32px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mono-line);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 8px; font-weight: 700; color: var(--mono-text); }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(242,239,233,.12);
  background: rgba(255,255,255,.03);
  color: var(--mono-text);
  padding: 12px 13px;
  border-radius: 6px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: rgba(201,121,63,.55); box-shadow: 0 0 0 3px rgba(201,121,63,.16); }
.full { grid-column: 1 / -1; }
.price-box { display: flex; justify-content: space-between; align-items: center; background: rgba(242,239,233,.04); color: var(--mono-text); border-radius: 6px; padding: 16px; border: 1px solid var(--mono-line); }
.price-box strong { font-size: 24px; }
.package-section-title { margin: 16px 0 12px; color: var(--mono-muted); font-weight: 900; }
.packages-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 50%; }
.package-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  border: 1px solid var(--mono-line);
  background: rgba(242,239,233,.03);
  color: var(--mono-text);
  padding: 16px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}
.package-card em {
  color: var(--danger);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}
.package-card span { color: var(--muted); font-weight: 800; }
.package-card.selected {
  border-color: rgba(201,121,63,.48);
  background: rgba(201,121,63,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}
.total-summary-for-customer, .notes-section {
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--mono-line);
  border-radius: 8px;
  background: rgba(242,239,233,.03);
}
.total-summary-for-customer h3, .notes-section h3 { margin: 0 0 14px; color: var(--mono-text); }
.customer-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed #e0e6ef;
}
.customer-summary-item strong { color: var(--mono-text); white-space: nowrap; }
.customer-summary-item.total {
  border-bottom: 0;
  border-top: 2px solid var(--accent);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 20px;
  font-weight: 900;
}
.notes-section ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--mono-muted); }
.notes-section li { padding-inline-start: 18px; position: relative; }
.notes-section li::before { content: ""; position: absolute; inset-inline-start: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--mono-line);
  border-radius: 8px;
  background: rgba(242,239,233,.03);
  color: var(--mono-text);
}
.checkbox-container input { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.submit-btn {
  width: 100%;
  margin-top: 22px;
  border: 0;
  background: #27ae60;
  color: #fff;
  padding: 15px 18px;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}
.submit-btn:disabled { background: #aeb8c2; cursor: not-allowed; }

.admin-body { background: #f5f7fa; }
.admin-body .brand { display: inline-flex; gap: 10px; color: var(--white); direction: rtl; }
.admin-body .brand-mark { border-color: rgba(255,255,255,.45); color: var(--white); }
.admin-body .site-header, .admin-body .main-nav { font-family: "Cairo", Arial, sans-serif; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--primary-dark); color: var(--white); padding: 24px; }
.admin-sidebar nav { display: grid; gap: 10px; margin-top: 28px; }
.admin-sidebar a, .admin-sidebar button { color: var(--white); background: transparent; border: 0; text-align: right; padding: 10px; border-radius: 6px; cursor: pointer; }
.admin-sidebar .active, .admin-sidebar a:hover, .admin-sidebar button:hover { background: rgba(255,255,255,.12); }
.admin-main { padding: clamp(20px, 4vw, 42px); }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.table-list { display: grid; gap: 10px; }
.gallery-row {
  display: grid;
  grid-template-columns: 1.2fr .8fr .7fr auto;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.gallery-row.expired { background: var(--danger-bg); border-color: var(--danger); }
.muted { color: var(--muted); }
.status-message { margin-top: 12px; }
.status-message.success { color: #2e8b57; font-weight: 800; }
.status-message.error { color: var(--danger); font-weight: 800; }
.dropzone { display: grid; gap: 6px; border: 2px dashed #9fb0c6; border-radius: 8px; padding: 28px; text-align: center; background: rgba(228,235,245,.55); cursor: pointer; }
.dropzone strong { color: var(--primary-dark); font-size: 20px; }
.dropzone span { color: var(--muted); }
.dropzone:focus-visible { outline: 3px solid rgba(31,58,95,.22); outline-offset: 3px; }
.dropzone.is-dragging { border-color: var(--primary); background: rgba(31,58,95,.08); }
.dropzone.is-busy { opacity: .72; cursor: wait; }
.progress-list { display: grid; gap: 8px; margin-top: 12px; }
.progress-item { position: relative; display: grid; gap: 6px; background: var(--bg); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); padding: 10px; }
.progress-item strong, .progress-item small { position: relative; z-index: 1; }
.progress-item strong { color: var(--primary-dark); word-break: break-word; }
.progress-item small { color: var(--muted); }
.progress-item span { position: relative; z-index: 1; display: block; background: var(--primary); color: var(--white); padding: 5px 10px; width: 0; min-width: max-content; border-radius: 4px; transition: width .18s ease; }
.progress-item.is-done span { background: #2e8b57; }
.progress-item.is-done small { color: #2e8b57; font-weight: 800; }
.progress-item.is-error { border-color: var(--danger); background: var(--danger-bg); }
.progress-item.is-error span { background: var(--danger); }
.progress-item.is-error small { color: var(--danger); font-weight: 800; }
.upload-summary {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.upload-summary-head,
.upload-summary-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.upload-summary-head strong {
  color: var(--primary-dark);
  font-weight: 800;
}
.upload-summary-head span,
.upload-summary-foot small {
  color: var(--muted);
  font-weight: 700;
}
.upload-summary-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #e9edf2;
  border: 1px solid #d8e0ea;
}
.upload-summary-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #d7b47a);
  transition: width .18s ease;
}
.thumb-grid, .client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.client-album-page { background: #050505; color: #e8e8e8; }
.client-album-page .section-inner { width: min(1500px, calc(100% - 36px)); }
.client-album-page .page-title h1 { color: var(--mono-text); font-family: var(--display); font-size: clamp(58px, 9vw, 106px); font-weight: 400; line-height: .9; direction: ltr; }
.thumb-card, .client-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.client-album-page .client-card { background: #101010; border-color: #242424; border-radius: 0; }
.thumb-card img, .client-card img, .client-card video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumb-actions, .client-actions { display: flex; gap: 8px; padding: 10px; flex-wrap: wrap; }
.card-status { margin: 0; padding: 0 10px 10px; font-size: 13px; }
.card-status:not(:empty) { font-weight: 800; }
.page-title { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 34px 0; }
.gallery-public { min-height: 78vh; }

.pricing-page {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) 0;
  color: #efefef;
}
.pricing-hero { text-align: center; margin-bottom: clamp(38px, 6vw, 72px); }
.pricing-hero p { margin: 0 0 12px; color: #7b7b7b; font-weight: 800; letter-spacing: 0; }
.pricing-hero h1 {
  margin: 0;
  color: #eeeeee;
  font-size: clamp(72px, 11vw, 132px);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.08;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: transparent;
  border-top: 1px solid #303030;
}
.pricing-card {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(130px, .25fr) 1fr;
  gap: clamp(18px, 4vw, 54px);
  align-items: start;
  background: transparent;
  padding: clamp(28px, 4vw, 42px) 0;
  border-bottom: 1px solid #303030;
  min-height: 100%;
}
.pricing-card.featured { background: linear-gradient(90deg, transparent, rgba(255,255,255,.025), transparent); }
.pricing-card h2, .pricing-details h2 {
  margin: 0 0 12px;
  color: #efefef;
  font-size: 34px;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .01em;
}
.pricing-card > strong {
  display: block;
  margin-bottom: 0;
  color: #b8b8b8;
  font-size: 22px;
  font-weight: 800;
  direction: ltr;
  text-align: right;
}
.pricing-card ul, .pricing-details ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: #c8c8c8;
  line-height: 1.7;
}
.pricing-card li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-inline-end: 9px;
  border-radius: 50%;
  background: #777;
  vertical-align: middle;
}
.pricing-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  margin-top: clamp(38px, 6vw, 74px);
  background: transparent;
  border: 0;
  border-top: 0;
}
.pricing-details article { background: transparent; padding: 0; }
.pricing-details li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #242424;
  padding-bottom: 10px;
}
.pricing-details li:last-child { border-bottom: 0; padding-bottom: 0; }
.pricing-details strong { color: #efefef; white-space: nowrap; }

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    padding: 18px 14px 16px;
  }
  .brand { gap: 2px; min-width: 0; text-align: center; }
  .brand-logo { width: min(164px, 44vw); }
  .brand small { font-size: 8px; letter-spacing: .22em; }
  .brand-mark { width: 36px; height: 36px; font-size: 13px; flex: 0 0 auto; }
  .brand span:last-child {
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .main-nav {
    width: 100%;
    justify-content: center;
    gap: clamp(14px, 5vw, 24px);
    font-size: clamp(11px, 3.2vw, 13px);
    margin-inline-start: 0;
    letter-spacing: .08em;
  }
  .main-nav a:not(.nav-cta) { display: inline; }
  .nav-cta { padding: 0; white-space: nowrap; }
  .hero {
    min-height: auto;
    padding: 42px 16px 38px;
    align-items: center;
  }
  .hero-media img { object-position: 50% 32%; opacity: .58; }
  .hero-media::after { background: linear-gradient(0deg, rgba(0,0,0,.78), rgba(0,0,0,.24)); }
  .hero-content { padding-bottom: 0; width: 100%; }
  .studio-kicker { font-size: clamp(8px, 2.65vw, 10px); letter-spacing: .16em; margin-bottom: 14px; }
  .hero h1 { font-size: clamp(76px, 23vw, 106px); max-width: 100%; }
  .hero p { font-size: clamp(13px, 3.8vw, 15px); line-height: 1.65; max-width: 300px; }
  .hero-actions { gap: 7px; margin-top: 18px; }
  .hero-actions .button { flex: 0 1 auto; min-width: 88px; padding: 8px 10px; font-size: 11px; letter-spacing: .05em; }
  .portfolio-title { padding-block: 28px 24px; font-size: clamp(54px, 17vw, 74px); white-space: nowrap; }
  .masonry-grid { width: 100%; column-count: 2; column-gap: 2px; }
  .two-col, .form-grid, .admin-grid, .admin-layout, .editorial-about { grid-template-columns: 1fr; }
  .packages-grid, .promo-grid { grid-template-columns: 1fr 1fr; max-width: none; }
  .pricing-grid, .pricing-details { grid-template-columns: 1fr; }
  .pricing-card { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .pricing-card, .pricing-details article { padding-inline: 0; }
  .pricing-details li { display: grid; gap: 4px; }
  .pricing-card h2 { font-size: clamp(28px, 8vw, 34px); }
  .pricing-card > strong { font-size: clamp(17px, 5vw, 22px); }
  .booking-section-title { font-size: clamp(18px, 5vw, 22px); }
  .package-section-title { font-size: clamp(14px, 3.9vw, 16px); }
  .package-card strong { font-size: clamp(13px, 3.8vw, 16px); }
  .package-card span { font-size: clamp(12px, 3.4vw, 14px); }
  .content-band { padding: 48px 18px; }
  .editorial-about h2 { font-size: clamp(26px, 7.2vw, 34px); }
  .editorial-about p:not(.eyebrow) { font-size: 15px; }
  h2 { font-size: 27px; }
  .site-footer { display: grid; gap: 12px; padding: 24px 18px; }
  .site-footer .brand-logo { width: min(132px, 44vw); }
  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
  .lang-switch-btn { position: static; justify-self: start; margin-bottom: 14px; }
  .admin-sidebar { position: static; }
  .gallery-row { grid-template-columns: 1fr; }
  .page-title { align-items: start; flex-direction: column; }
  .admin-actions { justify-content: flex-start; }
  .lightbox img { max-width: 96vw; max-height: 82svh; }
  .lightbox button { width: 42px; height: 42px; }
}

@media (max-width: 440px) {
  .masonry-grid { column-count: 2; }
  .brand span:last-child { max-width: none; }
  .button { min-height: 42px; }
  .content-band p { font-size: 15px; }
  .pricing-hero h1 { font-size: clamp(58px, 18vw, 78px); white-space: nowrap; }
  .pricing-card h2, .pricing-details h2 { font-size: 30px; }
  .client-album-page .page-title h1 { font-size: clamp(52px, 18vw, 74px); }
}

@media (max-width: 340px) {
  .site-header { padding-inline: 10px; }
  .brand-logo { width: min(150px, 48vw); }
  .brand small { font-size: 7px; letter-spacing: .18em; }
  .main-nav { gap: 11px; font-size: 10px; letter-spacing: .05em; }
  .studio-kicker { font-size: 7.5px; letter-spacing: .12em; }
  .hero h1 { font-size: 62px; }
  .portfolio-title { font-size: 50px; }
  .masonry-grid { column-count: 1; }
  .hero-actions .button { flex-basis: 100%; }
}

/* Production polish layer */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: rgba(201, 121, 63, .35);
  color: var(--mono-text);
}

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: 12px;
  z-index: 999;
  transform: translateY(-140%);
  background: var(--mono-text);
  color: var(--mono-dark);
  padding: 10px 14px;
  font-weight: 800;
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  isolation: isolate;
  transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  inset-inline: clamp(18px, 4vw, 56px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,239,233,.13), transparent);
}

body.scrolling-up .site-header {
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
}

body.scrolling-down .site-header {
  transform: translateY(-2px);
}

.brand,
.main-nav a,
.footer-links a,
.text-link {
  transition: color .2s ease, opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.brand:hover {
  opacity: .82;
}

.main-nav a[aria-current="page"] {
  color: var(--mono-text);
}

.main-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image:
    radial-gradient(circle at 50% 35%, rgba(242,239,233,.22), transparent 32%),
    linear-gradient(rgba(242,239,233,.05) 1px, transparent 1px);
  background-size: auto, 100% 34px;
}

.hero-content {
  animation: fadeUp .7s ease both;
}

/* Pricing cards layout */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pricing-card,
.pricing-note-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3.2vw, 34px);
  border: 1px solid var(--mono-line);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  box-shadow: 0 20px 45px rgba(0,0,0,.16);
  overflow: hidden;
}

.pricing-card-head {
  display: grid;
  gap: 6px;
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-color: rgba(213,179,120,.38);
}

.pricing-badge {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(213,179,120,.14);
  color: #f6d7a0;
  font-family: var(--code);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pricing-card h2 {
  margin: 0;
  line-height: 1.1;
}

.pricing-card > strong {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
}

.pricing-card ul,
.pricing-details ul {
  gap: 10px;
  line-height: 1.75;
}

.pricing-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 5vw, 56px);
}

.pricing-notes-services {
  background: linear-gradient(180deg, rgba(95,125,170,.16), rgba(255,255,255,.03));
  border-color: rgba(95,125,170,.28);
}

.pricing-notes-warning {
  background: linear-gradient(180deg, rgba(201,121,63,.18), rgba(255,255,255,.03));
  border-color: rgba(201,121,63,.30);
}

.pricing-notes-services,
.pricing-notes-warning {
  padding: clamp(28px, 3.6vw, 42px);
}

.pricing-note-card h2 {
  margin-bottom: 18px;
  text-align: center;
}

.pricing-note-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  width: 100%;
}

.pricing-notes-services h2 {
  color: #d6e3f7;
}

.pricing-notes-warning h2 {
  color: #ffd4bf;
}

.pricing-notes-services ul li::before {
  background: #91afd4;
}

.pricing-notes-warning ul li::before {
  background: #f0a06d;
}

.pricing-note-card li::before {
  content: none;
}

.pricing-note-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  opacity: .8;
}

.pricing-details li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 10px;
}

.pricing-note-card li {
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 1.7;
}

.pricing-notes-services li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-block: 4px;
  width: 100%;
}

.pricing-notes-services li span {
  min-width: 0;
  text-align: right;
}

.pricing-notes-services li strong {
  white-space: nowrap;
  text-align: right;
}

.pricing-notes-warning li {
  display: block;
  padding-block: 2px;
  text-align: right;
}

.pricing-notes-warning li span {
  display: inline;
}

.pricing-details li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pricing-note-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(0,0,0,.2);
}

@media (max-width: 760px) {
  .pricing-cards,
  .pricing-details {
    grid-template-columns: 1fr;
  }

  .pricing-details li {
    display: grid;
    gap: 4px;
  }

  .pricing-notes-services li {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 430px) {
  .pricing-card,
  .pricing-note-card {
    padding: 18px 14px;
  }

  .pricing-notes-services li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pricing-card li,
  .pricing-details li,
  .pricing-details li span {
    white-space: normal;
    text-wrap: balance;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.button {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button.ghost:hover {
  border-color: rgba(242,239,233,.72);
  background: rgba(242,239,233,.055);
}

.button.primary:hover {
  background: #ffffff;
}

.portfolio-title,
.pricing-hero h1,
.client-album-page .page-title h1 {
  text-wrap: balance;
}

.masonry-item img,
.thumb-card img,
.client-card img,
.client-card video {
  background: #151515;
}

.portfolio-more-button {
  min-width: 150px;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

.pricing-page {
  padding-bottom: clamp(72px, 9vw, 120px);
}

.pricing-hero p {
  font-family: var(--code);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .22em;
}

.pricing-card {
  position: relative;
  transition: background-color .2s ease, padding-inline .2s ease;
}

.pricing-card:hover {
  background: rgba(242,239,233,.025);
  padding-inline: 18px;
}

.pricing-card.featured::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--accent);
}

.pricing-card > strong,
.pricing-details strong {
  font-family: var(--latin);
  color: var(--mono-text);
}

.pricing-card li,
.pricing-details li {
  color: rgba(242,239,233,.74);
}

.pricing-details {
  border-top: 1px solid var(--mono-line);
  padding-top: clamp(34px, 5vw, 64px);
}

.booking-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(201,121,63,.12), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(242,239,233,.05), transparent 24%),
    var(--mono-dark);
  overflow-x: hidden;
  color: var(--mono-text);
}

.booking-card,
.auth-card,
.admin-card {
  background: rgba(15,15,14,.92);
  backdrop-filter: blur(18px);
  border: 1px solid var(--mono-line);
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
  color: var(--mono-text);
}

.booking-contract {
  border-radius: 12px;
}

.booking-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-section-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.booking-page .booking-head h1,
.booking-page .booking-section-title,
.booking-page .package-section-title,
.booking-page .customer-summary-item strong,
.booking-page .total-summary-for-customer h3,
.booking-page .notes-section h3,
.booking-page label,
.booking-page .date-check label {
  color: var(--mono-text);
}

.booking-page .eyebrow,
.booking-page .package-section-title,
.booking-page .notes-section li,
.booking-page .customer-summary-item span {
  color: var(--mono-muted);
}

input,
select,
textarea {
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(242,239,233,.26);
}

.package-card {
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.package-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201,121,63,.52);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.package-card.selected {
  transform: translateY(-2px);
}

.customer-summary-item.total strong {
  color: var(--accent);
}

.submit-btn {
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  box-shadow: 0 16px 34px rgba(201,121,63,.18);
  background: linear-gradient(135deg, #c9793f, #e0a26b);
  color: #161513;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.client-album-page .site-header {
  background: #0d0d0c;
}

.client-album-page .page-title {
  padding: clamp(20px, 4vw, 48px) 0 clamp(8px, 2vw, 18px);
  border-bottom: 1px solid var(--mono-line);
}

.client-album-page .client-grid {
  padding-top: 18px;
}

.client-album-page .client-actions {
  background: #10100f;
  border-top: 1px solid #242321;
}

.client-album-page .client-actions .button {
  width: 100%;
}

.lightbox button:hover {
  background: rgba(255,255,255,.22);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 760px) {
  .site-header::after {
    inset-inline: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(360px, 100%);
    margin-inline: auto;
  }

  .hero-actions .button {
    min-width: 0;
    width: 100%;
  }

  .pricing-card:hover {
    padding-inline: 0;
  }

  .pricing-card.featured::before {
    top: 0;
    bottom: auto;
    width: 48px;
    height: 2px;
  }

  .customer-summary-item {
    align-items: start;
  }

  .customer-summary-item:not(.total) {
    font-size: 14px;
  }

  .booking-page .site-header,
  .booking-page .booking-shell,
  .booking-page .site-footer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .booking-shell {
    padding: 22px 12px;
    place-items: start center;
  }

  .booking-contract {
    width: 100%;
    max-width: calc(100vw - 24px);
    overflow: hidden;
  }

  .booking-page .main-nav {
    max-width: 100%;
    overflow: hidden;
  }

  .booking-page .form-grid,
  .booking-page .packages-grid,
  .booking-page .promo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-page .promo-grid {
    max-width: none;
  }

  .booking-page .full {
    grid-column: 1;
  }

  .booking-page .booking-head h1,
  .booking-page .booking-section-title,
  .booking-page .package-section-title,
  .booking-page .package-card strong,
  .booking-page .package-card span,
  .booking-page .package-card em,
  .booking-page .date-check label,
  .booking-page .submit-btn,
  .booking-page .checkbox-container span,
  .booking-page label span {
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .booking-page input,
  .booking-page select,
  .booking-page textarea,
  .booking-page button {
    min-width: 0;
    max-width: 100%;
  }

  .booking-page .package-card {
    width: 100%;
    min-height: auto;
    padding: 14px 12px;
  }

  .booking-page .customer-summary-item,
  .booking-page .customer-summary-item.total {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    font-size: 14px;
  }

  .booking-page .customer-summary-item strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .booking-page .notes-section,
  .booking-page .total-summary-for-customer,
  .booking-page .date-check {
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .booking-card,
  .auth-card,
  .admin-card {
    padding: 20px 16px;
  }

  .packages-grid,
  .promo-grid {
    gap: 9px;
  }

  .package-card {
    min-height: 104px;
    padding: 13px 8px;
  }

  .customer-summary-item {
    display: grid;
    gap: 4px;
  }

  .customer-summary-item strong {
    white-space: normal;
  }
  .booking-head h1 { font-size: clamp(24px, 7vw, 30px); }
  .booking-section-title { white-space: normal; }
  .package-section-title { white-space: normal; }
  .package-card strong,
  .package-card span,
  .package-card em {
    white-space: normal;
    text-wrap: balance;
  }
}

/* Premium client album surface */
.client-album-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 20% -10%, rgba(162, 133, 92, .16), transparent 34rem),
    linear-gradient(180deg, #10100f 0%, #050505 42%, #020202 100%);
  color: #f3f0eb;
}

.client-album-page .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 9, 8, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.client-album-page .brand {
  color: #f4f1ec;
}

.client-album-page .brand small,
.client-album-page .eyebrow,
.client-album-page .album-subtitle {
  color: rgba(244, 241, 236, .62);
}

.gallery-public {
  width: min(1560px, calc(100% - 40px));
  padding-bottom: clamp(42px, 8vw, 90px);
}

.client-album-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  padding: clamp(34px, 7vw, 78px) 0 clamp(18px, 4vw, 36px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.album-title-block {
  min-width: 0;
}

.client-album-page .client-album-hero h1 {
  margin: 8px 0 0;
  color: #f7f4ef;
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: 0;
  direction: ltr;
  overflow-wrap: anywhere;
}

.album-subtitle {
  margin: 16px 0 0;
  max-width: 620px;
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.8;
}

.album-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.client-album-page .album-actions .button {
  min-width: 158px;
  min-height: 48px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, .16);
  background: #f4f1ec;
  color: #11100f;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
}

.client-album-page .album-actions .button:hover {
  background: #d7b47a;
  transform: translateY(-1px);
}

.client-album-page .client-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  padding-top: clamp(14px, 3vw, 28px);
}

.client-album-page .client-card {
  position: relative;
  background: #10100f;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.client-album-page .client-card:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 180, 122, .42);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .38);
}

.client-album-page .client-card img,
.client-album-page .client-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #161513;
}

.client-album-page .client-card img {
  cursor: zoom-in;
}

.client-album-page .client-actions {
  display: flex;
  padding: 8px;
  background: rgba(12, 12, 11, .96);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.client-album-page .client-actions .button {
  width: 100%;
  min-height: 38px;
  border-radius: 999px;
  background: transparent;
  border-color: rgba(255, 255, 255, .16);
  color: #f4f1ec;
  font-size: 13px;
  box-shadow: none;
}

.client-album-page .client-actions .button:hover {
  background: #f4f1ec;
  border-color: #f4f1ec;
  color: #11100f;
}

.client-album-page .gallery-status {
  margin: 18px 0 0;
  color: rgba(244, 241, 236, .66);
}

.client-album-page .gallery-status:not(:empty) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
}

.client-album-page .lightbox {
  background: rgba(0, 0, 0, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.client-album-page .lightbox img {
  box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
}

.client-album-page .lightbox button {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(18, 18, 17, .76);
  color: #f4f1ec;
}

.client-album-page .lightbox button:hover {
  background: #f4f1ec;
  color: #11100f;
}

@media (max-width: 760px) {
  .client-album-page .site-header {
    padding-inline: 14px;
  }

  .gallery-public {
    width: min(100% - 22px, 1560px);
  }

  .client-album-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
    padding-top: 30px;
  }

  .client-album-page .client-album-hero h1 {
    font-size: clamp(44px, 16vw, 72px);
  }

  .album-subtitle {
    max-width: 100%;
    margin-top: 12px;
    line-height: 1.7;
    text-wrap: balance;
  }

  .album-actions,
  .client-album-page .album-actions .button {
    width: 100%;
  }

  .client-album-page .client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding-top: 14px;
  }

  .client-album-page .client-card {
    border-radius: 0;
    box-shadow: none;
  }

  .client-album-page .client-actions {
    padding: 5px;
  }

  .client-album-page .client-actions .button {
    min-height: 34px;
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .client-album-page .client-grid {
    grid-template-columns: 1fr;
  }
}

/* Team page */
.team-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(201,121,63,.10), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(242,239,233,.04), transparent 22%),
    var(--mono-dark);
  color: var(--mono-text);
}

.team-page-shell {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) 0 clamp(72px, 9vw, 120px);
}

.team-hero {
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.team-hero h1 {
  margin: 0;
  color: var(--mono-text);
  font-family: var(--display);
  font-size: clamp(56px, 10vw, 126px);
  font-weight: 400;
  line-height: .92;
}

.team-hero-copy {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--mono-muted);
  line-height: 1.8;
}

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

.team-card {
  overflow: hidden;
  border: 1px solid var(--mono-line);
  border-radius: 18px;
  background: rgba(242,239,233,.03);
  box-shadow: 0 20px 45px rgba(0,0,0,.16);
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #141312;
}

.team-card-body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.team-role {
  margin: 0;
  color: var(--accent);
  font-family: var(--code);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.team-card h2 {
  margin: 0;
  color: var(--mono-text);
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.05;
}

.team-card p {
  margin: 0;
  color: var(--mono-muted);
  line-height: 1.75;
}

.team-work-btn {
  justify-self: start;
  margin-top: 6px;
}

.team-gallery-view {
  margin-top: clamp(28px, 5vw, 56px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--mono-line);
  border-radius: 20px;
  background: rgba(242,239,233,.03);
}

.team-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.team-gallery-head h2 {
  margin: 6px 0 8px;
  color: var(--mono-text);
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.team-gallery-bio {
  margin: 0;
  max-width: 680px;
  color: var(--mono-muted);
  line-height: 1.8;
}

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

.team-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--mono-line);
  cursor: zoom-in;
  background: #141312;
}

.team-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 760px) {
  .team-grid,
  .team-gallery-grid {
    grid-template-columns: 1fr;
  }

  .team-gallery-head {
    align-items: start;
    flex-direction: column;
  }
}
/* Language switcher and bilingual layout */
.language-switcher {
  position: fixed;
  top: clamp(0.75rem, 2vw, 1.25rem);
  inset-inline-end: clamp(0.75rem, 3vw, 2rem);
  z-index: 1000;
  min-width: 5.6rem;
  min-height: 2.65rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(211, 178, 88, 0.7);
  border-radius: 999px;
  background: rgba(16, 22, 19, 0.9);
  color: #f5e6bb;
  font: 600 0.78rem/1 "Archivo", sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 0.7rem 2rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  transition: transform 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}
.language-switcher:hover,
.language-switcher:focus-visible {
  background: #d3b258;
  color: #101613;
}
.language-switcher:active {
  transform: scale(0.97);
}
.language-switcher:focus-visible {
  outline: 3px solid rgba(211, 178, 88, 0.55);
  outline-offset: 3px;
}
html[dir="rtl"] body {
  text-align: right;
}
html[dir="rtl"] .language-switcher {
  font-family: "Cairo", sans-serif;
  letter-spacing: 0;
}
html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select {
  text-align: left;
}
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: right;
}
@media (max-width: 700px) {
  .language-switcher {
    top: 0.65rem;
    inset-inline-end: 0.75rem;
    min-width: 5rem;
    min-height: 2.45rem;
    padding-inline: 0.7rem;
    font-size: 0.72rem;
  }
  .site-header {
    padding-inline-end: 6.2rem;
  }
  .main-nav {
    gap: 0.65rem;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .language-switcher {
    transition: none;
  }
}
/* Final mobile language switcher positioning */
#siteLanguageToggle.language-switcher {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  z-index: 2147483000;
}
@media (max-width: 700px) {
  #siteLanguageToggle.language-switcher {
    top: auto;
    right: auto;
    inset-inline-end: 0.85rem;
    bottom: calc(5rem + env(safe-area-inset-bottom));
    min-width: 5.25rem;
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
  }
}
@media (min-width: 701px) {
  #siteLanguageToggle.language-switcher {
    top: 1rem;
    inset-inline-end: 1.25rem;
  }
}
/* Mobile side drawer and centered logo */
.mobile-menu-toggle,
.mobile-menu-drawer,
.mobile-menu-backdrop {
  display: none;
}
@media (max-width: 700px) {
  body.has-mobile-language-menu.mobile-menu-open {
    overflow: hidden;
  }
  body.has-mobile-language-menu .site-header {
    position: relative;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 62px;
  }
  body.has-mobile-language-menu .site-header .brand {
    margin-inline: auto;
    text-align: center;
  }
  body.has-mobile-language-menu .site-header .brand-logo {
    width: min(164px, 48vw);
    margin-inline: auto;
  }
  body.has-mobile-language-menu .mobile-menu-toggle {
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(211, 178, 88, 0.72);
    border-radius: 50%;
    background: #101613;
    color: #f5e6bb;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2147483001;
  }
  body.has-mobile-language-menu .mobile-menu-toggle:focus-visible,
  body.has-mobile-language-menu .mobile-menu-close:focus-visible,
  body.has-mobile-language-menu .language-switcher:focus-visible {
    outline: 3px solid rgba(211, 178, 88, 0.56);
    outline-offset: 3px;
  }
  body.has-mobile-language-menu .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.56);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 2147483002;
  }
  body.has-mobile-language-menu .mobile-menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  body.has-mobile-language-menu .mobile-menu-drawer {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    display: flex;
    width: min(84vw, 330px);
    flex-direction: column;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    background: #1d1c1a;
    border-inline-end: 1px solid rgba(211, 178, 88, 0.36);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.35);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms ease;
    z-index: 2147483003;
    overflow-y: auto;
  }
  html[dir="rtl"] body.has-mobile-language-menu .mobile-menu-drawer {
    inset-inline-start: auto;
    inset-inline-end: 0;
    border-inline-end: 0;
    border-inline-start: 1px solid rgba(211, 178, 88, 0.36);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35);
    transform: translateX(105%);
  }
  body.has-mobile-language-menu .mobile-menu-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  body.has-mobile-language-menu .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 20px;
    color: #f2efe9;
    font-family: var(--latin);
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid rgba(242, 239, 233, 0.14);
  }
  html[dir="rtl"] body.has-mobile-language-menu .mobile-menu-head {
    font-family: "Cairo", Arial, sans-serif;
  }
  body.has-mobile-language-menu .mobile-menu-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(242, 239, 233, 0.24);
    border-radius: 50%;
    background: transparent;
    color: #f2efe9;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
  }
  body.has-mobile-language-menu .mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 18px;
  }
  body.has-mobile-language-menu .mobile-menu-links a {
    display: block;
    padding: 13px 10px;
    color: #f2efe9;
    font-family: var(--latin);
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(242, 239, 233, 0.1);
  }
  html[dir="rtl"] body.has-mobile-language-menu .mobile-menu-links a {
    font-family: "Cairo", Arial, sans-serif;
    letter-spacing: 0;
    text-align: right;
  }
  body.has-mobile-language-menu .mobile-menu-links a:hover,
  body.has-mobile-language-menu .mobile-menu-links a:focus-visible {
    color: #d3b258;
  }
  body.has-mobile-language-menu .language-switcher {
    position: static !important;
    inset: auto !important;
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
  }
}
@media (min-width: 701px) {
  .mobile-menu-toggle,
  .mobile-menu-drawer,
  .mobile-menu-backdrop {
    display: none !important;
  }
}
/* Hide legacy mobile navigation when shared drawer is active */
@media (max-width: 700px) {
  body.has-mobile-language-menu .site-header .hamburger,
  body.has-mobile-language-menu .site-header .main-nav {
    display: none !important;
  }
}
/* Explicit language-aware drawer direction */
@media (max-width: 700px) {
  html:not([dir="rtl"]) body.has-mobile-language-menu .mobile-menu-toggle {
    inset-inline-start: 16px !important;
    inset-inline-end: auto !important;
  }
  html:not([dir="rtl"]) body.has-mobile-language-menu .mobile-menu-drawer {
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
    direction: ltr;
    text-align: left;
    transform: translateX(-105%) !important;
  }
  html:not([dir="rtl"]) body.has-mobile-language-menu .mobile-menu-drawer.is-open {
    transform: translateX(0) !important;
  }
  html[dir="rtl"] body.has-mobile-language-menu .mobile-menu-toggle {
    inset-inline-start: auto !important;
    inset-inline-end: 16px !important;
  }
  html[dir="rtl"] body.has-mobile-language-menu .mobile-menu-drawer {
    inset-inline-start: auto !important;
    inset-inline-end: 0 !important;
    direction: rtl;
    text-align: right;
    transform: translateX(105%) !important;
  }
  html[dir="rtl"] body.has-mobile-language-menu .mobile-menu-drawer.is-open {
    transform: translateX(0) !important;
  }
}
/* Physical side correction for language-aware drawer */
@media (max-width: 700px) {
  html:not([dir="rtl"]) body.has-mobile-language-menu .mobile-menu-toggle {
    left: 16px !important;
    right: auto !important;
  }
  html:not([dir="rtl"]) body.has-mobile-language-menu .mobile-menu-drawer {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-105%) !important;
  }
  html:not([dir="rtl"]) body.has-mobile-language-menu .mobile-menu-drawer.is-open {
    transform: translateX(0) !important;
  }
  html[dir="rtl"] body.has-mobile-language-menu .mobile-menu-toggle {
    left: auto !important;
    right: 16px !important;
  }
  html[dir="rtl"] body.has-mobile-language-menu .mobile-menu-drawer {
    left: auto !important;
    right: 0 !important;
    transform: translateX(105%) !important;
  }
  html[dir="rtl"] body.has-mobile-language-menu .mobile-menu-drawer.is-open {
    transform: translateX(0) !important;
  }
}

/* Mina Onsy Studio light theme: warm editorial ivory, ink, and muted bronze. */
html[data-theme="light"] {
  --primary: #31546f;
  --primary-dark: #20384c;
  --bg: #f7f4ee;
  --bg-soft: #ece4d7;
  --text: #282621;
  --muted: #6f695f;
  --line: #d9d0c3;
  --shadow: 0 18px 45px rgba(64, 47, 30, .12);
  --mono-dark: #f7f4ee;
  --mono-panel: #fffdf8;
  --mono-line: #ded5c8;
  --mono-text: #282621;
  --mono-muted: #746d63;
  --accent: #aa753e;
}
html[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}
html[data-theme="light"] .site-header {
  background: rgba(250, 248, 243, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(64, 47, 30, .08);
}
html[data-theme="light"] .site-header::after { background: var(--accent); }
html[data-theme="light"] .brand { color: var(--primary-dark); }
html[data-theme="light"] .brand small { color: var(--accent); }
html[data-theme="light"] .main-nav { color: var(--muted); }
html[data-theme="light"] .main-nav a:hover { color: var(--primary-dark); }
html[data-theme="light"] .nav-cta { color: var(--primary-dark); }
html[data-theme="light"] .hero,
html[data-theme="light"] .hero-media { background: var(--bg); }
html[data-theme="light"] .hero-media::after {
  background: linear-gradient(90deg, rgba(247, 244, 238, .9), rgba(247, 244, 238, .35));
}
html[dir="rtl"][data-theme="light"] .hero-media::after {
  background: linear-gradient(270deg, rgba(247, 244, 238, .9), rgba(247, 244, 238, .35));
}
html[data-theme="light"] .hero h1,
html[data-theme="light"] .hero p,
html[data-theme="light"] .editorial-about h2,
html[data-theme="light"] .text-link { color: var(--mono-text); }
html[data-theme="light"] .hero p,
html[data-theme="light"] .editorial-about p:not(.eyebrow) { color: var(--muted); }
html[data-theme="light"] .eyebrow { color: var(--muted); }
html[data-theme="light"] .content-band,
html[data-theme="light"] .about-section,
html[data-theme="light"] .team-section,
html[data-theme="light"] .pricing-page,
html[data-theme="light"] .booking-page,
html[data-theme="light"] .gallery-page,
html[data-theme="light"] .portfolio-section,
html[data-theme="light"] .portfolio-more,
html[data-theme="light"] .masonry-grid { background: var(--bg); }
html[data-theme="light"] .masonry-item { background: #e4ddd2; }
html[data-theme="light"] .portfolio-more-button,
html[data-theme="light"] .button.primary,
html[data-theme="light"] .submit-btn {
  background: var(--primary-dark);
  color: #fffdf8;
  border-color: var(--primary-dark);
}
html[data-theme="light"] .button.primary:hover,
html[data-theme="light"] .submit-btn:hover,
html[data-theme="light"] .portfolio-more-button:hover { background: var(--primary); }
html[data-theme="light"] .button.ghost {
  color: var(--primary-dark);
  border-color: rgba(32, 56, 76, .35);
  background: rgba(255, 253, 248, .5);
}
html[data-theme="light"] .button.ghost:hover { background: var(--primary-dark); color: #fffdf8; }
html[data-theme="light"] .button.secondary {
  background: var(--bg-soft);
  color: var(--primary-dark);
  border-color: var(--line);
}
html[data-theme="light"] .pricing-card,
html[data-theme="light"] .pricing-note-card,
html[data-theme="light"] .booking-card,
html[data-theme="light"] .admin-card,
html[data-theme="light"] .team-card,
html[data-theme="light"] .gallery-card,
html[data-theme="light"] .card {
  background: var(--mono-panel);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
html[data-theme="light"] .pricing-card.featured,
html[data-theme="light"] .pricing-notes-services { background: #f1e6d4; }
html[data-theme="light"] .pricing-notes-warning { background: #f7e9dc; }
html[data-theme="light"] .pricing-card h2,
html[data-theme="light"] .pricing-card > strong,
html[data-theme="light"] .pricing-details strong,
html[data-theme="light"] .pricing-note-card h2,
html[data-theme="light"] .booking-section-title,
html[data-theme="light"] .package-section-title { color: var(--primary-dark); }
html[data-theme="light"] .pricing-card li,
html[data-theme="light"] .pricing-details li,
html[data-theme="light"] .pricing-note-card li { color: var(--text); border-color: var(--line); }
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #fffdfa;
  color: var(--text);
  border-color: var(--line);
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #91897f; }
html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(170, 117, 62, .16);
}
html[data-theme="light"] .footer,
html[data-theme="light"] footer,
html[data-theme="light"] .site-footer { background: #ebe4da; color: var(--text); border-color: var(--line); }
html[data-theme="light"] .footer-links a { color: var(--muted); }
html[data-theme="light"] .footer-links a:hover { color: var(--primary-dark); }
html[data-theme="light"] .client-album-page,
html[data-theme="light"] .client-album-page .gallery-public { background: var(--bg); color: var(--text); }
html[data-theme="light"] .client-album-page .album-panel,
html[data-theme="light"] .client-album-page .client-card {
  background: var(--mono-panel);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
html[data-theme="light"] .client-album-page .client-card img,
html[data-theme="light"] .client-album-page .client-card video { background: #e8e0d5; }
html[data-theme="light"] .client-album-page .client-actions {
  background: #f0e9df;
  border-top-color: var(--line);
}
html[data-theme="light"] .client-album-page .client-actions .button {
  color: var(--primary-dark);
  border-color: var(--line);
}
html[data-theme="light"] .language-switcher,
html[data-theme="light"] .theme-switcher {
  background: rgba(255, 253, 248, .96);
  color: var(--primary-dark);
  border-color: rgba(170, 117, 62, .62);
  box-shadow: 0 .7rem 2rem rgba(64, 47, 30, .14);
}
html[data-theme="light"] .language-switcher:hover,
html[data-theme="light"] .language-switcher:focus-visible,
html[data-theme="light"] .theme-switcher:hover,
html[data-theme="light"] .theme-switcher:focus-visible {
  background: var(--accent);
  color: #fffdf8;
}
html[data-theme="light"] .mobile-menu-drawer {
  background: #fffdf8;
  color: var(--text);
  border-color: var(--line);
  box-shadow: 0 24px 60px rgba(64, 47, 30, .2);
}
html[data-theme="light"] .mobile-menu-head { border-bottom-color: var(--line); }
html[data-theme="light"] .mobile-menu-links a { color: var(--text); border-bottom-color: var(--line); }
html[data-theme="light"] .mobile-menu-links a:hover,
html[data-theme="light"] .mobile-menu-links a:focus-visible { background: var(--bg-soft); color: var(--primary-dark); }
html[data-theme="light"] .mobile-menu-close,
html[data-theme="light"] .mobile-menu-toggle {
  background: #fffdf8;
  color: var(--primary-dark);
  border-color: rgba(170, 117, 62, .62);
}
html[data-theme="light"] .mobile-menu-backdrop { background: rgba(40, 38, 33, .28); }
html[data-theme="light"] .status-message,
html[data-theme="light"] .muted { color: var(--muted); }
html[data-theme="light"] :focus-visible { outline-color: var(--accent); }

.theme-switcher {
  position: fixed;
  top: 4.35rem;
  inset-inline-end: 1.25rem;
  z-index: 2147482999;
  min-width: 7rem;
  min-height: 2.65rem;
  padding: .5rem .85rem;
  border: 1px solid rgba(211, 178, 88, .7);
  border-radius: 999px;
  background: rgba(16, 22, 19, .9);
  color: #f5e6bb;
  font: 600 .78rem/1 "Archivo", sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 .7rem 2rem rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
  transition: transform 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}
.theme-switcher:hover,
.theme-switcher:focus-visible { background: #d3b258; color: #101613; }
.theme-switcher:active { transform: scale(.97); }
.theme-switcher:focus-visible { outline: 3px solid rgba(211, 178, 88, .55); outline-offset: 3px; }
html[dir="rtl"] .theme-switcher { font-family: "Cairo", sans-serif; letter-spacing: 0; }
@media (max-width: 700px) {
  #siteLanguageToggle.language-switcher,
  #siteThemeToggle.theme-switcher {
    position: static;
    inset: auto;
    display: flex;
    width: 100%;
    min-height: 2.75rem;
    margin: .75rem 0 0;
    justify-content: center;
  }
  #siteThemeToggle.theme-switcher { margin-top: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-switcher { transition: none; }
}

/* Mina Onsy Studio logo and theme-icon refinement. */

html[data-theme="light"] img[data-light-logo] {
  filter: none;
}

.theme-switcher {
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  min-height: 3rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0;
  line-height: 0;
}

.theme-switcher-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.theme-switcher-icon circle {
  fill: none;
}

html[data-theme="light"] .theme-switcher-icon {
  stroke: var(--primary-dark);
}

@media (max-width: 700px) {
  #siteThemeToggle.theme-switcher {
    position: static;
    inset: auto;
    width: 2.9rem;
    min-width: 2.9rem;
    height: 2.9rem;
    min-height: 2.9rem;
    margin: .7rem auto 0;
    padding: 0;
    flex: 0 0 auto;
  }

  #siteThemeToggle .theme-switcher-icon {
    width: 1.2rem;
    height: 1.2rem;
  }
}

@media (max-width: 340px) {
  #siteThemeToggle.theme-switcher {
    width: 2.65rem;
    min-width: 2.65rem;
    height: 2.65rem;
    min-height: 2.65rem;
  }
}

@media (min-width: 701px) {
  .site-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .site-header > .brand {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    margin: 0;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
  }

  .site-header > .brand .brand-logo {
    margin-inline: auto;
  }

  .site-header > .main-nav {
    position: relative;
    z-index: 3;
    margin-inline-end: auto;
  }

  #siteDesktopControls.desktop-controls-bar {
    position: static;
    order: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
    margin-inline-start: auto;
    flex: 0 0 auto;
  }

  #siteDesktopControls .language-switcher,
  #siteDesktopControls .theme-switcher {
    position: static !important;
    inset: auto !important;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 0;
    flex: 0 0 auto;
  }

  #siteDesktopControls .language-switcher {
    min-height: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  html[dir="rtl"] #siteDesktopControls.desktop-controls-bar {
    margin-inline-start: 0;
    margin-inline-end: auto;
  }
}

@media (max-width: 700px) {
  #siteDesktopControls.desktop-controls-bar {
    display: none;
  }
}

/* Desktop header layout: reserve space for the centered logo so navigation never overlaps it. */
@media (min-width: 701px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: initial;
    column-gap: 1rem;
  }
  .site-header > .brand {
    position: static;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    transform: none;
  }
  .site-header > .main-nav {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-inline: 0;
  }
  #siteDesktopControls.desktop-controls-bar {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-inline: 0;
  }
}
