/* Fit complete compositions to small screens, without shrinking the document. */
.footer-top {
  flex-wrap: wrap;
}
.studio-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(18px, 2.4vw, 30px);
  flex-basis: 100%;
}
.hero-title h1 {
  font-size: clamp(64px, 6.5vw, 100px);
}
.hero-content {
  width: min(740px, 55%);
}
.hero-title h1 .type-line {
  display: block;
}
@media (max-width: 600px) {
  :root {
    --header-height: 72px;
  }
  .site-header {
    height: 72px;
    min-height: 72px;
    padding: 10px 18px;
    gap: 10px;
  }
  .site-header .wordmark {
    width: 132px;
    min-width: 132px;
  }
  .site-header .brand-emblem {
    width: 40px;
    height: 42px;
  }
  .site-header .brand-name {
    width: 87px;
  }
  .header-actions {
    gap: 7px;
  }
  .header-actions .motion-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .header-actions .menu-toggle {
    min-height: 44px;
    padding: 10px 15px;
  }
  .hero-room {
    height: 100svh !important;
    min-height: 620px !important;
    padding: 84px 20px 14px !important;
    display: flex;
    flex-direction: column;
  }
  .hero-topline {
    flex: 0 0 auto;
    font-size: 8px;
    line-height: 1.45;
  }
  .hero-stage {
    position: relative;
    flex: 1;
    min-height: 0 !important;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
  }
  .hero-content {
    display: contents;
  }
  .hero-title {
    flex: 0 0 auto;
  }
  .hero-title h1 {
    font-size: clamp(32px, 9.5vw, 45px) !important;
    line-height: 1.06;
    letter-spacing: -0.055em;
  }
  .hero-title h1 .type-line {
    display: block !important;
    margin: 0;
  }
  .hero-description {
    max-width: 360px;
    font-size: 14px !important;
    line-height: 1.5;
    margin: 14px 0 0;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
  }
  .hero-actions .action {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 10px;
    gap: 6px;
    font-size: 11px;
  }
  .hero-actions .action svg {
    width: 17px;
    height: 17px;
  }
  .hero-world {
    position: relative !important;
    inset: auto !important;
    flex: 1 1 auto;
    width: calc(100% + 40px);
    height: auto !important;
    min-height: 170px;
    margin: 16px -20px 0;
    background-position: 65% center;
  }
  .hero-floorline {
    flex: 0 0 auto;
    padding-top: 10px;
    font-size: 8px;
    line-height: 1.4;
  }
  .hero-floorline > span:not(:first-child) {
    display: none;
  }
  .challenge-room {
    padding: 36px 20px !important;
  }
  .challenge-room .section-label {
    font-size: 10px;
    line-height: 1.5;
    margin-bottom: 28px;
  }
  .challenge-statement {
    font-size: clamp(34px, 9vw, 44px) !important;
    line-height: 1.13;
    margin: 24px 0 30px;
  }
  .challenge-foot {
    grid-template-columns: 32px 1fr;
    gap: 14px;
    padding-top: 20px;
  }
  .challenge-asterisk {
    font-size: 37px;
  }
  .challenge-foot p {
    font-size: 14px !important;
    line-height: 1.6;
  }
  .challenge-foot .inline-link {
    grid-column: 2;
    display: inline-flex;
    justify-self: start;
    font-size: 14px;
    min-height: 44px;
    align-items: center;
  }
  .capability-deck {
    padding: 28px 18px 20px !important;
    scroll-margin-top: 72px;
  }
  .capability-deck > .section-label {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .capability-deck .section-label > span:last-child {
    display: none;
  }
  .capability-deck .deck-reveal {
    display: none;
  }
  .capability-deck .deck-heading {
    margin: 0 0 20px;
    padding: 0;
  }
  .capability-deck .deck-heading h2 {
    font-size: 25px;
    line-height: 1.12;
    margin: 0;
    text-align: left;
  }
  .capability-deck .deck-heading > p {
    display: none;
  }
  .capability-deck .deck-stage {
    padding: 0;
  }
  .capability-cards {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    position: relative;
    height: auto !important;
  }
  .capability-card {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 226px !important;
    min-height: 0 !important;
    aspect-ratio: auto;
  }
  .capability-card-front {
    padding: 14px 12px !important;
    border-radius: 12px;
  }
  .card-topline {
    font-size: 8px !important;
    letter-spacing: 0.02em;
  }
  .card-topline > span:before {
    margin-right: 4px;
  }
  .card-topline i {
    font-size: 18px !important;
  }
  .capability-card h3 {
    font-size: 19px !important;
    line-height: 1.1;
    margin: 12px 0 8px;
    letter-spacing: -0.045em;
  }
  .capability-card p {
    font-size: 11px !important;
    line-height: 1.4;
    margin: 0;
  }
  .capability-card .card-graphic {
    margin: auto 0 7px;
  }
  .capability-card .card-graphic svg {
    height: 36px !important;
  }
  .capability-card .card-service {
    font-size: 10px !important;
    line-height: 1.3;
  }
  .capability-card .card-footer {
    font-size: 10px !important;
    margin-top: 7px;
    gap: 2px;
  }
  .card-footer i {
    font-size: 18px;
  }
  .deck-foot {
    margin-top: 16px;
    padding-top: 12px;
    font-size: 8px;
    gap: 10px;
  }
  .work-room .work-heading {
    padding: 34px 20px 16px !important;
  }
  .work-room .work-heading h2 {
    font-size: 38px !important;
    margin: 24px 0 0;
  }
  .work-heading .section-label {
    font-size: 10px;
  }
  .work-showcase {
    padding: 0 20px 28px;
  }
  .strip-controls {
    padding: 8px 0;
    gap: 10px;
  }
  .strip-controls .mono {
    font-size: 10px;
  }
  .strip-controls button {
    padding: 8px 12px;
    font-size: 11px;
  }
  .strip-track {
    gap: 12px !important;
    padding: 8px 0 12px;
    scroll-snap-type: x mandatory;
  }
  .showcase-piece {
    flex-basis: 90%;
  }
  .showcase-piece img {
    height: 210px;
  }
  .showcase-piece > span {
    padding: 12px;
  }
  .showcase-piece strong {
    font-size: 20px;
    margin-top: 4px;
  }
  .strip-progress {
    margin: 5px 0 14px;
  }
  .refreshed-studio .product-hero {
    padding: 24px 20px 28px;
  }
  .product-breadcrumb {
    font-size: 11px;
    margin-bottom: 20px;
  }
  .refreshed-studio .product-hero-grid {
    gap: 24px;
  }
  .refreshed-studio .product-kicker {
    font-size: 10px;
  }
  .refreshed-studio .product-hero h1 {
    font-size: 36px;
    line-height: 1.08;
    margin: 14px 0;
  }
  .refreshed-studio .product-hero-copy {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px;
  }
  .refreshed-studio .product-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .refreshed-studio .product-hero-actions .action {
    font-size: 11px;
    min-height: 46px;
    padding: 10px;
    gap: 5px;
  }
  .refreshed-studio .product-hero-actions .action svg {
    width: 17px;
  }
  .story-hero {
    max-width: 310px;
    width: 90%;
    margin: 0 auto 12px;
    transform: rotate(-3deg);
  }
  .story-hero img {
    max-height: 28svh;
    object-fit: contain;
  }
  .story-hero img + img {
    transform: translateY(12px) rotate(6deg);
  }
  .concept-hero img {
    max-height: 32svh;
    object-fit: contain;
  }
  .concept-hero span {
    bottom: 8px;
    right: 8px;
    padding: 9px 12px;
    font-size: 11px;
  }
  .showcase-section {
    padding: 30px 20px;
    scroll-margin-top: 72px;
  }
  .showcase-heading {
    margin-bottom: 12px;
  }
  .showcase-heading .mono {
    font-size: 10px;
  }
  .showcase-heading h2 {
    font-size: 29px;
    line-height: 1.1;
    margin: 14px 0;
  }
  .showcase-section > p {
    font-size: 14px;
  }
  .comic-strip .strip-controls {
    justify-content: flex-end;
  }
  .comic-strip .strip-controls > .mono {
    display: none;
  }
  .comic-slide {
    flex: 0 0 min(76%, 32svh);
  }
  .comic-slide img {
    width: 100%;
    height: auto;
  }
  .comic-slide figcaption {
    padding-top: 8px;
    font-size: 10px;
  }
  .comic-story > .inline-link,
  .ideas-story .inline-link {
    font-size: 13px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .style-sample h3 {
    font-size: 22px;
  }
  .style-page {
    flex-basis: 70%;
  }
  .concept-grid {
    margin-top: 24px;
    gap: 24px;
  }
  .concept-grid h3 {
    font-size: 23px;
    margin-top: 14px;
  }
  .concept-grid p {
    font-size: 14px;
  }
  .tool-simple .tool-hero {
    padding: 24px 20px 26px;
  }
  .tool-simple .tool-hero h1 {
    font-size: 36px;
    line-height: 1.08;
  }
  .tool-simple .tool-hero-copy {
    font-size: 14px;
    line-height: 1.5;
  }
  .tool-simple .tool-hero-visual {
    margin-top: 0;
  }
  .tool-simple .tool-hero-visual img {
    max-height: 31svh;
    object-fit: contain;
  }
  .tool-simple .tool-hero .action {
    min-height: 46px;
    font-size: 13px;
  }
  .artifact-room {
    padding: 32px 20px !important;
  }
  .artifact-heading h2 {
    font-size: 38px;
  }
  .artifact-shelf {
    gap: 16px;
  }
  .process-room {
    padding: 32px 20px;
  }
  .process-heading h2 {
    font-size: 38px;
    margin: 20px 0;
  }
  .process-step {
    padding: 16px 0;
  }
  .process-step p {
    font-size: 14px;
    line-height: 1.55;
  }
  .studio-room {
    padding: 36px 20px;
  }
  .studio-statement {
    font-size: 42px;
  }
  .studio-bottom {
    margin-top: 28px;
    gap: 20px;
  }
  .studio-bottom p {
    font-size: 14px;
  }
  .page-intro {
    padding-top: 110px;
    padding-bottom: 32px;
  }
  .page-intro h1 {
    font-size: 42px;
  }
  .page-intro p {
    font-size: 15px;
  }
  .footer {
    padding: 28px 20px 20px;
  }
  .footer-top {
    gap: 20px;
  }
  .studio-email {
    font-size: 21px;
  }
}
@media (max-width: 600px) and (max-height: 720px) {
  .hero-room {
    min-height: 570px !important;
    padding-top: 82px !important;
  }
  .hero-stage {
    margin-top: 14px;
  }
  .hero-title h1 {
    font-size: 32px !important;
  }
  .hero-description {
    margin-top: 10px;
    font-size: 13px !important;
  }
  .hero-actions {
    margin-top: 12px;
  }
  .hero-world {
    min-height: 140px;
    margin-top: 10px;
  }
  .capability-card {
    height: 200px !important;
  }
  .capability-card h3 {
    font-size: 17px !important;
    margin-top: 8px;
  }
  .capability-card .card-graphic svg {
    height: 26px !important;
  }
  .capability-deck .deck-heading h2 {
    font-size: 23px;
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 72px;
  }
  .capability-deck,
  .showcase-section,
  [id] {
    scroll-margin-top: 0;
  }
}
@media (max-width: 600px) and (max-height: 720px) {
  .capability-deck {
    padding-top: 20px !important;
    padding-bottom: 16px !important;
  }
  .capability-deck > .section-label {
    margin-bottom: 12px;
  }
  .capability-deck .deck-heading {
    margin-bottom: 14px;
  }
  .capability-card {
    height: 210px !important;
  }
  .capability-deck .deck-foot {
    display: none;
  }
}
@media (max-width: 600px) {
  .tool-simple .tool-hero-grid {
    padding: 0;
    gap: 16px;
  }
  .tool-simple .tool-hero .product-kicker {
    margin-top: 0;
    font-size: 10px;
  }
  .tool-simple .tool-hero h1 {
    font-size: 32px;
    margin: 14px 0;
  }
  .tool-simple .tool-hero-copy {
    margin: 0 0 16px;
  }
  .tool-simple .tool-format {
    display: none;
  }
  .tool-simple .tool-hero .product-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .tool-simple .tool-hero .product-hero-actions .action {
    min-height: 46px;
    padding: 10px;
    font-size: 11px;
    gap: 5px;
  }
  .tool-simple .tool-hero .product-fineprint {
    font-size: 11px;
    line-height: 1.45;
    margin: 12px 0 0;
  }
  .tool-simple .tool-hero-visual img {
    max-height: 23svh;
  }
  .tool-simple .tool-image-cta {
    padding: 9px 12px;
    font-size: 11px;
  }
  .tool-simple .tool-hero-visual figcaption {
    font-size: 10px;
    line-height: 1.45;
    margin-top: 8px;
  }
}
@media (max-width: 600px) and (max-height: 720px) {
  .tool-simple .tool-hero {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .tool-simple .product-breadcrumb {
    margin-bottom: 14px;
    font-size: 10px;
  }
  .tool-simple .tool-hero h1 {
    font-size: 30px;
    margin: 10px 0;
  }
  .tool-simple .tool-hero-copy {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .tool-simple .tool-hero-visual img {
    max-height: 18svh;
  }
}

/* Visual motion pass: the same engraved deck fans and flips on phones. */
@media (max-width: 900px) {
  html:not(.reduced-motion) .capability-deck .deck-prologue {
    display: block !important;
    top: 8px;
    font-size: clamp(34px, 9vw, 64px);
    z-index: 2;
  }
  .capability-deck .deck-heading h2 { max-width: 780px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .artifact-room { min-height: 0; }
  .artifact-heading { margin-bottom: 8px; }
  .artifact-heading h2 { margin: 18px 0 0; }
  .artifact-shelf { scroll-snap-type: none; padding-top: 16px; padding-bottom: 20px; }
  .artifact, .artifact:nth-child(2), .artifact:nth-child(3) {
    min-height: 245px;
    max-height: min(43svh, 345px);
    aspect-ratio: .85;
  }
  .artifact-inner { padding: 19px; }
  .artifact-glyph { font-size: 72px; }
  .artifact strong { font-size: 30px; }
  .artifact-navigation { margin-bottom: 12px; }
  .shelf-bottom { padding-top: 16px; }
  .website-concept-strip .showcase-piece { flex-basis: 94%; }
  .website-concept-strip .showcase-piece img { height: auto; aspect-ratio: 1.6; object-fit: contain; }
  .website-concept-strip .showcase-piece > span { padding: 14px; }
  .website-concept-strip .showcase-piece strong { font-size: 20px; margin: 0; }
  .website-ideas .showcase-heading h2 { font-size: 34px; }
  .website-ideas { padding-top: 28px; padding-bottom: 34px; }
}
[data-auto-strip] .strip-track { scroll-snap-type: none; }
.website-concept-strip .showcase-piece { background: #151924; }
.website-concept-strip .showcase-piece img { object-fit: contain; }
.concept-note { font-size: 12px !important; margin-top: 0; }
.storefront-intro { padding-bottom: 28px; }
.storefront-intro h1 { font-size: clamp(45px, 6.5vw, 94px); max-width: 1100px; }
.storefront-lede { margin-top: 20px; }
.storefront-lede > span { display: none; }
.storefront-lede p { font-size: 18px; margin-bottom: 0; }
.store-catalog-controls { align-items: stretch; gap: 20px; margin-top: 0; }
.store-catalog-controls > [role="group"] { flex: 1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.product-storefront .store-catalog-controls button {
  border-radius: 8px; min-height: 78px; font-size: clamp(16px,1.7vw,24px); font-weight: 500;
  border: 1px solid #707581; background: #181d29; color: #f1f1e9; padding: 14px 18px;
}
.product-storefront .store-catalog-controls button[aria-pressed="true"] {
  color: #11170b; background: #d8ff32; border-color: #d8ff32; box-shadow: inset 0 -4px #9aaf21;
}
.product-storefront .store-catalog-controls button:hover { border-color: #d8ff32; }
.store-search { max-width: 250px; align-self: center; }
.store-product > .product-feature-tags, .store-access-note { display: none; }
@media (max-width: 900px) {
  .store-catalog-controls { display: grid; }
  .store-search { max-width: none; }
}
@media (max-width: 600px) {
  .storefront-intro { padding-top: 28px !important; padding-bottom: 24px; }
  .storefront-intro h1 { font-size: 42px !important; margin: 20px 0; }
  .storefront-lede p { font-size: 14px !important; }
  .store-catalog-controls > [role="group"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-storefront .store-catalog-controls button { min-height: 56px; font-size: 17px; padding: 12px; }
  .store-catalog { padding-top: 0; }
  .store-search { display: none; }
  .store-results { margin: 16px 0; }
}
.website-ideas { min-width: 0; align-self: center; }
.showcase-piece { scroll-margin-top: 100px; }
.website-ideas .strip-controls { padding-top: 0; }
.website-ideas .showcase-piece { flex-basis: 94%; }
.website-ideas .showcase-piece img { height: auto; aspect-ratio: 1.6; object-fit: contain; }
.website-ideas .showcase-piece strong { margin: 0; font-size: 21px; }
.website-ideas .strip-progress { margin-bottom: 14px; }
@media (max-width: 600px) {
  .website-ideas { padding: 0; }
  .website-ideas .strip-controls > .mono { font-size: 10px; }
  .website-ideas .strip-track { padding-bottom: 12px; gap: 12px; }
  .website-ideas .strip-progress { margin: 8px 0; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .capability-card { height: min(32svh,340px) !important; }
}
@media (max-width: 600px) and (max-height: 720px) {
  .artifact-room { padding-block: 20px !important; }
  .artifact-heading { margin-top: 14px; }
  .artifact-heading h2 { font-size: 32px; margin-top: 10px; }
  .artifact, .artifact:nth-child(2), .artifact:nth-child(3) { max-height: 38svh; min-height: 220px; }
  .shelf-bottom { min-height: 0; gap: 8px; }
  .shelf-bottom > span { display: none; }
}
