:root {
  --snap-header-clearance: calc(var(--archive-header-bottom, 112px) + 24px);
  --snap-section-pad: clamp(48px, 6vh, 72px);
}

.archive-page {
  /* `hidden` creates a nested scroll container and steals descendant snap points. */
  overflow: clip;
}

html[data-page-snap-ready="true"] {
  scroll-padding-top: 0;
}

html[data-page-snap-ready="true"][data-page-snap-mode="strong"] {
  scroll-behavior: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: none;
}

html[data-page-snap-ready="true"][data-page-snap-mode="strong"][data-snap-animating="true"] {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

html[data-page-snap-ready="true"][data-page-snap-mode="strong"] [data-snap-page] {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

html[data-page-snap-ready="true"] [data-snap-page] {
  scroll-margin-top: 0;
}

@media (min-width: 821px) and (prefers-reduced-motion: no-preference) {
  [data-snap-motion-content] {
    transform: translate3d(0, var(--snap-content-y, 0), 0);
    opacity: var(--snap-content-opacity, 1);
    backface-visibility: hidden;
  }

  html[data-snap-animating="true"] [data-snap-motion-content] {
    will-change: transform, opacity;
  }
}

@media (min-width: 821px) and (prefers-reduced-motion: no-preference) {
  .experience-section[data-snap-page],
  .strengths-section[data-snap-page],
  .contact-section[data-snap-page] {
    padding-top: var(--snap-header-clearance);
    padding-bottom: var(--snap-section-pad);
  }

  .experience-section .section-heading {
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, .68fr);
    gap: clamp(28px, 5vw, 68px);
    margin-bottom: clamp(18px, 2.4vh, 26px);
  }

  .experience-section .section-title {
    max-width: 720px;
    font-size: clamp(34px, 3.7vw, 50px);
  }

  .experience-section .section-intro {
    font-size: 15px;
    line-height: 1.7;
  }

  .experience-section .experience-grid {
    grid-template-columns: minmax(230px, .6fr) minmax(0, 1.4fr);
    gap: clamp(30px, 5vw, 72px);
  }

  .experience-section .experience-aside {
    min-height: 210px;
    padding: 22px;
  }

  .experience-section .experience-role {
    margin-bottom: 10px;
    font-size: clamp(34px, 3.2vw, 44px);
  }

  .experience-section .experience-note {
    line-height: 1.62;
  }

  .experience-section .experience-item {
    grid-template-columns: 92px 1fr;
    gap: 18px;
    padding-block: clamp(10px, 1.45vh, 14px);
  }

  .experience-section .experience-item h3 {
    margin-bottom: 6px;
    font-size: 18px;
  }

  .experience-section .experience-item p {
    font-size: 15px;
    line-height: 1.7;
  }

  .experience-section .profile-pitch {
    gap: 14px clamp(32px, 5vw, 64px);
    margin-top: clamp(14px, 2vh, 20px);
    padding: clamp(16px, 2vh, 20px) clamp(20px, 2.6vw, 30px);
  }

  .experience-section .profile-pitch-heading h3 {
    margin-top: 10px;
    font-size: clamp(26px, 2.7vw, 36px);
    line-height: 1;
  }

  .experience-section .profile-pitch blockquote {
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.56;
  }

  .experience-section .profile-pitch-action {
    gap: 8px 16px;
  }

  .selected-section {
    display: block;
    min-height: 0;
    padding: 0 30px;
    border-top: 1px solid rgba(255, 255, 255, .09);
  }

  .selected-section > .archive-shell {
    position: relative;
  }

  .selected-section .featured-project > .section-heading {
    position: static;
    grid-column: 1 / -1;
    margin: 0;
  }

  .selected-section .featured-list {
    border-bottom: 0;
  }

  .selected-section .featured-project {
    min-height: 100svh;
    padding: var(--snap-header-clearance) 0 var(--snap-section-pad);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .selected-section .featured-project:first-child {
    padding-top: var(--snap-header-clearance);
  }

  .selected-section .featured-media {
    max-height: min(48vh, 500px);
  }

  .selected-section .supporting-chapter {
    display: grid;
    min-height: 100svh;
    align-content: center;
    padding: var(--snap-header-clearance) 0 var(--snap-section-pad);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .selected-section .supporting-heading {
    margin-top: 0;
    padding-top: 24px;
  }

  .selected-section .supporting-heading h3 {
    font-size: clamp(30px, 3vw, 42px);
  }

  .selected-section .supporting-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
  }

  .selected-section .supporting-project {
    display: block;
  }

  .selected-section .supporting-project > img {
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
  }

  .selected-section .supporting-copy {
    min-height: 218px;
    padding: clamp(18px, 2vw, 24px);
  }

  .selected-section .supporting-problem {
    margin-top: 12px;
    line-height: 1.58;
  }

  .selected-section .supporting-state {
    padding-top: 14px;
  }

  .strengths-section .section-heading {
    margin-bottom: clamp(34px, 5vh, 56px);
  }

  .contact-section .contact-shell {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
  }
}

@media (min-width: 821px) and (max-height: 790px) and (prefers-reduced-motion: no-preference) {
  :root {
    --snap-section-pad: 16px;
  }

  .experience-section .section-heading {
    margin-bottom: 18px;
  }

  .experience-section .section-title {
    font-size: clamp(34px, 3.7vw, 50px);
  }

  .experience-section .experience-aside {
    min-height: 210px;
    padding: 22px;
  }

  .experience-section .experience-item {
    padding-block: 13px;
  }

  .experience-section .profile-pitch {
    grid-template-columns: minmax(210px, .65fr) minmax(0, 1.35fr);
    margin-top: 12px;
    padding: 12px 18px;
  }

  .experience-section .profile-pitch-action {
    grid-column: 2;
  }

  .selected-section .featured-project:first-child {
    padding-top: var(--snap-header-clearance);
  }

  .selected-section .featured-media {
    max-height: 44vh;
  }

  .selected-section .featured-copy h3 {
    font-size: clamp(28px, 2.8vw, 40px);
  }

  .selected-section .supporting-heading {
    padding-top: 16px;
  }

  .selected-section .supporting-list {
    margin-top: 18px;
  }

  .selected-section .supporting-copy {
    min-height: 204px;
    padding: 16px 18px;
  }
}

@media (max-width: 820px) and (prefers-reduced-motion: no-preference) {
  html[data-page-snap-ready="true"][data-page-snap-mode="proximity"] {
    scroll-snap-type: y proximity;
  }

  html[data-page-snap-ready="true"][data-page-snap-mode="proximity"] [data-snap-page] {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .supporting-chapter {
    scroll-margin-top: 0;
  }

  .supporting-project > img {
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-page-snap-ready="true"] {
    scroll-snap-type: none;
    overscroll-behavior-y: auto;
  }

  [data-snap-motion-content] {
    transform: none !important;
    opacity: 1 !important;
  }
}
