/* ---------------------------------
   Design tokens
--------------------------------- */

:root {
  --background: #f0ede6;
  --surface: #e5e0d6;
  --foreground: #171714;
  --muted: #68655f;
  --line: rgba(23, 23, 20, 0.2);

  --page-padding: clamp(24px, 4vw, 64px);
  --header-height: 92px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  interpolate-size: allow-keywords;
  color-scheme: light;
}

html[data-theme="dark"] {
  --background: #1a1919;
  --surface: #1c1b18;
  --foreground: #f0ede6;
  --muted: #aaa69e;
  --line: rgba(240, 237, 230, 0.2);

  color-scheme: dark;
}


/* ---------------------------------
   Reset and base styles
--------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;

  background: var(--background);
  color: var(--foreground);

  font-family: "Roboto", Arial, Helvetica, sans-serif;

  transition:
    background-color 450ms var(--ease),
    color 450ms var(--ease);
}

body.menu-is-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
summary {
  color: inherit;
  font: inherit;
}

button,
summary,
label {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible + .theme-switch__track {
  outline: 2px solid var(--foreground);
  outline-offset: 5px;
}


/* ---------------------------------
   Header
--------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: var(--header-height);
  padding: 20px var(--page-padding);

  transform: translateY(0);

  transition:
    transform 400ms var(--ease),
    background-color 450ms var(--ease),
    color 450ms var(--ease);
}

.site-header[data-hidden="true"] {
  transform: translateY(-100%);
}


/* ---------------------------------
   Brand
--------------------------------- */

.brand {
  position: relative;
  z-index: 60;

  display: flex;
  align-items: center;
  gap: 13px;

  font-size: 24px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.brand__logo {
  width: 75px;
  height: 75px;

  object-fit: contain;
}

.brand__logo--bright {
  display: none;
}

html[data-theme="dark"] .brand__logo--dark {
  display: none;
}

html[data-theme="dark"] .brand__logo--bright {
  display: block;
}


/* ---------------------------------
   Shared navigation
--------------------------------- */

.primary-navigation {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
}

.navigation-list {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);

  margin: 0;
  padding: 0;

  list-style: none;
}

.navigation-list a {
  position: relative;

  display: flex;
  padding: 8px 0;

  font-size: 18px;
  letter-spacing: 0.08em;
}

.navigation-list a::after {
  content: "";

  position: absolute;
  right: 100%;
  bottom: 3px;
  left: 0;

  height: 1px;
  background: currentColor;

  transition: right 350ms var(--ease);
}

.navigation-list a:hover::after,
.navigation-list a:focus-visible::after {
  right: 0;
}


/* ---------------------------------
   Settings
--------------------------------- */

.settings {
  position: relative;
}

.settings summary {
  position: relative;

  padding: 8px 0;

  cursor: pointer;
  list-style: none;

  font-size: 18px;
  letter-spacing: 0.08em;
}

.settings summary::-webkit-details-marker {
  display: none;
}

.settings summary::before {
  content: "";

  position: absolute;
  right: 100%;
  bottom: 3px;
  left: 0;

  height: 1px;
  background: currentColor;

  transition: right 350ms var(--ease);
}

.settings summary::after {
  content: "+";

  display: inline-block;
  margin-left: 7px;

  transition: transform 300ms var(--ease);
}

.settings summary:hover::before,
.settings summary:focus-visible::before {
  right: 0;
}

.settings[open] summary::after {
  transform: rotate(45deg);
}

.settings-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  width: 230px;
  padding: 20px;

  border: 1px solid var(--line);
  background: var(--surface);
  background: color-mix(
    in srgb,
    var(--surface) 90%,
    transparent
  );

  backdrop-filter: blur(18px);
}

.settings-panel__title {
  margin: 0 0 14px;
  padding-bottom: 13px;

  border-bottom: 1px solid var(--line);
  color: var(--muted);

  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


/* ---------------------------------
   Theme switch
--------------------------------- */

.theme-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  cursor: pointer;

  font-size: 12px;
}

.theme-switch__input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  overflow: hidden;
}

.theme-switch__track {
  position: relative;
  flex: 0 0 auto;

  width: 48px;
  height: 26px;
  padding: 3px;

  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);

  transition:
    background-color 300ms var(--ease),
    border-color 300ms var(--ease);
}

.theme-switch__thumb {
  position: relative;

  display: grid;
  place-items: center;

  width: 18px;
  height: 18px;

  border-radius: 50%;
  background: var(--foreground);
  color: var(--background);

  transition:
    transform 350ms var(--ease),
    background-color 300ms var(--ease),
    color 300ms var(--ease);
}

.theme-switch__sun,
.theme-switch__moon {
  position: absolute;

  font-size: 11px;
  line-height: 1;

  transition:
    opacity 200ms ease,
    transform 300ms var(--ease);
}

.theme-switch__moon {
  opacity: 0;
  transform: rotate(-30deg) scale(0.7);
}

.theme-switch__input:checked
  + .theme-switch__track
  .theme-switch__thumb {
  transform: translateX(22px);
}

.theme-switch__input:checked
  + .theme-switch__track
  .theme-switch__sun {
  opacity: 0;
  transform: rotate(30deg) scale(0.7);
}

.theme-switch__input:checked
  + .theme-switch__track
  .theme-switch__moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}


/* ---------------------------------
   Mobile trigger
--------------------------------- */

.menu-trigger {
  display: none;

  border: 0;
  background: transparent;
  cursor: pointer;
}

.navigation-information {
  display: none;
}


/* ---------------------------------
   Hero
--------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 100svh;
  padding:
    150px
    var(--page-padding)
    42px;
}

.hero h1 {
  max-width: 1200px;
  margin: auto 0;

  font-size: clamp(62px, 9.7vw, 154px);
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-weight: 400;
}

.hero-footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-footer a {
  padding-bottom: 6px;

  border-bottom: 1px solid var(--foreground);

  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ---------------------------------
   Content sections
--------------------------------- */

.content-section {
  min-height: 70vh;
  margin-inline: var(--page-padding);
  padding: 30px 0 90px;

  border-top: 1px solid var(--line);

  scroll-margin-top: var(--header-height);
}

.content-section h2 {
  margin: 0;

  font-size: clamp(50px, 8vw, 120px);
  font-weight: 400;
}


/* ---------------------------------
   Content-section images
--------------------------------- */

.section-image {
  display: block;
  margin: 48px 0 0;

  object-fit: cover;
  border-radius: 10px;
}

.section-image--portrait {
  width: min(75%, 420px);
  aspect-ratio: 4 / 5;
}


/* ---------------------------------
   Split content sections
--------------------------------- */

.content-section--split {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  align-items: center;

  column-gap: clamp(50px, 8vw, 140px);
  row-gap: 48px;
}

.content-section--split h2 {
  grid-column: 1 / -1;
  grid-row: 1;
}


/* ---------------------------------
   About
--------------------------------- */

#about .section-image {
  grid-column: 1;
  grid-row: 2;

  width: min(75%, 420px);
  margin: 0;

  justify-self: start;
}

#about .section-copy {
  grid-column: 2;
  grid-row: 2;

  align-self: center;
  justify-self: start;

  transform: translateX(
    clamp(-200px, -10vw, -60px)
  );
}

.section-copy {
  max-width: 830px;
  margin: 0;

  color: var(--foreground);

  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.7;
}


/* ---------------------------------
   Tools interlude
--------------------------------- */

.tools-section {
  display: grid;
  grid-template-columns:
    minmax(320px, 520px)
    minmax(260px, 520px);

  align-items: center;
  justify-content: space-between;

  column-gap: clamp(60px, 9vw, 160px);
  row-gap: 24px;

  min-height: 70svh;
  margin-inline: var(--page-padding);
  padding: 80px 0;

  border-top: 1px solid var(--line);
}

.tools-wheel {
  --wheel-angle: 0deg;
  --wheel-radius: 180px;

  position: relative;

  width: min(100%, 520px);
  aspect-ratio: 1;
  margin: 0;

  justify-self: start;

  cursor: grab;
  touch-action: none;
  user-select: none;
}

.tools-wheel[data-dragging="true"] {
  cursor: grabbing;
}

.tools-wheel::before {
  content: "";

  position: absolute;
  inset: 10%;

  border: 1px solid var(--line);
  border-radius: 50%;
}

.tools-wheel__orbit {
  position: absolute;
  inset: 0;

  margin: 0;
  padding: 0;

  list-style: none;

  transform: rotate(var(--wheel-angle));
  transform-origin: center;
}

.tools-wheel__item {
  position: absolute;
  top: 50%;
  left: 50%;

  display: grid;
  place-items: center;

  width: clamp(48px, 5vw, 72px);
  height: clamp(48px, 5vw, 72px);

  transform:
    translate(-50%, -50%)
    rotate(var(--item-angle))
    translateY(
      calc(-1 * var(--wheel-radius))
    );

  border-radius: 50%;
}

.tools-wheel__item img {
  width: clamp(30px, 3.4vw, 48px);
  height: clamp(30px, 3.4vw, 48px);

  object-fit: contain;
  pointer-events: none;

  transform: rotate(
    calc(
      -1 * var(--item-angle) -
      var(--wheel-angle)
    )
  );
}

.tools-wheel__icon--figma {
  scale: 2;
}

.tools-wheel__icon--wp {
  scale: 1.5;
}

.tools-wheel__title {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;

  width: 40%;
  margin: 0;

  transform: translate(-50%, -50%);

  color: var(--foreground);

  font-size: clamp(16px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;

  pointer-events: none;
}

.tools-wheel__icon--bright {
  display: none;
}

html[data-theme="dark"]
  .tools-wheel__icon--dark {
  display: none;
}

html[data-theme="dark"]
  .tools-wheel__icon--bright {
  display: block;
}

.tools-wheel__button {
  display: grid;
  place-items: center;

  width: 100%;
  height: 100%;
  padding: 0;

  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;

  transition:
    scale 300ms var(--ease),
    opacity 300ms var(--ease);
}

.tools-wheel__button:hover,
.tools-wheel__button:focus-visible {
  scale: 1.12;
}

.tools-wheel__button[aria-expanded="true"] {
  scale: 1.12;
}

.tools-information {
  grid-column: 2;

  width: 100%;
  max-width: 520px;
  min-height: 240px;

  opacity: 0;
  translate: 0 18px;

  transition:
    opacity 500ms var(--ease),
    translate 500ms var(--ease);
}

.tools-information[data-open="true"] {
  opacity: 1;
  translate: 0 0;
}

.tools-information__title {
  margin: 0 0 24px;

  font-size: clamp(36px, 5vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tools-information__description {
  max-width: 520px;
  margin: 0;

  color: var(--muted);

  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.7;
}


/* ---------------------------------
   Projects
--------------------------------- */

#work .project-links {
  grid-column: 1;
  grid-row: 2;

  align-self: center;
  justify-self: start;

  margin: 0;
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 18px;

  max-width: 430px;
  margin: 0;
  padding-left: 0;

  color: var(--muted);

  font-size: clamp(16px, 1.3vw, 19px);
  list-style: none;
}

.project-item summary {
  position: relative;

  padding-left: 24px;

  color: var(--foreground);
  cursor: pointer;
  list-style: none;

  transition:
    translate 300ms var(--ease),
    color 300ms var(--ease);
}

.project-item[data-preview="true"] summary {
  translate: 8px 0;
}

.project-item summary::-webkit-details-marker {
  display: none;
}

.project-item summary::before {
  content: "▸";

  position: absolute;
  top: 0;
  left: 0;

  transform: rotate(0deg);
  transform-origin: center;

  transition: transform 300ms var(--ease);
}

.project-item[open] summary::before {
  transform: rotate(90deg);
}

.project-item[open] summary span::after {
  right: 0;
}

.project-item__content {
  padding: 14px 0 8px 24px;

  transform: translateY(-8px);

  transition:
    transform 500ms var(--ease);
}

.project-item[open] .project-item__content {
  transform: translateY(0);
}

.project-item__content p {
  margin: 0 0 14px;

  color: var(--muted);

  font-size: 0.85em;
  line-height: 1.65;
}

.project-item__content a {
  display: inline-block;
  padding-bottom: 3px;

  border-bottom: 1px solid currentColor;
  color: var(--foreground);

  font-size: 0.7em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-item__content a span {
  margin-left: 8px;
}

.project-item summary span {
  position: relative;

  display: inline-block;
  padding-bottom: 3px;
}

.project-item summary span::after {
  content: "";

  position: absolute;
  right: 100%;
  bottom: 0;
  left: 0;

  height: 1px;
  background: currentColor;

  transition: right 350ms var(--ease);
}

.project-item::details-content {
  block-size: 0;
  overflow: hidden;

  opacity: 0;

  transition:
    block-size 500ms var(--ease),
    opacity 350ms ease,
    content-visibility 500ms;

  transition-behavior: allow-discrete;
}

.project-item[open]::details-content {
  block-size: auto;
  opacity: 1;
}

.project-item summary:hover span::after,
.project-item summary:focus-visible span::after {
  right: 0;
}


/* ---------------------------------
   Project carousel
--------------------------------- */

#work .project-carousel {
  grid-column: 2;
  grid-row: 2;

  align-self: center;
  justify-self: end;

  margin: 0 76px 0 0;
}

.project-carousel {
  position: relative;

  width: min(100%, 520px);
  aspect-ratio: 1;
  margin: 0;

  overflow: hidden;
  border-radius: 10px;
  background: var(--background);
}

.project-carousel__slides {
  position: relative;

  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;

  list-style: none;
}

.project-carousel__slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 1250ms var(--ease),
    visibility 1250ms;
}

.project-carousel__slide[data-active="true"] {
  opacity: 1;
  visibility: visible;
}

.project-carousel__slide img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  padding: clamp(30px, 5vw, 70px);
}

.project-carousel__status {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.project-carousel__logo--bright {
  display: none;
}

html[data-theme="dark"]
  .project-carousel__logo--dark {
  display: none;
}

html[data-theme="dark"]
  .project-carousel__logo--bright {
  display: block;
}


/* ---------------------------------
   Contact
--------------------------------- */

.contact-icon--github-bright {
  display: none;
}

html[data-theme="dark"]
  .contact-icon--github-dark {
  display: none;
}

html[data-theme="dark"]
  .contact-icon--github-bright {
  display: block;
}

.availability-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin: 48px 0 0;
}

.availability-status__dot {
  width: 8px;
  height: 8px;
  margin-left: 4px;

  border-radius: 50%;
  background: #4f8a63;

  animation:
    availability-pulse
    2.2s
    ease-in-out
    infinite;
}

@keyframes availability-pulse {
  0%,
  100% {
    transform: scale(0.85);

    background: #3f7050;

    box-shadow:
      0 0 0 2px
      rgba(79, 138, 99, 0.1);

    filter: brightness(0.85);
  }

  50% {
    transform: scale(1.35);

    background: #29a552;

    box-shadow:
      0 0 0 5px rgba(61, 153, 92, 0.25),
      0 0 12px rgba(111, 189, 137, 0.55);

    filter: brightness(1.2);
  }
}

.availability-status:hover
  .availability-status__dot {
  animation: none;

  transform: scale(1.35);

  background: #29a552;

  box-shadow:
    0 0 0 5px rgba(61, 153, 92, 0.25),
    0 0 12px rgba(111, 189, 137, 0.55);

  filter: brightness(1.2);
}

.contact-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 98px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.contact-links a {
  display: inline-flex;
  align-items: center;

  width: fit-content;
  margin: 0;

  transition:
    transform 300ms var(--ease);
}

.contact-links a:hover,
.contact-links a:focus-visible {
  transform: scale(1.1);
}

.contact-icon {
  width: 125px;
  margin: 24px 0 0;

  object-fit: contain;
}


/* ---------------------------------
   Footer
--------------------------------- */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 160px;

  margin-inline: var(--page-padding);
  padding: 160px 0 30px;

  border-top: 1px solid var(--line);
}

.site-footer__message {
  max-width: 1500px;
  margin: 0;

  font-size: clamp(64px, 10vw, 170px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.site-footer__message em {
  position: relative;
  display: inline-block;

  font-weight: 400;
}

.site-footer__message em::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: -2px;
  left: -4px;

  height: 3px;

  background: linear-gradient(
    to right,
    currentColor 0%,
    currentColor 2%,
    transparent 7%,
    transparent 12%,
    currentColor 19%,
    currentColor 100%
  );

  transform: scaleX(0);
  transform-origin: left;

  transition:
    transform 5s var(--ease);
}

.site-footer[data-visible="true"]
  .site-footer__message em::after {
  transform: scaleX(1);
}

.copyright {
  margin: 0;

  color: var(--muted);

  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ---------------------------------
   Scroll reveals
--------------------------------- */

.scroll-reveal {
  opacity: 0;
  translate: 0 32px;

  transition:
    opacity 900ms var(--ease),
    translate 900ms var(--ease);
}

.scroll-reveal[data-visible="true"] {
  opacity: 1;
  translate: 0 0;
}


/* ---------------------------------
   Masked heading entrance
--------------------------------- */

.heading-reveal {
  opacity: 0;
  translate: 0 0.45em;
  clip-path: inset(100% 0 0 0);

  transition:
    opacity 500ms ease,
    translate 900ms var(--ease),
    clip-path 900ms var(--ease);
}

.heading-reveal[data-visible="true"] {
  opacity: 1;
  translate: 0 0;
  clip-path: inset(0);
}


/* ---------------------------------
   Phone layout
--------------------------------- */

@media (max-width: 720px) {
  :root {
    --page-padding: 24px;
    --header-height: 76px;
  }

  .site-header,
  .site-header[data-hidden="true"] {
    min-height: var(--header-height);
    padding: 18px 22px;

    border-bottom: 0;
    background: transparent;

    transform: none;
    isolation: isolate;
  }

  .site-header::before {
    content: "";

    position: absolute;
    inset: -2px 0 -28px;
    z-index: -1;

    background: color-mix(
      in srgb,
      var(--background) 60%,
      transparent
    );

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);

    -webkit-mask-image: linear-gradient(
      to bottom,
      black 0%,
      transparent 100%
    );

    mask-image: linear-gradient(
      to bottom,
      black 0%,
      transparent 100%
    );

    pointer-events: none;
  }

  .brand__name {
    display: none;
  }

  .brand__logo {
    width: 45px;
    height: 45px;
  }

  .menu-trigger {
    position: relative;
    z-index: 60;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 8px 0;

    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .menu-trigger__icon {
    position: relative;

    width: 20px;
    height: 1px;

    background: currentColor;

    transition:
      transform 300ms var(--ease);
  }

  .menu-trigger__icon::after {
    content: "";

    position: absolute;
    top: 5px;
    left: 0;

    width: 20px;
    height: 1px;

    background: currentColor;

    transition:
      top 300ms var(--ease),
      transform 300ms var(--ease);
  }

  .menu-trigger[aria-expanded="true"]
    .menu-trigger__icon {
    transform: rotate(45deg);
  }

  .menu-trigger[aria-expanded="true"]
    .menu-trigger__icon::after {
    top: 0;
    transform: rotate(90deg);
  }

  .primary-navigation {
    position: fixed;
    inset: 0;
    z-index: 40;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 100%;
    height: 100dvh;
    padding: 116px 24px 30px;
    overflow-y: auto;

    background-color: var(--background);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px);
    pointer-events: none;

    transition:
      opacity 400ms var(--ease),
      transform 400ms var(--ease),
      visibility 400ms;
  }

  .primary-navigation[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .navigation-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .navigation-list a {
    align-items: flex-start;
    gap: 0;

    padding: 6px 0;

    font-size: clamp(48px, 15vw, 70px);
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .navigation-list a::after {
    display: none;
  }

  .settings {
    margin-top: auto;
  }

  .settings summary {
    padding: 14px 0;

    border-bottom: 1px solid var(--line);
    color: var(--muted);

    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .settings summary::before {
    display: none;
  }

  .settings-panel {
    position: static;

    width: 100%;
    padding: 18px 0 8px;

    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .settings-panel__title {
    position: absolute;

    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;

    border: 0;
    clip-path: inset(50%);
  }

  .theme-switch {
    justify-content: flex-start;
  }

  .navigation-information {
    display: block;

    margin-top: 24px;
    padding-top: 18px;

    border-top: 1px solid var(--line);
    color: var(--muted);

    font-size: 9px;
    font-style: normal;
    line-height: 1.6;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .hero {
    padding:
      118px
      var(--page-padding)
      27px;
  }

  .hero h1 {
    font-size: clamp(54px, 18vw, 82px);
    line-height: 0.88;
  }

  .hero-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-image {
    margin-top: 34px;
  }

  .section-image--portrait {
    width: 100%;
    margin: 34px 0 0;
  }

  .content-section--split {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .content-section--split h2 {
    grid-column: 1;
    grid-row: 1;
  }

  #about .section-image {
    grid-column: 1;
    grid-row: 2;

    width: 100%;
    margin: 0;

    justify-self: stretch;
  }

  #about .section-copy {
    grid-column: 1;
    grid-row: 3;

    width: 100%;
    max-width: none;
    margin: 0;

    transform: none;
  }

  .tools-section {
    grid-template-columns: 1fr;

    min-height: auto;
    padding: 64px 0;

    row-gap: 48px;
  }

  .tools-wheel {
    grid-column: 1;
    grid-row: 1;

    width: min(100%, 420px);

    justify-self: center;
  }

  .tools-information {
    grid-column: 1;
    grid-row: 2;

    max-width: none;
    min-height: 210px;
  }

  #work .project-carousel {
    grid-column: 1;
    grid-row: 2;

    width: 100%;
    margin: 0;

    align-self: start;
    justify-self: stretch;
  }

  #work .project-links {
    grid-column: 1;
    grid-row: 3;

    width: 100%;
    max-width: none;
    margin: 0;

    align-self: start;
    justify-self: start;
  }

  .contact-links {
    gap: clamp(28px, 10vw, 56px);
  }

  .contact-icon {
    width: clamp(70px, 23vw, 105px);
  }

  .availability-status {
    align-items: flex-start;
  }

  .site-footer {
    min-height: 50svh;
    padding: 54px 0 24px;

    gap: 60px;
  }

  .site-footer__message {
    font-size: clamp(52px, 17vw, 80px);
    line-height: 0.9;
  }

  .copyright {
    margin: 0;
  }
}


/* ---------------------------------
   Reduced motion
--------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .availability-status__dot {
    animation: none;
  }

  .contact-links a {
    transform: none;
  }

  .scroll-reveal {
    opacity: 1;
    translate: none;
  }

  .heading-reveal {
    opacity: 1;
    translate: none;
    clip-path: none;
  }

  .site-footer__message em::after {
    transform: scaleX(1);
  }
}