/* Visitor surfaces sampled from the supplied homepage artwork. */
:root {
  --dczy-warm-white: #fdfbfe;
  --dczy-pale-pink: #f9f0fa;
  --dczy-canvas: #f9f3fa;
  --dczy-mist: #eceafc;
  --dczy-lavender: #e5defd;
  --dczy-page-wash: linear-gradient(90deg, #faf1fb, #faf5fc 18%, var(--dczy-pale-pink) 54%, #f0e7fd 78%, var(--dczy-lavender));
  --dczy-panel-wash: linear-gradient(110deg, var(--dczy-warm-white), #fbf8fd 56%, #f4f0fb);
  --dczy-site-width: 1900px;
  --dczy-content-width: 1680px;
}

body,
body.dczy-final-home[data-page-path="/"] {
  background-color: var(--dczy-canvas);
  background-image: var(--dczy-page-wash);
}

/* The homepage canvas already has three background waves. Keep their geometry. */
.dczy-final-home #main-content {
  background-color: var(--dczy-canvas);
  background-image:
    radial-gradient(ellipse 60% 5% at 97% 83%, #eee4fb 0 62%, transparent 63%),
    radial-gradient(ellipse 38% 4% at -2% 83%, #f7edf8 0 66%, transparent 67%),
    radial-gradient(ellipse 65% 7% at 98% 68%, #efe7fd 0 56%, transparent 57%),
    var(--dczy-page-wash);
}

.dczy-final-home :is(.home-mid-stats, .home-mid-intro, .home-mid-platform) {
  background-image: linear-gradient(113deg, var(--dczy-pale-pink), #fbf8fd 54%, var(--dczy-mist));
}
.dczy-final-home .home-mid-stats::before {
  background-image: linear-gradient(165deg, var(--dczy-lavender), #f5edf9 65%);
}
.dczy-final-home .home-mid-stat-grid article {
  background-image: linear-gradient(135deg, var(--dczy-warm-white), #f9f7fbcf);
}
.dczy-final-home :is(.home-case-card, .home-review-card, .home-mid-service-grid a, .home-journal-grid article > a) {
  background-image: var(--dczy-panel-wash);
}
body.dczy-final-home[data-page-path="/"] .site-footer {
  background-color: var(--dczy-canvas);
  background-image: radial-gradient(ellipse at 16% 43%, var(--dczy-warm-white), transparent 59%), var(--dczy-page-wash);
}

body[data-page-path]:not(.dczy-final-home) > :is(.site-header, .site-footer) {
  background-color: var(--dczy-canvas);
  background-image: var(--dczy-page-wash);
}
body[data-page-path] .mobile-menu {
  background-color: var(--dczy-canvas);
  background-image: var(--dczy-page-wash);
}

/* Sheet, form and catalog surfaces use a lighter tone behind small print. */
body[data-page-path] :is(.contact-layout, .marketing-service, .document-body, .catalog-panel,
    .reference-note, .plan-card, .access-card, .tutorial-card, .resource-row,
    .profile-service, .feature-card, .theme-card, .shein-card, .principle-card) {
  background-color: var(--dczy-warm-white);
  background-image: var(--dczy-panel-wash);
}
.price-shell {
  background-color: var(--dczy-pale-pink);
  background-image: linear-gradient(#e8cfd438 1px, transparent 1px),
    linear-gradient(90deg, #e8cfd438 1px, transparent 1px), var(--dczy-page-wash);
  background-size: 28px 28px, 28px 28px, 100% 100%;
}
.table-scroll { background-color: var(--dczy-warm-white); }

/* The older service center has its own template, with white text in the footer. */
body:has(main > .profile) > .site-header {
  background-color: transparent;
  background-image: linear-gradient(90deg, #faf1fbf7, #faf5fcf7 18%, #f9f0faf7 54%, #f0e7fdf7 78%, #e5defdf7);
}
body:has(main > .profile) > .site-footer {
  background-color: #661b35;
  background-image: linear-gradient(110deg, #661b35, #51223c);
}
body:has(main > .profile) .site-footer .contact-reserves {
  background-color: var(--dczy-warm-white);
}

/* The reading area stops growing. The colour wash still spans the viewport. */
.dczy-final-home { --home-canvas-limit: var(--dczy-site-width); }
body:not(.dczy-final-home) > main {
  max-width: var(--dczy-site-width);
  margin-inline: auto;
}

main > .profile { max-width: var(--dczy-content-width); }
body:has(main > .profile) > .site-footer { max-width: var(--dczy-content-width); margin-inline: auto; }
@media (min-width: 1200px) {
  .dczy-final-home .header-inner { margin-inline: auto; }
}
@media (min-width: 1680px) {
  .dczy-final-home :is(.home-mid, .home-case-grid, .home-review-row, .home-journal) {
    width: min(88.4211%, var(--dczy-content-width));
  }
}
@media (min-width: 1900px) {
  body.dczy-final-home[data-page-path="/"] {
    background-image:
      radial-gradient(ellipse 60% 5% at 97% 83%, #eee4fb 0 62%, transparent 63%),
      radial-gradient(ellipse 38% 4% at -2% 83%, #f7edf8 0 66%, transparent 67%),
      radial-gradient(ellipse 65% 7% at 98% 68%, #efe7fd 0 56%, transparent 57%),
      var(--dczy-page-wash);
    background-size: var(--dczy-site-width) 100%, var(--dczy-site-width) 100%, var(--dczy-site-width) 100%, 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
  }
  .dczy-final-home #main-content { background: transparent; }

  /* Match the footer's fluid measurements at the same endpoint as the hero. */
  body.dczy-final-home[data-page-path="/"] .site-footer {
    margin-block-end: 19px;
    padding-block: 43.7px 20.9px;
    border-radius: 38px;
    font-size: clamp(1rem, calc(.95rem + 4.94px), 1.5rem);
  }
  .home-footer-contact figure > a { width: clamp(6.5rem, calc(5rem + 76px), 16rem); }
  .home-footer-wordmark { font-size: min(18cqi, calc(4rem + 47.5px), 8.75rem); }

  body:not(.dczy-final-home) main .wrap { max-width: 1380px; }
  body:not(.dczy-final-home) .about-reference > .wrap { max-width: 1440px; }
  body:not(.dczy-final-home) .about-reference > .wrap:last-child,
  body:not(.dczy-final-home) main .wide { max-width: var(--dczy-site-width); }
  body:not(.dczy-final-home) .site-footer :is(.footer-grid, .footer-base) { max-width: 1340px; margin-inline: auto; }
}

/* Feature and portfolio use their full, uncropped original images. */
.dczy-final-home .home-showcase {
  width: min(90%, var(--dczy-content-width));
  margin-inline: auto;
}
.dczy-final-home .home-showcase-heading h2 { scroll-margin-block-start: 6rem; }
.dczy-final-home .home-case-feature,
.dczy-final-home .home-case-grid > .home-case-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  min-width: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  text-decoration: none;
}
.dczy-final-home .home-case-feature {
  width: 100%;
  margin-block-start: clamp(1.8rem, 3.5cqw, 4rem);
}
.dczy-final-home .home-case-feature img,
.dczy-final-home .home-case-grid > .home-case-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: clamp(.55rem, .85cqw, 1rem);
}
.dczy-final-home .home-case-grid {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5.5cqw, 6rem) clamp(.9rem, 1.6cqw, 2rem);
  margin: clamp(2.3rem, 6cqw, 6.5rem) auto 0;
}
.dczy-final-home .home-work-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding-block-start: clamp(.7rem, 1.15cqw, 1.4rem);
}
.dczy-final-home .home-work-caption h3,
.dczy-final-home .home-case-card[data-case-status="reserved"] h3 {
  display: block;
  margin: 0;
  min-width: 0;
  font-size: clamp(1.05rem, calc(.82rem + .87cqw), 1.85rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.dczy-final-home .home-case-card h3::before { content: none; }
.dczy-final-home .home-work-caption small {
  flex-shrink: 0;
  color: #634650;
  font-size: clamp(.75rem, .9cqw, .96rem);
}
.dczy-final-home .home-work-caption .case-brand-wordmark {
  font: 650 clamp(.65rem,.8cqw,.85rem)/1.25 Mona, Arial, sans-serif;
  letter-spacing: .1em;
}
@media (max-width: 480px) {
  .dczy-final-home .home-work-caption { flex-wrap: wrap; }
}
.dczy-final-home .home-showcase a:hover .home-work-caption h3 { text-decoration: underline; text-underline-offset: .18em; }
.dczy-final-home .home-showcase a:focus-visible { outline: 2px solid #af1747; outline-offset: 4px; }
.dczy-final-home .home-case-grid > [data-case-status="reserved"] {
  justify-content: center;
  align-items: center;
  min-height: 7rem;
  border: 1px dashed #dfaabb;
  border-radius: .8rem;
}
.dczy-final-home .home-more-work {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  margin-top: clamp(2rem, 5cqw, 5rem);
  color: #8e193f;
  font-weight: 650;
}
@media (width < 48rem) {
  .dczy-final-home .home-case-grid { grid-template-columns: minmax(0, 1fr); }
  .dczy-final-home .home-showcase { width: 91%; }
}

.studio-wecom { margin: 0; }
.studio-wecom .wecom-card {
  display: block; width: 160px; max-width: 100%; padding: 12px; background: #fff;
  border: 1px solid #e9e1e5; border-radius: 9px; box-sizing: border-box;
}
.studio-wecom img { display: block; width: 100%; height: auto; }
.studio-wecom figcaption { color: #584d55; font-size: 13px; padding-top: 5px; }
.studio-wecom figcaption a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
#contact-dialog .studio-wecom { padding-top: 16px; border-top: 1px solid var(--line); }
#contact-dialog { overflow-y: auto; }
.support-services {
  width: min(1050px,90%); margin: 0 auto clamp(36px,5vw,72px);
  color: #372f38; background: #fffaf9; padding: clamp(20px,4vw,56px);
  border: 1px solid #e8dfe6; border-radius: 20px;
}
.support-services > :is(header,section) { display: grid; grid-template-columns: minmax(120px,1fr) minmax(0,2.3fr); gap: 25px; }
.support-services > section { border-top: 1px solid #e8e1e6; padding-top: 25px; margin-top: 30px; }
.support-services h2 { margin: 12px 0 0; font-size: clamp(28px,3vw,42px); }
.support-services h3 { font-size: 18px; }
.support-services p { margin: 0 0 12px; line-height: 1.7; }
.support-services p strong { display: block; color: #75556b; }
.support-services dl,.support-services nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; gap: 20px 24px; }
.support-services dt { margin-bottom: 5px; font-size: 13px; color: #695967; }
.support-services dd { margin: 0; line-height: 1.65; }
.support-services nav a { text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 680px) {
  .support-services > :is(header,section) { grid-template-columns: 1fr; gap: 14px; }
  .support-specialties { grid-column: 1/-1; }
}
:root {
  --email-size: clamp(60px, 5.4vw, 88px);
  --email-edge: clamp(12px, 1.5vw, 24px);
}
body > .footer-email-button {
  position: fixed; z-index: 36;
  right: calc(var(--email-edge) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--email-edge) + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; flex: none; box-sizing: border-box;
  width: var(--email-size); aspect-ratio: 1; border-radius: 50%;
  color: white; background: #716181; border: 1px solid #695976;
  box-shadow: 0 3px 12px #53425b1c; scroll-margin-block: 36px;
}
body > .footer-email-button svg { display: block; width: 100%; height: 100%; fill: none; stroke: none; }
body .back-to-top {
  right: calc(var(--email-size) + var(--email-edge) + env(safe-area-inset-right, 0px) + 10px);
  bottom: calc(var(--email-edge) + env(safe-area-inset-bottom, 0px));
}
.footer-email-lettering {
  transform-origin: 50% 50%; animation: footer-email-spin 22s linear infinite;
}
.footer-email-lettering text { font: 600 6.1px Arial,sans-serif; fill: white; stroke: none; }
body > .footer-email-button:hover { background: #614e70; color: white; }
body > .footer-email-button:focus-visible { outline: 3px solid #5d4069; outline-offset: 4px; }
@keyframes footer-email-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .footer-email-lettering { animation: none; }
}
/* Keep package amounts aligned above the optional architecture note. */
.price-shell[aria-labelledby="pricing-source-title"] .price-cell {
  vertical-align: top;
  padding: 14px 8px;
  text-align: center;
}
.price-shell[aria-labelledby="pricing-source-title"] .price-cell strong {
  display: block;
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-shell .plan-architecture {
  display: block;
  margin-top: 4px;
  font-family: inherit;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  color: #674859;
  text-wrap: balance;
}

@media (max-width: 400px) {
  body:not(.dczy-final-home) .site-footer .footer-wordmark { font-size: 15vw; }
  .profile .profile-name-row .tooltip {
    max-width: min(12rem, 50vw);
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.pricing-studio-profile {
  display: grid;
  grid-template-columns: 1fr min(100%, calc(76ch - 2em)) 1fr;
  padding: 1em;
  text-align: left;
  line-height: 1.75;
}
.pricing-studio-profile > strong, .pricing-studio-profile > a { display: block; }
.pricing-studio-profile > a { width: fit-content; text-decoration: underline; }
.pricing-studio-profile p { margin: .65em 0 0; }

.pricing-studio-profile > * { grid-column: 2; }
.pricing-studio-profile > p:first-of-type {
  grid-column: 1 / -1;
  margin-inline: 3% 6%;
}
@media (max-width: 600px) {
  .pricing-studio-profile > p:first-of-type {
    max-width: calc(88vw - 3rem);
    margin-inline: 0;
  }
}

/* Home and interior pages share one navigation canvas. */
body > .site-header { width: 100%; max-width: var(--dczy-site-width); margin-inline: auto; container-type: inline-size; }
@media (min-width: 75em) {
  body > .site-header { padding: 0; }
  body > .site-header .desktop-nav > ul { display: flex; width: 100%; margin: 0; padding: 0; }
  body > .site-header .nav-item > a { white-space: nowrap; }
}
@media (min-width: 75em) {
  body > .site-header .header-inner {
    display: flex;
    width: 89.7%;
    max-width: none;
    min-height: max(3rem,4.05cqw);
    height: auto;
    margin: 0 auto;
    padding: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  body > .site-header .header-inner .brand {
    gap: .65cqw;
    flex: none;
    margin: 0;
  }

  body > .site-header .header-inner .brand-mark {
    width: clamp(2.1rem,calc(1.65rem + 1cqw),4rem);
    height: auto;
    aspect-ratio: 1;
    padding: 0;
    border-radius: .54cqw;
    letter-spacing: -.12em;
    font-size: clamp(1.5rem,calc(1.22rem + .72cqw),3rem);
    line-height: 1;
    text-indent: -.1em;
    background: #c50038;
  }

  body > .site-header .header-inner .brand-name { font-size: clamp(1.2rem, calc(1rem + .6cqw), 2.11rem); line-height: 1.15; }
  body > .site-header .header-inner .brand-caption {
    margin: .08cqw 0 0;
    font-size: clamp(.55rem,calc(.44rem + .185cqw),.9rem);
    line-height: 1.1;
    letter-spacing: 0;
  }

  body > .site-header .header-domain {
    display: inline;
    padding-left: 1.25cqw;
    border-left: 1px solid #dfc9de;
    color: #594b5c;
    font-size: clamp(.75rem,calc(.64rem + .28cqw),1.22rem);
    white-space: nowrap;
  }

  body > .site-header .header-tools { display: none !important; }
  body > .site-header .desktop-nav {
    display: block !important;
    flex: 0 0 55.3cqw;
    min-height: 0;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  body > .site-header .desktop-nav > ul {
    height: auto;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  body > .site-header .nav-item > a {
    position: relative;
    padding: .56cqw .1cqw;
    font-size: clamp(.8125rem,calc(.68rem + .35cqw),1.4rem);
    line-height: 1.4;
    font-weight: 720;
    color: #1a1218;
  }

  body > .site-header .nav-item > a[aria-current="page"] { color: #cf0033; }
  body > .site-header .nav-item > a[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset: auto 0 .16cqw;
    height: .16cqw;
    background: #d20a39;
  }

  body > .site-header .augc-nav > .platform-link,
  body > .site-header .header-cta.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 99px;
    line-height: 1;
    font-size: clamp(.8125rem,calc(.68rem + .35cqw),1.4rem);
    font-weight: 750;
    min-height: 2.5cqw;
    height: auto;
    white-space: nowrap;
  }

  body > .site-header .augc-nav > .platform-link {
    width: 12.25cqw;
    border: 1px solid #d71542;
    padding: .35cqw .3cqw;
    color: #c80034;
    background: #fff3f9;
  }

  body > .site-header .header-cta.button {
    margin: 0;
    width: 8.5cqw;
    padding: .36cqw .55cqw;
    color: white;
    background: #c60035;
    border: 0;
  }
}

@media (width < 75em) {
  body > .site-header .desktop-nav { display: none !important; }
  body > .site-header .header-tools { display: flex !important; margin-left: auto; }
  body > .site-header .header-domain, body > .site-header .header-cta.button { display: none; }
  body > .site-header .header-inner { width: 90%; gap: 10px; }
}

@media (min-width: 75em) {
  body > .site-header .header-inner { width: 91.25%; min-height: 5.4cqw; }
  body > .site-header .header-inner .header-domain { display: none; }
  body > .site-header .header-inner .desktop-nav { flex-basis: 57.4cqw; margin-left: auto; margin-right: 3.35cqw; }
  body > .site-header .augc-nav > .platform-link { width: 14cqw; background: transparent; }
  body > .site-header .header-cta.button { width: 8.9cqw; }
  body > .site-header .augc-nav > .platform-link, body > .site-header .header-cta.button { min-height: 2.86cqw; }
}
@media (min-width: 75em) {
  /* Reserve the homepage price slot even where the existing label has four characters. */
  body > .site-header .nav-item > a[href="/pages/price/"] {
    display: block;
    width: calc(3em + .2cqw);
    text-align: start;
    box-sizing: border-box;
  }
}
