/* Approved Taste refinements. Original design tokens and styles remain preserved. */
:root {
  --color-text-muted: #625c55;
}
main {
  overflow-wrap: break-word;
}
main img {
  max-width: 100% !important;
}
.responsive-split > *,
.form-group,
.calc-results,
.result-card {
  min-width: 0;
}
.nav-desktop,
.nav-links {
  gap: 1.15rem;
}
.nav-link,
.header-actions .btn-primary {
  white-space: nowrap;
}
.header-actions .btn-primary {
  padding-inline: 1.1rem;
}
.brand-subtext {
  letter-spacing: 0.12em;
}
.mobile-drawer {
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog.mobile-drawer {
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border-inline: 0;
  border-top: 0;
  color: var(--color-text-primary);
}
dialog.mobile-drawer:not([open]) {
  display: none;
}
dialog.mobile-drawer[open] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
}
dialog.mobile-drawer::backdrop {
  background: #19171355;
}
.drawer-close {
  align-self: flex-end;
  margin-bottom: 1rem;
}
.project-image-pending {
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--color-bg-elevated);
  text-align: center;
}
.project-documentation {
  margin-top: 2rem;
}
.project-documentation a {
  text-decoration: underline;
}
main .footer-badge {
  color: #584c3b;
  background: #eee8df;
  font-size: 0.75rem;
}
main .footer-badge-sg {
  color: #174a88;
  background: #e8eff7;
}
main .footer-badge[style] {
  color: #6b1315 !important;
}
.site-footer .brand-subtext,
.site-footer .footer-badge {
  color: #d7c7ac;
}
.site-footer .footer-badge[style] {
  color: #a8dbb7 !important;
}
main .badge-sg {
  color: #174a88;
  background: #e8eff7;
}
.specs-table tr {
  opacity: 1 !important;
}
#blast-mitigation .responsive-split div[style*="#ff6b6b"] {
  color: #a52e32 !important;
}
.site-footer {
  --color-text-muted: #beb8b0;
}
.proof-meta,
.project-meta,
.project-category,
.result-label,
.form-label {
  font-size: max(0.75rem, 12px);
}
.proof-video-box {
  height: 0;
  padding-bottom: 56.25%;
  aspect-ratio: auto;
  overflow: hidden;
}
.proof-video-box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-editorial {
  position: relative;
  min-height: calc(100svh - 107px);
  height: calc(100svh - 107px);
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 1px solid var(--border-medium);
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero-editorial {
    min-height: calc(100svh - 97px);
    height: auto;
    padding-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
  }
}
.hero-backdrop {
  z-index: auto;
  background: #110e0c;
}
.hero-video {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}
.hero-overlay {
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(17, 14, 12, 0.88) 0%,
    rgba(17, 14, 12, 0.65) 45%,
    rgba(17, 14, 12, 0.25) 75%,
    rgba(17, 14, 12, 0.05) 100%
  ) !important;
}
@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(17, 14, 12, 0.88) 0%,
      rgba(17, 14, 12, 0.72) 45%,
      rgba(17, 14, 12, 0.3) 85%,
      rgba(17, 14, 12, 0.1) 100%
    ) !important;
  }
}
.hero-editorial .eyebrow {
  color: #e59d74;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.hero-editorial .hero-title {
  color: #ffffff;
}
.hero-editorial .hero-title em {
  color: #e28e64;
}
.hero-editorial .hero-subtitle {
  color: #f5efe6;
}
.hero-video-controls {
  position: absolute;
  right: max(1.25rem, 4vw);
  bottom: 1.25rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hero-video-pill {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(23, 20, 17, 0.75);
  backdrop-filter: blur(8px);
  color: #e5ded4;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}
.hero-video-pill.active {
  background: #6b1315;
  color: #ffffff;
  border-color: rgba(226, 142, 100, 0.6);
  box-shadow: 0 0 12px rgba(107, 19, 21, 0.4);
}
.hero-video-pill:hover:not(.active) {
  background: rgba(23, 20, 17, 0.95);
  border-color: rgba(255, 255, 255, 0.45);
}
.hero-overlay {
  pointer-events: none;
}
.video-toggle {
  color: #f5efe6;
  background: rgba(17, 14, 12, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.45rem 0.85rem;
  font: 500 0.75rem var(--font-sans);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.video-toggle:hover {
  background: #6b1315;
  border-color: rgba(226, 142, 100, 0.6);
  color: #ffffff;
}
.section {
  padding-block: clamp(3rem, 5vw, 5rem);
}
.page-intro {
  padding-block: clamp(3rem, 5vw, 4.5rem) !important;
}
.page-intro h1 {
  font-size: clamp(2.6rem, 5vw, 4.5rem) !important;
  line-height: 1.06;
  max-width: 1000px;
}
.page-intro p {
  max-width: 780px;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.technical-details {
  margin-bottom: 2rem;
  border-block: 1px solid var(--border-medium);
}
.technical-details > summary {
  padding: 1.2rem 0.5rem;
  font-weight: 600;
  cursor: pointer;
}
.technical-details[open] > summary {
  border-bottom: 1px solid var(--border-medium);
}
.calc-results > div:last-child {
  flex-wrap: wrap;
  gap: 1rem;
}
#metric-leed {
  font-size: clamp(1.4rem, 2vw, 2rem);
}
.project-image-button {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  position: relative;
  background: transparent;
  cursor: zoom-in;
}
.project-image-button > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-action {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  color: #fff;
  background: #28231eee;
  padding: 0.5rem 0.75rem;
  font: 500 0.75rem var(--font-sans);
}
.project-dialog {
  margin: auto;
  width: min(1100px, 94vw);
  max-width: 94vw;
  max-height: 92svh;
  padding: 1rem;
  border: 1px solid #6b1315;
  color: #29231d;
  background: #f8f6f3;
  overflow: auto;
}
.project-dialog::backdrop {
  background: #171411d9;
}
.project-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}
.project-dialog-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0;
}
.project-dialog > img {
  width: 100%;
  height: auto;
  max-height: 72svh;
  object-fit: contain;
  transform: none !important;
}
.project-thumbnail:has(dialog[open]) {
  overflow: visible;
}
.form-error {
  font-size: 0.8rem;
  color: #a02222;
}
[aria-invalid="true"] {
  border-color: #a02222 !important;
}
.inquiry-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.inquiry-actions p {
  flex: 1 1 220px;
  font-size: 0.8rem;
  margin: 0;
}
.email-draft {
  padding: 1.25rem;
  border: 1px solid #6b1315;
  background: #f3eee6;
}
.email-draft p,
.draft-help {
  font-size: 0.85rem;
}
.email-draft textarea {
  display: block;
  margin-block: 0.5rem 1rem;
}
:focus-visible {
  outline: 3px solid #185793;
  outline-offset: 4px;
}
@media (max-width: 1279px) {
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}
@media (max-width: 900px) {
  .responsive-split {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem !important;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-full {
    grid-column: auto;
  }
}
@media (max-width: 640px) {
  .hero-editorial {
    min-height: calc(100svh - 97px);
    height: auto;
    padding-top: clamp(2.5rem, 6vw, 3.5rem);
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
  }
  .hero-title {
    font-size: clamp(2.8rem, 10vw, 4rem);
  }
  .brand-subtext {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }
  .brand-link {
    gap: 0.6rem;
  }
  .brand-monogram {
    flex-shrink: 0;
  }
  .specifier-card,
  .discipline-card {
    padding: 1.25rem !important;
  }
  .result-metric {
    overflow-wrap: anywhere;
  }
  .project-dialog-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-intro .btn-primary,
  .page-intro .btn-outline {
    white-space: normal;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* SEO additions share the existing design tokens. */
.breadcrumbs {
  padding-block: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.breadcrumbs + .page-intro {
  padding-top: 2rem;
}
.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-block: 1.5rem;
}
.service-links a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-size: 0.85rem;
}
.service-copy {
  max-width: 850px;
}
.service-copy section {
  margin-bottom: 2.5rem;
}
.service-copy h2 {
  margin-bottom: 1rem;
}
.service-copy p {
  line-height: 1.8;
}
.footer-service-links {
  padding-block: 2rem;
  border-top: 1px solid var(--border-medium);
}
.footer-service-links p,
.footer-service-links a {
  color: #d6d1c8;
}
.project-dialog-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  margin: 0;
}
.hero-title {
  max-width: 1000px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Official brand monogram image */
.brand-monogram {
  overflow: hidden;
}
.brand-monogram-img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  transition: transform var(--duration-fast, 180ms) var(--ease-out, ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .brand-link:hover .brand-monogram {
    border-color: var(--color-accent-bronze);
    background: var(--color-bg-surface);
    box-shadow: var(--shadow-accent);
    transform: translateY(-1px);
  }
  .brand-link:hover .brand-monogram-img {
    transform: scale(1.08);
  }
}

/* Official brand logo image */
.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
  transition:
    transform var(--duration-fast, 180ms) var(--ease-out, ease-out),
    opacity var(--duration-fast, 180ms) ease;
}
.site-footer .brand-logo-img {
  height: 120px;
  max-width: 280px;
  width: auto;
}
.site-footer .brand-monogram {
  width: 62px;
  height: 62px;
  font-size: 2.2rem;
}
.site-footer .brand-monogram-img {
  width: 46px;
  height: 46px;
}
.site-footer .brand-name {
  font-size: 2rem;
}
.site-footer .brand-subtext {
  font-size: 0.65rem;
}
@media (max-width: 768px) {
  .site-footer .brand-logo-img {
    height: 100px;
    max-width: 240px;
  }
}
@media (max-width: 768px) {
  .brand-logo-img {
    height: 40px;
    max-width: 140px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .brand-link:hover .brand-logo-img {
    transform: scale(1.03);
    opacity: 0.95;
  }
}

/* Use the supplied transparent PNG at its natural proportions. */
.site-header .brand-logo-img {
  width: 180px;
  height: auto;
  max-width: 180px;
}
.site-header .header-inner {
  height: auto;
  min-height: 88px;
  padding-block: 8px;
}
.site-footer .brand-logo-img {
  width: 280px;
  height: auto;
  max-width: 100%;
  background: transparent;
}
@media (max-width: 768px) {
  .site-header .brand-logo-img {
    width: 160px;
    height: auto;
    max-width: 160px;
  }
  .site-header .header-inner {
    min-height: 80px;
  }
  .site-footer .brand-logo-img {
    width: 240px;
    height: auto;
    max-width: 100%;
  }
}

/* Warm ivory footer, with text and dividers tuned for the lighter surface. */
.site-footer {
  background: #f0e9df;
  color: #4e453d;
  --color-text-muted: #62584f;
  border-top-color: #d3c3af;
}
.site-footer .footer-top,
.site-footer .footer-service-links {
  border-color: #d3c3af;
}
.site-footer .footer-manifesto,
.site-footer .footer-contact-info,
.site-footer .footer-link,
.site-footer .footer-service-links p,
.site-footer .footer-service-links a,
.site-footer .footer-legal-links a {
  color: #51483f;
}
.site-footer .footer-col-title,
.site-footer .footer-hotline,
.site-footer .brand-subtext {
  color: #6b1315;
}
.site-footer .footer-badge {
  color: #51483f;
  border-color: #b9a992;
  background: #faf6ef;
}
.site-footer .footer-badge[style] {
  color: #285d40 !important;
  border-color: #8ca58d !important;
}
.site-footer .footer-status {
  color: #285d40;
}
.site-footer .status-dot {
  background: #285d40;
  box-shadow: 0 0 6px #285d4030;
}
.site-footer .footer-link:hover,
.site-footer .footer-legal-links a:hover {
  color: #6b1315;
}
.site-footer .footer-bottom {
  color: #62584f;
}

/* Fianco burgundy replaces the former bronze/gold interface accent. */
:root {
  --color-accent-bronze: #6b1315;
  --color-accent-bronze-light: #6b1315;
  --color-accent-glow: rgba(107, 19, 21, 0.12);
  --color-gold-300: #6b1315;
  --color-gold-400: #6b1315;
  --color-gold-500: #6b1315;
  --border-accent: rgba(107, 19, 21, 0.35);
  --border-gold: rgba(107, 19, 21, 0.35);
  --border-gold-strong: rgba(107, 19, 21, 0.6);
  --shadow-accent: 0 10px 28px -4px rgba(107, 19, 21, 0.18);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: #6b1315;
    border-color: #6b1315;
  }
  .btn-outline:hover {
    background: rgba(107, 19, 21, 0.04);
  }
}

/* Owner-selected colours for the project-name strip only. */
.section-client-marquee .client-ledger-header {
  color: #ae522d;
}
.section-client-marquee .ledger-item,
.section-client-marquee .ledger-item:hover {
  color: #8a3518;
  opacity: 1;
}

.section-client-marquee .client-ledger-header {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.project-title-button {
  font: inherit;
  color: inherit;
  text-align: left;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.project-title-button:hover {
  color: #6b1315;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.gallery-toolbar p {
  margin: 0;
  font-size: 0.85rem;
  white-space: nowrap;
}
.project-dialog .gallery-main-image {
  display: block;
  width: 100%;
  height: 55svh;
  max-height: 600px;
  object-fit: contain;
}
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 0.5rem;
  max-height: 150px;
  overflow-y: auto;
  padding: 0.5rem 3px;
}
.gallery-thumbnails button {
  padding: 2px;
  background: transparent;
  border: 2px solid transparent;
  cursor: pointer;
}
.gallery-thumbnails button[aria-pressed="true"] {
  border-color: #6b1315;
}
.gallery-thumbnails img {
  display: block;
  width: 100%;
  height: 60px;
  object-fit: cover;
}
@media (max-width: 480px) {
  .gallery-toolbar .btn-outline {
    padding: 0.5rem;
    font-size: 0.7rem;
  }
  .project-dialog .gallery-main-image {
    height: 45svh;
  }
}

/* ==========================================================================
   ALL 50 SIGNAGE COMPANIES & REDESIGNED GALLERY MODAL
   ========================================================================== */

/* 50-Company Ledger on Home Page */
.section-client-marquee {
  overflow-x: hidden;
  max-width: 100%;
}

.section-client-marquee .container-wide {
  overflow-x: hidden;
  max-width: 100%;
}

.section-client-marquee .ledger-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  padding-block: 0.5rem;
  max-width: 100%;
}

.ledger-btn {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 0.78rem + 0.25vw, 1.05rem);
  letter-spacing: 0.05em;
  color: #8a3518;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
}

.ledger-btn:hover,
.ledger-btn:focus-visible {
  color: #6b1315;
  background: rgba(107, 19, 21, 0.08);
  border-color: rgba(107, 19, 21, 0.25);
  transform: translateY(-2px);
}

.ledger-count-pill {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  background: #6b1315;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Projects Page Search & Filter Controls */
.projects-controls {
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.projects-search-bar {
  position: relative;
  max-width: 520px;
  width: 100%;
}

.projects-search-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  color: var(--color-text-primary);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.projects-search-input:focus {
  outline: none;
  border-color: #6b1315;
  box-shadow: 0 0 0 3px rgba(107, 19, 21, 0.15);
}

.projects-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  font-size: 1rem;
}

/* 50-Company Grid on Projects Page */
.projects-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
  margin-block: var(--space-lg);
  max-width: 100%;
}

@media (max-width: 480px) {
  .projects-modern-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.project-card-item {
  background: var(--color-bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  position: relative;
}

.project-card-item:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 19, 21, 0.35);
  box-shadow: 0 16px 32px -8px rgba(23, 20, 17, 0.12);
}

.project-card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  background: #171411;
  overflow: hidden;
  cursor: pointer;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.project-card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(17, 14, 12, 0.85);
  backdrop-filter: blur(8px);
  color: #f5efe6;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.04em;
  z-index: 2;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(17, 14, 12, 0.8) 0%,
    transparent 60%
  );
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-card-item:hover .project-card-overlay {
  opacity: 1;
}

.project-card-overlay-text {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.project-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ae522d;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.project-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  color: var(--color-text-primary);
}

.project-card-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0 0 1rem;
  flex-grow: 1;
}

.project-card-btn {
  align-self: flex-start;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b1315;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.project-card-btn:hover {
  color: #ae522d;
  transform: translateX(3px);
}

/* ==========================================================================
   REDESIGNED LUXURY GALLERY MODAL
   ========================================================================== */
.luxury-modal-dialog:not([open]) {
  display: none !important;
}

.luxury-modal-dialog[open] {
  margin: auto;
  width: min(1200px, 96vw);
  max-width: 96vw;
  height: min(92svh, 900px);
  background: #14110e;
  color: #f5efe6;
  border: 1px solid rgba(174, 82, 45, 0.4);
  border-radius: 16px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.luxury-modal-dialog::backdrop {
  background: rgba(14, 11, 9, 0.92);
  backdrop-filter: blur(12px);
}

.luxury-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 17, 14, 0.95);
  gap: 1rem;
}

.luxury-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.luxury-modal-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  margin: 0;
  color: #f5efe6;
  letter-spacing: 0.02em;
}

.luxury-modal-subtitle {
  font-size: 0.82rem;
  color: #d49a6a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.luxury-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f5efe6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.luxury-modal-close-btn:hover {
  background: #6b1315;
  border-color: #ae522d;
  color: #fff;
  transform: rotate(90deg);
}

.luxury-modal-viewport {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0b0908;
  padding: 1rem;
}

.luxury-modal-media {
  max-width: 100%;
  max-height: calc(92svh - 220px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.luxury-modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 17, 14, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.2s ease;
  z-index: 5;
}

.luxury-modal-nav-btn.prev {
  left: 1.25rem;
}

.luxury-modal-nav-btn.next {
  right: 1.25rem;
}

.luxury-modal-nav-btn:hover {
  background: #6b1315;
  border-color: #ae522d;
  transform: translateY(-50%) scale(1.1);
}

.luxury-modal-counter-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 14, 12, 0.85);
  backdrop-filter: blur(8px);
  color: #d49a6a;
  border: 1px solid rgba(174, 82, 45, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  z-index: 4;
}

.luxury-modal-thumbnails {
  height: 96px;
  background: rgba(17, 14, 12, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(174, 82, 45, 0.4) transparent;
}

.luxury-modal-thumb-btn {
  height: 72px;
  width: 90px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #000;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.55;
}

.luxury-modal-thumb-btn:hover {
  opacity: 0.85;
}

.luxury-modal-thumb-btn.active {
  border-color: #ae522d;
  opacity: 1;
  box-shadow: 0 0 12px rgba(174, 82, 45, 0.5);
  transform: scale(1.04);
}

.luxury-modal-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .luxury-modal-dialog[open] {
    width: 100vw;
    height: 100svh;
    max-width: 100vw;
    border-radius: 0;
    border: none;
  }
  .luxury-modal-header {
    padding: 1rem;
  }
  .luxury-modal-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .luxury-modal-nav-btn.prev {
    left: 0.5rem;
  }
  .luxury-modal-nav-btn.next {
    right: 0.5rem;
  }
  .luxury-modal-media {
    max-height: calc(100svh - 190px);
  }
}
.signage-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.signage-category-link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border-medium);
  color: inherit;
  text-decoration: none;
}
.signage-category-link h3 {
  color: #6b1315;
  margin: 0;
}
.signage-category-link p {
  font-size: 0.95rem;
  margin: 0;
}
.signage-category-link span {
  color: #6b1315;
  margin-top: auto;
}
.signage-category-link:hover {
  border-color: #6b1315;
}
.portfolio-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}
.portfolio-photo-grid figure {
  margin: 0;
}
.portfolio-photo-grid a {
  display: block;
}
.portfolio-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f0e9df;
}
.portfolio-photo-grid figcaption {
  padding-block: 0.75rem;
  font-size: 0.9rem;
  color: #51483f;
}
.guide-directory {
  display: grid;
  gap: 1.25rem;
  margin-block: 1.5rem;
}
.guide-directory article {
  border-bottom: 1px solid var(--border-medium);
  padding-bottom: 1.25rem;
}
.guide-directory h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}
.guide-directory h3 a {
  color: #6b1315;
}
.project-record-link {
  display: inline-block;
  color: #6b1315;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  margin-block: 0.5rem;
}
.luxury-modal-header .project-record-link {
  color: #f0e9df;
}
