/* Direct-import homepage: hero, route comparison, how it works, and who we supply. */
:root {
  --direct-forest: #17281f;
  --direct-forest-lift: #223a2e;
  --direct-ivory: #f7f1e6;
  --direct-brass: #e0bb82;
  --direct-sage: #bcc6bb;
  --direct-page: #f8f3e9;
  --direct-ink: #1d2a23;
  --direct-soft: #55615a;
  --direct-rule: #d9cfbd;
  --direct-number: #8a6631;
}
[data-theme="dark"] {
  --direct-page: #121c17;
  --direct-ink: #efe9dc;
  --direct-soft: #b5bfb6;
  --direct-rule: #33453a;
  --direct-number: #e0bb82;
}

.direct-hero {
  padding: 144px 0 0;
  overflow: hidden;
  background: var(--direct-forest);
  color: var(--direct-ivory);
}
.direct-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.direct-hero h1 {
  margin: 0;
  color: var(--direct-ivory);
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.direct-hero h1 span { display: block; text-wrap: balance; }
.direct-lede {
  max-width: 34em;
  margin: 26px 0 0;
  color: var(--direct-sage);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
}
.direct-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 34px;
}
.direct-hero .direct-primary {
  border-color: var(--direct-brass);
  background: var(--direct-brass);
  color: #1b2a21;
}
.direct-hero .direct-primary:hover,
.direct-hero .direct-primary:focus-visible {
  border-color: var(--direct-ivory);
  background: var(--direct-ivory);
  color: #1b2a21;
}
.direct-secondary {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--direct-brass);
  color: var(--direct-ivory);
  font-weight: 700;
  text-decoration: none;
}
.direct-secondary:hover { color: var(--direct-brass); }

.direct-lines {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: repeat(3, clamp(120px, 10.4vw, 156px));
  gap: 8px;
}
.direct-line {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--direct-forest-lift);
  color: var(--direct-ivory);
  text-decoration: none;
}
.direct-line img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.direct-line-flooring { grid-row: span 2; }
.direct-line-aluminum { background: #fff; }
.direct-line-aluminum img { object-fit: contain; padding: 8px 8px 36px; }
.direct-line > span {
  position: relative;
  width: 100%;
  padding: 26px 14px 11px;
  background: linear-gradient(transparent, rgba(12, 22, 17, 0.84));
  font-size: 15px;
  font-weight: 700;
}
.direct-line-aluminum > span { background: var(--direct-forest-lift); padding-top: 11px; }
.direct-line:hover img { transform: scale(1.03); }
.direct-line img { transition: transform 0.35s ease; }
.direct-line .hero-catalog-image { opacity: 0; transition: opacity 0.65s ease, transform 0.35s ease; }
.direct-line .hero-catalog-image.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .direct-line .hero-catalog-image { transition: none; }
}
.direct-line:focus-visible,
.direct-secondary:focus-visible {
  outline: 2px solid var(--direct-ivory);
  outline-offset: 3px;
}

.direct-route {
  display: grid;
  gap: 26px;
  margin-top: clamp(36px, 3.6vw, 52px);
  padding: 28px 0 40px;
  border-top: 1px solid rgba(247, 241, 230, 0.16);
}
.direct-route-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.direct-route-row h2 {
  margin: 0;
  color: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}
.direct-stops {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.direct-stops::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.direct-stops li {
  position: relative;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--direct-forest);
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}
.direct-route-usual { color: var(--direct-sage); }
.direct-route-usual s { text-decoration-thickness: 1.5px; opacity: 0.74; }
.direct-route-ours { color: var(--direct-ivory); }
.direct-route-ours h2 { color: var(--direct-brass); }
.direct-route-ours .direct-stops::before {
  height: 3px;
  margin-top: -1px;
  background: var(--direct-brass);
  opacity: 1;
  transform-origin: left;
  animation: direct-draw 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both;
}
.direct-route-ours li {
  border: 2px solid var(--direct-brass);
  font-size: 17px;
  font-weight: 800;
}
.direct-route-ours .direct-stop-us {
  background: var(--direct-brass);
  color: #1b2a21;
}
@keyframes direct-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.direct-section {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--direct-page);
  color: var(--direct-ink);
}
.direct-section + .direct-section { padding-top: 0; }
.direct-section h2 {
  max-width: 19em;
  margin: 0;
  color: var(--direct-ink);
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.direct-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: direct-step;
}
.direct-steps li {
  padding-top: 18px;
  border-top: 2px solid var(--direct-ink);
  counter-increment: direct-step;
}
.direct-steps li::before {
  content: counter(direct-step);
  display: block;
  margin-bottom: 18px;
  color: var(--direct-number);
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.direct-steps h3,
.direct-buyers h3 {
  margin: 0;
  color: var(--direct-ink);
  font-size: clamp(21px, 1.9vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.direct-steps p,
.direct-buyers p {
  margin: 10px 0 0;
  color: var(--direct-soft);
  font-size: 16px;
  line-height: 1.6;
}

.direct-who {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.direct-buyers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.direct-buyers article {
  padding-top: 18px;
  border-top: 2px solid var(--direct-ink);
}

#flooring-studio.hero { min-height: 0; padding-block: clamp(56px, 7vw, 92px); }
#flooring-studio .hero-copy h2 {
  max-width: 11em;
  margin: 0;
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
#flooring-studio .hero-lede { margin-top: 18px; }
:root:not([data-theme="dark"]) #flooring-studio .hero-copy h2 { color: var(--direct-ink); }
[data-theme="dark"] #flooring-studio .hero-copy h2 { color: var(--direct-ink); }

.quote-primary-interest select { max-width: 100%; }

@media (max-width: 1100px) {
  .direct-hero { padding-top: 168px; }
  .direct-route-row { grid-template-columns: 130px minmax(0, 1fr); gap: 16px; }
  .direct-stops li { padding-inline: 10px; font-size: 14px; }
}
@media (max-width: 900px) {
  .direct-hero { padding-top: 104px; }
  .direct-hero-grid,
  .direct-who { grid-template-columns: minmax(0, 1fr); }
  .direct-lines { grid-template-rows: repeat(3, clamp(120px, 26vw, 200px)); }
  .direct-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .direct-hero h1 { font-size: clamp(38px, 11.4vw, 46px); }
  .direct-lede { margin-top: 18px; font-size: 16px; }
  .direct-actions { margin-top: 24px; }
  .direct-actions .direct-primary { width: 100%; justify-content: center; }
  .direct-line > span { font-size: 14px; }
        .direct-route { gap: 22px; padding: 26px 0 32px; }
  .direct-route-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .direct-route-usual .direct-stops {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 12px;
  }
  .direct-route-usual .direct-stops::before { display: none; }
  .direct-route-usual li { padding: 0; font-size: 14px; }
  .direct-route-ours li { padding: 7px 9px; font-size: 13px; }
  .direct-steps,
  .direct-buyers { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .direct-steps { margin-top: 30px; }
  .direct-steps li { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; padding-top: 14px; }
  .direct-steps li::before { margin-bottom: 0; font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .direct-route-ours .direct-stops::before { animation: none; }
  .direct-line img { transition: none; }
  .direct-line:hover img { transform: none; }
}

/* The sections below the homepage share its headings and plain spacing. */
:is(#story, #spaces-gallery, #tech-specs) .eyebrow { display: none; }
:root :is(#story, #spaces-gallery, #tech-specs, #terms, #shipping, #private-label, #contact) h2 {
  max-width: 19em;
  margin: 0;
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
:root :is(#story, #spaces-gallery, #tech-specs, #terms, #shipping, #private-label, #contact) h2 em {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}
#tech-specs .split-intro > p,
#tech-specs .anatomy-note { display: none; }
#tech-specs .plank-layer[aria-pressed="false"] .layer-info p,
#tech-specs .layer-badge { display: none; }

#story { padding-block: clamp(56px, 7vw, 96px); }
#story .story-grid { display: block; }
#story .story-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 34px;
}
#story .story-pillars .story-pillar-item {
  padding: 16px 0 0 !important;
  border: 0;
  border-top: 2px solid var(--direct-ink);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
#story .story-pillar-item strong {
  color: var(--direct-ink);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 800;
  line-height: 1.25;
}

#terms .terms-grid { margin-top: 34px; }
#terms .term-card { padding: 22px; }
#terms .term-card h3 {
  margin: 0;
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
#terms .term-card p { margin: 8px 0 0; font-size: 16px; }
:root .sample-program-banner { background: var(--direct-forest); }
:root .sample-program-banner h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
:root .sample-program-banner p { font-size: 17px; }

#shipping.route-section { padding-block: clamp(56px, 7vw, 96px); }
#shipping .section-intro { margin-bottom: 26px; }
:root .freight-hud-card { background: var(--direct-forest); }
.freight-hud-card .freight-headline { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.freight-hud-card .freight-note {
  margin: 6px 0 0;
  color: var(--direct-sage);
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.freight-hud-card .lane-badge,
.freight-hud-card .lane-summary { display: none; }
.freight-hud-card .logistics-map { margin-top: 18px; }
.freight-hud-card .lane-regions { margin: 16px 0 0; }
.freight-hud-card .lane-region .lane-pill { min-height: 40px; }
.freight-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(247, 241, 230, 0.16);
  list-style: none;
}
.freight-facts strong {
  display: block;
  color: var(--direct-brass);
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.freight-facts span { display: block; margin-top: 3px; color: var(--direct-sage); font-size: 15px; }
.freight-hud-card .freight-footer-bar { justify-content: flex-end; margin-top: 18px; }
.calc-tag,
.calc-cif-box { display: none; }
#shipping-visual { content-visibility: visible; contain-intrinsic-size: none; }

#contact .cta-copy > p { font-size: 19px; }
.form-note { font-size: 14px; }

@media (max-width: 900px) {
  #story .story-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  #story .story-pillars { gap: 18px; }
  #terms .term-card { padding: 16px; }
  .freight-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

.mm-aluminum-section .mm-catalog-image-button { background: #fff; }
.carpet-head .button { display: none; }

/* From tablet width up, the hero fills exactly one screen. */
@media (min-width: 901px) {
  .direct-hero {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
  }
  .direct-hero > .page-shell {
    display: flex;
    flex-direction: column;
  }
  .direct-hero-grid {
    flex: 1;
    gap: clamp(32px, 4vw, 76px);
  }
  .direct-hero-grid > div:first-child { container-type: inline-size; }
  .direct-hero h1 { font-size: min(13.5cqi, 9.6vh); }
  html:not([lang="en-US"]) .direct-hero h1 { font-size: min(10.5cqi, 7.8vh); }
  .direct-lede {
    margin-top: clamp(12px, 2.2vh, 26px);
    font-size: clamp(16px, 2.2vh, 22px);
  }
  .direct-actions { margin-top: clamp(14px, 2.8vh, 34px); }
  .direct-lines { grid-template-rows: repeat(3, clamp(88px, 14.5vh, 176px)); }
  .direct-route {
    gap: clamp(10px, 2vh, 26px);
    margin-top: clamp(14px, 2.6vh, 36px);
    padding: clamp(12px, 2.2vh, 28px) 0 76px;
  }
}

/* The header logo assembles once when the page opens. */
@media (prefers-reduced-motion: no-preference) {
  .site-header .mm-brand-mark path:nth-of-type(2) { animation: mark-left 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both; }
  .site-header .mm-brand-mark path:nth-of-type(3) { animation: mark-right 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both; }
  .site-header .mm-brand-mark path:nth-of-type(1) { animation: mark-lid 0.65s cubic-bezier(0.3, 0.7, 0.2, 1) 0.65s both; }
}
@keyframes mark-left {
  from { opacity: 0; transform: translate(-13px, 7px); }
  to { opacity: 1; transform: none; }
}
@keyframes mark-right {
  from { opacity: 0; transform: translate(13px, 7px); }
  to { opacity: 1; transform: none; }
}
@keyframes mark-lid {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: none; }
}

.contact-details .direct-email {
  display: flex; align-items: center; gap: 16px; width: 100%; box-sizing: border-box;
  margin: 2px 0 18px; padding: 18px 22px; border-radius: 14px;
  background: var(--direct-forest); color: var(--direct-ivory);
  font-family: 'Manrope', -apple-system, sans-serif; letter-spacing: 0; text-decoration: none; text-transform: none;
}
.contact-details .direct-email:hover { background: var(--direct-forest-lift); }
.contact-details .direct-email > svg { flex: none; color: var(--direct-brass); }
.direct-email-text { display: grid; gap: 2px; min-width: 0; }
.direct-email-label { color: var(--direct-brass); font-size: 14px; font-weight: 700; line-height: 1.3; }
.contact-details .direct-email strong { color: var(--direct-ivory); font-size: clamp(19px, 1.9vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.footer-corp a { color: inherit; }


/* Cream home area over a soft warehouse photo. */
.direct-hero {
  background:
    linear-gradient(90deg, #f8f3e9 0%, #f8f3e9 42%, rgba(248, 243, 233, 0.86) 72%, rgba(248, 243, 233, 0.62) 100%),
    url("assets/home/hero-warehouse.webp") center / cover no-repeat;
  color: var(--direct-ink);
}
.direct-hero h1 { color: #1d2a23; }
.direct-lede { color: #55615a; }
.direct-hero .direct-primary, .direct-hero .direct-primary:hover, .direct-hero .direct-primary:focus-visible { border-color: #17281f; background: #17281f; color: #f7f1e6; }
.direct-secondary { border-bottom-color: #8a6631; color: #1d2a23; }
.direct-secondary:hover { color: #8a6631; }
.direct-route { border-top-color: rgba(29, 42, 35, 0.16); }
.direct-stops li { background: #f8f3e9; }
.direct-route-usual { color: #55615a; }
.direct-route-ours { color: #1d2a23; }
.direct-route-ours h2 { color: #8a6631; }
.direct-route-ours .direct-stops::before { background: #8a6631; }
.direct-route-ours li { border-color: #8a6631; }
.direct-route-ours .direct-stop-us { background: #17281f; color: #f7f1e6; border-color: #17281f; }

/* Compact How it works and buyer rows. */
.direct-section { padding: 30px 0; }
.direct-section + .direct-section { padding-top: 0; padding-bottom: 30px; }
.direct-section h2 { font-size: clamp(20px, 1.9vw, 26px); }
.direct-steps { gap: 18px; margin-top: 12px; }
.direct-steps li { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top-width: 1px; }
.direct-steps li::before { margin: 0; font-size: 20px; letter-spacing: 0; }
.direct-steps h3 { font-size: 15px; font-weight: 700; }
.direct-who { gap: 24px; align-items: center; }
.direct-buyers { gap: 18px; }
.direct-buyers article { padding-top: 10px; border-top-width: 1px; }
.direct-buyers h3 { font-size: 15px; }
.direct-buyers p { margin-top: 2px; font-size: 14px; }

/* Keep scrolling on one scroller and off the compositor's heaviest effects. */
html { overflow-x: visible; scroll-behavior: auto; }
body { overflow-x: clip; }
*, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

@media (max-width: 900px) {
  .direct-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The supporting facts sit above Contact in one tidy row. */
.direct-section + .direct-section { padding-top: 30px; }
.cred-bar-inner { flex-wrap: nowrap !important; justify-content: space-between; gap: 12px !important; }
.cred-item { flex: 0 1 auto; min-width: 0; }
.architectural-credential-bar { padding-block: 18px; }
@media (max-width: 1000px) {
  .cred-bar-inner { flex-wrap: wrap !important; }
  .cred-divider { display: none; }
  .cred-item { flex: 1 1 40%; }
}

/* The load estimator used 40-foot figures, so only the route map is shown. */
.shipping-view-tabs { display: none; }

.direct-video { padding: 34px 0; background: var(--direct-page); color: var(--direct-ink); }
.direct-video h2 { margin: 0 0 14px; color: var(--direct-ink); font-size: clamp(20px, 1.9vw, 26px); font-weight: 800; letter-spacing: -0.02em; }
.direct-video video { display: block; width: 100%; max-width: 860px; height: auto; border-radius: 14px; background: #17281f; }

/* Main menu: 2% shorter at the top of the page, one slim row after scrolling. */
.site-header { transition: padding 0.25s ease, min-height 0.25s ease, border-radius 0.25s ease, top 0.25s ease, box-shadow 0.25s ease !important; }
@media (min-width: 901px) {
  .site-header { row-gap: 4px !important; }
  .site-header.is-compact {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-rows: 40px !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
    min-height: 0 !important;
    padding: 5px 7px 5px 12px !important;
    border-radius: 999px !important;
    top: 8px !important;
  }
  .site-header.is-compact .brand { min-width: 0 !important; }
  .site-header.is-compact .mm-brand-text,
  .site-header.is-compact .theme-label { display: none !important; }
  .site-header.is-compact .desktop-nav { grid-column: 2 !important; grid-row: 1 !important; padding: 2px !important; animation: header-settle 0.25s ease both; }
  .site-header.is-compact .nav-actions { grid-column: 3 !important; grid-row: 1 !important; animation: header-settle 0.25s ease both; }
  .site-header.is-compact .desktop-nav > a:not(.button) { height: 32px !important; min-height: 32px !important; padding: 2px 4px !important; font-size: clamp(10.5px, 0.8vw, 12.5px) !important; }
  .site-header.is-compact .nav-actions .button-small,
  .site-header.is-compact .nav-actions .mm-theme-toggle,
  .site-header.is-compact .nav-actions .mm-language-control select { height: 32px !important; }
  html { scroll-padding-top: 84px; }
}
@media (max-width: 900px) {
  .site-header.is-compact { height: 52px !important; top: 8px !important; padding-block: 5px !important; }
}
@keyframes header-settle { from { opacity: 0; } to { opacity: 1; } }

/* Catalog cards fade through a live swap. */
.mm-live-fade { animation: none !important; transition: opacity 0.32s ease !important; }
.mm-live-hidden { opacity: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  .site-header.is-compact .desktop-nav,
  .site-header.is-compact .nav-actions { animation: none; }
}

/* Flicker fixes: nothing repaints, fades or resizes as sections scroll past. */
.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.route-map-shell { content-visibility: visible !important; contain-intrinsic-size: none !important; }
.product-media, .col-card-media, .space-card, .modal-media, .lightbox-media { animation: none !important; background: var(--direct-rule) !important; }
body.mm-interaction-visible .whatsapp-float { opacity: 1; pointer-events: auto; }
main.is-scrolling :is(img, [class*="card"]) { transition-delay: 0.3s !important; }

/* ==========================================================================
   Theme polish: every surface follows Cream and Dark, and text stays readable.
   ========================================================================== */
[data-theme="dark"] {
  color-scheme: dark;
  --ink-soft: var(--direct-soft);
  --b-paper: var(--direct-page);
  --b-ink: var(--direct-ink);
  --b-ink-soft: var(--direct-soft);
  --b-line: var(--direct-rule);
}
[data-theme="cream"] { color-scheme: light; }

/* Hero: the cream home area becomes a dark one over the same warehouse photo. */
[data-theme="dark"] .direct-hero {
  background:
    linear-gradient(90deg, var(--direct-page) 0%, var(--direct-page) 42%, rgba(18, 28, 23, 0.86) 72%, rgba(18, 28, 23, 0.62) 100%),
    url("assets/home/hero-warehouse.webp") center / cover no-repeat;
}
[data-theme="dark"] .direct-hero h1,
[data-theme="dark"] .direct-route-ours { color: var(--direct-ink); }
[data-theme="dark"] .direct-lede,
[data-theme="dark"] .direct-route-usual { color: var(--direct-soft); }
[data-theme="dark"] .direct-hero .direct-primary {
  border-color: var(--direct-brass);
  background: var(--direct-brass);
  color: #1b2a21;
}
[data-theme="dark"] .direct-hero .direct-primary:hover,
[data-theme="dark"] .direct-hero .direct-primary:focus-visible {
  border-color: var(--direct-ivory);
  background: var(--direct-ivory);
  color: #1b2a21;
}
[data-theme="dark"] .direct-secondary { border-bottom-color: var(--direct-brass); color: var(--direct-ink); }
[data-theme="dark"] .direct-secondary:hover,
[data-theme="dark"] .direct-route-ours h2 { color: var(--direct-brass); }
[data-theme="dark"] .direct-route { border-top-color: rgba(247, 241, 230, 0.16); }
[data-theme="dark"] .direct-stops li { background: var(--direct-page); }
[data-theme="dark"] .direct-route-ours .direct-stops::before { background: var(--direct-brass); }
[data-theme="dark"] .direct-route-ours li { border-color: var(--direct-brass); }
[data-theme="dark"] .direct-route-ours .direct-stop-us { border-color: var(--direct-brass); background: var(--direct-brass); color: #1b2a21; }
.direct-route-usual s { opacity: 1; }

/* Certifications: the marks keep their white plates, the band follows the theme. */
[data-theme="dark"] #certifications .cert-logo-band { background: transparent; }
[data-theme="dark"] #certifications .cert-official-marks li { border-radius: 10px; background: #fff; }

/* Cream catalog cards were a muddy gray glass; they now match the other cream cards. */
:root[data-theme="cream"] .product-card { border-color: #d5c9b3 !important; background: #fbfaf5 !important; }
:root[data-theme="cream"] .product-card h3 { color: var(--direct-ink) !important; }
:root[data-theme="cream"] .product-card .product-category,
:root[data-theme="cream"] #product-showcase .product-category { color: #6f5127 !important; }

/* Small labels that fell under 4.5:1. */
.mm-cappadocia-tab span,
.mm-stone-tab span { opacity: 0.85; }
:root[data-theme="cream"] .mm-stone-code { color: #7d5c35; }
:root[data-theme="cream"] .cred-item span { color: #6a5336 !important; }
:root[data-theme="cream"] .catalog-controls .search-field kbd { color: var(--direct-soft); opacity: 1; }
:root[data-theme="cream"] .swatch-label { color: var(--direct-soft); }
:root[data-theme="cream"] .layer-num { color: #6f5127; }

/* Dark filters: no white pills, and the active one stands out like the stone tabs. */
[data-theme="dark"] #spaces-gallery .gallery-tab-btn:not(.active),
[data-theme="dark"] #product-showcase #load-more {
  border-color: #829487 !important;
  background: #26372d !important;
  color: #f3f5ed !important;
}
[data-theme="dark"] #spaces-gallery .gallery-tab-btn:not(.active):is(:hover, :focus-visible),
[data-theme="dark"] #product-showcase .filter-tab:not(.active):is(:hover, :focus-visible),
[data-theme="dark"] #product-showcase #load-more:is(:hover, :focus-visible) {
  border-color: #ddb47d !important;
  background: #38513f !important;
}
[data-theme="dark"] #spaces-gallery .gallery-tab-btn.active,
[data-theme="dark"] #product-showcase .filter-tab.active {
  border-color: #e4bf87 !important;
  background: #e4bf87 !important;
  color: #17251c !important;
  box-shadow: none !important;
}
[data-theme="dark"] #product-showcase .filter-tab.active span { color: #17251c !important; }

/* Room tags sit on photos of any brightness. */
.space-card-tag { color: #f6d28b; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }

/* Phones: room cards were too short, so titles clipped and text ran over bright photos. */
@media (max-width: 640px) {
  .spaces-gallery-section .spaces-grid > .space-card { height: auto !important; min-height: 208px !important; aspect-ratio: auto !important; }
  .spaces-gallery-section .space-card img { position: absolute; inset: 0; }
  .spaces-gallery-section .space-card-overlay { padding: 12px; background: linear-gradient(0deg, rgba(15, 16, 14, 0.92) 0%, rgba(15, 16, 14, 0.66) 72%, rgba(15, 16, 14, 0.2) 100%); }
}

/* The route map frame was a gray slab in Dark. */
[data-theme="dark"] .route-map-shell { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); }

/* White on bright WhatsApp green is 2:1; use the green of the other WhatsApp buttons. */
.whatsapp-float { background: #147a3a !important; }
.whatsapp-float:hover { background: #106a32 !important; }

/* The WhatsApp greeting had no styles and dropped below the footer; it now floats above the button. */
.contact-greeting {
  position: fixed;
  right: 24px;
  bottom: 86px;
  z-index: 96;
  width: min(300px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid var(--direct-rule);
  border-radius: 16px;
  background: var(--direct-page);
  color: var(--direct-ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.contact-greeting[hidden] { display: none; }
.contact-greeting.is-visible { opacity: 1; transform: none; }
.contact-greeting-close { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border: 0; background: none; color: var(--direct-soft); font-size: 20px; cursor: pointer; }
.contact-greeting-head { display: flex; align-items: center; gap: 8px; padding-right: 28px; font-size: 14px; }
.contact-greeting-avatars { display: flex; flex: none; }
.contact-greeting-avatars span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #147a3a; color: #fff; font-size: 10px; font-weight: 800; }
.contact-greeting-avatars span + span { margin-left: -8px; box-shadow: 0 0 0 2px var(--direct-page); }
.contact-greeting p { margin: 10px 0 12px; color: var(--direct-soft); font-size: 14px; line-height: 1.45; }
.contact-greeting-action { width: 100%; min-height: 44px; border: 0; border-radius: 999px; background: #147a3a; color: #fff; font: 700 13px 'Manrope', -apple-system, sans-serif; cursor: pointer; }
.contact-greeting-action:hover { background: #106a32; }

/* Reading popups follow the theme, like the Cappadocia detail. Image viewers stay dark. */
@media screen {
  [data-theme="dark"] .po-logo-text { color: var(--direct-ink); }
  :root[data-theme="cream"] :is(.product-modal, .legal-modal) {
    border-color: #d5c9b3 !important;
    background: #fbfaf5 !important;
    color: var(--direct-ink) !important;
    box-shadow: 0 34px 100px #111b1590 !important;
  }
  :root[data-theme="cream"] .modal-media { background: #eee9de !important; }
  :root[data-theme="cream"] :is(.modal-copy h2, .modal-spec-item span, .wa-chooser-header h2, .wa-rep-info strong, .po-ref-box strong, .po-receipt-body h2, .po-item span, .legal-modal-inner h2, .legal-body h3) { color: var(--direct-ink); }
  :root[data-theme="cream"] :is(.wa-chooser-header p, .wa-rep-info small, .wa-chooser-foot p, .po-ref-box small, .po-intro, .po-item strong, .po-terms-box ul, .legal-body p) { color: var(--direct-soft); }
  :root[data-theme="cream"] :is(.modal-spec-item strong, .wa-rep-info span, .wa-chooser-foot a, .po-ref-tag, .po-terms-box h4, .legal-date) { color: #6f5127; }
  :root[data-theme="cream"] :is(.modal-specs-table, .wa-rep-card, .po-details-grid, .po-terms-box) { border-color: #ddd5c7; background: #f2ede2; }
  :root[data-theme="cream"] :is(.po-receipt-header, .legal-date) { border-bottom-color: #ddd5c7; }
  :root[data-theme="cream"] .po-item-full { border-top-color: #ddd5c7; }
  :root[data-theme="cream"] .status-badge-green { color: #147a3a; }
}

.button[hidden] { display: none !important; }

/* A refresh paints the finished page: no replayed card or header motion. */
html { background: var(--direct-page); }
.product-card { animation: none !important; }

/* Inquiry form: sent note and even fallback buttons. */
.quote-form .button::before, .quote-form .button::after { display: none; }
.form-sent { margin: 12px 0 0; padding: 12px 16px; border: 1px solid #9db89f; border-radius: 12px; background: #e8f1e4; color: #1e4a2c; font-size: 15px; font-weight: 700; outline: none; }
[data-theme="dark"] .form-sent { border-color: #4f7a5b; background: #1d3226; color: #d5edda; }
.cta-section .form-success-actions .button { width: 100%; margin-top: 0; }
.cta-section .form-success-actions #inquiry-po-receipt-btn { grid-column: auto; }
.quote-form button[type="submit"]:disabled { opacity: 0.7; cursor: progress; }

/* Shipping map follows cream mode. */
:root[data-theme="cream"] .freight-hud-card { background: #f4eddf; color: var(--direct-ink); border-color: var(--direct-rule); }
:root[data-theme="cream"] .freight-hud-card .freight-headline { color: var(--direct-ink); }
:root[data-theme="cream"] .freight-hud-card .freight-note,
:root[data-theme="cream"] .freight-facts span { color: var(--direct-soft); }
:root[data-theme="cream"] .freight-facts strong { color: var(--direct-number); }
:root[data-theme="cream"] .freight-hud-card .motion-control { background: #fffdf8; border-color: var(--direct-rule); color: var(--direct-ink); }
:root[data-theme="cream"] .freight-hud-card :is(.lane-region-title, .lane-region-count) { color: var(--direct-number); border-color: var(--direct-rule); }
:root[data-theme="cream"] .freight-hud-card .lane-region { border-color: var(--direct-rule); }
:root[data-theme="cream"] .freight-hud-card .lane-pill { background: #fffdf8 !important; border-color: var(--direct-rule) !important; }
:root[data-theme="cream"] .freight-hud-card .lane-options .lane-pill .lane-title { color: var(--direct-ink) !important; }
:root[data-theme="cream"] .freight-hud-card .lane-pill.active { background: var(--direct-forest) !important; }
:root[data-theme="cream"] .freight-hud-card .lane-options .lane-pill.active .lane-title { color: #fffdf8 !important; }
:root[data-theme="cream"] #ocean-gradient stop { stop-color: #bdd6de; }
:root[data-theme="cream"] #bathymetry-glow stop { stop-opacity: 0; }
:root[data-theme="cream"] .map-land { fill: #f8f2e5; stroke: #b9c4bb; }
:root[data-theme="cream"] .map-highlight-country { fill: #ecdcb8; stroke: #a98f62; }
:root[data-theme="cream"] .map-graticules { stroke: #9dbcc6; }
:root[data-theme="cream"] .map-water-label,
:root[data-theme="cream"] .map-water-sub,
:root[data-theme="cream"] .map-waypoint-label,
:root[data-theme="cream"] .compass-n { fill: #3f6573; stroke: none; }
:root[data-theme="cream"] .map-ocean-route { stroke: #8a5a1e; }
:root[data-theme="cream"] .map-compass circle { fill: #fbf7ee; stroke: #c9bea8; }

/* Form selects match the text fields. */
.cta-section .quote-form select {
  appearance: none;
  -webkit-appearance: none;
  height: 44px;
  padding: 0 38px 0 14px;
  border-radius: 12px;
  font-size: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2355615a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.cta-section .quote-form .quote-request { display: block; }
.cta-section .quote-form .quote-request textarea { width: 100%; box-sizing: border-box; }

/* WhatsApp and iMessage share one row on each contact card. */
.contact-details .sales-actions { flex-wrap: nowrap; gap: 8px; }
.contact-details .sales-actions a.button { flex: 1 1 auto; min-width: 0; padding-inline: 10px; justify-content: center; white-space: nowrap; }
.contact-details .sales-actions a.button-call { flex: 0 1 auto; }
.contact-details .sales-actions .button::before, .contact-details .sales-actions .button::after { display: none; }
.contact-details .sales-card { container-type: inline-size; }
@container (max-width: 290px) {
  .contact-details .sales-actions a.button { padding-inline: 6px; font-size: 11px; }
  .contact-details .sales-actions .wa-btn-icon { display: none; }
}

/* Every port shows at once, as small buttons by region. */
.freight-hud-card .lane-regions { display: grid; gap: 0; }
.freight-hud-card .lane-region { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
:root[data-theme="cream"] .freight-hud-card .lane-region { border-top-color: var(--direct-rule); }
.freight-hud-card .lane-region-title { margin: 0; padding: 0; font-size: 12px; line-height: 1.3; }
.freight-hud-card .lane-options { display: flex; flex-wrap: wrap !important; gap: 6px; margin: 0; padding: 0; overflow: visible !important; }
.freight-hud-card .lane-options > .lane-pill,
.freight-hud-card .lane-region .lane-pill { min-height: 30px !important; height: 30px; padding: 0 12px !important; flex: 0 0 auto !important; width: auto !important; border-radius: 999px; box-shadow: none; }
.freight-hud-card .lane-options .lane-pill .lane-title { font-size: 12.5px; }
@media (max-width: 720px) {
  .freight-hud-card .lane-region { grid-template-columns: minmax(0, 1fr); gap: 7px; }
}
@media (max-width: 720px) {
  :root #shipping .freight-hud-card .lane-options .lane-pill { height: 36px; min-height: 36px !important; }
}

/* Show the actual finish first; a room scene appears only while inspecting the card. */
.mm-cappadocia-card .mm-catalog-image-button { position: relative; }
.mm-cappadocia-card .mm-catalog-image-button .mm-cappadocia-card-room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .mm-cappadocia-card:hover .mm-cappadocia-card-room,
  .mm-cappadocia-card .mm-catalog-image-button:focus-visible .mm-cappadocia-card-room { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mm-cappadocia-card .mm-catalog-image-button .mm-cappadocia-card-room { transition: none; }
}

/* Keep catalog identity visible alongside the individual finish name. */
.compact-catalog-header .catalog-range-description {
  display: block !important;
  max-width: 72ch;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: inherit;
}
.catalog-program-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.4;
}

/* Native catalog strips are narrow: present the whole sample without enlarging the grain. */
.mm-cappadocia-card .mm-catalog-image-button.has-material-sample {
  aspect-ratio: 1 / 1;
  background: radial-gradient(ellipse at 50% 40%, #f8f6f0, #e3ded2);
}
.mm-cappadocia-card .mm-catalog-image-button img.mm-cappadocia-material-sample {
  position: absolute;
  inset: 8% 0 16%;
  width: 100%;
  height: 76%;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(8px 10px 8px #292a2230);
  transform: none;
}
.mm-material-sample-caption {
  position: absolute;
  bottom: 5%;
  left: 0;
  width: 100%;
  color: #4d5046;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

/* MM Surface control refinement: forest glass, brass focus, and a single line-icon weight. */
:root { --control-ease: cubic-bezier(.2,.7,.2,1); }
.mm-ui-icon { width: 20px; height: 20px; flex: 0 0 20px; display: block; pointer-events: none; }
.site-header :is(.mm-theme-toggle, .mm-language-control, .menu-button) {
  background: linear-gradient(150deg, #ffffff20, #ffffff08) !important;
  border: 1px solid #ffffff30 !important;
  box-shadow: inset 0 1px 0 #ffffff25, inset 0 -1px 0 #00000018, 0 3px 10px #00000012 !important;
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  transition: background .18s var(--control-ease), border-color .18s var(--control-ease), box-shadow .18s var(--control-ease), transform .18s var(--control-ease) !important;
}
.site-header .mm-theme-toggle .theme-label,
.site-header .mm-language-code { font: 700 11px/1.2 Manrope, sans-serif !important; letter-spacing: .02em !important; }
.site-header .theme-icon svg { width: 16px; height: 16px; stroke-width: 1.75; }
.site-header .menu-button { min-width: 44px; min-height: 44px; }
:is(.modal-close, .mm-cappadocia-detail-close, .mm-cappadocia-image-close, .mm-catalog-lightbox-close, .quote-selected-clear) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50% !important;
  box-shadow: inset 0 1px #ffffff40, 0 4px 14px #00000014;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.search-field > .mm-ui-icon { color: var(--direct-soft); }
.preview-controls { display: flex; justify-content: flex-end; margin-top: 14px; }
.preview-motion-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 9px 14px; border: 1px solid var(--direct-rule); border-radius: 999px;
  color: var(--direct-ink); background: color-mix(in srgb, var(--direct-page) 82%, transparent);
  box-shadow: inset 0 1px #ffffff38;
  font: 600 12px/1.4 Manrope,sans-serif; cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .18s var(--control-ease), border-color .18s var(--control-ease);
}
.preview-motion-toggle .mm-ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
.preview-play-icon { display: none; }
.preview-motion-toggle[aria-pressed="true"] .preview-play-icon { display: block; }
.preview-motion-toggle[aria-pressed="true"] .preview-pause-icon { display: none; }
:is(.preview-motion-toggle, .menu-button, .mm-theme-toggle, .modal-close, .quote-selected-clear):focus-visible {
  outline: 3px solid var(--direct-brass) !important; outline-offset: 3px;
}
.quote-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--direct-number); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .site-header :is(.mm-theme-toggle, .mm-language-control, .menu-button):hover {
    border-color: #e0bb82a0 !important;
    background: linear-gradient(150deg, #ffffff2a, #ffffff10) !important;
    box-shadow: inset 0 1px #ffffff40, 0 5px 14px #0000001c !important;
    transform: translateY(-1px);
  }
  .preview-motion-toggle:hover { border-color: var(--direct-number); }
}
@media (max-width: 1079px) { body.menu-open .site-header { z-index: 95 !important; } }
@media (prefers-reduced-motion: reduce) {
  .preview-controls { display: none; }
  .site-header :is(.mm-theme-toggle, .mm-language-control, .menu-button) { transition: none !important; transform: none !important; }
}

/* Load More: a card waiting for its photo stays a quiet panel, never a black block. */
.product-card .product-media { background: var(--direct-rule) !important; }

/* Product popup: one framed pane holds the whole picture and a tidy row of views. */
.modal-layout-hd .modal-media {
  --views: 0px;
  display: block !important;
  align-self: stretch;
  height: auto !important;
  min-height: 600px !important;
  max-height: none !important;
  isolation: isolate;
}
.modal-layout-hd .modal-media.has-views { --views: 98px; }
.modal-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -24px;
  background: var(--modal-backdrop, none) center / cover no-repeat;
  filter: blur(22px) saturate(.9);
  opacity: .5;
}
.modal-media #modal-image {
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 24px) !important;
  height: calc(100% - 24px - var(--views)) !important;
  max-height: none !important;
  padding: 0 !important;
  object-fit: contain !important;
}
.modal-media:hover img { transform: none !important; }
.modal-media .modal-zoom-btn { right: 20px; bottom: calc(20px + var(--views)); z-index: 1; }
.material-views {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  grid-template-rows: 84px;
  gap: 8px;
  height: 84px;
}
.material-view {
  display: grid;
  gap: 4px;
  height: 84px;
  min-width: 0;
  overflow: hidden;
  padding: 4px 4px 5px;
  border: 1px solid var(--direct-rule);
  border-radius: 10px;
  color: var(--direct-ink);
  background: var(--direct-page);
  font: 600 11px/1.25 Manrope, sans-serif;
  cursor: pointer;
}
.material-view span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-view[aria-pressed="true"] { border-color: var(--direct-number); box-shadow: inset 0 0 0 1px var(--direct-number); }
.material-view:focus-visible { outline: 2px solid var(--direct-brass); outline-offset: 2px; }
.modal-media .material-view img {
  width: 100% !important;
  height: 56px !important;
  min-height: 0;
  padding: 0 !important;
  border-radius: 6px;
  object-fit: cover !important;
}
@media (min-width: 641px) {
  .modal-layout-hd { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) !important; }
}
@media (max-width: 640px) {
  .modal-layout-hd { display: block !important; }
  .modal-layout-hd .modal-media { height: min(68dvh, 124vw) !important; min-height: 380px !important; }
  .modal-layout-hd .modal-media.has-views { --views: 88px; }
  .material-views { grid-template-rows: 74px; height: 74px; }
  .material-view { height: 74px; }
  .modal-media .material-view img { height: 46px !important; }
}

/* Inside the plank: every layer projects itself, so it draws the same in any renderer. */
@property --plank-lift { syntax: "<length>"; inherits: true; initial-value: 0px; }
#spc-3d-assembly {
  --plank-tilt: 62deg;
  --plank-turn: -32deg;
  transform: none !important;
  transform-style: flat;
  animation: none !important;
}
#spc-3d-assembly .plank-3d-slab {
  transform: perspective(1200px) rotateX(var(--plank-tilt)) rotateZ(var(--plank-turn)) translateZ(var(--plank-lift));
  transform-style: flat;
  transition: transform .65s cubic-bezier(.2, .8, .2, 1), --plank-lift .65s cubic-bezier(.2, .8, .2, 1), opacity .4s ease;
}
#spc-3d-assembly.is-dragging .plank-3d-slab { transition: --plank-lift .65s cubic-bezier(.2, .8, .2, 1), opacity .4s ease; }
#spc-3d-assembly.orbiting .plank-3d-slab { animation: mmPlankOrbit 16s linear infinite; }
@keyframes mmPlankOrbit {
  from { transform: perspective(1200px) rotateX(var(--plank-tilt)) rotateZ(var(--plank-turn)) translateZ(var(--plank-lift)); }
  to { transform: perspective(1200px) rotateX(var(--plank-tilt)) rotateZ(calc(var(--plank-turn) + 360deg)) translateZ(var(--plank-lift)); }
}
#spc-3d-assembly .slab-layer-1 { --plank-lift: 14px; z-index: 6; }
#spc-3d-assembly .slab-layer-2 { --plank-lift: 11px; z-index: 5; }
#spc-3d-assembly .slab-layer-3 { --plank-lift: 8px; z-index: 4; }
#spc-3d-assembly .slab-layer-4 { --plank-lift: 0px; z-index: 3; }
#spc-3d-assembly .slab-layer-5 { --plank-lift: -6px; z-index: 2; }
#spc-3d-assembly .slab-layer-6 { --plank-lift: -10px; z-index: 1; }
#spc-3d-assembly.exploded .slab-layer-1 { --plank-lift: 95px; }
#spc-3d-assembly.exploded .slab-layer-2 { --plank-lift: 58px; }
#spc-3d-assembly.exploded .slab-layer-3 { --plank-lift: 20px; }
#spc-3d-assembly.exploded .slab-layer-4 { --plank-lift: -20px; }
#spc-3d-assembly.exploded .slab-layer-5 { --plank-lift: -58px; }
#spc-3d-assembly.exploded .slab-layer-6 { --plank-lift: -95px; }
#spc-3d-assembly .slab-face-top { box-shadow: 0 0 10px #0000002e; }
.spc-3d-legend {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
#spc-3d-assembly.exploded ~ .spc-3d-legend { opacity: 1; }
.spc-3d-legend span {
  padding: 4px 10px;
  border: 1px solid #dba96580;
  border-radius: 999px;
  color: #f6d28b;
  background: #0f172aeb;
  font: 700 10px "DM Mono", monospace;
  white-space: nowrap;
}
@media (max-width: 760px) {
  #spc-3d-assembly.exploded .slab-layer-1 { --plank-lift: 60px; }
  #spc-3d-assembly.exploded .slab-layer-2 { --plank-lift: 36px; }
  #spc-3d-assembly.exploded .slab-layer-3 { --plank-lift: 12px; }
  #spc-3d-assembly.exploded .slab-layer-4 { --plank-lift: -12px; }
  #spc-3d-assembly.exploded .slab-layer-5 { --plank-lift: -36px; }
  #spc-3d-assembly.exploded .slab-layer-6 { --plank-lift: -60px; }
  .spc-3d-legend { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #spc-3d-assembly.orbiting .plank-3d-slab { animation: none; }
}

/* WhatsApp button: nav.js moves it clear of nearby controls. */
.whatsapp-float { transform: translateY(calc(var(--wa-lift, 0px) * -1)); }
.whatsapp-float:hover { transform: translateY(calc(var(--wa-lift, 0px) * -1 - 3px)) scale(1.03) !important; }
.whatsapp-float.is-compact { width: 54px; height: 54px; padding: 0 !important; justify-content: center !important; }
.whatsapp-float.is-compact > span:not(.whatsapp-mark) { display: none !important; }
.whatsapp-float.is-tucked,
body.menu-open .whatsapp-float { opacity: 0 !important; visibility: hidden; pointer-events: none !important; }

/* Inquiry brief: the close button keeps its own corner. */
.po-receipt-header { padding-right: 64px; }

@media print {
  html, body { background: #fff !important; }
  dialog.po-receipt-modal[open] {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  dialog.po-receipt-modal[open]::backdrop { background: #fff; }
  .po-receipt-modal *,
  :root[data-theme] .po-receipt-modal :is(h2, h4, strong, small, span, p, li, div) { color: #000 !important; border-color: #bbb !important; background: none !important; }
  .po-receipt-modal .modal-close { display: none !important; }
  .po-receipt-header { padding-right: 0; }
  .whatsapp-float, .contact-greeting { display: none !important; }
}
@media (min-width: 761px) {
  #spc-3d-assembly { left: -48px; }
}
@media (min-width: 1000px) and (max-width: 1180px) {
  #spc-3d-assembly { left: -92px; scale: .84; }
}
main > #certifications.quality-strip { scroll-margin-top: 0 !important; }

/* Verified fact rows: wall panels, volume buyers, private label. */
.fact-block { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: center; }
.compact-addon.fact-block { display: grid; }
.fact-image { display: block; width: 100%; height: 100%; max-height: 260px; object-fit: cover; border-radius: 16px; }
.fact-body { min-width: 0; }
.fact-body h3 { margin: 0; font: 700 18px/1.3 'Manrope', sans-serif; color: var(--direct-ink); }
.fact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 22px; margin: 14px 0 0; }
.fact-row div { min-width: 0; padding-top: 10px; border-top: 1px solid var(--direct-rule); }
.fact-row dt { color: var(--direct-number); font: 500 11px/1.4 'DM Mono', monospace; letter-spacing: .03em; }
.fact-row dd { margin: 4px 0 0; color: var(--direct-ink); font-size: 15px; font-weight: 600; line-height: 1.4; }
.fact-note { margin: 12px 0 0; color: var(--direct-soft); font-size: 13px; line-height: 1.5; }
.fact-body .button { margin-top: 14px; }
#story .story-facts { margin-top: 24px; }
#private-label .fact-note { color: var(--direct-sage); margin-bottom: 18px; }
#private-label .capacity-panel .fact-image { max-height: 200px; margin-bottom: 14px; }
@media (max-width: 760px) {
  .fact-block, .compact-addon.fact-block { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .fact-image { max-height: 190px; }
}

/* Six term cards, including the Incoterm definitions. */
#terms .terms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#terms .section-intro p { margin: 10px 0 0; }
#terms .section-intro a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#terms .term-card p { font-size: 15px; line-height: 1.45; }
@media (max-width: 900px) { #terms .terms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { #terms .terms-grid { grid-template-columns: minmax(0, 1fr); } }

/* Main search links to named Cappadocia finishes. */
.search-cappadocia { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 6px; }
.search-cappadocia strong { margin-right: 6px; color: var(--direct-ink); font-size: 14px; }
.search-cappadocia button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--direct-rule); border-radius: 999px; background: transparent; color: var(--direct-ink); font: 600 14px 'Manrope', sans-serif; cursor: pointer; }
.search-cappadocia button:is(:hover, :focus-visible) { border-color: var(--direct-number); }

/* Cappadocia packing tables. Source figures only; headers carry the units. */
.mm-cappadocia-detail-copy { min-width: 0; }
.mm-cappadocia-detail-specs dd ul { margin: 0; padding: 0; list-style: none; }
.mm-cappadocia-detail-packing { order: 2; margin-top: 18px; color: #303c34; }
.mm-cappadocia-detail-packing:empty { display: none; }
.mm-cappadocia-detail-packing h3 { margin: 0 0 8px; font: 700 14px/1.3 'Manrope', sans-serif; color: inherit; }
.mm-cappadocia-detail-packing table, .doc-table table { width: 100%; margin: 0 0 12px; border-collapse: collapse; font-size: 11px; line-height: 1.35; }
.mm-cappadocia-detail-packing caption, .doc-table caption { padding: 4px 0; text-align: left; font-weight: 700; }
.mm-cappadocia-detail-packing th, .doc-table th { padding: 5px 4px 5px 0; text-align: left; color: #7b6444; font: 700 9px/1.3 'DM Mono', monospace; vertical-align: bottom; }
.mm-cappadocia-detail-packing td, .doc-table td { padding: 5px 4px 5px 0; border-top: 1px solid #e5dfd2; vertical-align: top; overflow-wrap: anywhere; }
.mm-cappadocia-detail-packing p { margin: 0 0 2px; color: #667169; font-size: 10px; line-height: 1.5; }
[data-theme="dark"] .mm-cappadocia-detail-packing { color: #e7ecdf; }
[data-theme="dark"] .mm-cappadocia-detail-packing th { color: #dfbf8d; }
[data-theme="dark"] .mm-cappadocia-detail-packing td { border-color: #ffffff22; }
[data-theme="dark"] .mm-cappadocia-detail-packing p { color: #b5c0b7; }

/* Document pages: about, trade terms, privacy. */
.doc-body { background: var(--direct-page); color: var(--direct-ink); }
.doc-header .brand { min-width: 0; }
.doc-nav { display: flex; gap: 22px; margin-inline: auto; }
.doc-nav a { color: inherit; font-size: 14px; font-weight: 600; text-decoration: none; }
.doc-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.doc-page { padding: 156px 0 72px; background: var(--direct-page); color: var(--direct-ink); }
.doc-page .page-shell { max-width: 860px; }
.doc-page h1 { margin: 0 0 10px; color: var(--direct-ink); font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.doc-page h2 { margin: 38px 0 10px; color: var(--direct-ink); font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; scroll-margin-top: 110px; }
.doc-page h3 { margin: 18px 0 6px; color: var(--direct-ink); font-size: 16px; font-weight: 700; line-height: 1.3; }
.doc-page p, .doc-page li, .doc-page dd { color: var(--direct-soft); font-size: 16px; line-height: 1.55; }
.doc-page p { margin: 0 0 8px; }
.doc-page a:not(.button) { color: var(--direct-ink); font-weight: 700; }
.doc-kicker { color: var(--direct-number) !important; font: 500 12px/1.4 'DM Mono', monospace !important; letter-spacing: .08em; text-transform: uppercase; }
.doc-lede { max-width: 36em; font-size: 18px !important; }
.doc-note { font-size: 14px !important; }
.doc-lines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.doc-lines a { display: block; overflow: hidden; border: 1px solid var(--direct-rule); border-radius: 14px; text-decoration: none; }
.doc-lines img { display: block; width: 100%; height: 130px; object-fit: cover; background: #fff; }
.doc-lines img.is-contained { object-fit: contain; padding: 6px; }
.doc-lines span { display: block; padding: 10px 12px; font-size: 14px; }
.doc-steps, .doc-list { margin: 0; padding-left: 20px; }
.doc-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doc-people article { padding: 14px 16px; border: 1px solid var(--direct-rule); border-radius: 14px; }
.doc-people h3 { margin: 0 0 2px; }
.doc-people p { margin: 0; font-size: 14px; }
.doc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }
.doc-defs { margin: 0; }
.doc-defs div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--direct-rule); }
.doc-defs dt { color: var(--direct-ink); font-weight: 700; }
.doc-defs dd { margin: 0; }
.doc-table table { font-size: 14px; }
.doc-table caption { color: var(--direct-ink); }
.doc-table th { color: var(--direct-number); font-size: 11px; }
.doc-table td { border-color: var(--direct-rule); color: var(--direct-soft); }
.doc-faq details { padding: 12px 0; border-top: 1px solid var(--direct-rule); }
.doc-faq summary { min-height: 28px; color: var(--direct-ink); font-weight: 700; cursor: pointer; }
.doc-faq p { margin: 8px 0 0; }
@media (max-width: 760px) {
  .doc-page { padding-top: 170px; }
  .doc-header { flex-wrap: wrap; }
  .doc-nav { order: 3; width: 100%; justify-content: flex-start; gap: 18px; padding-top: 6px; }
  .doc-nav a { display: inline-flex; align-items: center; min-height: 32px; }
  .doc-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-people { grid-template-columns: minmax(0, 1fr); }
  .doc-defs div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc-table table { font-size: 12px; }
}

/* Aluminum: images sit on one soft panel, so no white box floats on the card. */
.mm-aluminum-section .mm-aluminum-card-art.mm-catalog-image-button { height: 176px; margin: 10px 10px 0; width: calc(100% - 20px); border-radius: 14px; background: #e6e4dc; }
.mm-aluminum-section .mm-aluminum-card-art::before { display: none; }
.mm-aluminum-section .mm-aluminum-product-image { padding: 12px; background: transparent; mix-blend-mode: multiply; }
[data-theme="dark"] .mm-aluminum-section .mm-aluminum-card-art.mm-catalog-image-button { background: #cfd1c8; }
@media (max-width: 760px) {
  :root .site-header.doc-header { display: flex !important; flex-wrap: wrap !important; align-items: center; justify-content: space-between; height: auto !important; min-height: 0 !important; padding: 8px 14px !important; border-radius: 22px !important; }
  .doc-header .nav-actions { display: flex !important; gap: 6px; }
  .doc-header .nav-actions .button { display: none !important; }
  .doc-header .mm-theme-toggle { display: inline-flex !important; min-height: 44px; }
  .doc-nav { padding-top: 0; }
  .doc-nav a { min-height: 44px; }
}

/* Best price band and strip */
.best-price-strip { margin: 0; padding: 10px 16px; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.4; color: #17281f; background: #e0bb82; }
.best-price-band { padding: 56px 0; color: #f7f1e6; background: #17281f; }
.best-price-band h2 { margin: 0 0 14px; color: #e0bb82; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.best-price-band p { max-width: 860px; margin: 0; font-size: 17px; line-height: 1.6; color: #f7f1e6; }
[data-theme="dark"] .best-price-band { background: #0f1b15; }
.quote-file { display: grid; gap: 6px; }
.quote-file input { min-height: 44px; padding: 9px 0; font: inherit; }
.quote-file span { font-size: 13px; font-weight: 400; opacity: .75; }

/* Contact popup: iMessage and email beside WhatsApp */
.wa-rep-card .button-call { margin-top: 8px; width: 100%; justify-content: center; }
.wa-chooser-foot .wa-chooser-email { margin-bottom: 12px; color: var(--direct-ink, #17281f); }
[data-theme="dark"] .wa-chooser-foot .wa-chooser-email { color: #f7f1e6; }

/* Phone: tighter page, every tab visible */
@media (max-width: 640px) {
  main .section, main .direct-section { padding-block: 36px; }
  main .section h2, main .direct-section h2, .best-price-band h2 { font-size: 28px; line-height: 1.12; }
  .direct-hero h1 { font-size: clamp(34px, 10.5vw, 42px); }
  .direct-lede { font-size: 15px; line-height: 1.5; }
  .direct-lines { grid-template-rows: repeat(3, 96px); }
  .direct-line > span { font-size: 13px; }
  .best-price-strip { padding: 8px 16px; font-size: 13px; }
  .best-price-band { padding: 36px 0; }
  .best-price-band p { font-size: 15px; line-height: 1.55; }
  .story-facts .fact-image, .capacity-panel .fact-image { max-height: 150px; width: 100%; object-fit: cover; }
  .filter-tabs { flex-wrap: wrap; overflow: visible; gap: 8px; }
  .filter-tabs .filter-tab, .mm-stone-controls button, .mm-aluminum-controls button { min-height: 44px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
}
@media (max-width: 640px) {
  .catalog-controls .filter-tabs { flex-wrap: wrap !important; overflow: visible !important; width: 100%; max-width: 100%; margin-inline: 0; padding-inline: 0; }
  .story-facts .fact-image, .capacity-panel .fact-image { height: 150px !important; aspect-ratio: auto !important; }
}

/* WhatsApp button: only its position and fade animate, so it never resizes in motion. */
.whatsapp-float { transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease !important; }

/* The page stays put behind an open dialog. */
html:has(dialog[open]) { overflow: hidden; }

/* Phone: nothing is cut off, forms do not zoom, and small links are easy to tap. */
.story-pillar-item strong, .plank-layer strong, #po-receipt-title, .space-card h3, .form-more-fields label, .compact-resource-links a, .material-view span { overflow-wrap: anywhere; hyphens: auto; }
#container-calculator option { color: #1d2922; background: #fff9ef; }
@media (max-width: 640px) {
  .calc-body-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-label { overflow-wrap: anywhere; }
  input:not([type="checkbox"]):not([type="range"]), select, textarea { font-size: 16px !important; }
  .contact-details .sales-actions { flex-wrap: wrap; }
  .contact-details .sales-actions a.button, .contact-details .sales-actions a.button-call { flex: 1 1 100%; }
  .site-footer .footer-links a, .site-footer .footer-corp a { display: inline-flex; align-items: center; min-height: 40px; }
}
@media (max-width: 640px) {
  .cta-section .quote-form :is(input:not([type="checkbox"]), select, textarea) { font-size: 16px !important; }
  .contact-details .sales-actions a.button { height: auto; white-space: normal; line-height: 1.2; text-align: center; }
}
