.site-header .brand {
  width: 56px;
  flex-basis: 56px;
  height: 48px;
  position: relative;
  overflow: hidden;
}
.brand img {
  width: 56px;
  height: 48px;
  object-fit: contain;
}
.more-work {
  margin-top: 0;
  font-size: 12px;
}
.privacy-note {
  font-size: 11px;
  line-height: 1.8;
  color: #6d786f;
  margin: 0 0 14px;
}
.product-photo {
  height: 230px;
  width: 100%;
  object-fit: cover;
}
.product-price {
  font-weight: 600;
  margin: 15px 0;
}
.product-copy .button {
  margin-top: 18px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.testimonial-card {
  margin: 0;
  padding: 30px;
}
.testimonial-card blockquote {
  margin: 0;
  font-size: 19px;
  line-height: 1.9;
}
.testimonial-card figcaption {
  margin-top: 24px;
}
.testimonial-card figcaption span {
  display: block;
  font-size: 13px;
  color: #68786a;
}
.empty-note {
  padding: 30px;
  color: #6b7d6e;
}
#modal-image[src=""] {
  display: none;
}
@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .site-header .brand {
    width: 42px;
    flex-basis: 42px;
  }
  .brand img {
    width: 42px;
    height: 40px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .portfolio h2 {
    line-height: 1.3;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 640px) {
  .site-header .brand { height: 40px; }
}

.signature {
  font-size: clamp(30px, 11vw, 140px);
  letter-spacing: -0.035em;
}

.project-viewer { background: #e8efeb; display: grid; place-items: center; min-height: 200px; }
.project-viewer img, .project-viewer video { display: block; width: 100%; max-height: 60dvh; object-fit: contain; }
.project-viewer video { min-height: 200px; background: #10231d; }
.project-viewer[hidden], .project-viewer [hidden], .gallery-navigation[hidden], .gallery-thumbnails[hidden] { display: none; }
.gallery-navigation { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 12px 24px 4px; }
.gallery-navigation button { width: 40px; height: 36px; border: 1px solid #ccd9d0; border-radius: 10px; background: #fff; font-size: 20px; }
#gallery-count { font-size: 14px; min-width: 55px; text-align: center; }
.gallery-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 12px 24px; }
.gallery-thumbnails button { flex: 0 0 72px; height: 52px; padding: 2px; border-radius: 9px; border: 2px solid transparent; background: #e6ede8; overflow: hidden; }
.gallery-thumbnails button[aria-pressed="true"] { border-color: #24654d; }
.gallery-thumbnails img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.gallery-thumbnails span { font-size: 12px; }
.gallery-caption { padding: 0 24px; font-size: 13px; color: #637068; white-space: pre-wrap; overflow-wrap: anywhere; }
.gallery-caption:empty { display: none; }
.gallery-error { margin: 12px 24px; font-size: 13px; color: #a23030; }

#gallery-count { direction: ltr; unicode-bidi: isolate; }


.creative-visual {
  position: absolute;
  left: 4%;
  bottom: 20px;
  width: 48%;
  display: block;
  transition: transform .3s ease;
}
.creative-visual img { display: block; width: 100%; height: auto; }
.creative-visual:hover { transform: translateY(-5px); }
.creative-visual:focus-visible { outline: 2px solid #24654d; outline-offset: 8px; border-radius: 20px; }
@media (max-width: 640px) {
  .portfolio { min-height: 0; }
  .creative-visual { position: static; width: min(100%, 340px); margin: 20px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .creative-visual { transition: none; }
  .creative-visual:hover { transform: none; }
}

/* Homepage summaries share the existing panel rhythm. */
.home-section { padding: 30px 34px 34px; }
.home-services-grid, .home-testimonials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-service-card { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: 24px; background: #edf4ef; border-radius: 20px; }
.home-service-card:nth-child(2) { background: #f6eee7; }
.home-service-card:nth-child(3) { background: #efedf6; }
.home-service-card h3 { font-size: 21px; font-weight: 500; margin: 18px 0 10px; line-height: 1.6; }
.home-service-card p { font-size: 14px; color: #637068; line-height: 1.9; margin-bottom: 20px; overflow-wrap: anywhere; }
.home-service-card .text-link { margin-top: auto; font-size: 13px; }
.home-service-card .service-icon { background: #ffffff9c; }
.home-section-empty { color: #637068; font-size: 15px; padding-block: 14px; }
.home-testimonial-card { margin: 0; padding: 23px; min-width: 0; border: 1px solid #e1e8e2; border-radius: 20px; background: #f7f9f6; }
.home-quote { display: block; font: 60px/1 Georgia, serif; color: #84aa98; height: 42px; }
.home-testimonial-card blockquote { margin: 14px 0 22px; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.home-testimonial-card figcaption strong { font-size: 15px; font-weight: 500; }
.home-testimonial-card figcaption span { display: block; color: #738076; font-size: 12px; margin-top: 5px; }
.home-feedback-empty { display: flex; align-items: center; gap: 22px; padding: 24px; background: linear-gradient(120deg, #f2f5ee, #eaf4ee); border-radius: 20px; }
.home-feedback-empty h3 { font-size: 23px; font-weight: 400; }
.home-feedback-empty p { font-size: 14px; color: #637068; line-height: 1.9; margin-top: 8px; }
.home-feedback-empty .text-link { flex-shrink: 0; font-size: 13px; margin-top: 0; margin-inline-start: auto; }
.service-card { scroll-margin-top: 24px; }
/* Each project has a shareable page and a full-size media story. */
a.project-card { display: block; text-decoration: none; }
.project-detail-header { padding: 38px 4px 34px; }
.project-back { margin: 0 0 28px; font-size: 14px; }
.project-detail-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.project-detail-heading > div { min-width: 0; }
.project-detail-heading h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.45; font-weight: 500; margin-top: 12px; overflow-wrap: anywhere; }
.project-detail-heading .button { flex-shrink: 0; margin-bottom: 10px; }
.project-lead { color: #637068; font-size: 19px; line-height: 1.9; margin-top: 13px; }
.project-story { padding: 32px; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; }
.project-story h2 { font-size: 25px; font-weight: 400; }
.project-story p { margin: 0; font-size: 17px; line-height: 2; color: #536b5c; overflow-wrap: anywhere; }
.project-detail-gallery { margin-top: 40px; }
.project-detail-gallery .section-heading { padding-inline: 4px; }
.project-media { margin: 0 0 24px; overflow: hidden; }
.project-media .project-image-link { display: block; background: #edf2ee; }
.project-media img { width: 100%; height: auto; max-height: 90dvh; object-fit: contain; display: block; }
.project-media video { width: 100%; max-height: 85dvh; min-height: 200px; display: block; background: #10241b; }
.project-media figcaption { padding: 18px 24px; display: flex; justify-content: space-between; align-items: start; gap: 20px; font-size: 14px; line-height: 1.8; color: #617368; }
.project-media figcaption span { min-width: 0; overflow-wrap: anywhere; }
.project-media figcaption a { flex-shrink: 0; color: #2f5e46; font-size: 12px; }
.project-related { padding: 30px 34px; margin-top: 32px; }
@media (max-width: 920px) {
  .home-services-grid, .home-testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-section { padding: 25px 23px; }
  .project-detail-heading { align-items: start; flex-direction: column; gap: 18px; }
  .project-story { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .home-section, .project-related { padding: 26px 24px; }
  .home-services-grid, .home-testimonials-grid { grid-template-columns: minmax(0,1fr); }
  .home-section .section-heading { gap: 12px; }
  .home-section .section-heading h2 { font-size: 23px; }
  .home-section .section-heading .text-link { font-size: 12px; flex-shrink: 0; }
  .home-service-card { padding: 22px; }
  .home-feedback-empty { flex-direction: column; align-items: start; gap: 12px; padding: 22px; }
  .home-feedback-empty .text-link { margin: 8px 0 0; }
  .project-detail-header { padding-top: 25px; }
  .project-story { padding: 24px; }
  .project-story p { font-size: 16px; }
  .project-media figcaption { flex-direction: column; gap: 8px; padding: 16px 20px; }
  .project-detail-gallery .section-heading h2 { font-size: 23px; }
}

.whatsapp-float { position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 80; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: #128c4a; box-shadow: 0 6px 22px #123d2930; transition: background .2s, transform .2s; }
.whatsapp-float svg { width: 29px; height: 29px; }
.whatsapp-float:hover { background: #0b703b; transform: translateY(-3px); }
.whatsapp-float:focus-visible { outline: 3px solid #14392b; outline-offset: 4px; }
body:has(.whatsapp-float) { padding-bottom: 88px; }
@media (max-width: 640px) { .whatsapp-float { width: 52px; height: 52px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .whatsapp-float { transition: none; } }

.clients-panel { padding: 32px 34px 34px; border: 0; }
.clients-panel .section-heading { align-items: center; gap: 20px; margin-bottom: 24px; }
.clients-panel h2 { font-size: clamp(23px, 2.5vw, 29px); line-height: 1.6; font-weight: 400; }
.clients-subtitle { margin-top: 6px; font-size: 14px; color: #718176; line-height: 1.8; }
.clients-spark { flex-shrink: 0; font-size: 35px; color: #8ba89a; }
.client-logos { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); align-items: stretch; gap: 18px; padding: 0; margin: 0; list-style: none; }
.client-logo { min-width: 0; display: grid; place-items: center; padding: 20px 14px; height: 112px; border-radius: 14px; background: #fff; border: 0; }
.client-logo img { display: block; width: 100%; height: 72px; object-fit: contain; }
.clients-empty { margin: 0; padding: 22px; background: #f1f6f1; border-radius: 14px; color: #7c8b7f; font-size: 14px; text-align: center; }
@media (max-width: 920px) { .client-logos { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 640px) {
  .clients-panel { padding: 26px 24px; }
  .clients-panel .section-heading { gap: 10px; margin-bottom: 20px; }
  .clients-panel h2 { font-size: 23px; }
  .clients-subtitle { font-size: 12px; }
  .clients-spark { font-size: 27px; }
  .client-logos { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .client-logo { height: 96px; padding: 16px 12px; }
  .client-logo img { height: 64px; }
}

/* Keep mobile page content, WhatsApp, and notices clear of the bottom navigation. */
@media (max-width: 920px) {
  html { scroll-padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
  body:has(.main-navigation) { padding-bottom: calc(174px + env(safe-area-inset-bottom)); }
  .whatsapp-float { bottom: calc(94px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(156px + env(safe-area-inset-bottom)); }
}

/* Quiet white 3D communication artwork, decorative and clear of form controls. */
.contact-art {
  position: absolute;
  top: 128px;
  right: -22px;
  width: 330px;
  max-width: none;
  height: auto;
  opacity: .62;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 920px) and (min-width: 641px) {
  .contact-art { top: 112px; right: -26px; width: 260px; }
}
@media (max-width: 640px) {
  .contact-art { top: -8px; right: auto; left: -28px; width: 145px; opacity: .42; }
}
@media (max-width: 380px) {
  .contact-art { left: -32px; width: 125px; opacity: .3; }
}

/* Main public headings use the supplied Thmanyah Serif Display family. */
@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyahserifdisplay-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyahserifdisplay-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyahserifdisplay-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyahserifdisplay-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Serif Display";
  src: url("assets/fonts/thmanyahserifdisplay-Black.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
#main-content h1,
#main-content h2 {
  font-family: "Thmanyah Serif Display", Plex, Tahoma, serif;
  letter-spacing: normal;
}
#main-content h1 strong,
#main-content h2 strong { font-weight: 700; }

/* Project stories and quotation inquiries. */
.project-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 32px; margin: 20px 0 32px; }
.project-fact h2 { font-size: 24px; font-weight: 500; margin-bottom: 12px; }
.project-fact p, .project-fact li { color: #53645d; font-size: 16px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-fact ul { padding-inline-start: 20px; margin: 0; }
.quote-intro { font-size: 14px; color: #53645d; line-height: 1.8; margin-bottom: 16px; }
.optional-label, .quote-options small, .quote-attachment small { font-size: 11px; color: #64726b; }
.quote-options select + label + select { margin-top: 8px; }
.quote-options input[type=date] { min-width: 0; width: 100%; }
.quote-attachment input[type=file] { min-height: 46px; height: auto; padding: 10px; font-size: 12px; max-width: 100%; }
.quote-attachment small, .quote-options small { display: block; line-height: 1.7; margin-top: 6px; }
.quote-attachment .attachment-remove { margin-top: 8px; border: 0; background: none; padding: 0; font-size: 12px; }
.attachment-remove[hidden] { display: none; }
@media (max-width: 640px) { .project-facts { grid-template-columns: 1fr; padding: 24px; gap: 22px; } }

.nav-actions { gap: 12px; }
.account-link { font-size: 13px; white-space: nowrap; color: #263b32; }
@media (max-width: 640px) { .nav-actions { gap: 10px; } .account-link { font-size: 12px; } }
