@media (max-width: 980px) {
  .container { width: min(var(--container), calc(100% - 48px)); }
  .header-inner { gap: 18px; }
  .primary-nav { gap: 17px; }
  .hero-layout { gap: 25px; }
  .hero-art { width: min(100%, 400px); }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-feature-inner { gap: 32px; }
  .demo-browser-page { min-height: 265px; }
  .demo-gallery-grid, .demo-project-grid { gap: 12px; }
  .demo-tile { padding: 9px; }
  .demo-project-copy { padding: 15px; }
  .playground-shell { grid-template-columns: 235px minmax(0, 1fr); }
  .playground-stage { padding: 18px; }
  .sample-hero { padding-inline: 6%; }
  .service-card { padding: 21px; }
  .contact-grid { gap: 48px; }
  .about-grid { gap: 60px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 75px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 68px; gap: 8px; }
  .brand { font-size: 9px; }
  .brand-mark { width: 31px; height: 31px; }
  .menu-toggle { display: flex; width: 37px; height: 37px; flex: 0 0 auto; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: transparent; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { width: 100%; height: 1px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .primary-nav { position: absolute; top: calc(100% + 1px); right: -20px; left: -20px; display: none; align-items: stretch; gap: 0; padding: 10px 20px 17px; border-bottom: 1px solid var(--line); background: rgba(9, 11, 18, .97); }
  .primary-nav.is-open { display: flex; flex-direction: column; }
  .nav-link { padding: 12px 4px; }
  .nav-link::after { right: auto; bottom: 7px; width: 26px; }
  .palette-wrap { gap: 4px; padding: 3px; }
  .palette-label { display: none; }
  .palette-options { grid-template-columns: repeat(4, 23px); }
  .swatch { width: 23px; height: 25px; padding: 3px; }
  .swatch span { width: 15px; height: 15px; }
  .hero-layout { min-height: auto; grid-template-columns: 1fr; gap: 12px; padding-block: 75px 30px; }
  .hero-copy { max-width: 600px; }
  .hero h1 { font-size: clamp(54px, 12vw, 82px); }
  .hero-home .hero-layout { min-height: min(680px, calc(100svh - 68px)); padding-block: 70px 28px; }
  .hero-home .home-brand-heading { flex-direction: column; gap: 0; margin-top: 24px; font-size: clamp(48px, 13vw, 76px); line-height: 1.08; }
  .home-hero-tagline { font-size: clamp(26px, 7vw, 36px); }
  .hero-home .hero-art { display: none; }
  .hero-art { width: min(77vw, 365px); margin: 3px auto 0; justify-self: center; }
  .capability-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .capability-heading > p { max-width: 560px; }
  .demo-feature { padding-block: 65px; }
  .demo-feature-inner { grid-template-columns: 1fr; gap: 31px; }
  .demo-feature-copy { max-width: 560px; }
  .demo-browser { width: min(100%, 560px); justify-self: center; }
  .demo-browser-page { min-height: 285px; }
  .demo-gallery-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .demo-gallery-heading > p { max-width: 520px; }
  .demo-gallery-grid, .demo-project-grid { grid-template-columns: 1fr; gap: 16px; }
  .demo-tile { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-content: center; column-gap: 17px; padding: 12px; }
  .demo-tile-image { grid-row: span 5; aspect-ratio: .95; }
  .demo-tile-meta { margin-top: 4px; font-size: 7px; }
  .demo-tile h3 { margin-top: 8px; font-size: 18px; }
  .demo-tile > p { min-height: 0; }
  .demo-tile-link { margin-top: 8px; }
  .demo-project-card { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); }
  .demo-project-image { height: 100%; min-height: 300px; aspect-ratio: auto; }
  .demo-project-copy > p:not(.section-kicker) { min-height: 0; }
  .demo-project-copy .tag-list { min-height: 0; }
  .playground-section { padding-block: 78px; }
  .playground-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .playground-heading > p { max-width: 520px; }
  .playground-shell { grid-template-columns: 1fr; }
  .playground-controls { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 21px; border-right: 0; border-bottom: 1px solid var(--line); }
  .site-type-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-type-button { min-height: 42px; font-size: 10px; }
  .mood-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mood-button { justify-content: center; padding-inline: 6px; }
  .playground-actions { margin-top: -3px; }
  .playground-footnote { margin-top: 2px; }
  .playground-stage { padding: 20px; }
  .playground-promise { margin-top: -6px; padding: 14px; }
  .hero-note { margin-top: 36px; }
  .hero-bottom { padding-bottom: 19px; font-size: 8px; }
  .section { padding-block: 82px; }
  .intro-grid, .about-grid { grid-template-columns: 1fr; gap: 27px; }
  .intro-grid > .section-kicker { padding: 0; }
  .section-heading { align-items: flex-start; }
  .section-heading > .text-link { align-self: end; }
  .heading-aside { max-width: 240px; font-size: 12px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid-all { grid-template-columns: 1fr; }
  .service-grid-all .service-card { min-height: 0; }
  .care-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-grid { grid-template-columns: 1fr; }
  .setup-card { min-height: 0; }
  .care-heading { align-items: flex-start; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 33px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-preview { min-height: 270px; }
  .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .contact-copy { position: static; }
  .values-grid { gap: 18px; }
  .about-aside { flex-direction: row; align-items: end; }
  .about-monogram { width: 120px; height: 145px; font-size: 65px; }
  .about-monogram span { right: 16px; bottom: 19px; font-size: 29px; }
  .closing-band { padding-block: 78px; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 36px); }
  .hero-layout { padding-top: 57px; }
  .hero h1, .page-hero h1 { font-size: clamp(47px, 12vw, 64px); }
  .hero-home .home-brand-heading { font-size: clamp(44px, 13.5vw, 62px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 5px; }
  .button { min-height: 46px; }
  .hero-note { margin-top: 28px; font-size: 10px; }
  .demo-feature { padding-block: 57px; }
  .demo-feature-copy h2 { font-size: 38px; }
  .demo-browser-page { min-height: 245px; }
  .demo-browser-content { width: 64%; padding-top: 31px; }
  .demo-browser-content strong { font-size: clamp(29px, 10vw, 42px); }
  .demo-browser-nav { padding-inline: 12px; }
  .demo-gallery { padding-block: 61px; }
  .capability-band { padding-block: 57px; }
  .capability-heading h2 { font-size: 36px; }
  .capability-grid { grid-template-columns: 1fr; gap: 9px; }
  .capability-card { min-height: 0; padding: 16px; }
  .capability-card h3 { margin-top: 12px; }
  .demo-tile > .demo-tile-price { margin-top: 9px; }
  .demo-gallery-heading h2 { font-size: 40px; }
  .demo-tile { display: block; padding: 11px; }
  .demo-tile-image { aspect-ratio: 1.35; }
  .demo-tile-meta { margin-top: 13px; font-size: 8px; }
  .demo-tile h3 { font-size: 20px; }
  .demo-tile > p { min-height: 0; }
  .demo-tile-link { margin-top: 11px; }
  .demo-project-card { display: block; }
  .demo-project-image { min-height: 0; aspect-ratio: 1.35; }
  .demo-project-copy { padding: 18px; }
  .demo-browser-nav > span:last-child { font-size: 5px; }
  .playground-section { padding-block: 65px; }
  .playground-heading h2 { font-size: 42px; }
  .playground-promise { gap: 9px; padding: 12px; }
  .playground-promise p { font-size: 10px; }
  .playground-controls { padding: 17px 14px; }
  .playground-plan-card { padding: 10px; }
  .playground-stage { padding: 12px; }
  .playground-canvas { min-height: 325px; }
  .sample-nav { min-height: 40px; padding-inline: 12px; }
  .sample-nav > span:nth-child(2) { font-size: 5px; }
  .sample-hero { min-height: 250px; grid-template-columns: 1fr .75fr; padding: 20px 5%; }
  .sample-copy h3 { font-size: clamp(29px, 8vw, 40px); }
  .sample-art { min-height: 180px; }
  .playground-canvas.is-mobile { min-height: 440px; }
  .playground-canvas.is-mobile .sample-hero { min-height: 370px; }
  .playground-cta { align-items: flex-start; flex-direction: column; gap: 9px; }
  .playground-cta .text-link { white-space: normal; }
  .hero-bottom { gap: 15px; font-size: 7px; letter-spacing: .1em; }
  .section { padding-block: 69px; }
  .intro-copy h2, .section-heading h2, .about-copy h2, .contact-copy h2 { font-size: 40px; }
  .section-heading { flex-direction: column; gap: 18px; margin-bottom: 31px; }
  .section-heading > .text-link { align-self: flex-start; }
  .heading-aside { max-width: 330px; margin: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid-featured .service-card { min-height: 0; }
  .service-card { min-height: 0; padding: 23px; }
  .service-card-description { min-height: 0; }
  .service-list-section { padding-top: 25px; }
  .service-grid-all .service-card { padding: 24px; }
  .scope-note { gap: 12px; padding: 19px 16px; }
  .care-section, .setup-section { margin-top: 68px; padding-top: 48px; }
  .care-heading { flex-direction: column; gap: 14px; margin-bottom: 25px; }
  .care-heading h2 { font-size: 39px; }
  .care-grid { grid-template-columns: 1fr; gap: 12px; }
  .care-card { min-height: 0; padding: 22px; }
  .care-description { min-height: 0; }
  .care-limit { margin-top: 10px; }
  .setup-grid { gap: 10px; }
  .setup-card { padding: 19px; }
  .process-grid { gap: 26px 18px; }
  .process-step h3 { margin-top: 19px; font-size: 15px; }
  .process-step p { font-size: 11px; }
  .page-hero { padding-block: 78px 49px; }
  .pricing-note { align-items: flex-start; font-size: 10px; }
  .project-grid { grid-template-columns: 1fr; gap: 36px; }
  .project-preview { min-height: 300px; }
  .project-card > p { min-height: 0; }
  .about-story { padding-block: 65px 76px; }
  .about-grid { gap: 35px; }
  .about-aside { gap: 16px; }
  .about-aside .section-kicker { font-size: 8px; }
  .values-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-section { padding-top: 41px; }
  .contact-form { gap: 18px; padding: 21px 17px; }
  .estimate-panel { padding: 15px 13px; }
  .estimate-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .estimate-breakdown > div, .estimate-total { align-items: flex-start; }
  .estimate-breakdown dd { max-width: 58%; }
  .estimate-total strong { max-width: 55%; font-size: 17px; }
  .footer-inner { min-height: 0; flex-wrap: wrap; padding-block: 23px; }
  .footer-inner > p { order: 3; width: 100%; }
  .footer-copy { margin-left: auto; }
  .closing-inner h2 { font-size: 48px; }
}

@media (max-width: 350px) {
  .header-inner { gap: 5px; }
  .brand { gap: 6px; font-size: 10px; letter-spacing: .08em; }
  .brand-mark { width: 28px; height: 28px; }
  .menu-toggle { width: 33px; height: 33px; }
  .palette-options { grid-template-columns: repeat(4, 20px); }
  .swatch { width: 20px; height: 22px; padding: 2px; }
  .swatch span { width: 14px; height: 14px; }
  .palette-wrap { padding: 2px; }
}