/* Mobile reading and touch controls. Desktop art direction stays in the base styles. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (max-width: 850px) {
  html { scroll-padding-top: 92px; }
  .site-header.wrap {
    position: sticky; top: 0; z-index: 30; width: 100%; height: 76px;
    padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right));
    gap: 20px; background: #fff;
  }
  .brand { flex-shrink: 0; }
  .brand img { width: 54px; height: 38px; }
  .brand-word { font-size: 16px; }
  .menu-button { display: block; min-width: 82px; min-height: 44px; font-size: 14px; }
  .motion-control, .dialog-close, .scene-small-link { min-height: 44px; min-width: 44px; font-size: 12px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    padding: 12px 18px 20px; background: #fff; border-bottom: 1px solid #dde3ed;
    box-shadow: 0 16px 25px #18263e0a; flex-direction: column; align-items: stretch;
    gap: 6px; font-size: 16px; max-height: calc(100svh - 76px); overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.open { display: flex; }
  .nav > a:not(.contact-button) { padding: 14px 8px; min-height: 48px; }
  .nav .contact-button { justify-content: space-between; min-height: 48px; font-size: 15px; }
  .skip { z-index: 60; }
  .detail-page [id] { scroll-margin-top: 12px; }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-tile {
    height: auto; min-height: 208px; padding: 20px 14px 18px;
    justify-content: flex-start; gap: 16px;
  }
  .brand-tile .tile-art { height: 72px; flex-shrink: 0; }
  .brand-tile .tile-bottom { margin-top: auto; align-items: flex-start; gap: 8px; }
  .brand-tile .tile-title { font-size: 14px; line-height: 1.4; color: #334158; }
  .brand-tile .maturity-badge { font-size: 12px; line-height: 1.5; color: #58677a; }
  .maturity-badge:before { align-self: flex-start; margin-top: .55em; }
  .brand-tile:not(.archive) img { max-width: 100%; }
  .tile-signature { grid-column: 1 / -1; }
  .collection-filter { min-height: 44px; font-size: 13px; padding: 10px 12px; color: #526078; }
  .collection-filter > span { font-size: 11px; }
  .collection-count { font-size: 13px; color: #627086; }
  .footer, .footer .names { font-size: 12px; line-height: 1.7; color: #56657b; }
  .footer-links { gap: 8px 20px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 30px 0; gap: 18px; }
  .hero h1 { font-size: clamp(42px, 11.8vw, 68px); letter-spacing: -.065em; line-height: 1.06; }
  .hero .eyebrow { font-size: 10px; line-height: 1.7; letter-spacing: 1px; margin-bottom: 18px; }
  .hero-intro { font-size: 16px; line-height: 1.7; color: #596578; max-width: 450px; margin-bottom: 22px; }
  .hero-actions { gap: 12px 22px; flex-wrap: wrap; }
  .hero-actions .button { font-size: 14px; min-height: 48px; padding: 13px 16px; gap: 18px; }
  .hero-actions .text-link { font-size: 13px; min-height: 44px; }
  .hero-stage { width: 100%; max-width: 540px; margin: 0 auto !important; }
  .hero-scenes { height: clamp(240px, 66vw, 350px); }
  .hero-stage .scene-sculpture .sculpture { width: 105%; max-width: none; }
  .scene-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 12px; }
  .scene-tabs button { justify-content: center; font-size: 14px; gap: 7px; min-height: 48px; color: #56657a; }
  .scene-tabs button span { font-size: 10px; color: #6b7890; }
  .scene-caption { font-size: 12px; color: #5f6c80; line-height: 1.65; min-height: 50px; }
  .scene-small-link { font-size: 12px; min-height: 44px; align-items: center; padding: 10px 12px; bottom: 5px; }
  .connection-note small { font-size: 10px; letter-spacing: .2px; }
  .project-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 8px; padding: 10px 4px 38px; }
  .hero-stage .stack-card {
    position: relative; inset: auto; width: 100%; height: auto;
    transform: none !important; border-radius: 9px; box-shadow: 0 8px 22px #1d315411;
  }
  .hero-stage .stack-card:hover, .hero-stage .stack-card:focus-visible { transform: none !important; }
  .stack-visual { height: clamp(100px, 27vw, 150px); }
  .stack-footer { min-height: 91px; height: auto; padding: 10px 8px; justify-content: flex-start; gap: 10px; }
  .hero-stage .stack-footer img { height: 18px; max-width: 100%; }
  .stack-footer span { font-size: 12px; line-height: 1.4; color: #56657b; gap: 3px; }
  .stack-footer b { display: none; }
  .stage-under-label { font-size: 12px; line-height: 1.5; bottom: 0; letter-spacing: 0; color: #627086; }
  .ribbon-heading { flex-wrap: wrap; gap: 10px 18px; }
  .ribbon-heading > p { font-size: 12px; line-height: 1.6; max-width: none; color: #627086; }
  .ribbon-actions { gap: 14px; }
  .ribbon-actions > a { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
  .motion-control { min-height: 44px; min-width: 70px; font-size: 12px; padding: 10px; color: #56657b; }
  .section { padding: 42px 0; }
  .section-heading { display: block; }
  .section-heading .eyebrow, .contact .eyebrow { font-size: 10px; line-height: 1.7; }
  .section-heading > p { font-size: 16px; line-height: 1.7; max-width: 100%; margin-top: 16px; color: #596578; }
  .work-caption h3 { font-size: 23px; line-height: 1.25; }
  .work-caption p { font-size: 15px; line-height: 1.65; color: #596578; }
  .work-stage .category { font-size: 11px; max-width: calc(100% - 90px); }
  .work .open-icon { width: 44px; height: 44px; top: 16px; right: 16px; bottom: auto; }
  .art-label { font-size: 12px; line-height: 1.4; letter-spacing: 0; left: 12px; bottom: 10px; max-width: calc(100% - 24px); padding: 5px 8px; border-radius: 4px; background: #fffffff2; color: #4f5e75; }
  .loocas .art-label { color: #4f5e75; }
  .loocas .image-copy { bottom: 55px; }
  .gallery-foot { flex-direction: column; gap: 8px; font-size: 12px; color: #627086; }
  .gallery-foot > span { max-width: none; }
  .gallery-foot .text-link { min-height: 44px; font-size: 13px; }
  .impact { grid-template-columns: 1fr; gap: 28px; }
  .impact-intro, .impact-item p { font-size: 16px; line-height: 1.75; color: #596578; max-width: none; }
  .impact-item { grid-template-columns: 22px 1fr; gap: 12px; }
  .impact-item .num { font-size: 12px; color: #63769a; }
  .tile-signature a { font-size: 13px; min-height: 44px; }
  .contact-section-heading { display: block; }
  .contact-section-heading > p { font-size: 16px; max-width: none; margin-top: 18px; color: #596578; }
  .contact-options { grid-template-columns: 1fr; }
  .contact-option p, .contact .contact-option p { font-size: 15px; line-height: 1.7; color: #596578; }
  .contact-option-number, .contact .contact-option-number { font-size: 12px; color: #627086; }
  .contact .contact-direct { font-size: 15px; min-height: 44px; }
  .contact-intro > p:last-child, .contact-composer > div:first-child > p { font-size: 16px; color: #596578; }
  .contact-intro h1 { font-size: clamp(36px, 9.8vw, 52px); }
  .contact-composer { grid-template-columns: 1fr; gap: 26px; }
  .contact-composer label { font-size: 14px; }
  .contact-composer label > span { font-size: 12px; }
  .contact-composer select, .contact-composer textarea { font-size: 16px; min-width: 0; }
  .contact-composer .text-link, .contact-composer .button { font-size: 14px; min-height: 48px; }
  .contact-subject > span, .contact-help { font-size: 12px; color: #627086; }
  .contact-subject > p { font-size: 15px; }
  .contact-composer > div { min-width: 0; }
  .project-dialog { width: calc(100% - 16px); max-width: 640px; max-height: calc(100svh - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .dialog-top { padding: 10px 16px; gap: 12px; }
  .dialog-top > span { font-size: 12px; color: #627086; }
  .dialog-close { min-height: 44px; min-width: 88px; font-size: 13px; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
  .dialog-body { padding: 24px 20px 30px; }
  .dialog-body h2 { font-size: clamp(30px, 8vw, 42px); overflow-wrap: anywhere; }
  .dialog-status .maturity-badge { font-size: 13px; color: #56657b; }
  .dialog-summary { font-size: 16px; color: #4f5e73; line-height: 1.75; }
  .dialog-section h3, .dialog-impact h3 { font-size: 16px; }
  .dialog-section p, .dialog-section li, .dialog-impact p { font-size: 15px; line-height: 1.75; color: #526177; }
  .dialog-note, .dialog-review, .dialog-illustration { font-size: 12px; line-height: 1.7; color: #627086; }
  .dialog-bottom { gap: 14px; }
  .dialog-bottom .button { font-size: 14px; line-height: 1.5; min-height: 48px; width: 100%; padding: 12px 14px; }
  .dialog-source { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: #526177; }
  .detail-breadcrumb { font-size: 12px; gap: 6px 10px; margin-bottom: 24px; }
  .detail-breadcrumb a { display: inline-flex; align-items: center; min-height: 36px; }
  .detail-page h1 { font-size: clamp(38px, 10vw, 54px); letter-spacing: -.05em; }
  .detail-lead { font-size: 16px; color: #526177; line-height: 1.75; }
  .detail-overline { font-size: 11px !important; color: #627086; }
  .detail-button { font-size: 14px; min-height: 48px; }
  .detail-text-link { font-size: 14px; min-height: 44px; }
  .detail-identity-caption, .detail-fact-label, .detail-source-domain { font-size: 12px; color: #627086; }
  .detail-facts p, .detail-status, .detail-hero-copy > .detail-status { font-size: 14px !important; }
  .detail-anchor-nav { gap: 6px 10px; font-size: 13px; padding: 16px 0; }
  .detail-anchor-nav a { padding: 10px 12px; border: 1px solid #e0e6ef; border-radius: 5px; min-height: 44px; color: #526177; }
  .detail-screen-top, .detail-screen figcaption p, .detail-screen figcaption .detail-capture-note { font-size: 12px; line-height: 1.65; color: #627086; }
  .detail-screen figcaption > .detail-source-link, .detail-source-link { font-size: 13px; min-height: 44px; }
  .detail-section p, .detail-steps p, .detail-usecase-benefit p, .detail-evidence-list p,
  .detail-state-block p, .detail-heritage-context p:not(.detail-overline), .detail-utility-content { font-size: 16px; line-height: 1.75; color: #526177; }
  .detail-social-copy > p { font-size: 18px; }
  .detail-illustration-label, .detail-usecase-benefit > span, .detail-evaluation .detail-evaluation-note,
  .detail-evidence-kind, .detail-evidence-number, .detail-extra-sources h3 { font-size: 12px; color: #627086; }
  .detail-evaluation h3, .detail-state-block h3 { font-size: 14px; }
  .detail-review-date { font-size: 12px !important; color: #627086 !important; }
  .detail-conversation p:not(.detail-overline) { font-size: 16px; color: #526177; }
  .detail-return { font-size: 13px; }
  .detail-return a { min-height: 44px; }
  .detail-page .detail-evaluation-note { line-height: 1.7; }
}

@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-stage { height: clamp(300px, 85vw, 430px); }
}
@media (max-width: 560px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-tile { min-height: 214px; padding: 18px 12px; }
  .brand-tile .tile-title { font-size: 13px; }
  .tile-signature { align-items: flex-start; flex-direction: column; gap: 10px; padding: 22px 18px; }
  .tile-signature p { max-width: none; }
}
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .hero-stage .scene-sculpture .sculpture { transform: none; will-change: auto; }
  .work-stage[data-tilt] { transform: none !important; will-change: auto; }
  .brand-tile:hover .tile-art { transform: none; }
  .contact-option:hover, .contact .contact-option:hover, .detail-button:hover, .button:hover { transform: none; }
  .work:hover .work-stage > .cover { transform: none; }
  .motion-ready [data-reveal] { transform: none; transition: opacity .3s ease; }
}
