/* Home only: reflow the approved desktop composition on tablets and phones. */
@media (max-width: 1100px) {
  .home-page {
    --home-gutter: var(--site-gutter);
  }

  .home-page .header-inner {
    align-items: center;
    padding: 20px var(--home-gutter) 0;
  }
  .home-page .header .brand img {
    width: clamp(145px, 20vw, 184px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }
  .home-page .header .menu-toggle {
    width: auto;
    min-width: 82px;
    height: 44px;
    margin: 0;
    padding: 0 16px;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -.04em;
  }

  .home-reference-intro {
    height: auto;
    padding: clamp(120px, 16vw, 176px) var(--home-gutter) clamp(40px, 6vw, 64px);
    overflow: visible;
  }
  .home-reference-title {
    position: static;
    width: 100%;
    font-size: clamp(72px, 21vw, 208px);
    line-height: .83;
    letter-spacing: -.065em;
  }
  .home-reference-signature {
    position: static;
    width: auto;
    margin-top: 28px;
    font-size: clamp(18px, 2.7vw, 28px);
    line-height: 1.25;
    letter-spacing: -.04em;
  }

  .home-reference-studio {
    height: auto;
    padding: clamp(56px, 8vw, 88px) var(--home-gutter) 0;
    overflow: visible;
  }
  .home-reference-studio::after {
    display: none;
  }
  .home-reference-studio-lede {
    position: static;
    padding-bottom: clamp(56px, 8vw, 88px);
  }
  .home-reference-studio-headline {
    position: static;
    width: min(100%, 860px);
    height: auto;
    font-size: clamp(32px, 5.2vw, 58px);
    line-height: 1.04;
    letter-spacing: -.045em;
  }
  .home-reference-studio-explore {
    position: static;
    display: inline-flex;
    max-width: 100%;
    min-height: 44px;
    gap: 12px;
    margin-top: 28px;
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: -.04em;
  }
  .home-reference-studio-explore span:last-child {
    width: 24px;
    height: 28px;
    font-size: 24px;
  }
  .home-reference-studio-meta,
  .home-reference-vision {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr);
    gap: 24px;
    width: 100%;
    height: auto;
    padding: 32px 0 48px;
  }
  .home-reference-studio-label {
    position: static;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -.02em;
  }
  .home-reference-studio-details,
  .home-reference-vision-details {
    position: static;
    width: auto;
    min-width: 0;
  }
  .home-reference-studio-description {
    width: auto;
    height: auto;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -.02em;
  }
  .home-reference-stats {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    height: auto;
    margin-top: 40px;
  }
  .home-reference-stat {
    position: static;
    min-width: 0;
  }
  .home-reference-stat strong {
    font-size: clamp(36px, 4.6vw, 50px);
    line-height: 1;
    letter-spacing: -.065em;
  }
  .home-reference-stat span {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: -.02em;
    white-space: normal;
  }
  .home-reference-vision-details h2 {
    width: auto;
    height: auto;
    font-size: clamp(32px, 4.4vw, 48px);
    line-height: 1.05;
    letter-spacing: -.045em;
  }
  .home-reference-vision-copy {
    width: auto;
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -.02em;
  }
  .home-reference-vision-copy p + p {
    margin-top: 12px;
  }

  .home-reference-services {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 40px var(--home-gutter) 64px;
    overflow: visible;
  }
  .home-reference-services-label,
  .home-reference-services-title,
  .home-reference-services-list {
    position: static;
    width: auto;
    height: auto;
  }
  .home-reference-services-label {
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -.02em;
  }
  .home-reference-services-title {
    margin-bottom: 40px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -.045em;
  }
  .home-reference-service {
    grid-template-columns: 36px minmax(0, 1fr) 44px;
    gap: clamp(12px, 3vw, 32px);
    height: auto;
    min-height: 90px;
    padding: 20px 0;
  }
  .home-reference-service-number {
    font-size: 20px;
    line-height: 1;
    letter-spacing: -.04em;
  }
  .home-reference-service h3 {
    min-width: 0;
    font-size: clamp(24px, 3.8vw, 40px);
    line-height: 1.1;
    letter-spacing: -.04em;
    white-space: normal;
  }
  .home-reference-service-toggle {
    width: 44px;
    height: 44px;
  }
  .home-reference-service-toggle span,
  .home-reference-service-toggle span::after {
    width: 24px;
  }

  .home-reference-clients {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
    height: auto;
    padding: 64px var(--home-gutter);
    overflow: visible;
  }
  .home-reference-clients-copy {
    position: static;
    grid-column: 1 / -1;
    justify-self: end;
    width: min(100%, 620px);
    margin: 0 0 24px;
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: -.02em;
  }
  .home-reference-client-logo {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 112px;
    aspect-ratio: auto;
    transform: none;
    overflow: visible;
  }
  .home-reference-client-logo img {
    width: min(100%, 132px);
    height: auto;
    max-height: 88px;
    object-fit: contain;
  }
  .home-reference-client-logo--lasar img,
  .home-reference-client-logo--brasiliana img {
    max-width: 76px;
  }

  .home-reference-projects {
    padding: 64px var(--home-gutter) 80px;
  }
  .home-reference-projects-header {
    align-items: baseline;
    gap: 24px;
    min-height: 0;
    margin: 0;
  }
  .home-reference-projects-header h2 {
    font-size: clamp(38px, 5.6vw, 60px);
    line-height: 1.02;
    letter-spacing: -.045em;
  }
  .home-reference-projects-header a {
    flex-shrink: 0;
    gap: 6px;
    margin: 0;
    padding: 12px 0;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -.02em;
  }
  .home-reference-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
  }
  .home-reference-project-image {
    border-radius: 12px;
  }
  .home-reference-project-caption {
    display: block;
    min-height: 0;
    padding-top: 12px;
  }
  .home-reference-project-caption h3 {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
  }
  .home-reference-project-tags {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 10px;
  }
  .home-reference-project-tags span {
    min-height: 24px;
    padding: 4px 7px;
    border-width: 1px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: -.02em;
  }

  .home-page .footer-cta {
    padding: 72px 0 80px;
  }
  .home-page .footer-cta h2 {
    font-size: clamp(36px, 6.5vw, 72px);
    line-height: 1.03;
    letter-spacing: -.05em;
    margin-bottom: 24px;
  }
  .home-page .footer-cta > p {
    max-width: 530px;
    margin-bottom: 32px;
    font-size: clamp(18px, 2.4vw, 22px);
    line-height: 1.4;
  }
  .home-page .footer-cta .button {
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    padding: 16px 28px;
    font-size: 20px;
  }
}

/* Hero composition from the DCPHOUSE 1440px Figma frame. */
@media (max-width: 1100px) {
  .home-page .home-reference-intro {
    height: clamp(398px, 51.7471vw, 745px);
    padding: 0;
    position: relative;
    overflow: hidden;
  }
  .home-page .home-reference-title {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    font-size: 16.7326vw;
    line-height: .78;
    letter-spacing: -.065em;
  }
  .home-page .home-reference-title span:first-child {
    position: absolute;
    left: 3.4722vw;
    top: 14.4444vw;
  }
  .home-page .home-reference-title span:last-child {
    position: absolute;
    left: 3.4722vw;
    top: 26.5278vw;
  }
  .home-page .home-reference-hero-shape {
    top: 15.0694vw;
    left: 72.9167vw;
    width: 7.8472vw;
    height: 7.7778vw;
  }
  .home-page .home-reference-signature {
    position: absolute;
    top: 20.8333vw;
    left: 64.9306vw;
    width: 13vw;
    margin: 0;
    font-size: 2.55348vw;
    line-height: .88;
    letter-spacing: -.12vw;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .home-page .home-reference-intro {
    height: 355px;
    min-height: 0;
  }
  .home-page .home-reference-title {
    font-size: clamp(56px, 17vw, 94px);
    line-height: .78;
    letter-spacing: -.065em;
  }
  .home-page .home-reference-title span:first-child {
    left: 18px;
    top: 96px;
  }
  .home-page .home-reference-title span:last-child {
    left: 18px;
    top: 168px;
  }
  .home-page .home-reference-hero-shape {
    top: 80px;
    left: auto;
    right: 34px;
    width: 58px;
    height: 58px;
  }
  .home-page .home-reference-signature {
    top: 258px;
    left: 18px;
    right: 38px;
    width: 120px;
    font-size: 16px;
    line-height: .9;
    letter-spacing: -.8px;
  }
}

/* Wide desktop: keep the Figma proportions while letting text determine the
   height of each block. This prevents the fixed desktop coordinates from
   colliding at 100% browser zoom on large monitors. */
@media (min-width: 1101px) {
  .home-reference-studio {
    height: auto;
    min-height: 0;
    padding: 10.9958vw 0 0;
    overflow: visible;
  }

  .home-reference-studio::after {
    display: none;
  }

  .home-reference-studio-lede {
    position: static;
    width: auto;
    height: auto;
    padding: 0 0 6.5vw 3.59565vw;
  }

  .home-reference-studio-headline {
    position: static;
    width: min(58.7822vw, 1200px);
    height: auto;
    font-size: clamp(58px, 4.95063vw, 101px);
    line-height: 1.04;
    letter-spacing: -0.045em;
  }

  .home-reference-studio-explore {
    position: static;
    margin-top: 3vw;
    font-size: clamp(22px, 2.34503vw, 48px);
    line-height: 1.2;
  }

  .home-reference-studio-meta,
  .home-reference-vision {
    position: static;
    display: grid;
    grid-template-columns: minmax(200px, 0.6fr) minmax(0, 1.4fr);
    gap: 5vw;
    width: 89.94513vw;
    height: auto;
    margin: 0 auto;
    padding: 2.9vw 0 5.5vw;
  }

  .home-reference-studio-meta {
    border-top: 1px solid #bdbdbd;
  }

  .home-reference-studio-label,
  .home-reference-vision-label {
    position: static;
    width: auto;
    font-size: clamp(14px, 1.40625vw, 29px);
    line-height: 1.4;
  }

  .home-reference-studio-details,
  .home-reference-vision-details {
    position: static;
    width: auto;
    min-width: 0;
  }

  .home-reference-studio-description {
    width: auto;
    height: auto;
    font-size: clamp(22px, 2.08333vw, 43px);
    line-height: 1.15;
  }

  .home-reference-stats {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2vw;
    width: 100%;
    height: auto;
    margin-top: 2.8vw;
  }

  .home-reference-stat {
    position: static;
  }

  .home-reference-stat strong {
    font-size: clamp(48px, 4.6875vw, 96px);
    line-height: 0.95;
  }

  .home-reference-stat span {
    white-space: normal;
    line-height: 1.2;
  }

  .home-reference-vision {
    border-top: 1px solid #bdbdbd;
  }

  .home-reference-vision-details h2 {
    width: auto;
    height: auto;
    font-size: clamp(48px, 4.6875vw, 96px);
    line-height: 0.91;
  }

  .home-reference-vision-copy {
    width: auto;
    margin-top: 2.3vw;
    font-size: clamp(16px, 1.40625vw, 29px);
    line-height: 1.4;
  }
}

@media (max-width: 700px) {
  .home-page .header-inner {
    padding-top: 16px;
  }
  .home-reference-intro {
    padding-top: 120px;
  }
  .home-reference-studio-meta,
  .home-reference-vision {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 0 48px;
  }
  .home-reference-studio-explore {
    font-size: 20px;
  }
  .home-reference-stats {
    gap: 12px;
    margin-top: 32px;
  }
  .home-reference-stat strong {
    font-size: clamp(30px, 9vw, 48px);
  }
  .home-reference-stat span {
    font-size: 12px;
  }
  .home-reference-service {
    grid-template-columns: 28px minmax(0, 1fr) 44px;
    gap: 12px;
    min-height: 88px;
    padding: 18px 0;
  }
  .home-reference-service-number {
    font-size: 18px;
  }
  .home-reference-service h3 {
    font-size: clamp(24px, 5.9vw, 32px);
  }
  .home-reference-clients {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    padding-block: 56px;
  }
  .home-reference-clients-copy {
    margin-bottom: 24px;
    font-size: 20px;
  }
  .home-reference-client-logo {
    height: 96px;
  }
  .home-reference-projects-header {
    display: block;
  }
  .home-reference-projects-header a {
    margin-top: 12px;
  }
  .home-reference-projects-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 24px;
  }
}

@media (max-width: 1100px) {
  .home-reference-studio-headline{font-size:clamp(32px,5.2vw,58px);text-transform:uppercase}
  .home-reference-studio-explore-mark{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:10px solid #fe5e00}
  .home-reference-services-label,.home-reference-services-title{left:auto;top:auto}
  .home-reference-services-label{font-family:Archivo,Arial,sans-serif;font-style:normal;text-transform:uppercase}
  .home-reference-services-title,.home-reference-service h3{font-family:Archivo,Arial,sans-serif;text-transform:uppercase}
  .home-reference-clients-copy{position:static;width:min(100%,620px);text-transform:uppercase}
  .home-reference-projects-kicker{margin-bottom:16px;font-size:14px}
  .home-mission{min-height:0;padding:72px var(--home-gutter) 80px}
  .home-mission-intro{width:min(100%,620px);margin:0 0 48px auto;font-size:clamp(22px,3.2vw,34px);line-height:1.12}
  .home-mission-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .home-mission-card{min-height:300px;padding:24px;border-radius:8px}
  .home-mission-card span{margin-bottom:18px;font-size:14px}
  .home-mission-card h3{max-width:260px;font-size:clamp(24px,3.2vw,36px);letter-spacing:-.06em}
  .home-mission-card p{left:24px;right:24px;bottom:56px;font-size:14px;line-height:1.25}
  .home-mission-card i{left:24px;bottom:24px;border-top-width:7px;border-bottom-width:7px;border-left-width:10px}
  .home-mission-rule{margin-top:72px}
  .opus-footer .shell{min-height:760px;padding:72px var(--home-gutter) 0}
  .opus-footer .footer-cta{max-width:420px}
  .opus-footer .footer-cta h2{font-size:clamp(48px,7vw,78px);line-height:.88;letter-spacing:-.12em}
  .opus-footer .footer-cta p{max-width:400px;margin-top:28px;font-size:18px}
  .opus-footer .footer-contact{position:static;margin:48px 0 0 45%}
  .opus-footer .footer-contact .button{margin-bottom:32px;padding:16px 28px;font-size:16px;border-radius:8px}
  .opus-footer .footer-contact p{font-size:16px}
  .opus-footer .footer-email{font-size:clamp(22px,3vw,34px)}
  .opus-footer .footer-information{position:static;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:72px;font-size:14px;line-height:1.6}
  .opus-footer .footer-studio{position:absolute;left:var(--home-gutter);right:var(--home-gutter);bottom:-10px;height:150px}
  .opus-footer .footer-studio img{width:min(90vw,800px)}
}

@media (max-width: 640px) {
  .home-mission{padding:56px 20px 64px}
  .home-mission-intro{margin:0 0 36px;font-size:24px;line-height:1.08}
  .home-mission-cards{grid-template-columns:1fr;gap:12px}
  .home-mission-card{min-height:250px;padding:20px}
  .home-mission-card h3{font-size:29px}
  .home-mission-card p{left:20px;right:20px;bottom:48px;font-size:13px}
  .home-mission-card i{left:20px;bottom:20px}
  .home-mission-rule{margin-top:52px}
  .opus-footer .shell{min-height:920px;padding:56px var(--site-gutter) 0}
  .opus-footer .footer-cta h2{font-size:clamp(48px,14vw,72px);letter-spacing:-.12em}
  .opus-footer .footer-cta p{max-width:300px;font-size:16px}
  .opus-footer .footer-contact{margin:48px 0 0}
  .opus-footer .footer-contact .button{font-size:15px}
  .opus-footer .footer-email{font-size:25px;overflow-wrap:anywhere}
  .opus-footer .footer-information{grid-template-columns:1fr 1fr;gap:28px 20px;margin-top:64px;font-size:13px}
  .opus-footer .footer-information nav:last-child{grid-column:2}
  .opus-footer .footer-studio{left:20px;right:20px;height:90px}
  .opus-footer .footer-studio img{width:92vw}
  .opus-footer .footer-copyright{right:20px;bottom:8px;font-size:10px}
}

/* Keep the 1440px composition readable on smaller desktop viewports too. */
@media (min-width: 1101px) and (max-width: 1440px) {
  .home-page {
    --home-gutter: var(--site-gutter);
  }
  .home-reference-studio {
    height: auto;
    padding: clamp(58px, 7.8vw, 112px) var(--home-gutter) 0;
    overflow: visible;
  }
  .home-reference-studio::after {
    display: none;
  }
  .home-reference-studio-lede {
    position: static;
    padding-bottom: clamp(58px, 7.8vw, 112px);
  }
  .home-reference-studio-headline {
    position: static;
    width: min(100%, 780px);
    height: auto;
    font-size: clamp(42px, 4.2vw, 60px);
    line-height: .98;
    letter-spacing: -.055em;
  }
  .home-reference-studio-explore {
    position: static;
    margin-top: clamp(34px, 4.1vw, 58px);
    font-size: clamp(18px, 1.7vw, 24px);
    line-height: 1.25;
    letter-spacing: -.04em;
  }
  .home-reference-studio-explore span:last-child {
    width: 18px;
    height: 22px;
  }
  .home-reference-studio-meta,
  .home-reference-vision {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr);
    gap: 24px;
    width: 100%;
    height: auto;
    padding: clamp(26px, 3vw, 44px) 0 clamp(74px, 8vw, 110px);
  }
  .home-reference-studio-label {
    position: static;
    font-size: clamp(12px, 1vw, 15px);
    line-height: 1.4;
  }
  .home-reference-studio-details,
  .home-reference-vision-details {
    position: static;
    width: auto;
  }
  .home-reference-studio-description {
    width: auto;
    height: auto;
    font-size: clamp(18px, 1.55vw, 22px);
    line-height: 1.18;
  }
  .home-reference-stats {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    height: auto;
    margin-top: clamp(30px, 3.2vw, 46px);
  }
  .home-reference-stat {
    position: static;
  }
  .home-reference-stat strong {
    font-size: clamp(38px, 4.7vw, 64px);
    line-height: .95;
    letter-spacing: -.065em;
  }
  .home-reference-stat span {
    margin-top: 8px;
    font-size: clamp(11px, 1vw, 14px);
    line-height: 1.2;
    white-space: normal;
  }
  .home-reference-vision {
    padding-bottom: clamp(100px, 10vw, 150px);
  }
  .home-reference-vision-details h2 {
    width: auto;
    height: auto;
    font-size: clamp(40px, 4.7vw, 66px);
    line-height: .95;
    letter-spacing: -.06em;
  }
  .home-reference-vision-copy {
    width: min(100%, 550px);
    margin-top: clamp(24px, 3.2vw, 46px);
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.3;
  }
}
