* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus:not(:focus-visible) {
    outline: none;
}

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

:root {
    color-scheme: light;
    --color-bg: #fff;
    --color-text: #000;
    --color-surface: #eee;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --color-bg: #000;
        --color-text: #fff;
        --color-surface: #1a1a1a;
    }
}

body {
    font-family: 'Familjen Grotesk', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
}

.flex-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.self-stretch {
  align-self: stretch;
}

.justify-self-end {
  justify-self: end;
}

.justify-between {
  justify-content: space-between;
}

.sticky {
  position: sticky;
  top: 0;
  z-index: 10;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.gap-sm {
  gap: 8px;
}

.gap-md {
  gap: 16px;
}

.gap-x-sm {
  column-gap: 8px;
}

.gap-y-lg {
  row-gap: 48px;
}

.text-md {
  font-size: 22px;
  line-height: 1.4;
}

.max-w-md {
  max-width: 800px;
}

.px-md {
  padding-left: 24px;
  padding-right: 24px;
}

.my-md {
  margin-top: 24px;
  margin-bottom: 24px;
}

.mt-lg {
  margin-top: 48px;
}

.no-underline {
  color: inherit;
  text-decoration: none;
}

.text-sm {
  font-size: 18px;
}

.text-lg {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.quote {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.portrait {
  width: 380px;
  max-width: 100%;
  height: auto;
}

.text-xl {
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.font-normal {
  font-weight: 400;
}

.text-muted {
  opacity: 0.6;
}

.header {
  width: 100%;
  height: 64px;
  padding: 0 24px;
  color: #fff;
  mix-blend-mode: difference;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  align-self: stretch;
  color: inherit;
  text-decoration: none;
}

.nav-link {
  display: flex;
  align-items: center;
  align-self: stretch;
  color: inherit;
  text-decoration: none;
}

.tile {
  height: 480px;
  background-color: var(--color-surface);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 48px 0;
  overflow: hidden;
}

.tile img {
  width: 423px;
  max-width: 100%;
  height: auto;
}

.media {
  container-type: inline-size;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 80px;
  overflow: hidden;
}

.media-sm {
  padding: 60px;
}

.media-bg {
  background-size: cover;
  background-position: center;
}

.shot {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 423px;
  height: auto;
}

.shot-sm {
  max-width: 380px;
}

.tile img.shot-sm {
  width: 380px;
}

.shot-wide {
  min-width: 0;
  width: 100%;
  max-width: 1215px;
  height: auto;
  border-radius: min(16px, 1.317cqw);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.tile-wide {
  container-type: inline-size;
  align-items: center;
  padding: 48px;
}

.tile-wide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: min(16px, 1.317cqw);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.footer {
  margin-top: 96px;
  padding: 0 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.no-transitions * {
  transition: none !important;
}

@view-transition {
  navigation: auto;
}

@keyframes page-out {
  to {
    opacity: 0;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(16px);
  }
}

.header {
  view-transition-name: site-header;
}

::view-transition-group(site-header) {
  mix-blend-mode: difference;
}

::view-transition-old(root) {
  animation: page-out 0.35s ease both;
}

::view-transition-new(root) {
  animation: none;
}

main > section {
  animation: rise-in 0.5s ease both;
}

main > section:first-of-type {
  animation-delay: 0.35s;
}

main > section:nth-of-type(2) {
  animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(*),
  ::view-transition-new(*),
  main > section {
    animation: none;
  }
}

.menu-btn {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

.menu-btn::before,
.menu-btn::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s ease;
}

.menu-btn::before {
  top: 15px;
}

.menu-btn::after {
  top: 23px;
}

.menu-btn.open::before {
  transform: translateY(4px) rotate(45deg);
}

.menu-btn.open::after {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 960px) {
  .sm-hide {
    display: none;
  }

  .header {
    display: flex;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .text-xl {
    font-size: clamp(32px, 8vw, 48px);
  }

  .text-md {
    font-size: 18px;
  }

  .quote {
    font-size: 22px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    order: -1;
  }

  .tile {
    height: 320px;
  }

  .media {
    padding: 32px;
    gap: 12px;
  }

  .header {
    mix-blend-mode: normal;
    background-color: var(--color-bg);
    color: var(--color-text);
  }

  ::view-transition-group(site-header) {
    mix-blend-mode: normal;
  }

  .menu-btn {
    display: block;
  }

  .logo,
  .menu-btn {
    position: relative;
    z-index: 2;
  }

  .nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--color-bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav .nav-link {
    align-self: center;
    font-size: 32px;
    transform: translateY(16px);
    transition: transform 0.35s ease;
  }

  .nav.open .nav-link {
    transform: translateY(0);
  }
}
