@font-face {
  font-family: 'PT Mono';
  src: url('../fonts/pt-mono-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #f3f3f3;
  --black: #030303;
  --muted: #313131;
  --credit: #585858;
  --brand-gray: #bcbcbc;
  --mono: 'PT Mono', 'Courier New', monospace;
  --display: 'Neue Haas Grotesk Display Pro', 'Neue Haas Grotesk', 'Helvetica Neue', sans-serif;
  --grotesk: 'Neue Haas Grotesk Display Pro', 'Neue Haas Grotesk', 'Archivo', 'Helvetica Neue', sans-serif;
  font-family: var(--mono);
  color: var(--paper);
  background: var(--black);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
}

:is(a, button):focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 5px;
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  inset: 1rem auto auto 1rem;
  z-index: 5;
  padding: 0.75rem;
  background: var(--black);
}

.site-pointer {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 10;
  width: 56px;
  height: 32px;
  color: var(--brand-gray);
  filter: drop-shadow(0 0 1px var(--black));
  pointer-events: none;
  visibility: hidden;
  transform: translate(-50%, -50%);
}

.site-pointer[data-visible] {
  visibility: visible;
}

:root:has(.site-pointer[data-visible]),
:root:has(.site-pointer[data-visible]) * {
  cursor: none;
}

.site-pointer-idle, .site-pointer-open {
  transition: opacity 160ms ease-out;
}

.site-pointer-open, .site-pointer[data-interactive] .site-pointer-idle {
  opacity: 0;
}

.site-pointer[data-interactive] .site-pointer-open {
  opacity: 1;
}

.site-pointer-left, .site-pointer-right {
  transform: translateX(var(--closed-offset));
  transition: transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-pointer-left {
  --closed-offset: 19px;
}

.site-pointer-right {
  --closed-offset: -19px;
}

.site-pointer[data-interactive] :is(.site-pointer-left, .site-pointer-right) {
  transform: translateX(0);
}

.home {
  --unit: calc(100vw / 2400);
  --center-line: 41.43%;
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 49vw;
  font-size: max(10px, calc(24 * var(--unit)));
  line-height: 1;
  text-transform: uppercase;
}

.home-photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.home-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-header {
  position: absolute;
  inset: 0 0 auto;
  height: max(2.75rem, calc(100 * var(--unit)));
}

.home-logo, .home-role, .home-info, .home-title, .home-location,
.home-specialties, .home-statement, .home-social, .home-copyright, .home-contact {
  position: absolute;
}

.home-logo {
  left: calc(38 * var(--unit));
  top: calc(18 * var(--unit));
  width: calc(140 * var(--unit));
}

.home-role {
  left: calc(313 * var(--unit));
  top: calc(39 * var(--unit));
}

.home-info {
  right: calc(33 * var(--unit));
  top: calc(38 * var(--unit));
  width: calc(69 * var(--unit));
}

.home-info::before {
  position: absolute;
  inset: -6px;
  content: '';
}

.home-info:hover img, a.home-contact:hover img, .home-logo:hover img {
  filter: brightness(1.24);
}

.home-title {
  left: calc(37 * var(--unit));
  top: calc(var(--center-line) - 40 * var(--unit));
  width: calc(1098 * var(--unit));
}

.home-title picture {
  display: block;
}

.home-title img,
.home-logo img,
.home-info img,
.home-contact img {
  width: 100%;
}

.home-location {
  top: var(--center-line);
  right: calc(32 * var(--unit));
  width: 8ch;
}

.home-specialties, .home-statement {
  top: calc(var(--center-line) + 134 * var(--unit));
  color: var(--muted);
}

.home-specialties {
  left: calc(163 * var(--unit));
  line-height: 1.042;
}

.scramble-text {
  white-space: pre;
}

.home-statement {
  left: calc(429 * var(--unit));
  line-height: 1.02;
}

.home-statement p + p {
  margin-top: 1.02em;
}

.home-statement-mask, .home-statement-line {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .home-statement-mask {
    clip-path: inset(-0.15em);
  }

  .home-statement-line {
    animation: home-statement-reveal 700ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-timing-function: linear(
      0, 0.1586 2.5%, 0.2915 5%, 0.403 7.5%, 0.4969 10%, 0.6429 15%,
      0.7476 20%, 0.8229 25%, 0.8772 30%, 0.9438 40%, 0.9766 50%,
      0.9913 60%, 0.9971 70%, 0.9992 80%, 1
    );
  }
}

@keyframes home-statement-reveal {
  from {
    transform: translateY(110%);
  }

  to {
    transform: translateY(0);
  }
}

.home-social {
  top: 78.16%;
  left: calc(38 * var(--unit));
  display: grid;
  grid-template-columns: calc(252 * var(--unit)) auto;
  gap: calc(23 * var(--unit));
}

.home-social img {
  width: 100%;
}

.home-social ul {
  margin-top: calc(5 * var(--unit));
}

.home-social a {
  text-decoration: none;
}

.home-social a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.home-footer {
  position: absolute;
  inset: auto 0 0;
  height: calc(100 * var(--unit));
}

.home-copyright {
  left: calc(33 * var(--unit));
  bottom: calc(33 * var(--unit));
  color: var(--credit);
  font-size: calc(17.5 * var(--unit));
  line-height: 1.15;
}

.home-contact {
  right: calc(34 * var(--unit));
  bottom: calc(33 * var(--unit));
  width: calc(166 * var(--unit));
}

:root:has(.home-menu[open]) {
  overflow: hidden;
}

.home-menu {
  --menu-indent: 2.25rem;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overscroll-behavior: contain;
  background: transparent;
  color: var(--paper);
  font-family: var(--grotesk);
  text-transform: uppercase;
}

.home-menu::backdrop {
  background: rgb(0 0 0 / 76%);
  backdrop-filter: blur(10px);
}

.home-menu-header {
  pointer-events: none;
}

.home-menu-header :is(button, a) {
  pointer-events: auto;
}

.home-menu-close {
  position: absolute;
  top: max(0.55rem, calc(38 * var(--unit) - 0.5rem));
  right: max(0px, calc(33 * var(--unit) - 0.375rem));
  min-height: 2.75rem;
  padding-inline: 0.375rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: inherit;
}

.home-menu-panel {
  width: max(50%, 52rem);
  margin-inline-start: auto;
  padding: max(5.5rem, calc(110 * var(--unit))) 2rem 2rem 0;
}

.home-menu-sections {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40%;
  align-items: start;
  border-top: 1px solid var(--brand-gray);
  padding-block: 1.5rem 1.75rem;
}

.home-menu-label {
  display: grid;
  grid-template-columns: var(--menu-indent) minmax(0, 1fr);
  align-items: start;
}

.home-menu-label h3 {
  margin: 0;
  font-size: clamp(2.25rem, 3.8vw, 5.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.home-menu-index {
  display: grid;
  place-items: center;
  width: 1.0625rem;
  aspect-ratio: 1;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--black);
  font-size: 0.6875rem;
  font-weight: 600;
}

.home-menu-label h3 a {
  text-decoration: none;
}

.home-menu-subsections {
  display: grid;
  justify-items: start;
  gap: 0.65rem;
  padding-top: 0.2rem;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
}

@media (hover: hover) and (pointer: fine) and (forced-colors: none) {
  .home-menu-label h3 {
    position: relative;
    isolation: isolate;
    justify-self: start;
    overflow: hidden;
    margin: -0.11em -0.18em;
    padding: 0.11em 0.18em;
  }

  .home-menu-label h3::before {
    position: absolute;
    inset: 0;
    background: var(--paper);
    transform: translateX(-101%);
    content: '';
  }

  .home-menu-label h3 > :is(span, a) {
    position: relative;
    mix-blend-mode: difference;
  }

  .home-menu-label h3:is(:hover, :has(a[aria-current='page']))::before {
    transform: translateX(0);
  }

  .home-menu-label:has(h3:hover) .home-menu-index {
    transform: translateY(-0.4rem);
  }

  .home-menu-subsections:has(> li:hover) > li:not(:hover) {
    opacity: 0.8;
    filter: blur(1.5px);
  }

  @media (prefers-reduced-motion: no-preference) {
    .home-menu-label h3::before {
      transition: transform 550ms ease-in-out;
    }

    .home-menu-label h3:hover::before {
      transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }

    .home-menu-index {
      transition: transform 550ms ease;
    }

    .home-menu-subsections > li {
      transition: opacity 300ms ease, filter 300ms ease;
    }
  }
}

@media (max-width: 991px) {
  .home-menu {
    --menu-indent: 1.45rem;
  }

  .home-menu-panel {
    width: 100%;
    padding: 5.7rem var(--edge, 1.5rem) 2rem;
  }

  .home-menu-row {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 1rem 1.15rem;
  }

  .home-menu-label h3 {
    font-size: clamp(1.5rem, 8.5vw, 3.5rem);
  }

  .home-menu-index {
    width: 0.8125rem;
    font-size: 0.5625rem;
  }

  .home-menu-subsections {
    gap: 0.55rem;
    margin: 0.85rem 0 0 var(--menu-indent);
    padding-top: 0;
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-menu, .home-menu::backdrop {
    opacity: 0;
    transition: opacity 320ms ease, display 320ms allow-discrete, overlay 320ms allow-discrete;
  }

  .home-menu[open], .home-menu[open]::backdrop {
    opacity: 1;
  }

  @starting-style {
    .home-menu[open], .home-menu[open]::backdrop {
      opacity: 0;
    }
  }

  .home-menu[open] .home-menu-row {
    animation: home-menu-row-in 500ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .home-menu[open] .home-menu-row:nth-child(2) {
    animation-delay: 70ms;
  }

  .home-menu[open] .home-menu-row:nth-child(3) {
    animation-delay: 140ms;
  }

  .home-menu[open] .home-menu-row:nth-child(4) {
    animation-delay: 210ms;
  }
}

@keyframes home-menu-row-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about {
  --unit: calc(100vw / 2400);
  --edge: max(1rem, calc(38 * var(--unit)));
  --about-gray: #8c8c8c;
  position: relative;
  font-family: var(--grotesk);
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-header {
  z-index: 2;
  font-family: var(--mono);
  font-size: max(10px, calc(24 * var(--unit)));
  line-height: 1;
  letter-spacing: 0;
}

.about-muted {
  color: var(--about-gray);
}

.about-mask {
  display: inline-block;
}

.about-mask > span {
  display: inline-block;
}

.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(5.5rem, calc(150 * var(--unit))) var(--edge) 1rem;
}

.about-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2em;
  margin-bottom: clamp(1.5rem, 1.6vw, 3rem);
}

.about-portrait {
  width: max(13rem, min(25vw, calc((100svh - 14rem) * 0.8)));
  aspect-ratio: 875 / 1093;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-scroll {
  margin-top: auto;
  padding: 2rem 0.5rem 0.25rem;
  text-decoration: none;
}

.about-scroll:hover .about-muted {
  color: var(--paper);
}

.about-headline {
  padding: clamp(4rem, 8vw, 10rem) var(--edge) clamp(4rem, 7vw, 15rem);
}

.about-display {
  font-size: clamp(2rem, 11.2vw, 19.8rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.about-display .about-mask {
  display: block;
  padding-bottom: 0.04em;
}

.about-display--end {
  text-align: right;
}

.about-tagline {
  max-width: 15.5rem;
  margin: clamp(3rem, 7.9vw, 9rem) auto;
  color: var(--about-gray);
  text-align: center;
}

.about-section {
  width: min(100%, max(36rem, 41.667% + var(--edge)));
  padding: 0 var(--edge) clamp(5rem, 8vw, 12rem);
}

.about-section-header {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1rem;
  padding-bottom: 1em;
}

.about-section-content {
  position: relative;
  padding: 1.875rem 0 0 1.875rem;
}

.about-section-content::before, .about-section-content::after {
  position: absolute;
  inset: 0 auto auto 0;
  background: var(--brand-gray);
  content: '';
}

.about-section-content::before {
  width: 100%;
  height: 1px;
  transform-origin: left;
}

.about-section-content::after {
  width: 1px;
  height: 110px;
  transform-origin: top;
}

.about-section-content h2 {
  max-width: 12em;
  margin-bottom: 1.75rem;
  font-size: clamp(1.75rem, 2.9vw, 4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.about-section-content p {
  max-width: 29rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  letter-spacing: 0.005em;
  text-transform: none;
}

.about-section-content p + p {
  margin-top: 1em;
}

.about-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--edge) max(1rem, calc(33 * var(--unit)));
}

.about-copyright {
  color: #8f8f8f;
  font-family: var(--mono);
  font-size: max(0.5rem, calc(17.5 * var(--unit)));
  letter-spacing: 0;
}

.about-contact {
  flex: 0 0 max(4.5rem, calc(166 * var(--unit)));
}

a.about-contact:hover img {
  filter: brightness(1.24);
}

@media (prefers-reduced-motion: no-preference) {
  .about-mask {
    clip-path: inset(-0.15em);
  }

  .about-intro-item {
    animation: home-statement-reveal 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  .about-intro .about-mask:nth-child(2) .about-intro-item {
    animation-delay: 80ms;
  }

  .about-intro .about-mask:nth-child(3) .about-intro-item {
    animation-delay: 160ms;
  }

  .about-portrait {
    animation: about-portrait-in 1400ms cubic-bezier(0.16, 1, 0.3, 1) 150ms backwards;
  }

  .about-portrait img {
    animation: about-portrait-settle 1800ms cubic-bezier(0.16, 1, 0.3, 1) 150ms backwards;
  }

  .about-scroll {
    animation: about-fade-in 700ms ease 900ms backwards;
  }

  @supports (animation-timeline: view()) {
    .about-display .about-mask {
      view-timeline-name: --about-line;
    }

    .about-display-line {
      animation: home-statement-reveal linear backwards;
      animation-timeline: --about-line;
      animation-range: entry 10% entry 100%;
    }

    .about-tagline {
      animation: about-fade-in linear backwards;
      animation-timeline: view();
      animation-range: entry 20% cover 35%;
    }

    .about-section-content {
      view-timeline-name: --about-content;
    }

    .about-section-header,
    .about-section-content > * {
      animation: about-rise linear backwards;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }

    .about-section-content::before {
      animation: about-line-x linear backwards;
      animation-timeline: --about-content;
      animation-range: entry 0% cover 35%;
    }

    .about-section-content::after {
      animation: about-line-y linear backwards;
      animation-timeline: --about-content;
      animation-range: entry 10% cover 35%;
    }
  }
}

@keyframes about-portrait-in {
  from {
    clip-path: inset(100% 0 0);
  }

  to {
    clip-path: inset(0);
  }
}

@keyframes about-portrait-settle {
  from {
    filter: blur(10px);
    transform: scale(1.18);
  }

  to {
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes about-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes about-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes about-line-x {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes about-line-y {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@media (max-width: 800px) {
  .about {
    --edge: max(1rem, 4vw);
  }

  .page-header {
    font-size: 0.75rem;
  }

  .about-hero {
    padding-top: 5.5rem;
  }

  .about-intro {
    font-size: 0.6875rem;
  }

  .about-portrait {
    width: min(70vw, calc((100svh - 12rem) * 0.8));
    min-width: 12rem;
  }

  .about-section {
    width: 100%;
  }

  .about-section-header {
    grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  }

  .about-section-content {
    padding: 1.5rem 0 0 1.25rem;
  }

  .about-section-content::after {
    height: 72px;
  }

  .about-copyright {
    font-size: clamp(0.46rem, 2vw, 0.625rem);
  }

  .about-contact {
    flex-basis: clamp(4rem, 16vw, 6rem);
  }
}

.contact {
  --unit: calc(100vw / 2400);
  --edge: max(1rem, calc(38 * var(--unit)));
  /* --r mirrors the reference's fluid rem so its proportions carry across breakpoints. */
  --r: 10px;
  --gap: calc(1.6 * var(--r));
  --label-size: max(0.6875rem, var(--r));
  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--black);
  text-transform: uppercase;
}

.contact-container {
  position: relative;
  z-index: 1;
  width: calc(100% - 2 * var(--gap));
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  padding: calc(9.4 * var(--r)) 0 calc(4.8 * var(--r));
}

.contact-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  container-type: inline-size;
}

.contact-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--brand-gray);
}

.contact-line--top {
  top: 0;
  transform-origin: left;
}

.contact-line--bottom {
  bottom: 0;
  transform-origin: right;
}

.contact-mail {
  display: flex;
  align-items: flex-start;
  max-width: 100%;
  font-size: 7.2cqi;
  line-height: 1.2;
  text-decoration: none;
}

.contact-mail-text {
  position: relative;
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.contact-mail-chars {
  display: block;
}

.contact-mail-chars--clone {
  position: absolute;
  inset: 0;
}

.contact-mail-char {
  display: inline-block;
}

.contact-mail-chars--clone .contact-mail-char {
  transform: translateY(105%);
}

.contact-mail-arrow {
  position: relative;
  flex: none;
  width: 0.56em;
  aspect-ratio: 1;
  margin: -0.1em 0 0 0.02em;
  overflow: hidden;
}

.contact-mail-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-mail-arrow svg + svg {
  position: absolute;
  inset: 0;
  transform: translate(-105%, 105%);
}

.contact-item {
  position: absolute;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  font-size: var(--label-size);
  line-height: 1.3;
}

.contact-item--top {
  top: var(--gap);
}

.contact-item--bottom {
  bottom: var(--gap);
}

.contact-label {
  font: inherit;
}

.contact-phone {
  text-align: right;
  text-decoration: none;
}

.contact-mask {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.14em;
  line-height: 1;
  vertical-align: bottom;
}

.contact-word {
  display: inline-block;
}

.contact-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: -0.25em;
  overflow: hidden;
}

.contact-social-link {
  display: block;
  width: fit-content;
  text-decoration: none;
}

.contact-underline-text {
  position: relative;
  display: block;
  overflow: hidden;
  padding-bottom: 2px;
}

.contact-underline {
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 100%;
  border-bottom: 1px solid currentColor;
}

.contact-underline--clone {
  left: -100%;
}

.contact-photo {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: -1;
  width: calc(100% - 12.4 * var(--r));
  height: 60%;
  margin: 0;
  overflow: hidden;
  background: #111;
  translate: -50% -50%;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

@media (min-width: 768px) {
  .contact {
    --r: 1.1111vw;
    --gap: calc(3.2 * var(--r));
  }

  .contact-photo {
    width: calc(60dvw + 0.4 * var(--r));
    height: 110vh;
  }
}

@media (min-width: 1200px) {
  .contact {
    --r: calc(12.5 * var(--unit));
    --label-size: max(0.6875rem, calc(1.2 * var(--r)));
  }

  .contact-container {
    width: calc(115 * var(--r));
    padding: calc(16 * var(--r)) 0;
  }

  .contact-photo {
    width: calc(67.6 * var(--r));
  }
}

@media (max-width: 800px) {
  .contact {
    --edge: max(1rem, 4vw);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .contact-mail-char {
    transition: transform 600ms var(--ease-out) calc(var(--i) * 25ms);
  }

  .contact-mail:is(:hover, :focus-visible) .contact-mail-chars:not(.contact-mail-chars--clone) .contact-mail-char {
    transform: translateY(-105%);
  }

  .contact-mail:is(:hover, :focus-visible) .contact-mail-chars--clone .contact-mail-char {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .contact-line {
    animation: about-line-x 1200ms var(--ease-in-out) 500ms backwards;
  }

  .contact-mail-chars:not(.contact-mail-chars--clone) .contact-mail-char {
    animation: contact-rise 600ms var(--ease-out) calc(500ms + var(--i) * 25ms) backwards;
  }

  .contact-mail-arrow svg:first-child {
    animation: contact-arrow-in 800ms var(--ease-out) 1000ms backwards;
  }

  .contact-fade {
    animation: contact-fade-up 800ms var(--ease-out) var(--delay) backwards;
  }

  .contact-word {
    animation: contact-word 1200ms var(--ease-out) calc(800ms + var(--i) * 15ms) backwards;
  }

  .contact-photo {
    animation: contact-photo-open 1200ms var(--ease-in-out) 950ms backwards;
  }

  .contact-photo img {
    animation: contact-photo-settle 1400ms var(--ease-in-out) 950ms backwards;
  }
}

@keyframes contact-rise {
  from {
    transform: translateY(105%);
  }
}

@keyframes contact-word {
  from {
    transform: translateY(108%);
  }
}

@keyframes contact-arrow-in {
  from {
    transform: translate(-105%, 105%);
  }
}

@keyframes contact-fade-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
}

@keyframes contact-photo-open {
  from {
    clip-path: inset(0 50%);
  }
}

@keyframes contact-photo-settle {
  from {
    transform: scale(1.3);
  }
}

.not-found h1 {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.1;
}

.not-found {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  min-height: 100svh;
  padding: max(1.25rem, 6vw);
}

@media (max-width: 800px) {
  .home {
    --edge: max(1rem, 4vw);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100svh;
    padding: clamp(17rem, 48svh, 28rem) var(--edge) 1.25rem;
    font-size: 0.75rem;
    line-height: 1.15;
  }

  .home-photo {
    height: clamp(26rem, 69svh, 38rem);
  }

  .home-photo img {
    object-position: 65% center;
  }

  .home-photo::after {
    position: absolute;
    inset: 49% 0 0;
    background: linear-gradient(to bottom, transparent, var(--black) 99%);
    content: '';
  }

  .home-header {
    inset: 0 var(--edge) auto;
    height: 4.5rem;
  }

  .home-logo {
    left: 0;
    top: 0.6rem;
    width: clamp(4.25rem, 12vw, 5.25rem);
  }

  .home-role {
    left: clamp(5.4rem, 16vw, 7.75rem);
    top: 1.18rem;
  }

  .home-info {
    display: grid;
    place-items: center;
    top: 0.55rem;
    right: -0.25rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .home-info img {
    width: 2.1rem;
  }

  .home-title, .home-location, .home-specialties, .home-statement, .home-social,
  .home-copyright, .home-contact, .home-footer {
    position: static;
  }

  .home-title {
    width: min(100%, 42rem);
  }

  .home-location {
    align-self: flex-end;
    width: auto;
    margin-top: 0.8rem;
    text-align: right;
  }

  .home-specialties, .home-statement {
    color: #a0a0a0;
    line-height: 1.35;
  }

  .home-specialties {
    margin-top: 0.8rem;
  }

  .home-statement {
    max-width: 43ch;
    margin-top: 1.25rem;
  }

  .home-social {
    grid-template-columns: minmax(4rem, 8rem) auto;
    gap: 0.7rem;
    margin-top: 2.5rem;
  }

  .home-social ul {
    margin-top: 0;
  }

  .home-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.7rem;
    height: auto;
    padding-top: 2.5rem;
    margin-top: auto;
  }

  .home-copyright {
    color: #8f8f8f;
    font-size: clamp(0.46rem, 2vw, 0.625rem);
  }

  .home-contact {
    flex: 0 0 clamp(4rem, 16vw, 6rem);
  }
}

@media (prefers-contrast: more) {
  .home-specialties, .home-statement, .home-copyright {
    color: var(--paper);
    text-shadow: 0 1px 3px var(--black);
  }
}
