@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    min-height: 0;
  }
  .hero-copy {
    max-width: 860px;
  }
  .hero-copy h1 {
    max-width: 17ch;
  }
  .hero-copy .lead {
    max-width: 68ch;
  }
  .hero-scene {
    width: min(900px, 100%);
    margin-left: auto;
  }
  .hero-foot {
    margin-top: 28px;
  }
  .section-heading {
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, .9fr);
    gap: 24px;
  }
  .timeline {
    display: block;
    padding-left: 28px;
  }
  .timeline::before,
  .timeline::after {
    top: 8px;
    bottom: 10px;
    left: 27px;
    width: 2px;
    height: auto;
  }
  .timeline::after {
    transform: scaleY(var(--progress, 0));
    transform-origin: top center;
  }
  .timeline li {
    min-height: 0;
    padding: 2px 0 34px 72px;
    border: 0;
  }
  .step-num {
    top: 0;
    left: -28px;
    width: 56px;
    height: 56px;
  }
  .feature-project {
    height: 520px;
    min-height: 520px;
  }
  .project-visual {
    height: 100%;
    min-height: 520px;
  }
}
@media (max-width: 760px) {
  :root {
    --header-height: 72px;
    --reveal-distance: 14px;
  }
  .shell {
    width: min(var(--shell-width), calc(100% - 40px));
  }
  .hero .shell {
    width: calc(100% - 40px);
  }
  .section {
    padding-block: 76px;
  }
  .header-inner,
  .site-header.is-scrolled .header-inner {
    min-height: 70px;
  }
  .brand {
    width: 148px;
  }
  .header-inner {
    flex-wrap: wrap;
    padding-block: 10px;
  }
  #site-nav {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
  }
  .menu-toggle {
    display: flex;
    width: 46px;
    height: 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    color: var(--ivory);
    background: transparent;
    border: 1px solid rgba(174, 185, 184, .45);
    border-radius: 8px;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 19px;
    height: 2px;
    background: currentColor;
    transition: transform var(--motion-fast) var(--ease-ui), opacity var(--motion-fast) var(--ease-ui);
  }
  .nav-enhanced .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-enhanced .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-enhanced .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-enhanced #site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: rgba(17, 23, 25, .99);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .22);
  }
  .nav-enhanced #site-nav.is-open {
    display: flex;
    flex-direction: column;
  }
  #site-nav a {
    padding: 11px 4px;
    font-size: 1rem;
  }
  #site-nav .nav-contact {
    text-align: center;
  }
  .nav-enhanced #site-nav.is-open {
    animation: menu-enter 220ms var(--ease-out-premium) both;
  }
  body.nav-open {
    overflow: hidden;
  }
  .hero {
    padding-block: 52px 30px;
  }
  .hero-grid {
    gap: 26px;
  }
  .hero-copy .eyebrow {
    margin-bottom: 18px;
    font-size: .72rem;
  }
  .hero-copy h1 {
    max-width: 14ch;
    font-size: clamp(2.5rem, 7.8vw, 3.85rem);
  }
  .hero-copy .lead {
    font-size: 1rem;
  }
  .hero-scene {
    padding-top: 8px;
  }
  .scene-unit-video {
    padding-top: 24px;
  }
  .hero-bottom {
    padding-top: 24px;
    font-size: .67rem;
    letter-spacing: .1em;
  }
  .section-heading {
    display: block;
    margin-bottom: 36px;
  }
  .section-heading h2 {
    margin-bottom: 18px;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .service-art {
    min-height: 290px;
  }
  .service-details {
    padding: 26px;
  }
  .feature-project {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .project-visual,
  .project-visual-portrait {
    height: min(112vw, 520px);
    min-height: min(112vw, 520px);
  }
  .project-text {
    padding: 28px;
  }
  .project-list {
    gap: 12px;
  }
  .project-thumb {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  .project-thumb img {
    width: 100%;
    height: 168px;
    object-fit: cover;
  }
  .project-thumb.is-portrait img {
    object-fit: contain;
  }
  .project-thumb span,
  .project-thumb strong {
    align-self: flex-start;
  }
  .project-controls {
    gap: 12px;
  }
  .project-controls .btn {
    min-width: 0;
    padding-inline: 14px;
  }
  .pillar-grid {
    gap: 12px;
  }
  .pillar {
    min-height: 0;
    padding: 24px;
  }
  .pillar > span {
    margin-bottom: 20px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .footer-inner span:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .shell {
    width: calc(100% - 36px);
  }
  .hero .shell {
    width: calc(100% - 36px);
  }
  .hero-scene {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .scene-unit-video {
    padding-top: 0;
  }
  .scene-video,
  .scene-browser {
    aspect-ratio: 1000 / 1040;
  }
  .scene-index {
    font-size: .65rem;
    letter-spacing: .1em;
  }
  .hero-bottom {
    flex-direction: column;
    gap: 10px;
  }
  .cta-row .btn {
    width: 100%;
  }
  .portfolio-controls {
    width: 100%;
  }
  .tab {
    flex: 1;
    padding-inline: 10px;
    font-size: .88rem;
  }
  .project-list {
    grid-template-columns: 1fr;
  }
  .project-thumb {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: center;
    column-gap: 14px;
    padding: 12px;
  }
  .project-thumb img {
    height: 104px;
    grid-row: span 2;
  }
  .project-controls .btn {
    flex: 1;
    font-size: .82rem;
  }
  .pillar-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    display: block;
    padding-left: 24px;
  }
  .timeline::before,
  .timeline::after {
    position: absolute;
    top: 6px;
    bottom: 10px;
    left: 26px;
    display: block;
    width: 2px;
    height: auto;
  }
  .timeline::after {
    transform: scaleY(var(--progress, 0));
    transform-origin: top center;
  }
  .timeline li {
    min-height: 0;
    padding: 4px 0 30px 54px;
    border: 0;
  }
  .step-num {
    top: 0;
    left: -24px;
    width: 44px;
    height: 44px;
    font-size: .85rem;
  }
  .form-surface {
    padding: 22px 18px;
  }
  #media-dialog {
    width: calc(100% - 20px);
    padding: 18px;
  }
}
@media (max-width: 360px) {
  body {
    font-size: 15px;
  }
  .shell {
    width: calc(100% - 32px);
  }
  .hero .shell {
    width: calc(100% - 32px);
  }
  .hero-copy h1 {
    font-size: 2.42rem;
  }
  .scene-index {
    letter-spacing: .06em;
  }
  .browser-body em {
    font-size: .58rem;
  }
  .project-controls {
    gap: 6px;
  }
  .project-controls .btn {
    padding-inline: 10px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-inner span:last-child {
    grid-column: auto;
  }
}
@keyframes menu-enter {
  from { opacity: .88; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-enhanced #site-nav.is-open {
    animation: none;
  }
}

