/* Mobile sections: readable type, wider previews, and a consistent content rhythm. */
@media (max-width: 767px) {
  :root {
    --mobile-section-gutter: clamp(16px, 4.5vw, 20px);
  }

  .statement,
  .work-sticky,
  .services,
  .process,
  .contact,
  .production-footer {
    padding-inline: var(--mobile-section-gutter);
  }

  .statement {
    display: block;
    padding-block: 40px 44px;
  }

  .statement-copy {
    width: 100%;
    max-width: none;
  }

  .statement h2 {
    font-size: clamp(30px, 7.8vw, 36px);
    line-height: 1.3;
    letter-spacing: -.05em;
    text-wrap: balance;
  }

  .statement-copy > p:not(.section-kicker) {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.75;
  }

  .work-sticky {
    padding-block: 40px 36px;
    overflow: visible;
  }

  .work-story-top .section-kicker {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .07em;
  }

  .work-story-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 20px 0 0;
  }

  .case-heading {
    width: 100%;
    align-self: stretch;
  }

  .case-heading h2 {
    margin: 0;
    padding-bottom: 18px;
    font-size: clamp(29px, 7.7vw, 36px);
    line-height: 1.22;
    letter-spacing: -.045em;
    text-wrap: balance;
  }

  .case-main {
    align-self: auto;
    width: calc(100% + var(--mobile-section-gutter) + var(--mobile-section-gutter));
    max-width: none;
    margin-block: 0;
    margin-inline: calc(-1 * var(--mobile-section-gutter));
    padding: 0;
  }

  .case-window {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
    background: #141811;
  }

  .case-window > img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
    transform: none !important;
  }

  .case-open-label {
    display: block;
    min-height: 0;
    margin: 12px var(--mobile-section-gutter) 0;
    padding: 0;
    border: 0;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0;
  }

  .case-description {
    width: 100%;
    margin-top: 22px;
    padding-bottom: 0;
  }

  .case-summary {
    margin-bottom: 18px;
  }

  .case-summary h3 {
    display: none;
  }

  .case-summary p {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.6;
  }

  .mobile-case-tabs {
    gap: 6px;
    margin-bottom: 14px;
  }

  .mobile-case-tabs button {
    min-height: 44px;
    padding: 10px 6px;
    background: #192014;
    color: #d5deca;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: -.035em;
  }

  .mobile-case-tabs button[aria-pressed="true"] {
    background: #ecff32;
    color: #11170b;
  }

  .mobile-case-picker {
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
  }

  .case-description .mobile-case-picker select {
    min-height: 50px;
    padding: 12px;
    font-size: 16px;
  }

  .mobile-case-controls {
    gap: 12px;
    margin: 12px 0 16px;
  }

  .mobile-case-controls button {
    width: 48px;
    min-height: 44px;
    padding: 0;
    background: #171e12;
    font-size: 23px;
    line-height: 1;
  }

  .mobile-case-position {
    font-size: 14px;
    line-height: 1.4;
  }

  .mobile-filter-panel > summary {
    min-height: 48px;
    padding-block: 12px;
    font-size: 14px;
    line-height: 1.5;
  }

  .mobile-filter-panel .case-filters label,
  .mobile-filter-panel .case-search {
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
  }

  .mobile-filter-panel .case-filters select,
  .mobile-filter-panel .case-search input {
    min-height: 48px;
    padding: 11px 12px;
    font-size: 16px;
  }

  .case-reset {
    min-height: 44px;
    font-size: 13px;
  }

  #case-search-result {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
  }

  .services {
    padding-block: 40px 32px;
  }

  .services .section-heading {
    display: block;
    margin-bottom: 22px;
  }

  .services .section-kicker {
    margin-bottom: 16px;
    font-size: 10.5px;
    line-height: 1.5;
  }

  .services h2 {
    font-size: clamp(32px, 8.4vw, 36px);
    line-height: 1.23;
    letter-spacing: -.05em;
  }

  .services .section-heading > p {
    margin-top: 14px;
    padding-bottom: 0;
    font-size: 15px;
    line-height: 1.65;
  }

  .plans {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    border: 0;
  }

  .plan,
  .plan + .plan {
    padding: 24px 22px 22px;
    border: 1px solid #c7cdbf;
    background: #fffef8;
    box-shadow: none;
  }

  .plan:first-child {
    padding-top: 21px;
    border-top: 4px solid #dbea26;
  }

  .plan-top {
    min-height: 0;
    margin-bottom: 18px;
    font-size: 10.5px;
    line-height: 1.5;
    letter-spacing: .06em;
  }

  .plan h3 {
    margin: 0 0 10px;
    font-size: 27px;
    line-height: 1.25;
    letter-spacing: -.045em;
  }

  .plan > p {
    min-height: 0;
    font-size: 14.5px;
    line-height: 1.7;
  }

  .plan > p br {
    display: none;
  }

  .plan-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 22px 0;
    font-size: clamp(82px, 22vw, 104px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.055em;
  }

  .plan-price small {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
  }

  .plan-price span {
    font-size: 27px;
    letter-spacing: -.045em;
  }

  .plan ul {
    gap: 10px;
    min-height: 0;
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.65;
  }

  .plan li::before {
    margin-right: 11px;
  }

  .plan .button {
    min-height: 54px;
    gap: 16px;
    padding: 15px 17px;
    font-size: 14px;
    line-height: 1.5;
  }

  .plan .button span {
    font-size: 22px;
  }

  .service-note {
    margin-top: 16px;
    font-size: 12.5px;
    line-height: 1.75;
  }

  .process {
    padding-block: 16px 44px;
  }

  .process > .section-kicker {
    padding-top: 26px;
    font-size: 10.5px;
    line-height: 1.5;
  }

  .process h2 {
    margin: 24px 0 26px;
    font-size: clamp(32px, 8.2vw, 36px);
    line-height: 1.25;
    letter-spacing: -.05em;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .steps article {
    padding-top: 14px;
  }

  .steps article > span {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    color: #758233;
  }

  .steps h3 {
    margin: 14px 0 9px;
    font-size: 17.5px;
    line-height: 1.45;
    letter-spacing: -.04em;
  }

  .steps p {
    font-size: 14px;
    line-height: 1.7;
  }

  .contact {
    padding-block: 40px 44px;
  }

  .contact-wrap {
    display: block;
  }

  .contact .section-kicker {
    font-size: 10.5px;
    line-height: 1.5;
  }

  #contact h2 {
    margin: 18px 0 16px;
    font-size: clamp(32px, 8.5vw, 38px);
    line-height: 1.25;
    letter-spacing: -.05em;
  }

  .contact-wrap > div > p:not(.section-kicker) {
    font-size: 15px;
    line-height: 1.75;
  }

  .contact .mobile-contact-actions {
    display: grid;
    width: 100%;
    max-width: none;
    gap: 12px;
    margin-top: 22px;
  }

  .contact .mobile-contact-actions .button {
    min-height: 56px;
    gap: 22px;
    margin: 0;
    padding: 17px 18px;
    font-size: 14.5px;
    line-height: 1.5;
  }

  .contact-backdrop {
    top: 20px;
    left: -3%;
    font-size: 58vw;
    line-height: .85;
  }

  .production-footer {
    padding-block: 30px 88px;
  }

  .production-footer .footer-brand {
    gap: 12px;
    padding-bottom: 24px;
    font-size: clamp(20px, 6vw, 30px);
    line-height: 1.2;
  }

  .production-footer .footer-brand-identity {
    gap: 12px;
  }

  .production-footer .footer-brand-identity > img {
    flex-basis: 48px;
    width: 48px;
  }

  .production-footer .footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    font-size: 12px;
    line-height: 1.6;
  }

  .production-footer .footer-actions > span {
    grid-column: 1 / -1;
  }

  .production-footer .footer-actions :is(a, button) {
    min-height: 44px;
    padding-block: 10px;
    font-size: 12px;
    text-align: left;
  }

  .production-company {
    margin-top: 22px;
    padding-top: 18px;
  }

  .production-company summary {
    font-size: 12px;
    line-height: 1.6;
  }

  .production-company dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .production-company dt {
    font-size: 11px;
  }

  .production-company dd {
    font-size: 13px;
    line-height: 1.65;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .statement,
  .work-sticky,
  .services,
  .process,
  .contact,
  .production-footer {
    padding-inline: 28px;
  }

  .statement h2,
  .process h2,
  #contact h2 {
    font-size: 34px;
    line-height: 1.3;
  }

  .services h2 {
    font-size: 36px;
    line-height: 1.25;
  }

  .case-heading h2 {
    font-size: 34px;
    line-height: 1.25;
  }

  .statement-copy > p:not(.section-kicker),
  .services .section-heading > p,
  .plan > p,
  .plan ul,
  .steps p,
  .contact-wrap > div > p:not(.section-kicker) {
    font-size: 14px;
    line-height: 1.7;
  }

  .plan-price {
    font-size: clamp(82px, 10vw, 92px);
  }

  .plan .button {
    min-height: 52px;
    font-size: 14px;
  }
}

/* Portrait panels fill the visible screen, without clipping long content or
   creating a second scroll area inside a section. svh keeps the composition
   stable while the mobile browser's address bar collapses. */
@media (max-width: 1023px) and (orientation: portrait) {
  .statement,
  .work-sticky,
  .services,
  .process,
  .contact {
    min-height: 100svh;
    height: auto;
    max-height: none;
  }

  .statement {
    display: flex;
    padding-block: 48px 56px;
  }

  .statement-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
  }

  .statement .section-kicker {
    display: block;
    margin: 0 0 28px;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: .07em;
  }

  .statement h2 {
    margin-block: auto;
    padding-block: 24px;
    font-size: clamp(36px, 10vw, 52px);
    line-height: 1.28;
  }

  .statement-copy > p:not(.section-kicker) {
    margin-top: 24px;
  }

  .statement-copy > a {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    min-height: 44px;
    margin-top: 24px;
    padding-bottom: 10px;
    font-size: 13px;
  }

  .work-sticky {
    position: relative;
    top: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .work-story-grid {
    flex: 1 0 auto;
    align-content: center;
  }

  .services {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
  }

  .services .section-heading,
  .service-note { margin-block: 0; }
  .plans { flex-shrink: 0; }

  .process {
    display: flex;
    flex-direction: column;
    padding-block: 48px;
  }

  .process > .section-kicker { padding-top: 0; }
  .process h2 { margin: 24px 0 40px; }
  .steps {
    margin-block: auto;
    row-gap: clamp(24px, 6svh, 56px);
    padding-bottom: 16px;
  }

  .contact {
    display: flex;
    padding-block: 48px calc(84px + env(safe-area-inset-bottom));
  }

  .contact-wrap {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
  }

  .contact-wrap > div:first-child { margin-block: auto; }
  #contact h2 {
    font-size: clamp(40px, 11vw, 58px);
    line-height: 1.2;
  }
  .contact .mobile-contact-actions {
    flex-shrink: 0;
    margin-top: 0;
  }
}

@media (max-width: 767px) and (max-height: 670px) and (orientation: portrait) {
  .statement { padding-block: 32px 40px; }
  .process { padding-block: 32px; }
  .process h2 { margin-bottom: 26px; }
  .steps { row-gap: 24px; padding-bottom: 0; }
}
