:root {
  color-scheme: light;
  --paper: #f3f1eb;
  --ink: #171714;
  --muted: #74736c;
  --line: rgba(23, 23, 20, 0.14);
  --glow: rgba(255, 255, 255, 0.9);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 5%, var(--glow), transparent 27rem),
    var(--paper);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111210;
    --ink: #f2f0e9;
    --muted: #999b93;
    --line: rgba(242, 240, 233, 0.15);
    --glow: rgba(64, 66, 59, 0.3);
  }

  .profile:focus-visible {
    outline-color: #f2f0e9;
  }
}

a {
  color: inherit;
}

.page {
  width: 100%;
  height: 100svh;
}

.intro {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  min-height: 300px;
  padding: 28px 0 44px;
}

.brand {
  position: absolute;
  top: 20px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-style: italic;
}

.eyebrow {
  grid-column: 1;
  grid-row: 2;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  grid-column: 1;
  grid-row: 3;
  margin: 0;
  max-width: 800px;
  font-size: clamp(2.8rem, 6vw, 6.3rem);
  font-weight: 550;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.lede {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.profiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  gap: 0;
}

.profile {
  --accent: #f23d91;
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  color: #fff;
  background: #191c1d;
  text-decoration: none;
}

.profile--bru {
  --accent: #2fd3c2;
  --accent-fill: linear-gradient(90deg, #32d6b2 0%, #18c9cd 52%, #12b7df 100%);
}

.profile img,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.profile img {
  z-index: -2;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 500ms ease;
}

.profile--berta img {
  object-position: center 38%;
}

.profile--bru img {
  object-position: center;
}

.shade {
  z-index: -1;
  background:
    linear-gradient(to top, rgba(8, 10, 9, 0.93), rgba(8, 10, 9, 0.04) 65%),
    linear-gradient(to right, rgba(8, 10, 9, 0.24), transparent 50%);
}

.profile::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--accent-fill, var(--accent));
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms ease;
}

.profile-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 3.2vw, 48px);
}

.profile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.role {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.profile--bru .role {
  color: transparent;
  background: var(--accent-fill);
  background-clip: text;
  -webkit-background-clip: text;
}

.name {
  max-width: 10ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 4.7rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.destination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 42px);
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  font-size: clamp(0.76rem, 1.2vw, 0.9rem);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.arrow {
  display: inline-flex;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  color: #fff;
  transition: background 250ms ease, color 250ms ease, transform 250ms ease;
}

.arrow svg {
  display: block;
  width: 13px;
  height: 13px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile:hover img,
.profile:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.07);
}

.profile:hover::after,
.profile:focus-visible::after {
  transform: scaleX(1);
}

.profile:hover .arrow,
.profile:focus-visible .arrow {
  color: #171714;
  border-color: #fff;
  background: #fff;
  transform: translate(2px, -2px);
}

.profile:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .page {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100svh;
  }

  .intro {
    display: block;
    flex: 0 0 auto;
    min-height: 0;
    padding: 70px 0 18px;
  }

  .brand {
    top: 20px;
  }

  .eyebrow {
    margin-bottom: 8px;
  }

  h1 {
    max-width: 9.5ch;
    font-size: clamp(2.35rem, 11.8vw, 4rem);
    line-height: 0.9;
  }

  .lede {
    margin-top: 12px;
    font-size: 0.8rem;
  }

  .profiles {
    flex: 1 1 auto;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

  .profile {
    min-height: 0;
  }

  .profile--bru img {
    object-position: center 45%;
  }

  .profile-content {
    padding: 16px 20px;
  }

  .role {
    margin-bottom: 5px;
    font-size: 0.56rem;
  }

  .name {
    max-width: none;
    font-size: clamp(2rem, 9.5vw, 3.2rem);
  }

  .destination {
    margin-top: 10px;
    padding-top: 7px;
    font-size: 0.68rem;
  }

  .arrow {
    width: 25px;
    height: 25px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
