/* Shared mobile and tablet refinements. Loaded after the desktop art direction. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:where(main, footer) :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--red); outline-offset: 5px;
}
:where(main) [id] { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (max-width: 1100px) {
  .services-capabilities__index > li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px 22px; }
  .services-capabilities__index > li > span { grid-column: 1; grid-row: 1 / span 3; }
  .services-capabilities__index h3,
  .services-capabilities__index > li > p,
  .services-capabilities__index ul { grid-column: 2; margin-top: 0; }
  .services-capabilities__index > li > p { max-width: 65ch; }
  .studio-how__layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .begin-form { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .begin-form__intro { position: static; }
}
@media (max-width: 1024px) {
  :root, .home-v2 { --header-h: 80px; }
  .site-header.site-header--primary { height: var(--header-h); grid-template-columns: minmax(0, 1fr) auto; }
  .site-header--primary .desktop-nav, .site-header--primary > .header-cta,
  .mega-menu, .mega-scrim { display: none; }
  .site-header--primary > .brand { gap: 10px; min-width: 0; }
  .site-header--primary > .brand img { width: 42px; height: 42px; }
  .site-header--primary > .brand > span { font-size: 24px; }
  .site-header--primary > .brand small { font-size: 9px; }
  .site-header--primary .menu-button { display: block; position: relative; width: 48px; height: 48px; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; }
  .site-header--primary .menu-button span { position: absolute; left: 14px; width: 18px; height: 1px; background: currentColor; transition: transform .2s ease; }
  .menu-button span:first-child { top: 19px; }
  .menu-button span:last-child { top: 26px; }
  .menu-button[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }
  .mobile-menu { position: fixed; inset: 0; height: 100dvh; display: flex; flex-direction: column; justify-content: flex-start; gap: 32px; padding: calc(var(--header-h) + 24px) var(--pad) max(28px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; background: var(--ink); color: #fff; opacity: 0; visibility: hidden; transform: translateY(-15px); transition: opacity .25s ease, visibility .25s ease, transform .25s ease; }
  .mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu nav { flex-shrink: 0; }
  .mobile-menu nav a { display: flex; align-items: baseline; gap: 16px; min-height: 56px; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: "Space Grotesk", sans-serif; font-size: clamp(26px, 6vw, 52px); line-height: 1.15; letter-spacing: -.04em; }
  .mobile-menu nav span { flex-shrink: 0; color: var(--red); font-size: 11px; }
  .mobile-menu > p { flex-shrink: 0; margin: auto 0 0; color: #aaa; font-size: 12px; line-height: 1.7; }
  .site-header.site-header--primary:has(.mobile-menu.is-open) { color: #fff; background: #080808; }
  .site-header.site-header--primary:has(.mobile-menu.is-open) > .brand img { filter: brightness(0) invert(1); }
  .site-header.site-header--primary:has(.mobile-menu.is-open) > .brand small { color: #aaa; }
  .site-header.site-header--primary:has(.mobile-menu.is-open) .menu-button { border-color: #aaa; }
  .site-header.site-header--primary:has(.mobile-menu.is-open) .menu-button span { background: #fff; }
  .section-index, .studio-section-head, .services-section-head { min-width: 0; }
  .featured-project, .featured-project--rally { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .featured-project--rally .featured-project__image,
  .featured-project--rally .featured-project__meta { grid-column: 1; grid-row: auto; }
  .begin-hero, .begin-hero__inner { min-height: 0; }
  .begin-hero__inner { display: grid; gap: 40px; padding-top: calc(var(--header-h) + 64px); padding-bottom: 48px; }
  .begin-hero__copy, .begin-hero__email { position: relative; inset: auto; width: 100%; min-width: 0; transform: none; }
  .begin-hero__copy h1 { font-size: clamp(46px, 9vw, 90px); line-height: .98; }
  .begin-hero__copy > p:last-child { margin: 28px 0 0; max-width: 55ch; }
  .begin-hero__email { max-width: 440px; flex-wrap: wrap; gap: 12px; }
  .begin-form-section { padding-top: 56px; padding-bottom: 72px; }
  .begin-form { margin-top: 36px; }
  .begin-form__intro h2 { margin: 18px 0 24px; }
  .work-page .work-hero, .work-page .work-hero__inner { min-height: 0; }
  .work-page .work-hero__inner { padding-top: calc(var(--header-h) + 64px); padding-bottom: 48px; }
  .work-page .work-hero__bottom { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 40px; }
  .work-page .work-hero__bottom a { min-width: 0; min-height: 44px; }
  .studio-hero, .services-page-hero { min-height: 0; padding: calc(var(--header-h) + 90px) var(--pad) 48px; }
  .studio-hero__copy, .services-page-hero__copy,
  .studio-hero__bottom, .services-page-hero__bottom { position: relative; inset: auto; width: 100%; transform: none; }
  .studio-hero h1 { font-size: clamp(42px, 7.5vw, 88px); line-height: 1; }
  .studio-hero h1 span:first-child { white-space: normal; }
  .studio-hero h1 span:nth-child(2) { margin-left: 0; }
  .services-page-hero h1 { font-size: clamp(52px, 10vw, 112px); line-height: .95; }
  .studio-hero__bottom, .services-page-hero__bottom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 48px; }
  .studio-hero__bottom p { margin-left: 0; }
  .studio-hero__bottom a, .services-page-hero__bottom a { min-height: 44px; align-items: center; }
  .studio-hero__meta span:last-child, .services-page-hero__meta span:last-child { display: none; }
  .services-working-together__entries > li > div { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .studio-project-process__journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 0; }
  .studio-project-process__journey::before, .studio-project-process__journey::after,
  .studio-project-process__journey li::before { display: none; }
  .studio-project-process__journey li, .studio-project-process__journey li:not(:first-child) { min-height: 0; padding: 24px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.24); }
  .studio-project-process__number { margin-bottom: 24px; }
  .studio-project-process__journey p, .studio-project-process__journey h3 { max-width: none; }
  .studio-project-process__journey p { font-size: 15px; line-height: 1.7; }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .site-footer a { display: inline-flex; min-height: 44px; align-items: center; }
  .text-link, .work-project__link, .work-archive__project > a:last-child { min-height: 44px; align-items: center; }
}
@media (max-width: 820px) {
  /* Content flow allows the hero to grow with text and browser text zoom. */
  .home-v2 .hero--v2 { display: flex; flex-direction: column; min-height: 0; padding-top: calc(var(--header-h) + 92px); }
  .home-v2 .hero--v2 .hero-copy { position: relative; inset: auto; width: auto; margin: 0 var(--pad) 48px; transform: none; }
  .home-v2 .hero--v2 h1 { max-width: none; font-size: clamp(44px, 10.5vw, 84px); line-height: .98; }
  .home-v2 .hero--v2 .title-line--accent { padding-left: 0; }
  .home-v2 .hero-v2-panel { position: relative; inset: auto; width: 100%; height: 150px; order: 1; }
  .home-v2 .hero-v2-logo-toggle { top: 50%; right: var(--pad); width: 120px; }
  .home-v2 .hero-bottom { position: relative; inset: auto; order: 2; background: #df0028; }
  .home-v2 .hero-bottom > p { max-width: 65ch; padding: 24px var(--pad); margin: 0; font-size: 15px; }
  .home-v2 .hero--v2 .hero-bottom .text-link { width: auto; margin: 0 var(--pad) 24px; }
  .home-v2.intro-pending .hero--v2 .hero-copy { transform: translateY(20px); }
  .services-experience { min-width: 0; }
  .services-experience h3 { overflow-wrap: anywhere; }
  .begin-field-grid, .begin-options { grid-template-columns: minmax(0, 1fr); }
  .begin-field input, .begin-field select, .begin-field textarea { width: 100%; min-width: 0; font-size: 16px; }
  .begin-submit { grid-template-columns: minmax(0, 1fr); }
  .begin-submit button { width: 100%; min-height: 52px; }
}
@media (max-width: 600px) {
  :root, .home-v2 { --pad: 20px; --header-h: 76px; }
  .work-page { --work-gutter: 20px; }
  .work-page .work-hero__inner h1 { font-size: clamp(42px, 12vw, 68px); line-height: .98; }
  .work-page .work-hero__inner > .kicker { max-width: 100%; margin-bottom: 28px; }
  .work-page .work-featured .work-project { padding-block: 48px; }
  .work-page .work-featured .work-project__content h3 { margin-top: 20px; }
  .work-project__index { flex-wrap: wrap; gap: 8px; }
  .work-project__tags { flex-wrap: wrap; }
  .work-archive__story { gap: 18px; }
  .work-page .work-archive__story p { font-size: 15px; }
  .studio-project-process__journey { grid-template-columns: minmax(0, 1fr); }
  .services-capabilities__index > li { gap: 12px; grid-template-columns: 28px minmax(0, 1fr); }
  .services-capabilities__index h3 { font-size: clamp(24px, 6.8vw, 36px); overflow-wrap: anywhere; }
  .services-capabilities__index ul { grid-template-columns: minmax(0, 1fr); }
  .services-experience p { font-size: 15px; line-height: 1.65; }
  .services-experience > div { padding-inline: 24px; }
  .services-page-hero h1 span:last-child { margin-left: 0; }
  .studio-hero__bottom, .services-page-hero__bottom { margin-top: 32px; }
  .begin-options label { min-height: 88px; padding: 18px; }
  .begin-fieldset + .begin-fieldset { margin-top: 36px; }
  .begin-hero__email { overflow-wrap: anywhere; }
  .site-footer { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) and (pointer: coarse) {
  .work-project__visual > span { opacity: 1; transform: none; }
  button, a, input, select, textarea { touch-action: manipulation; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mobile-menu { transition: none; }
}

.begin-hero__start,
.begin-mobile-guide { display: none; }

/* A shorter, clearly sequenced enquiry journey on phones. */
@media (max-width: 600px) {
  .begin-page .begin-hero { min-height: auto; }
  .begin-page .begin-hero__system { opacity: .42; }
  .begin-page .begin-hero__inner {
    display: block;
    min-height: auto;
    padding-top: calc(var(--header-h) + 58px);
    padding-bottom: 36px;
  }
  .begin-page .begin-hero__copy { width: 100%; }
  .begin-page .begin-hero__copy .kicker { margin-bottom: 20px; }
  .begin-page .begin-hero__copy h1 {
    max-width: 10ch;
    font-size: clamp(48px, 14vw, 70px);
    line-height: .94;
  }
  .begin-page .begin-hero__copy > p:last-of-type {
    max-width: 34ch;
    margin-top: 26px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.65;
  }
  .begin-hero__start {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    margin-top: 30px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.35);
    font-family: "Space Grotesk", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .begin-hero__start span { color: var(--red); font-size: 18px; }
  .begin-page .begin-hero__email {
    margin-top: 22px;
    padding: 0;
    border: 0;
    color: rgba(255,255,255,.65);
  }
  .begin-page .begin-hero__email small { display: none; }
  .begin-page .begin-hero__email span { font-size: 12px; }
  .begin-page .begin-form-section { padding: 38px 0 80px; }
  .begin-page .begin-form-section > .shell > .section-index { margin-bottom: 0; }
  .begin-page .begin-form { gap: 0; margin-top: 30px; }
  .begin-page .begin-form__intro { display: none; }
  .begin-mobile-guide {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    margin-bottom: 44px;
    padding: 18px 0;
    border-top: 1px solid var(--dark-line);
    border-bottom: 1px solid var(--dark-line);
    font-family: "Space Grotesk", sans-serif;
  }
  .begin-mobile-guide span,
  .begin-mobile-guide strong {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .begin-mobile-guide strong { color: var(--red); font-weight: 600; }
  .begin-mobile-guide p {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    color: #676767;
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
  }
  .begin-page .begin-fieldset { padding-bottom: 46px; }
  .begin-page .begin-fieldset + .begin-fieldset {
    margin-top: 0;
    padding-top: 38px;
  }
  .begin-page .begin-fieldset legend {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: none;
  }
  .begin-page .begin-fieldset legend span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid var(--red);
    border-radius: 50%;
    font-size: 10px;
  }
  .begin-page .begin-field-grid { gap: 28px; }
  .begin-page .begin-field { gap: 8px; }
  .begin-page .begin-field > span {
    color: #333;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: none;
  }
  .begin-page .begin-field > span small {
    color: #999;
    font-size: 10px;
    font-weight: 500;
  }
  .begin-page .begin-field input,
  .begin-page .begin-field textarea,
  .begin-page .begin-field select {
    min-height: 50px;
    padding: 12px 0;
  }
  .begin-page .begin-field textarea { min-height: 128px; }
  .begin-page .begin-field--large + .begin-field--large { margin-top: 30px; }
  .begin-page .begin-options { gap: 10px; border: 0; background: transparent; }
  .begin-page .begin-options label {
    min-height: 0;
    padding: 18px;
    border: 1px solid var(--dark-line);
  }
  .begin-page .begin-options label > span { gap: 8px; }
  .begin-page .begin-options strong { font-size: 18px; }
  .begin-page .begin-options small { max-width: none; font-size: 12px; }
  .begin-page .begin-submit {
    gap: 28px;
    padding-top: 32px;
  }
  .begin-page .begin-submit p { font-size: 13px; }
  .begin-page .begin-submit button {
    min-height: 58px;
    background: var(--red);
    color: #fff;
  }
}

/* Mobile homepage composition: one dark hero and a compact studio overview. */
@media (max-width: 820px) {
  .home-v2 .hero--v2 { padding-top: calc(var(--header-h) + 100px); padding-bottom: 44px; background: #080808; }
  .home-v2 .hero--v2 .hero-copy { margin-bottom: 32px; }
  .home-v2 .hero--v2 h1 { font-size: clamp(46px, 11.8vw, 88px); line-height: 1.02; letter-spacing: -.055em; }
  .home-v2 .hero--v2 .title-line { overflow: visible; }
  .home-v2 .hero--v2 .title-line--accent { margin-top: 10px; }
  .home-v2 .hero--v2 .title-line--accent > span { font-size: 1em; }
  .home-v2 .hero-v2-panel { display: none; }
  .home-v2 .hero-bottom { display: flex; flex-direction: column; gap: 28px; margin: 0 var(--pad); padding-top: 24px; border-top: 1px solid #333; background: transparent; }
  .home-v2 .hero-bottom > p { max-width: 38ch; padding: 0; color: #bcbcbc; font-size: 15px; line-height: 1.7; }
  .home-v2 .hero--v2 .hero-bottom .text-link { width: 100%; min-height: 56px; margin: 0; padding: 0 20px; background: #df0028; color: #fff; box-shadow: none; }
  .home-v2 .studio-network--teaser { padding: 20px 16px; }
  .home-v2 .studio-network--teaser .studio-network__canvas--desktop { display: none; }
  .home-v2 .studio-network--teaser .studio-network__canvas--mobile { display: block; width: 100%; height: auto; margin: 18px 0; }
  .home-v2 .studio-network--teaser .studio-network__meta,
  .home-v2 .studio-network--teaser .studio-network__caption { flex-wrap: wrap; gap: 10px; font-size: 10px; line-height: 1.5; letter-spacing: .06em; }
  .home-v2 .studio-network--teaser .studio-network__meta > span:last-child { display: none; }
  .home-v2 .studio-network--teaser .studio-network__caption > span:last-child { display: none; }
  .mobile-system-labels { font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 500; fill: #ededed; }
  .mobile-system-labels .mobile-system-number { font-size: 14px; fill: #e41937; letter-spacing: 2px; }
  .home-v2 .sakura-intro, .home-v2 .sakura-intro__curtain--bottom { background: #080808; }
}

/* Minimal full-screen phone hero. Tablet and desktop keep their composition. */
.hero-title-mobile, .hero-description-mobile { display: none; }
@media (max-width: 600px) {
  .home-v2 .hero--v2 {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding: calc(var(--header-h) + 40px) var(--pad) max(28px, env(safe-area-inset-bottom));
    background: #080808;
  }
  .home-v2 .hero--v2::before, .home-v2 .hero--v2::after,
  .home-v2 .hero-meta, .home-v2 .hero-v2-panel { display: none; }
  .home-v2 .hero--v2 .hero-copy {
    position: relative;
    inset: auto;
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 48px 0 64px;
    transform: none;
  }
  .home-v2 .hero--v2 .hero-title-desktop, .hero-description-desktop { display: none; }
  .hero-title-mobile, .hero-description-mobile { display: block; }
  .home-v2 .hero--v2 h1 {
    margin: 0;
    font-size: clamp(52px, 14vw, 84px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.06em;
    text-transform: none;
  }
  .hero-title-dot { color: #df0028; }
  .home-v2 .hero-bottom {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .home-v2 .hero-bottom > p {
    max-width: 34ch;
    margin: 0;
    padding: 0;
    color: #a7a7a7;
    font-size: 14px;
    line-height: 1.65;
  }
  .home-v2 .hero--v2 .hero-bottom .text-link {
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #393939;
    background: transparent;
    box-shadow: none;
    color: #fff;
  }
  .home-v2 .hero--v2 .hero-bottom .text-link span { color: #df0028; }
}

/* Keep the Studio introduction on a consistent, readable background. */
@media (max-width: 1024px) {
  .studio-page .studio-hero { display: flex; flex-direction: column; padding-bottom: 0; }
  .studio-page .studio-hero__copy { order: 1; }
  .studio-page .studio-hero__bottom { order: 2; margin-top: 32px; margin-bottom: 40px; gap: 28px; }
  .studio-page .studio-hero__bottom p { margin: 0; max-width: 52ch; color: #454545; font-size: 16px; line-height: 1.75; }
  .studio-page .studio-hero__bottom a { width: 100%; min-height: 48px; color: #111; border-color: #b9b7b2; }
  .studio-page .studio-hero__bottom a span { color: var(--studio-red); }
  .studio-page .studio-hero__graphic { position: relative; inset: auto; order: 3; flex: none; width: calc(100% + var(--pad) * 2); height: 160px; margin-inline: calc(-1 * var(--pad)); background: var(--studio-red); }
  .studio-page .studio-hero__red-field { display: none; }
  .studio-page .studio-hero__graphic svg { top: 50%; right: 10%; bottom: auto; left: auto; width: 220px; opacity: .2; transform: translateY(-50%) rotate(-3deg); animation: none; }
  .studio-page .studio-hero__orbit { top: 50%; right: 12%; bottom: auto; width: 180px; transform: translateY(-50%); }
  .studio-page .studio-hero__system-label { display: none; }
}
