:root {
  --cms-bg: #050505;
  --cms-bg-2: #0b0b0b;
  --cms-panel: rgba(18, 18, 18, .86);
  --cms-panel-strong: rgba(24, 24, 24, .96);
  --cms-line: rgba(217, 165, 32, .24);
  --cms-line-soft: rgba(255, 255, 255, .09);
  --cms-gold: #d9a520;
  --cms-gold-2: #c99722;
  --cms-white: #f5f5f5;
  --cms-muted: rgba(245, 245, 245, .66);
  --cms-danger: #f87171;
  --cms-success: #86efac;
  --cms-radius: 8px;
  --cms-shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

.article-comments {
  margin-top: 48px;
}

.blog-comment-list {
  display: grid;
  gap: 16px;
}

.blog-comment {
  padding: 18px;
  border: 1px solid rgba(212, 175, 79, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.blog-comment strong {
  color: var(--cms-ink);
}

.blog-comment span {
  display: block;
  margin-top: 4px;
  color: var(--cms-muted);
  font-size: 0.82rem;
}

.blog-comment p {
  margin: 12px 0 0;
  color: var(--cms-soft);
  line-height: 2;
}

.blog-comment--reply {
  margin-top: 14px;
  margin-right: 18px;
  border-color: rgba(233, 201, 104, 0.32);
  background: rgba(212, 175, 79, 0.06);
}

.product-consult-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-consult-form label {
  display: grid;
  gap: 8px;
  color: var(--cms-soft);
  font-size: 0.9rem;
}

.product-consult-form .is-full {
  grid-column: 1 / -1;
}

.product-consult-form input,
.product-consult-form textarea {
  width: 100%;
  border: 1px solid rgba(212, 175, 79, 0.18);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--cms-ink);
  background: rgba(255, 255, 255, 0.045);
  outline: none;
}

.product-consult-form input:focus,
.product-consult-form textarea:focus {
  border-color: rgba(233, 201, 104, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 79, 0.08);
}

.product-consult-form button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #171204;
  background: linear-gradient(135deg, var(--cms-gold-2), var(--cms-gold));
  font-weight: 900;
}

@media (max-width: 680px) {
  .product-consult-form {
    grid-template-columns: 1fr;
  }
}

/* Project video management and public showcase */
.cms-section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cms-section-hint {
  max-width: 720px;
  margin: -4px 0 18px;
  color: var(--cms-muted);
  line-height: 1.9;
  font-size: .88rem;
}

.cms-section-heading-icon {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(217, 165, 32, .26);
  border-radius: 14px;
  color: var(--cms-gold);
  background: rgba(217, 165, 32, .08);
}

.project-video-admin-list {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.project-video-admin-item {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(217, 165, 32, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
}

.project-video-admin-preview,
.project-video-player {
  overflow: hidden;
  border: 1px solid rgba(217, 165, 32, .24);
  border-radius: 14px;
  background: #000;
}

.project-video-admin-preview video,
.project-video-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-video-admin-fields {
  display: grid;
  align-content: start;
  gap: 10px;
}

.project-video-admin-meta {
  align-items: end;
  margin: 0;
}

.project-video-admin-meta .cms-check {
  min-height: 44px;
  margin-bottom: 0;
}

.project-video-remove {
  color: var(--cms-danger);
}

.project-video-upload-field {
  padding: 16px;
  border: 1px dashed rgba(217, 165, 32, .34);
  border-radius: 14px;
  background: rgba(217, 165, 32, .035);
}

.project-admin-media-preview {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 165, 32, .14);
}

.cms-pending-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cms-pending-media-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 165, 32, .22);
  border-radius: 12px;
  background: rgba(5, 5, 5, .76);
}

.cms-pending-media-card img,
.cms-pending-media-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #050505;
}

.cms-pending-media-card div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.cms-pending-media-card strong {
  overflow: hidden;
  color: var(--cms-white);
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-pending-media-card small {
  color: var(--cms-muted);
  font-size: .72rem;
}

.cms-pending-video-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.project-admin-media-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--cms-white);
}

.project-admin-media-heading span {
  color: var(--cms-muted);
  font-size: .82rem;
}

.project-admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.project-admin-media-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(217, 165, 32, .22);
  border-radius: 12px;
  background: #050505;
}

.project-admin-media-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .3s ease, opacity .3s ease;
}

.project-admin-media-image:hover img {
  opacity: .82;
  transform: scale(1.04);
}

.project-video-section {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--lux-line);
  border-radius: 20px;
  background: rgba(14, 12, 16, .74);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

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

.project-video-card {
  overflow: hidden;
  border: 1px solid var(--lux-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
}

.project-video-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  color: var(--lux-white);
  cursor: pointer;
}

.project-video-trigger img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: .72;
  transition: transform .35s ease, opacity .35s ease;
}

.project-video-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .74));
  pointer-events: none;
}

.project-video-trigger:hover img {
  opacity: .88;
  transform: scale(1.025);
}

.project-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 202, 104, .78);
  border-radius: 50%;
  color: #080808;
  background: rgba(217, 165, 32, .92);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .46);
  transform: translate(-50%, -50%);
}

.project-video-play i {
  margin-left: 3px;
}

.project-video-duration-label {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid rgba(217, 165, 32, .34);
  border-radius: 8px;
  color: rgba(255, 255, 255, .9);
  background: rgba(5, 5, 5, .68);
  font-size: .8rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.project-video-copy {
  padding: 16px 18px 18px;
}

.project-video-copy h3 {
  margin: 0 0 7px;
  color: var(--lux-white);
  font-size: 1.05rem;
  font-weight: 900;
}

.project-video-copy p {
  margin: 0;
  color: rgba(246, 243, 234, .68);
  line-height: 1.9;
}

@media (max-width: 760px) {
  .project-video-admin-item,
  .project-video-grid {
    grid-template-columns: 1fr;
  }

  .cms-section-heading-row {
    gap: 12px;
  }
}

/* Final overrides: settings UX and full-width article body */
.cms-settings-nav a.is-active {
  color: #181305;
  background: linear-gradient(135deg, #e9c968, #a9812c);
}

.cms-icon-picker--settings {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  width: 100%;
}

.cms-icon-picker--settings .cms-icon-option span {
  min-height: 86px;
}

.cms-icon-picker--settings .cms-icon-option i {
  font-size: 1.35rem;
}

.lux-article-page .article-layout.article-layout--wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  justify-content: stretch;
}

.lux-article-page .article-toc.article-toc--inline {
  position: static;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.lux-article-page .article-toc.article-toc--inline a {
  padding: 8px 12px;
  border: 1px solid rgba(212, 175, 79, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
}

.lux-article-page .article-body.article-body--wide {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* Admin polish pass */
.cms-shell {
  background:
    radial-gradient(circle at 12% 4%, rgba(217, 165, 32, .13), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(201, 151, 34, .08), transparent 30%),
    linear-gradient(135deg, rgba(217, 165, 32, .035) 1px, transparent 1px) 0 0 / 46px 46px,
    #050505;
}

.cms-main {
  position: relative;
}

.cms-main::before {
  position: fixed;
  inset: 0 320px 0 0;
  content: "";
  pointer-events: none;
  opacity: .35;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(217, 165, 32, .08) 42.2% 42.5%, transparent 42.7%),
    linear-gradient(45deg, transparent 0 68%, rgba(217, 165, 32, .06) 68.2% 68.5%, transparent 68.7%);
}

.cms-nav {
  border-left: 1px solid rgba(217, 165, 32, .18);
  background:
    radial-gradient(circle at 50% 0, rgba(217, 165, 32, .16), transparent 38%),
    linear-gradient(180deg, rgba(15, 14, 16, .98), rgba(6, 5, 6, .98));
}

.cms-brand,
.cms-nav-toggle {
  border: 1px solid rgba(217, 165, 32, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}

.cms-brand-mark {
  border: 1px solid rgba(217, 165, 32, .2);
  background: rgba(217, 165, 32, .06);
}

.cms-nav-links a,
.cms-nav-links button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: rgba(245, 245, 245, .76);
  background: transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.cms-nav-links a:hover,
.cms-nav-links button:hover {
  color: #f5f5f5;
  border-color: rgba(217, 165, 32, .18);
  background: rgba(217, 165, 32, .08);
  transform: translateX(-2px);
}

.cms-nav-links a.is-active {
  color: #171204;
  border-color: rgba(233, 201, 104, .5);
  background: linear-gradient(135deg, #e9c968, #c99722);
  box-shadow: 0 12px 34px rgba(217, 165, 32, .2);
}

.cms-nav-links a.is-active i {
  color: #171204;
}

.cms-logout-button,
.cms-button.secondary.cms-logout-button {
  color: #f5f5f5;
  border-color: rgba(248, 113, 113, .22);
  background: rgba(248, 113, 113, .08);
}

.cms-logout-button:hover,
.cms-button.secondary.cms-logout-button:hover {
  color: #fff;
  border-color: rgba(248, 113, 113, .45);
  background: rgba(248, 113, 113, .16);
}

.cms-hero-admin {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(217, 165, 32, .18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(217, 165, 32, .12), transparent 34%),
    rgba(14, 13, 15, .78);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.cms-hero-admin::after {
  position: absolute;
  left: -80px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  content: "";
  border: 1px solid rgba(217, 165, 32, .12);
  transform: rotate(45deg);
}

.cms-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #e9c968;
  font-size: .85rem;
  font-weight: 900;
}

.cms-card--action {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.is-muted-card {
  opacity: .64;
}

.cms-badge.is-off {
  color: rgba(245, 245, 245, .68);
  border-color: rgba(245, 245, 245, .12);
  background: rgba(245, 245, 245, .045);
}

.cms-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(217, 165, 32, .14);
  border-radius: 18px;
  background: rgba(14, 13, 15, .68);
}

.cms-filter-pills a {
  padding: 10px 14px;
  border: 1px solid rgba(217, 165, 32, .14);
  border-radius: 999px;
  color: rgba(245, 245, 245, .74);
  background: rgba(255, 255, 255, .025);
  font-weight: 800;
}

.cms-filter-pills a:hover {
  color: #f5f5f5;
  border-color: rgba(233, 201, 104, .42);
  background: rgba(217, 165, 32, .08);
}

.cms-filter-pills a.is-active {
  color: #171204;
  border-color: transparent;
  background: linear-gradient(135deg, #e9c968, #c99722);
}

.cms-filter-bar--comments {
  grid-template-columns: minmax(220px, 1.1fr) minmax(240px, 1.3fr) minmax(170px, .7fr) auto auto;
}

.cms-mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(217, 165, 32, .16);
  border-radius: 999px;
  color: rgba(245, 245, 245, .72);
  background: rgba(255, 255, 255, .03);
  font-size: .78rem;
  font-weight: 800;
}

.cms-mini-link:hover {
  color: #e9c968;
  border-color: rgba(233, 201, 104, .42);
  background: rgba(217, 165, 32, .08);
}

.cms-button,
a.cms-button,
button.cms-button {
  color: #171204;
  border-color: transparent;
  background: linear-gradient(135deg, #e9c968, #c99722);
}

.cms-button:hover,
a.cms-button:hover,
button.cms-button:hover {
  color: #171204;
  filter: brightness(1.04);
}

.cms-button.secondary,
a.cms-button.secondary,
button.cms-button.secondary,
.cms-button.ghost,
a.cms-button.ghost,
button.cms-button.ghost {
  color: #f5f5f5;
  border-color: rgba(217, 165, 32, .2);
  background: rgba(255, 255, 255, .04);
}

.cms-button.secondary:hover,
a.cms-button.secondary:hover,
button.cms-button.secondary:hover,
.cms-button.ghost:hover,
a.cms-button.ghost:hover,
button.cms-button.ghost:hover {
  color: #e9c968;
  border-color: rgba(233, 201, 104, .44);
  background: rgba(217, 165, 32, .08);
}

.cms-link,
button.cms-link,
a.cms-link {
  color: #e9c968;
  border: 0;
  background: transparent;
  font-weight: 900;
}

.cms-link:hover,
button.cms-link:hover,
a.cms-link:hover {
  color: #f5f5f5;
  text-decoration: none;
}

.cms-table tr:hover td {
  background: rgba(217, 165, 32, .035);
}

.lux-toast {
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(212, 175, 79, .28);
  border-radius: 14px;
  color: var(--lux-gold);
  background: rgba(212, 175, 79, .08);
}

.article-layout--wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.article-toc--inline {
  position: static;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--lux-line);
  border-radius: 18px;
  background: rgba(14, 12, 16, .66);
}

.article-toc--inline b {
  margin-left: 8px;
  color: var(--lux-gold);
}

.article-toc--inline a {
  width: auto;
  padding: 8px 12px;
  border: 1px solid rgba(212, 175, 79, .14);
  border-radius: 999px;
  color: rgba(246, 243, 234, .82);
  background: rgba(255, 255, 255, .025);
}

.article-body--wide {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.article-comments-grid {
  align-items: start;
}

.jobs-list-section {
  margin-top: 28px;
}

.job-row-list {
  display: grid;
  gap: 14px;
}

.job-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--lux-line);
  border-radius: 18px;
  background: rgba(14, 12, 16, .72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .28);
}

.job-row h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 900;
}

.job-row h2 a:hover {
  color: #e9c968;
}

.job-row p {
  margin: 0;
  color: rgba(246, 243, 234, .72);
  line-height: 1.9;
}

.job-dept {
  color: var(--lux-gold);
  font-size: .86rem;
  font-weight: 900;
}

.job-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 230px;
}

.job-row-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(212, 175, 79, .16);
  border-radius: 999px;
  color: rgba(246, 243, 234, .78);
  background: rgba(255, 255, 255, .025);
}

.job-row-meta i {
  color: var(--lux-gold);
}

.job-row-link {
  white-space: nowrap;
}

.career-detail-content {
  align-items: start;
}

.cms-filter-bar,
.cms-settings-layout {
  display: grid;
  gap: 16px;
}

.cms-filter-bar {
  grid-template-columns: 1.4fr 1fr .8fr .9fr auto;
  align-items: end;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(212, 175, 79, .16);
  border-radius: 18px;
  background: rgba(12, 11, 13, .72);
}

.cms-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cms-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.is-muted-row {
  opacity: .55;
}

.cms-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.cms-stat-row article {
  padding: 18px;
  border: 1px solid rgba(212, 175, 79, .16);
  border-radius: 16px;
  background: rgba(12, 11, 13, .72);
}

.cms-stat-row b {
  display: block;
  color: #e9c968;
  font-size: 1.8rem;
  font-weight: 900;
}

.cms-stat-row span {
  color: rgba(246, 243, 234, .68);
}

.cms-comment-list {
  display: grid;
  gap: 16px;
}

.cms-comment-item {
  padding: 18px;
  border: 1px solid rgba(212, 175, 79, .16);
  border-radius: 18px;
  background: rgba(12, 11, 13, .74);
}

.cms-comment-item header,
.cms-comment-post,
.cms-comment-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cms-comment-item header {
  justify-content: space-between;
  margin-bottom: 12px;
}

.cms-comment-item small,
.cms-comment-post {
  color: rgba(246, 243, 234, .58);
}

.cms-comment-post {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.cms-comment-item p {
  color: rgba(246, 243, 234, .82);
  line-height: 2;
}

.cms-reply-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding-right: 14px;
  border-right: 2px solid rgba(212, 175, 79, .26);
}

.cms-reply-list div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(212, 175, 79, .07);
}

.cms-reply-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.cms-settings-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
}

.cms-settings-nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(212, 175, 79, .16);
  border-radius: 18px;
  background: rgba(12, 11, 13, .84);
}

.cms-settings-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(246, 243, 234, .72);
}

.cms-settings-nav a:hover {
  color: #e9c968;
  background: rgba(212, 175, 79, .08);
}

.cms-settings-content {
  display: grid;
  gap: 18px;
}

.cms-settings-section {
  scroll-margin-top: 24px;
}

.cms-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.cms-setting-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 79, .1);
}

.cms-setting-group h3 {
  margin: 0 0 14px;
  color: #e9c968;
  font-size: 1rem;
  font-weight: 900;
}

.cms-sticky-save {
  position: sticky;
  bottom: 18px;
  z-index: 5;
  justify-self: start;
}

@media (max-width: 1100px) {
  .cms-filter-bar,
  .cms-settings-layout {
    grid-template-columns: 1fr;
  }

  .cms-settings-nav {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .cms-settings-nav a {
    white-space: nowrap;
  }

  .job-row {
    grid-template-columns: 1fr;
  }

  .job-row-meta {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .cms-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-toc--inline {
    align-items: stretch;
    flex-direction: column;
  }

  .article-toc--inline a {
    width: 100%;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--cms-bg);
  color: var(--cms-white);
  font-family: var(--font-fa);
}

a { color: inherit; }

a:hover {
  color: var(--cms-gold);
}

.cms-shell {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 14% 8%, rgba(212, 175, 79, .12), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(212, 175, 79, .08), transparent 30%),
    linear-gradient(180deg, #0b090d, #050505 52%, #09080a);
  overflow: hidden;
}

.cms-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 175, 79, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 79, .07) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 65% 15%, black, transparent 62%);
  opacity: .24;
}

.cms-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 24%, rgba(212, 175, 79, .12) 24% 24.18%, transparent 24.18%),
    linear-gradient(45deg, transparent 0 72%, rgba(212, 175, 79, .1) 72% 72.16%, transparent 72.16%),
    radial-gradient(circle at 96% 86%, rgba(212, 175, 79, .12), transparent 26%);
  opacity: .7;
}

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

.cms-main {
  min-width: 0;
  padding: clamp(12px, 2vw, 24px);
}

.cms-login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(217, 165, 32, .14), transparent 30%),
    linear-gradient(180deg, #080808, #020202);
}

.cms-nav {
  position: sticky;
  top: 20px;
  height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--cms-line);
  border-radius: var(--cms-radius);
  background: rgba(8, 8, 8, .76);
  backdrop-filter: blur(18px);
  box-shadow: var(--cms-shadow);
}

.cms-nav-collapsible,
.cms-nav-body {
  min-width: 0;
}

.cms-nav-collapsible {
  height: 100%;
}

.cms-nav-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cms-nav-toggle {
  display: none;
}

@media (min-width: 981px) {
  .cms-nav-collapsible:not([open]) > .cms-nav-body {
    display: flex;
  }
}

.cms-brand {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cms-line-soft);
}

.cms-brand > span:last-child,
.cms-nav-toggle > span {
  min-width: 0;
}

.cms-brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cms-line);
  color: var(--cms-gold);
  background: #0e0e0e;
  font-size: 1.25rem;
}

.cms-brand strong,
.cms-eyebrow {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-eyebrow {
  color: var(--cms-muted);
  font-size: .78rem;
  margin-top: 2px;
}

.cms-nav-links {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.cms-nav a,
.cms-nav button,
.cms-link {
  color: var(--cms-muted);
  text-decoration: none;
}

.cms-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--cms-radius);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.cms-nav a:hover,
.cms-nav a.is-active {
  color: var(--cms-white);
  border-color: var(--cms-line);
  background: rgba(217, 165, 32, .09);
}

.cms-nav i {
  width: 22px;
  color: var(--cms-gold);
  text-align: center;
}

.cms-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.cms-topbar > * {
  min-width: 0;
}

.cms-title {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0;
}

.cms-page-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 900;
}

.cms-subtitle {
  color: var(--cms-muted);
  margin: 0;
  line-height: 1.9;
}

.cms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.cms-card,
.cms-table-wrap,
.cms-form,
.cms-panel {
  border: 1px solid var(--cms-line);
  border-radius: var(--cms-radius);
  background: var(--cms-panel);
  box-shadow: var(--cms-shadow);
}

.cms-card,
.cms-table-wrap,
.cms-form,
.cms-panel,
.cms-nav {
  backdrop-filter: blur(18px);
}

.cms-card {
  display: block;
  min-height: 132px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
}

.cms-card strong {
  display: block;
  color: var(--cms-gold);
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 12px;
}

.cms-card span,
.cms-muted {
  color: var(--cms-muted);
}

.cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.cms-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--cms-gold);
  border-radius: var(--cms-radius);
  color: #070707;
  background: linear-gradient(135deg, var(--cms-gold), #f0c35b);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  max-width: 100%;
  white-space: normal;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}

.cms-button:hover {
  color: #050505;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(217, 165, 32, .22);
}

.cms-button.secondary {
  color: var(--cms-gold);
  background: transparent;
}

.cms-button.ghost {
  color: var(--cms-white);
  border-color: var(--cms-line-soft);
  background: rgba(255, 255, 255, .04);
}

.cms-link {
  color: var(--cms-gold);
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.cms-link:hover { color: var(--cms-white); }

.cms-table-wrap {
  overflow: hidden;
}

.cms-table {
  width: 100%;
  border-collapse: collapse;
}

.cms-table th,
.cms-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--cms-line-soft);
  text-align: right;
  vertical-align: middle;
}

.cms-table td:first-child {
  width: 92px;
}

.cms-table th {
  color: var(--cms-gold);
  font-weight: 800;
  white-space: nowrap;
}

.cms-table tr:last-child td { border-bottom: 0; }

.cms-thumb {
  width: 88px;
  height: 58px;
  object-fit: cover;
  border: 1px solid var(--cms-line);
  border-radius: 6px;
  background: #111;
}

.cms-form {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 1120px;
  padding: clamp(16px, 3vw, 28px);
}

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

.cms-form-section {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--cms-line-soft);
}

.cms-form-grid > *,
.cms-form-section > *,
.cms-field,
.cms-upload,
.cms-icon-picker,
.cms-icon-option,
.cms-editor {
  min-width: 0;
}

.cms-form-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.cms-section-title {
  margin: 0;
  color: var(--cms-gold);
  font-size: 1rem;
  font-weight: 900;
}

.cms-field {
  display: grid;
  gap: 8px;
  color: rgba(245, 245, 245, .86);
}

.cms-field small {
  color: var(--cms-muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.cms-form input,
.cms-form textarea,
.cms-form select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--cms-white);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--cms-radius);
  background: rgba(5, 5, 5, .86);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.cms-form textarea {
  min-height: 132px;
  resize: vertical;
}

.cms-form input:focus,
.cms-form textarea:focus,
.cms-form select:focus {
  outline: none;
  border-color: var(--cms-gold);
  box-shadow: 0 0 0 4px rgba(217, 165, 32, .12);
  background: rgba(10, 10, 10, .98);
}

.cms-check {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cms-white);
}

.cms-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--cms-gold);
}

.cms-status-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.cms-check--panel {
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 165, 32, .22);
  border-radius: 10px;
  background: rgba(217, 165, 32, .045);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.cms-check--panel:hover,
.cms-check--panel:focus-within {
  border-color: rgba(217, 165, 32, .54);
  background: rgba(217, 165, 32, .09);
}

@media (max-width: 560px) {
  .cms-status-switches {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cms-check--panel {
    min-width: 0;
    width: 100%;
  }
}

.cms-upload {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px dashed var(--cms-line);
  border-radius: var(--cms-radius);
  background: rgba(255, 255, 255, .035);
  overflow: hidden;
}

.cms-upload-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--cms-line-soft);
  border-radius: var(--cms-radius);
  background: linear-gradient(135deg, #101010, #050505);
}

.cms-icon-preview {
  display: grid;
  place-items: center;
  color: var(--cms-gold);
  font-size: 2.4rem;
}

.cms-icon-preview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

.cms-icon-option {
  min-width: 0;
}

.cms-icon-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.cms-icon-option span {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--cms-line-soft);
  border-radius: var(--cms-radius);
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  text-align: center;
  transition: border-color .18s ease, background .18s ease;
}

.cms-icon-option i {
  color: var(--cms-gold);
  font-size: 1.45rem;
}

.cms-icon-option small {
  color: var(--cms-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-icon-option input:checked + span {
  border-color: var(--cms-gold);
  background: rgba(217, 165, 32, .12);
}

.cms-editor {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--cms-radius);
  background: #0a0a0a;
}

.cms-editor .ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1px solid var(--cms-line-soft);
  background: #101010;
}

.cms-editor .ql-container.ql-snow {
  min-height: 380px;
  border: 0;
  color: var(--cms-white);
  font: 16px/2 var(--font-fa);
}

.cms-editor .ql-editor {
  min-height: 380px;
  direction: rtl;
  text-align: right;
}

.cms-editor .ql-editor.ql-blank::before {
  color: rgba(245, 245, 245, .38);
  right: 15px;
  left: auto;
}

.cms-editor .ql-stroke { stroke: var(--cms-white); }
.cms-editor .ql-fill { fill: var(--cms-white); }
.cms-editor .ql-picker { color: var(--cms-white); }
.cms-editor .ql-picker-options { background: #101010; border-color: var(--cms-line) !important; }

.cms-editor-form {
  max-width: 1420px;
}

.cms-editor-hero-form {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.cms-cover-uploader {
  grid-template-columns: 1fr;
  height: 100%;
}

.cms-cover-uploader .cms-upload-preview {
  aspect-ratio: 16 / 11;
  min-height: 220px;
}

.cms-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cms-blog-editor .ql-container.ql-snow,
.cms-blog-editor .ql-editor {
  min-height: 560px;
}

.cms-blog-editor .ql-editor {
  max-width: 920px;
  margin-inline: auto;
  padding: 34px;
  color: rgba(245, 245, 245, .9);
  font-size: 1.05rem;
  line-height: 2.2;
}

.cms-blog-editor .ql-editor h1,
.cms-blog-editor .ql-editor h2,
.cms-blog-editor .ql-editor h3 {
  color: var(--cms-white);
  font-weight: 900;
}

.cms-blog-editor .ql-editor blockquote {
  margin: 22px 0;
  padding: 18px 22px;
  border-right: 3px solid var(--cms-gold);
  border-left: 0;
  color: #f5d681;
  background: rgba(217, 165, 32, .08);
}

.cms-blog-editor .ql-editor img {
  display: block;
  max-width: 100%;
  margin: 22px auto;
  border: 1px solid var(--cms-line);
  border-radius: 14px;
}

.cms-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.cms-media-card {
  overflow: hidden;
  border: 1px solid var(--cms-line);
  border-radius: var(--cms-radius);
  background: var(--cms-panel);
}

.cms-media-card img,
.cms-media-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #111;
}

.cms-media-card div { padding: 14px; }

.cms-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--cms-line-soft);
  border-radius: 999px;
  color: var(--cms-muted);
  background: rgba(255, 255, 255, .04);
  font-size: .84rem;
}

.cms-badge.is-live {
  color: var(--cms-success);
  border-color: rgba(134, 239, 172, .28);
}

.cms-service-icon,
.cms-service-icon-img {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(217, 165, 32, .42);
  border-radius: 8px;
  background: rgba(217, 165, 32, .1);
  color: var(--cms-gold);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.cms-brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.cms-service-icon i {
  color: var(--cms-gold);
  font-size: 1.18rem;
}

.cms-service-icon-img {
  object-fit: contain;
  padding: 8px;
}

/* Shared admin list controls and media library picker */
[data-admin-item][hidden],
.cms-list-empty[hidden],
.cms-media-picker[hidden],
.cms-media-picker__status[hidden] {
  display: none !important;
}

.cms-list-panel {
  min-width: 0;
}

.cms-list-toolbar,
.cms-list-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cms-list-toolbar {
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid rgba(217, 165, 32, .16);
  border-radius: 14px;
  background: rgba(12, 11, 13, .72);
}

.cms-list-summary {
  justify-content: space-between;
  padding-inline: 4px;
}

.cms-list-search {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
}

.cms-list-search i {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--cms-gold);
  transform: translateY(-50%);
  pointer-events: none;
}

.cms-list-search input,
.cms-media-picker__search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 42px 10px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px;
  color: var(--cms-white);
  background: rgba(5, 5, 5, .86);
  font: inherit;
}

.cms-list-search input:focus,
.cms-media-picker__search input:focus {
  outline: none;
  border-color: var(--cms-gold);
  box-shadow: 0 0 0 4px rgba(217, 165, 32, .12);
}

.cms-status-filter {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
}

.cms-status-filter button {
  min-height: 40px;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--cms-muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cms-status-filter button:hover {
  color: var(--cms-white);
  background: rgba(217, 165, 32, .08);
}

.cms-status-filter button[aria-pressed="true"] {
  color: #171204;
  background: linear-gradient(135deg, #e9c968, #c99722);
}

.cms-result-count {
  color: var(--cms-muted);
  font-size: .86rem;
  white-space: nowrap;
}

.cms-list-empty {
  margin-top: 14px;
  padding: 22px;
  border: 1px dashed rgba(217, 165, 32, .24);
  border-radius: 12px;
  color: var(--cms-muted);
  text-align: center;
}

.cms-list-empty i {
  margin-left: 8px;
  color: var(--cms-gold);
}

.cms-media-source-actions,
.cms-gallery-source-actions,
.cms-editor-media-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.cms-media-source-actions {
  align-items: flex-start;
}

.cms-media-source-actions > *,
.cms-gallery-source-actions > * {
  flex: 1 1 220px;
}

.cms-device-upload {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: rgba(245, 245, 245, .86);
}

.cms-setting-image-preview {
  width: min(100%, 360px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--cms-line);
  border-radius: 10px;
  background: #0a0a0a;
}

body.cms-modal-open {
  overflow: hidden;
}

.cms-media-picker {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.cms-media-picker__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(8px);
}

.cms-media-picker__panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  max-height: min(820px, calc(100dvh - 36px));
  display: grid;
  grid-template-rows: auto auto auto minmax(160px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(217, 165, 32, .34);
  border-radius: 18px;
  color: var(--cms-white);
  background: #0b0a0c;
  box-shadow: 0 36px 120px rgba(0, 0, 0, .72);
}

.cms-media-picker__header,
.cms-media-picker__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--cms-line-soft);
}

.cms-media-picker__header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.cms-media-picker__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px;
  color: var(--cms-white);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
}

.cms-media-picker__search {
  position: relative;
  display: block;
  margin: 16px 20px 0;
}

.cms-media-picker__search i {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--cms-gold);
  transform: translateY(-50%);
}

.cms-media-picker__status {
  padding: 26px 20px;
  color: var(--cms-muted);
  text-align: center;
}

.cms-media-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  overflow-y: auto;
  padding: 16px 20px 22px;
  overscroll-behavior: contain;
}

.cms-media-picker__item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  color: var(--cms-white);
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  text-align: right;
}

.cms-media-picker__item:hover,
.cms-media-picker__item[aria-pressed="true"] {
  border-color: var(--cms-gold);
  box-shadow: 0 0 0 3px rgba(217, 165, 32, .1);
}

.cms-media-picker__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  background: #111;
}

.cms-media-picker__item span {
  display: block;
  overflow: hidden;
  padding: 10px;
  color: rgba(245, 245, 245, .76);
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-media-picker__item > i {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: #171204;
  background: var(--cms-gold);
}

.cms-media-picker__item[aria-pressed="true"] > i {
  display: grid;
}

.cms-media-picker__footer {
  border-top: 1px solid var(--cms-line-soft);
  border-bottom: 0;
  color: var(--cms-muted);
}

.cms-media-picker__footer .cms-actions {
  margin: 0;
}

.cms-media-picker__footer .cms-button:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 700px) {
  .cms-list-toolbar,
  .cms-media-picker__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cms-list-search,
  .cms-status-filter,
  .cms-media-picker__footer .cms-actions,
  .cms-media-picker__footer .cms-button {
    width: 100%;
  }

  .cms-list-search {
    flex-basis: auto;
  }

  .cms-media-source-actions,
  .cms-gallery-source-actions,
  .cms-editor-media-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cms-media-picker {
    padding: 8px;
  }

  .cms-media-picker__panel {
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }

  .cms-media-picker__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 12px;
  }

  .cms-media-picker__search {
    margin-inline: 12px;
  }
}

.cms-alert {
  padding: 12px 16px;
  border: 1px solid #a87522;
  border-radius: var(--cms-radius);
  color: #f5d681;
  background: rgba(217, 165, 32, .08);
}

.public-page {
  min-height: 100vh;
  padding: 40px clamp(18px, 6vw, 120px);
  background: radial-gradient(circle at 80% 0, rgba(217, 165, 32, .12), transparent 28%), #080808;
}

.public-page__header { max-width: 900px; margin-bottom: 40px; }
.public-page__header h1 { font-size: clamp(2.2rem, 5vw, 5rem); margin: 0 0 12px; font-weight: 900; }
.public-page__header p { color: rgba(245,245,245,.7); line-height: 2; }
.public-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.public-card { overflow: hidden; border: 1px solid var(--cms-line); background: #111; text-decoration: none; color: inherit; border-radius: var(--cms-radius); }
.public-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.public-card__body { padding: 18px; }
.public-card__body h2,.public-card__body h3 { margin: 0 0 8px; font-size: 1.25rem; }
.public-card__body p { color: rgba(245,245,245,.7); line-height: 1.9; }
.public-detail { max-width: 960px; margin: 0 auto; }
.public-detail img { width: 100%; max-height: 560px; object-fit: cover; margin: 20px 0 32px; border: 1px solid var(--cms-line); border-radius: var(--cms-radius); }
.public-content { color: rgba(245,245,245,.84); line-height: 2.2; }
.public-content img { max-width: 100%; height: auto; }

@media (max-width: 980px) {
  .cms-shell {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  .cms-nav {
    position: sticky;
    top: 8px;
    z-index: 40;
    height: auto;
    padding: 0 10px;
  }

  .cms-nav-collapsible {
    height: auto;
  }

  .cms-nav-toggle {
    min-height: 58px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    color: var(--cms-white);
  }

  .cms-nav-toggle::-webkit-details-marker {
    display: none;
  }

  .cms-nav-toggle > i:last-child {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--cms-line);
    border-radius: 8px;
    color: var(--cms-gold);
    background: rgba(255, 255, 255, .04);
    transition: transform .2s ease;
  }

  .cms-nav-collapsible[open] .cms-nav-toggle > i:last-child {
    transform: rotate(90deg);
  }

  .cms-nav-body {
    display: none;
    height: auto;
    padding-top: 10px;
    border-top: 1px solid var(--cms-line-soft);
  }

  .cms-nav-collapsible[open] .cms-nav-body {
    display: block;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .cms-nav-body .cms-brand {
    display: none;
  }

  .cms-nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 10px 0;
  }

  .cms-topbar {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .cms-shell {
    width: 100%;
    padding: 10px;
  }

  .cms-main {
    width: 100%;
    padding: 6px 0;
    overflow: hidden;
  }

  .cms-form-grid,
  .cms-upload {
    grid-template-columns: 1fr;
  }

  .cms-form {
    padding: 14px;
  }

  .cms-icon-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cms-icon-option span {
    min-height: 76px;
    padding: 10px 8px;
  }

  .cms-icon-option small {
    font-size: .78rem;
  }

  .cms-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cms-table {
    min-width: 720px;
  }

  .cms-blog-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .cms-blog-table {
    display: block;
    min-width: 0;
  }

  .cms-blog-table thead {
    display: none;
  }

  .cms-blog-table tbody {
    display: grid;
    gap: 14px;
  }

  .cms-blog-table tr {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--cms-line);
    border-radius: 14px;
    background: rgba(18, 18, 18, .92);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  }

  .cms-blog-table td,
  .cms-blog-table td:first-child {
    width: auto;
    min-width: 0;
    padding: 12px 14px;
    border-bottom: 1px solid var(--cms-line-soft);
  }

  .cms-blog-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--cms-gold);
    font-size: .72rem;
    font-weight: 800;
  }

  .cms-blog-table td:first-child {
    grid-row: 1 / 3;
    padding: 10px;
    border-left: 1px solid var(--cms-line-soft);
  }

  .cms-blog-table td:first-child::before {
    display: none;
  }

  .cms-blog-table td:nth-child(n + 3) {
    grid-column: 1 / -1;
  }

  .cms-blog-table td:last-child {
    border-bottom: 0;
  }

  .cms-blog-table .cms-thumb {
    width: 100%;
    height: 100%;
    min-height: 94px;
  }

  .cms-mobile-card-title {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .cms-blog-table .cms-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .cms-blog-table .cms-actions > *,
  .cms-blog-table .cms-actions form,
  .cms-blog-table .cms-actions .cms-link {
    width: 100%;
    min-width: 0;
  }

  .cms-blog-table .cms-actions .cms-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 8px;
    border: 1px solid var(--cms-line);
    border-radius: 8px;
    text-align: center;
  }

  .cms-blog-editor-page .cms-editor-hero-form {
    grid-template-columns: 1fr;
  }

  .cms-blog-editor-page .cms-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cms-blog-editor-page .cms-topbar > .cms-actions {
    width: 100%;
  }

  .cms-blog-editor-page .cms-topbar > .cms-actions .cms-button {
    flex: 1 1 150px;
  }

  .cms-blog-editor .ql-toolbar.ql-snow {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 9px 7px;
  }

  .cms-blog-editor .ql-toolbar.ql-snow .ql-formats {
    margin: 0 0 3px 4px;
  }

  .cms-blog-editor .ql-container.ql-snow,
  .cms-blog-editor .ql-editor {
    min-height: 420px;
  }

  .cms-blog-editor .ql-editor {
    padding: 18px 14px;
    font-size: .96rem;
  }

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

  .public-page {
    padding: 24px 16px;
  }
}

/* Fifth-home inspired public pages */
.public-page.lux-public,
.lux-public {
  --lux-bg: #08070a;
  --lux-surface: rgba(18, 16, 19, .78);
  --lux-surface-2: rgba(28, 24, 28, .86);
  --lux-line: rgba(212, 175, 79, .18);
  --lux-line-strong: rgba(212, 175, 79, .36);
  --lux-gold: #d4af4f;
  --lux-gold-2: #e9c968;
  --lux-white: #f6f3ea;
  --lux-muted: #cfc9bd;
  position: relative;
  min-height: 100vh;
  padding: 146px clamp(18px, 4vw, 72px) 72px;
  background:
    radial-gradient(circle at 14% 8%, rgba(212, 175, 79, .09), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(212, 175, 79, .06), transparent 30%),
    linear-gradient(180deg, #0b090d 0%, #050505 48%, #09080a 100%);
  color: var(--lux-white);
  overflow: clip;
}

.lux-public::before,
.lux-public::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.lux-public::before {
  background-image:
    linear-gradient(rgba(212, 175, 79, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 79, .07) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 70% 20%, black, transparent 62%);
  opacity: .28;
}

.lux-public::after {
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(212, 175, 79, .13) 38% 38.3%, transparent 38.3%),
    linear-gradient(45deg, transparent 0 72%, rgba(212, 175, 79, .1) 72% 72.25%, transparent 72.25%);
  opacity: .45;
}

.lux-shell {
  position: relative;
  z-index: 1;
  width: min(1500px, 100%);
  margin-inline: auto;
}

.lux-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  margin-bottom: clamp(34px, 5vw, 72px);
}

.lux-hero-copy {
  text-align: right;
}

.lux-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(246, 243, 234, .66);
  font-weight: 700;
}

.lux-breadcrumb a {
  color: rgba(246, 243, 234, .72);
  text-decoration: none;
}

.lux-breadcrumb i,
.lux-kicker {
  color: var(--lux-gold);
}

.lux-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 900;
}

.lux-title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6.6rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
}

.lux-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--lux-muted);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 2.05;
}

.lux-hero-media,
.lux-detail-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lux-line-strong);
  border-radius: 22px;
  background: #111;
  box-shadow: 0 32px 110px rgba(0, 0, 0, .48);
}

.lux-hero-media::before,
.lux-detail-media::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 1px solid rgba(212, 175, 79, .24);
  border-radius: 16px;
  pointer-events: none;
}

.lux-hero-media img,
.lux-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(.82) contrast(1.08);
}

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

.lux-grid.is-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lux-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--lux-line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22, 19, 24, .88), rgba(10, 9, 11, .92));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.lux-card:hover {
  transform: translateY(-6px);
  border-color: var(--lux-line-strong);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .44);
}

.lux-card__image {
  height: 250px;
  overflow: hidden;
}

.lux-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.lux-card:hover .lux-card__image img {
  transform: scale(1.07);
}

.lux-card__body {
  padding: 22px;
}

.lux-card__body h2,
.lux-card__body h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 900;
}

.lux-card__body p {
  margin: 0;
  color: rgba(246, 243, 234, .72);
  line-height: 1.95;
}

.lux-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.lux-chip,
.lux-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(212, 175, 79, .22);
  border-radius: 999px;
  color: var(--lux-gold);
  background: rgba(212, 175, 79, .07);
  font-size: .9rem;
  font-weight: 800;
}

.lux-more {
  margin-top: 18px;
  border-radius: 10px;
  color: #09080a;
  background: linear-gradient(135deg, var(--lux-gold-2), var(--lux-gold));
}

.lux-more:hover,
a.lux-more:hover {
  color: #09080a;
  filter: brightness(1.06);
}

.cms-button:hover,
a.cms-button:hover,
.blog-filter-bar a.is-active:hover {
  color: #050505;
}

.lux-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.lux-detail-card,
.lux-info-card {
  border: 1px solid var(--lux-line);
  border-radius: 22px;
  background: var(--lux-surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
}

.lux-detail-card {
  padding: clamp(22px, 4vw, 42px);
}

.lux-detail-card h2 {
  margin: 26px 0 12px;
  color: var(--lux-gold);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 900;
}

.lux-rich-content {
  color: rgba(246, 243, 234, .84);
  line-height: 2.25;
  font-size: 1.04rem;
}

.lux-rich-content img {
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border: 1px solid var(--lux-line);
  border-radius: 18px;
}

.lux-info-card {
  position: sticky;
  top: 122px;
  padding: 24px;
}

.lux-info-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.lux-info-card div {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(246, 243, 234, .09);
}

.lux-info-card dt {
  color: rgba(246, 243, 234, .6);
}

.lux-info-card dd {
  margin: 0;
  color: var(--lux-white);
  font-weight: 900;
}

.lux-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.lux-gallery img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border: 1px solid var(--lux-line);
  border-radius: 16px;
}

.lux-service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--lux-line-strong);
  border-radius: 16px;
  color: var(--lux-gold);
  background: rgba(212, 175, 79, .08);
  font-size: 1.5rem;
}

.lux-service-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .lux-hero,
  .lux-detail {
    grid-template-columns: 1fr;
  }

  .lux-grid,
  .lux-grid.is-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lux-info-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .public-page.lux-public,
  .lux-public {
    padding: 112px 16px 44px;
  }

  .lux-title {
    font-size: clamp(2.25rem, 13vw, 3.5rem);
  }

  .lux-hero-media img,
  .lux-detail-media img {
    min-height: 280px;
  }

  .lux-grid,
  .lux-grid.is-wide,
  .lux-gallery {
    grid-template-columns: 1fr;
  }

  .lux-card {
    min-height: auto;
  }

  .lux-card__image {
    height: 220px;
  }
}

/* Editorial blog pages inspired by the approved mockups */
.lux-blog-page::before,
.lux-article-page::before {
  background-size: 118px 118px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
  opacity: .36;
}

.blog-editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr);
  gap: clamp(28px, 5vw, 82px);
  align-items: center;
  margin-bottom: 30px;
}

.blog-featured-card {
  position: relative;
  min-height: 380px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border: 1px solid var(--lux-line-strong);
  border-radius: 24px;
  background: rgba(10, 9, 11, .82);
  box-shadow: 0 32px 110px rgba(0, 0, 0, .48);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.blog-featured-card::before,
.article-hero-media::before,
.product-main-image::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgba(212, 175, 79, .28);
  pointer-events: none;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.blog-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  filter: saturate(.82) contrast(1.08);
}

.blog-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
  background: linear-gradient(90deg, rgba(8, 7, 9, .96), rgba(8, 7, 9, .72));
}

.blog-featured-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.8rem, 3vw, 3.3rem);
  line-height: 1.35;
  font-weight: 900;
}

.blog-featured-copy p,
.blog-hero-copy p,
.blog-tile-body p {
  color: rgba(246, 243, 234, .72);
  line-height: 2;
}

.blog-hero-copy {
  text-align: right;
}

.blog-filter-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-bottom: 26px;
  padding: 15px 0 18px;
  border-top: 1px solid rgba(212, 175, 79, .2);
  border-bottom: 1px solid rgba(212, 175, 79, .2);
}

.blog-filter-bar a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid rgba(246, 243, 234, .14);
  border-radius: 12px;
  color: rgba(246, 243, 234, .78);
  background: rgba(255, 255, 255, .035);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 800;
}

.blog-filter-bar a.is-active,
.blog-filter-bar a:hover {
  color: #09080a;
  border-color: var(--lux-gold);
  background: linear-gradient(135deg, var(--lux-gold-2), var(--lux-gold));
}

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

.blog-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--lux-line);
  border-radius: 20px;
  color: inherit;
  background: linear-gradient(180deg, rgba(20, 18, 22, .86), rgba(8, 7, 9, .92));
  text-decoration: none;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
  transition: transform .24s ease, border-color .24s ease;
}

.blog-tile:nth-child(1),
.blog-tile:nth-child(6n) {
  grid-column: span 2;
}

.blog-tile:hover {
  transform: translateY(-5px);
  border-color: var(--lux-line-strong);
}

.blog-tile-media {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.blog-tile:nth-child(1) .blog-tile-media,
.blog-tile:nth-child(6n) .blog-tile-media {
  height: 300px;
}

.blog-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.blog-tile:hover .blog-tile-media img {
  transform: scale(1.07);
}

.blog-tile-media span {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(212, 175, 79, .32);
  border-radius: 10px;
  color: var(--lux-gold);
  background: rgba(5, 5, 5, .64);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.blog-tile-body {
  padding: 20px;
}

.blog-tile-body small,
.blog-tile-body b {
  color: var(--lux-gold);
  font-weight: 900;
}

.blog-tile-body h2 {
  margin: 10px 0;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.65;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 5vw, 84px);
  align-items: center;
}

.article-hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lux-line-strong);
  border-radius: 24px;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
  box-shadow: 0 32px 110px rgba(0, 0, 0, .5);
}

.article-hero-media img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.article-meta-row span {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(246, 243, 234, .13);
  border-radius: 11px;
  color: rgba(246, 243, 234, .82);
  background: rgba(255, 255, 255, .035);
}

.article-meta-row i {
  color: var(--lux-gold);
}

.article-progress {
  height: 3px;
  margin-top: 34px;
  margin-bottom: 34px;
  background: rgba(246, 243, 234, .12);
}

.article-progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, var(--lux-gold), var(--lux-gold-2));
  box-shadow: 0 0 22px rgba(212, 175, 79, .5);
}

.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 820px);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  justify-content: center;
}

.article-toc {
  position: sticky;
  top: 124px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--lux-line);
  border-radius: 18px;
  background: rgba(10, 9, 11, .72);
  backdrop-filter: blur(16px);
}

.article-toc b {
  color: var(--lux-white);
}

.article-toc a {
  color: rgba(246, 243, 234, .68);
  text-decoration: none;
  font-size: .92rem;
}

.article-body {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--lux-line);
  border-radius: 22px;
  background: rgba(12, 11, 13, .62);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.article-pullquote {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(212, 175, 79, .3);
  border-radius: 16px;
  color: var(--lux-white);
  background: rgba(212, 175, 79, .06);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 2;
}

.article-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--lux-line);
  border-radius: 22px;
  background: rgba(18, 16, 19, .78);
}

.article-bottom-cta h2 {
  margin: 0 0 8px;
  color: var(--lux-gold);
  font-weight: 900;
}

.article-bottom-cta p {
  margin: 0;
  color: rgba(246, 243, 234, .72);
}

/* Project detail page */
.lux-project-page::before {
  background-size: 118px 118px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
  opacity: .36;
}

.project-showcase-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.project-gallery-frame {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--lux-line-strong);
  border-radius: 24px;
  background: rgba(10, 9, 11, .76);
  box-shadow: 0 34px 120px rgba(0, 0, 0, .5);
  backdrop-filter: blur(18px);
}

.project-main-image {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid var(--lux-line-strong);
  border-radius: 22px;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
}

.project-main-image::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 2;
  border: 1px solid rgba(212, 175, 79, .26);
  pointer-events: none;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.project-main-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  filter: saturate(.86) contrast(1.08);
}

.project-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.project-thumbs img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(246, 243, 234, .14);
  border-radius: 14px;
}

.project-showcase-copy h1 {
  margin-top: 12px;
}

.project-spec-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.project-spec-chips div,
.project-content-card,
.project-gallery-section {
  border: 1px solid var(--lux-line);
  background: rgba(14, 12, 16, .74);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

.project-spec-chips div {
  min-height: 88px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 15px;
  border-radius: 14px;
}

.project-spec-chips i {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 79, .28);
  border-radius: 13px;
  color: var(--lux-gold);
  background: rgba(212, 175, 79, .08);
}

.project-spec-chips span {
  color: rgba(246, 243, 234, .62);
}

.project-spec-chips b {
  overflow: hidden;
  color: var(--lux-white);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.project-secondary-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(246, 243, 234, .14);
  border-radius: 10px;
  color: var(--lux-white);
  background: rgba(255, 255, 255, .035);
  text-decoration: none;
  font-weight: 900;
}

.project-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.lux-empty-state {
  min-height: 320px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 36px 24px;
  border: 1px solid var(--lux-line-strong);
  border-radius: 20px;
  color: var(--lux-muted);
  text-align: center;
  background: rgba(12, 10, 13, .78);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .32);
}

.lux-empty-state i {
  color: var(--lux-gold);
  font-size: 2rem;
}

.lux-empty-state h2,
.lux-empty-state p {
  margin: 0;
}

.lux-empty-state h2 {
  color: var(--lux-white);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
}

.lux-empty-state p {
  line-height: 2;
}

.project-content-card,
.project-gallery-section {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 20px;
}

.project-gallery-section {
  margin-top: 22px;
}

.project-section-head h2 {
  margin: 8px 0 20px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .blog-editorial-hero,
  .article-hero,
  .article-layout,
  .project-showcase-hero,
  .project-content-grid {
    grid-template-columns: 1fr;
  }

  .blog-featured-card {
    grid-template-columns: 1fr;
  }

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

  .article-toc {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 680px) {
  .blog-masonry {
    grid-template-columns: 1fr;
  }

  .blog-tile:nth-child(1),
  .blog-tile:nth-child(6n) {
    grid-column: auto;
  }

  .article-meta-row span,
  .article-bottom-cta {
    width: 100%;
  }

  .article-bottom-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .article-toc {
    grid-template-columns: 1fr;
  }

  .project-main-image,
  .project-main-image img {
    min-height: 340px;
  }

  .project-thumbs {
    display: flex;
    overflow-x: auto;
  }

  .project-thumbs img {
    flex: 0 0 120px;
  }

  .project-spec-chips {
    grid-template-columns: 1fr;
  }
}
