:root {
  --33d-navy: #17212B;
  --33d-blue: #2774A6;
  --33d-mid-blue: #036A9A;
  --33d-copper: #C9783E;
  --33d-warm-white: #F7F5F0;
  --33d-soft-gray: #EAE8E3;
  --33d-white: #FFFFFF;
  --33d-border: rgba(23, 33, 43, 0.14);
  --33d-muted: rgba(23, 33, 43, 0.70);
  --33d-radius: 8px;
  --33d-section: clamp(4rem, 8vw, 7rem);
  --33d-max: 1240px;
}

body.threedimensions-site {
  background: var(--33d-warm-white);
  color: var(--33d-navy);
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Intermediate blue is the primary heading/decor color on light surfaces. */
.threedimensions-site h1,
.threedimensions-site h2,
.threedimensions-site h3,
.threedimensions-site h4,
.threedimensions-site h5,
.threedimensions-site h6 {
  color: var(--33d-mid-blue);
}

.threedimensions-site a {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.threedimensions-site .site-header,
.threedimensions-site .main-navigation {
  background: var(--33d-warm-white);
}

.threedimensions-site .main-navigation .main-nav ul li a,
.threedimensions-site .menu-toggle {
  color: var(--33d-navy);
}

.threedimensions-site .main-navigation .main-nav ul li:hover > a,
.threedimensions-site .main-navigation .main-nav ul li:focus > a,
.threedimensions-site .main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: var(--33d-mid-blue);
  background: transparent;
}

.dd-shell {
  width: min(calc(100% - 40px), var(--33d-max));
  margin-inline: auto;
}

.dd-kicker {
  margin: 0 0 1rem;
  color: var(--33d-copper);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dd-hero {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--33d-border);
  background-color: var(--33d-warm-white);
  background-image:
    linear-gradient(rgba(3,106,154,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3,106,154,.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

.dd-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: 610px;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.dd-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.8rem, 5.5vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.045em;
  color: var(--33d-mid-blue);
}

.dd-hero-copy {
  max-width: 680px;
  margin-top: 1.5rem;
  color: var(--33d-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.75;
}

.dd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.dd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.dd-button-primary {
  background: var(--33d-blue);
  color: #fff !important;
}

.dd-button-primary:hover,
.dd-button-primary:focus {
  background: #205f88;
  transform: translateY(-1px);
}

.dd-button-secondary {
  border-color: rgba(23,33,43,.28);
  color: var(--33d-navy) !important;
  background: rgba(247,245,240,.78);
}

.dd-button-secondary:hover,
.dd-button-secondary:focus {
  border-color: var(--33d-mid-blue);
  color: var(--33d-mid-blue) !important;
}

.dd-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.5rem;
  margin-top: 2rem;
  color: rgba(23,33,43,.66);
  font-size: .9rem;
}

.dd-system-graphic {
  display: grid;
  place-items: center;
}

.dd-system-graphic svg {
  width: 100%;
  max-width: 560px;
  height: auto;
}

.dd-section {
  padding-block: var(--33d-section);
}

.dd-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.25rem;
}

.dd-section-heading h2,
.dd-dark h2,
.dd-cta h2 {
  margin: .4rem 0 0;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  letter-spacing: -.03em;
}

.dd-section-heading p {
  margin: 0;
  color: var(--33d-muted);
}

.dd-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dd-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--33d-border);
  border-radius: var(--33d-radius);
  background: rgba(255,255,255,.55);
}

.dd-card-number {
  color: var(--33d-copper);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.dd-card h3 {
  margin: 2.4rem 0 .75rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.dd-card p {
  margin: 0;
  color: var(--33d-muted);
}

.dd-card a {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--33d-blue);
  font-weight: 700;
  text-decoration: none;
}

.dd-dark {
  background: var(--33d-navy);
  color: var(--33d-warm-white);
}

.dd-dark h2,
.dd-dark h3,
.dd-dark a {
  color: var(--33d-warm-white);
}

.dd-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.dd-project-visual {
  min-height: 300px;  /* was 340px */
  border: 1px solid rgba(247,245,240,.18);
  border-radius: var(--33d-radius);
  background-color: #FFF; /* was  #26313b */
  background-image:
    linear-gradient(rgba(3,106,154,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3,106,154,.13) 1px, transparent 1px);
  background-size: 28px 28px;
}

.dd-feature p { color: rgba(247,245,240,.74); }

.dd-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.dd-stat strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.dd-stat span {
  color: rgba(247,245,240,.58);
  font-size: .84rem;
}

.dd-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.dd-article {
  padding-top: 1.3rem;
  border-top: 1px solid rgba(23,33,43,.24);
}

.dd-article-meta {
  color: rgba(23,33,43,.56);
  font-size: .82rem;
}

.dd-article h3 {
  margin: .55rem 0 .7rem;
  font-size: 1.35rem;
}

.dd-article h3 a {
  color: var(--33d-mid-blue);
  text-decoration: none;
}

.dd-article h3 a:hover,
.dd-article h3 a:focus { color: var(--33d-blue); }

.dd-article p {
  margin: 0;
  color: var(--33d-muted);
  font-size: .94rem;
}

.dd-cta-wrap {
  padding-bottom: 2rem;
}

.dd-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.6rem);
  border-radius: var(--33d-radius);
  background: var(--33d-blue);
  color: #fff;
}

.dd-cta h2 { color: #fff; }
.dd-cta p { max-width: 760px; margin-bottom: 0; color: rgba(255,255,255,.82); }
.dd-cta .dd-kicker { color: rgba(255,255,255,.75); }

.dd-mark {
  width: 64px;
  height: 64px;
}

/* -------------------------------------------------------------------------
   Standard GeneratePress pages/posts
   Keep legacy content and Gutenberg wide/full blocks inside the viewport.
   The custom front page is excluded because it intentionally uses full-width
   sections with its own .dd-shell layout.
   ------------------------------------------------------------------------- */
.threedimensions-site:not(.home) *,
.threedimensions-site:not(.home) *::before,
.threedimensions-site:not(.home) *::after {
  box-sizing: border-box;
}

.threedimensions-site:not(.home) .site-content {
  width: min(calc(100% - 40px), var(--33d-max));
  max-width: var(--33d-max);
  margin-inline: auto;
}

.threedimensions-site:not(.home) .content-area,
.threedimensions-site:not(.home) .site-main,
.threedimensions-site:not(.home) .inside-article,
.threedimensions-site:not(.home) .entry-content {
  min-width: 0;
  max-width: 100%;
}

.threedimensions-site:not(.home) .entry-content {
  overflow-wrap: anywhere;
}

.threedimensions-site:not(.home) .entry-content > *,
.threedimensions-site:not(.home) .entry-content .alignwide,
.threedimensions-site:not(.home) .entry-content .alignfull {
  max-width: 100%;
}

.threedimensions-site:not(.home) .entry-content .alignwide,
.threedimensions-site:not(.home) .entry-content .alignfull {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.threedimensions-site:not(.home) .entry-content img,
.threedimensions-site:not(.home) .entry-content video,
.threedimensions-site:not(.home) .entry-content iframe,
.threedimensions-site:not(.home) .entry-content embed,
.threedimensions-site:not(.home) .entry-content object,
.threedimensions-site:not(.home) .entry-content svg {
  max-width: 100%;
}

.threedimensions-site:not(.home) .entry-content pre {
  max-width: 100%;
  overflow-x: auto;
}

.threedimensions-site:not(.home) .entry-content table {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 900px) {
  .dd-hero-inner,
  .dd-feature,
  .dd-section-heading,
  .dd-cta {
    grid-template-columns: 1fr;
  }

  .dd-hero-inner { min-height: auto; }
  .dd-system-graphic { max-width: 620px; margin-inline: auto; }
  .dd-article-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .threedimensions-site:not(.home) .site-content { width: min(calc(100% - 28px), var(--33d-max)); }
  .dd-shell { width: min(calc(100% - 28px), var(--33d-max)); }
  .dd-service-grid,
  .dd-article-grid { grid-template-columns: 1fr; }
  .dd-stats { grid-template-columns: 1fr 1fr 1fr; }
  .dd-hero h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
}

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