/* Final mobile layout layer. Desktop styles remain untouched. */
@media (max-width: 760px) {
  html {
    width: 100%;
    overflow-x: clip;
    scroll-padding-top: 82px;
  }

  body,
  #root,
  main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  img,
  video,
  canvas {
    max-width: 100%;
  }

  .site-shell {
    width: 100%;
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .site-header {
    top: max(10px, env(safe-area-inset-top));
  }

  .site-header__inner {
    width: calc(100% - 24px);
    height: 56px;
    padding-inline: 12px;
  }

  .brand-mark {
    font-size: 17px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    touch-action: manipulation;
  }

  .mobile-nav {
    top: calc(max(10px, env(safe-area-inset-top)) + 64px);
    right: 12px;
    left: 12px;
    padding: 10px 18px calc(16px + env(safe-area-inset-bottom));
    border-radius: 22px;
  }

  .mobile-nav a {
    min-height: 58px;
    touch-action: manipulation;
  }

  .hero {
    width: 100%;
    height: 100dvh;
    min-height: 640px;
    max-height: 920px;
    overflow: hidden;
  }

  .hero__media,
  .hero__scrim {
    width: 100%;
    height: 100dvh;
    min-height: 640px;
  }

  .hero__media {
    inset: 0;
    background-position: 54% center;
  }

  .hero__poster,
  .hero__video {
    object-position: 54% center;
  }

  .hero__content {
    min-height: 640px;
    padding-top: calc(90px + env(safe-area-inset-top));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .hero__eyebrow {
    font-size: 10px;
  }

  .hero__title-block {
    min-width: 0;
  }

  .hero__role {
    margin-bottom: 24px;
    font-size: 10px;
  }

  .hero h1 {
    width: 100%;
    gap: 7px;
    line-height: 0.98;
  }

  .hero__title-accent,
  .hero__title-main {
    max-width: 100%;
    font-size: 33px;
    white-space: nowrap;
  }

  .hero__title-script {
    top: 35px;
    right: 0;
    font-size: 25px;
  }

  .hero__support {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    margin-top: 28px;
    padding-top: 18px;
  }

  .hero__support::before {
    width: 78%;
  }

  .hero__support p {
    max-width: 230px;
    font-size: 13px;
    line-height: 1.55;
  }

  .hero__work-link {
    align-self: end;
    justify-self: end;
    min-height: 44px;
    font-size: 12px;
    white-space: nowrap;
    touch-action: manipulation;
  }

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

  .hero__brand-tile {
    height: 42px;
  }

  .content-rays__background {
    height: 100dvh;
    margin-bottom: -100dvh;
  }

  .content-rays__effect {
    opacity: 0.5;
  }

  .content-rays__sections > .experience.section-pad,
  .content-rays__sections > .work.section-pad,
  .content-rays__sections > .strengths.section-pad {
    padding-top: 96px !important;
    padding-bottom: 96px !important;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 0;
    margin-bottom: 42px;
  }

  .section-heading__meta {
    grid-row: 1;
    grid-column: 1;
    justify-self: end;
    margin: 0 0 18px;
    font-size: 10px;
  }

  .section-heading h2 {
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    font-size: 36px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .section-heading h2::before {
    top: -0.08em;
    right: auto;
    left: -2px;
  }

  .section-heading h2::after {
    bottom: -0.1em;
  }

  .section-heading > p {
    grid-row: 3;
    grid-column: 1;
    max-width: 32em;
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.75;
  }

  .motion-section-word {
    top: -0.14em;
    left: 0;
    max-width: 100%;
    font-size: 72px;
    letter-spacing: 0;
  }

  .experience .section-heading {
    margin-bottom: 36px !important;
  }

  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .profile-lanyard {
    width: min(100%, 430px);
    max-width: none;
    justify-self: center;
    aspect-ratio: 4 / 5;
    border-radius: 20px;
    translate: none;
  }

  .profile-copy {
    min-width: 0;
    padding-bottom: 0;
  }

  .experience .profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px !important;
    margin-bottom: 34px !important;
    padding-top: 0;
  }

  .experience .profile-facts > div,
  .experience .profile-facts > div:nth-child(n + 3) {
    gap: 10px;
    min-height: 88px;
    justify-content: center;
    padding: 14px 0 !important;
  }

  .profile-facts span {
    font-size: 12px;
  }

  .profile-facts strong {
    font-size: 16px;
    line-height: 1.35;
  }

  .profile-copy__lead {
    font-size: 23px;
    line-height: 1.55;
  }

  .profile-copy__detail {
    margin-top: 18px !important;
    font-size: 13px;
    line-height: 1.8;
  }

  .experience .profile-stats {
    margin-top: 34px !important;
  }

  .profile-stats div {
    min-height: 100px;
    padding: 14px 8px 12px 0;
  }

  .profile-stats div:not(:first-child) {
    padding-left: 10px;
  }

  .profile-stats strong {
    font-size: 30px;
  }

  .profile-stats span {
    font-size: 9px;
    line-height: 1.4;
  }

  .experience .experience-list {
    margin-top: 54px !important;
  }

  .experience-list {
    padding-left: 24px;
  }

  .experience-list article {
    gap: 12px;
    padding: 24px 0 28px;
  }

  .experience-node {
    top: 25px;
    left: -30px;
  }

  .experience-list__period {
    font-size: 11px;
  }

  .experience-list__company h3 {
    font-size: 18px;
    line-height: 1.35;
  }

  .experience-list article p {
    font-size: 13px;
    line-height: 1.75;
  }

  .work-groups {
    gap: 64px;
  }

  .work-group__heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 22px;
    padding: 15px 0 17px;
  }

  .work-group__heading::before {
    width: 72%;
  }

  .work-group__heading::after {
    width: 54%;
  }

  .work-group__heading h3 {
    max-width: 100%;
    font-size: 25px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .work-group__category {
    justify-self: start;
    font-size: 16px;
    text-align: left;
  }

  .work-groups .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .work-groups .project-cell,
  .work-groups .project-cell--wide,
  .work-groups .project-cell--tall,
  .work-groups .project-cell--standard {
    min-width: 0;
    grid-column: 1;
  }

  .work-groups .project-card,
  .work-groups .project-cell--wide .project-card,
  .work-groups .project-cell--tall .project-card,
  .work-groups .project-cell--standard .project-card {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 15px;
    touch-action: manipulation;
  }

  .project-card__media img,
  .motion-directed .project-card__media img {
    transform: translate3d(0, var(--cover-offset-y, 0px), 0) scale(1.04) !important;
  }

  .project-card__wash {
    background: linear-gradient(180deg, rgba(3, 4, 3, 0.08) 22%, rgba(3, 4, 3, 0.88) 100%);
  }

  .project-card__scan {
    display: none;
  }

  .project-card__topline,
  .project-card__body,
  .work-groups .project-cell .project-card__topline,
  .work-groups .project-cell .project-card__body {
    right: 16px;
    left: 16px;
    opacity: 1 !important;
    transform: none !important;
  }

  .project-card__topline {
    top: 15px;
  }

  .project-card__body {
    bottom: 15px;
  }

  .project-card__tags {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .project-card__title-row {
    gap: 12px;
  }

  .project-card__title-row strong {
    font-size: 21px;
    line-height: 1.2;
  }

  .project-card__arrow {
    width: 42px;
    height: 42px;
  }

  .strength-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .strength-grid article,
  .strength-grid article:nth-child(-n + 2) {
    grid-column: 1;
    min-height: 230px;
    padding: 22px;
    border-radius: 24px;
  }

  .strength-grid h3 {
    font-size: 25px;
  }

  .strength-grid p {
    font-size: 13px;
  }

  .strength-card__fill,
  .strength-grid article.reflective-card-container::after {
    display: none !important;
  }

  .strength-grid article.reflective-card-container {
    transform: none !important;
  }

  .project-modal {
    padding: 0;
    overscroll-behavior: contain;
  }

  .project-modal__panel,
  .project-modal__panel--scroll {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0 !important;
  }

  .project-modal__panel--scroll .project-modal__bar {
    min-height: calc(58px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    padding-right: max(10px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .project-modal__bar > span {
    max-width: calc(100% - 58px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-modal__bar button {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 50%;
    touch-action: manipulation;
  }

  .project-modal__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 20px 16px 22px;
  }

  .project-modal__intro h2 {
    font-size: 25px;
    line-height: 1.25;
  }

  .project-modal__intro p {
    display: block;
    overflow: visible;
    font-size: 12px;
    line-height: 1.7;
    -webkit-line-clamp: unset;
  }

  .project-scroll-gallery,
  .project-scroll-gallery--split-tail,
  .project-scroll-gallery--split-portrait {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 0 10px calc(24px + env(safe-area-inset-bottom));
  }

  .project-scroll-gallery--split-tail > *,
  .project-scroll-gallery--split-portrait > *,
  .project-scroll-gallery--split-tail > :first-child,
  .project-scroll-gallery--split-portrait > :first-child,
  .project-scroll-gallery--split-tail > .project-scroll-gallery__item--wide,
  .project-scroll-gallery--split-portrait > .project-scroll-gallery__item--wide {
    grid-column: 1;
    aspect-ratio: auto;
  }

  .project-scroll-gallery__item,
  .concept-detail-board {
    width: 100%;
    border-radius: 12px;
  }

  .project-scroll-gallery__item img,
  .project-scroll-gallery__item video,
  .project-scroll-gallery--split-tail > :not(:first-child) img,
  .project-scroll-gallery--split-tail > :not(:first-child) video,
  .project-scroll-gallery--split-portrait > :not(:first-child) img,
  .project-scroll-gallery--split-portrait > :not(:first-child) video {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .project-scroll-gallery__item figcaption {
    top: 8px;
    right: 8px;
    gap: 7px;
    padding: 7px 9px;
  }
}

@media (max-width: 380px) {
  .hero__title-accent,
  .hero__title-main {
    font-size: 30px;
  }

  .hero__title-script {
    top: 32px;
    font-size: 23px;
  }

  .section-heading h2 {
    font-size: 33px;
  }

  .work-group__heading h3 {
    font-size: 23px;
  }
}
