:root {
  --bg: #f5f5f7;
  --text: #0b0b0c;
  --muted: #4f4f55;
  --panel-radius: 0px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 20% -10%, #ffffff, var(--bg));
  color: var(--text);
  font-family: "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  font-size: 18px;
  font-weight: 300;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 48px 10px;
  gap: 16px;
}

.name {
  font-size: 22px;
  font-weight: 400;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

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

.name a:hover,
.name a:focus {
  text-decoration: none;
}

.name a:visited {
  color: inherit;
}

.tagline {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.tabs {
  display: inline-flex;
  gap: 28px;
  justify-self: center;
  font-size: 17px;
  font-weight: 300;
}

.tabs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.tabs a:hover,
.tabs a:focus {
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  padding: 24px clamp(20px, 2.6vw, 64px) 64px;
  max-width: 100%;
  margin: 0 auto;
}

.panel {
  position: relative;
  border-radius: var(--panel-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 700ms ease, opacity 700ms ease;
}

.panel-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #ffffff;
  opacity: 0;
  transition: opacity 700ms ease;
}

.panel-text {
  color: var(--text);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.panel:hover .panel-overlay,
.panel:focus .panel-overlay {
  opacity: 1;
}

.panel:hover img,
.panel:focus img {
  transform: scale(1.06);
  opacity: 0;
}

.transition {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 10;
  perspective: 900px;
}

.transition-symbol {
  width: clamp(64px, 8vw, 140px);
  height: clamp(64px, 8vw, 140px);
  display: grid;
  place-items: center;
  color: var(--text);
  transform: translate3d(0, 0, 0) scale(0.1);
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transition: transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform;
}

.transition.is-active {
  opacity: 1;
  pointer-events: all;
}

.transition.is-active .transition-symbol {
  transform: translate3d(0, 0, 600px) scale(8);
}

.transition-symbol::before {
  content: attr(data-symbol);
  display: block;
  font-size: 100%;
  font-weight: 300;
  line-height: 1;
}

.page {
  max-width: 900px;
  padding: 40px 48px 80px;
  margin: 0 auto;
}

.page h1 {
  font-size: 56px;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.page p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 22px 24px 10px;
  }

  .tabs {
    justify-self: start;
    gap: 18px;
    flex-wrap: wrap;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 20px 24px 48px;
    max-width: 100%;
  }

  .page {
    padding: 28px 24px 64px;
  }

  .name {
    flex-wrap: wrap;
    gap: 6px;
  }
}
