:root {
  color-scheme: dark;
  --surface: #1b1d2b;
  --text: #f7f6f5;
  --teal: #004761;
  --blue: #168de1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

a {
  color: inherit;
}

.page {
  width: min(100%, 768px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
}

.portrait {
  height: clamp(390px, 112vw, 600px);
  overflow: hidden;
  background: #06263a;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 29%;
}

.profile-card {
  position: relative;
  margin-top: -84px;
  padding: 75px clamp(25px, 6.7vw, 56px) 40px;
  border-radius: 36px 36px 0 0;
  background: var(--surface);
}

.quick-nav {
  position: absolute;
  top: -32px;
  right: clamp(25px, 6.7vw, 56px);
  left: clamp(25px, 6.7vw, 56px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 24px);
}

.nav-button,
.home-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
}

.nav-button {
  padding: 0 clamp(12px, 3.5vw, 24px);
  font-size: clamp(12px, 3.2vw, 18px);
  font-weight: 700;
  white-space: nowrap;
}

.nav-button[aria-current="page"] {
  background: #e90043;
}

.home-button {
  width: 48px;
  height: 48px;
  margin-left: auto;
  background: var(--blue);
}

.home-button svg {
  width: 32px;
  fill: #fff;
}

.nav-button:focus-visible,
.home-button:focus-visible,
.conversation-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 34px);
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: clamp(68px, 18vw, 112px);
  height: auto;
}

h1 {
  margin: 0;
  font-size: clamp(27px, 7.25vw, 52px);
  font-weight: 800;
  line-height: 1.06;
  text-transform: uppercase;
}

.role {
  margin: 34px 0 0;
  font-size: clamp(15px, 4vw, 27px);
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

.role span {
  display: inline-block;
}

.social-links {
  display: flex;
  justify-content: space-between;
  gap: clamp(12px, 4vw, 30px);
  width: min(100%, 470px);
  margin: 28px auto 38px;
  scroll-margin-top: 24px;
}

.social-icon {
  display: flex;
  flex: 0 0 clamp(40px, 11vw, 56px);
  align-items: center;
  justify-content: center;
  height: clamp(40px, 11vw, 56px);
  color: var(--surface);
}

.social-icon:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
  border-radius: 8px;
}

.social-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bio {
  margin: 0;
  font-size: clamp(15px, 3.45vw, 20px);
  font-weight: 400;
  line-height: 1.43;
}

.conversation-button {
  display: flex;
  width: fit-content;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  margin: 48px auto 0;
  padding: 0 clamp(24px, 5.5vw, 38px);
  border-radius: 14px;
  background: var(--teal);
  font-size: clamp(20px, 5vw, 29px);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid rgb(247 246 245 / 38%);
  scroll-margin-top: 24px;
}

.contact p {
  max-width: 470px;
  margin: 0;
  font-size: clamp(12px, 2.8vw, 16px);
  line-height: 1.4;
}

.phone-link {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
}

.phone-link:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
  border-radius: 8px;
}

.phone-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  fill: var(--text);
}

.work-card {
  padding-top: 56px;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 7vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-entry {
  display: flex;
  align-items: center;
  gap: clamp(14px, 4vw, 24px);
}

.work-logo {
  display: flex;
  flex: 0 0 clamp(48px, 13vw, 60px);
  width: clamp(48px, 13vw, 60px);
  height: clamp(48px, 13vw, 60px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
}

.work-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.work-logo:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

.work-details {
  min-width: 0;
}

.work-details h2 {
  margin: 0;
  font-size: clamp(15px, 4.2vw, 24px);
  font-weight: 400;
  line-height: 1.2;
}

.work-details p {
  margin: 0;
  font-size: clamp(12px, 3.3vw, 18px);
  line-height: 1.3;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portfolio-card {
  padding-top: 56px;
}

.portfolio-page .portrait {
  height: clamp(390px, 101.5vw, 540px);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2.5vw, 16px);
  margin: 0 clamp(0px, 3vw, 12px);
}

.video-card {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--teal);
}

.video-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.video-card::after {
  position: absolute;
  inset: 0;
  background: rgb(0 41 59 / 22%);
  content: "";
}

.video-card:hover img {
  transform: scale(1.04);
}

.video-card:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

.portfolio-card .contact {
  margin-top: clamp(200px, 55vw, 260px);
}

@media (max-width: 360px) {
  .profile-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .quick-nav {
    right: 18px;
    left: 18px;
    gap: 8px;
  }

  .nav-button {
    min-height: 44px;
    padding: 0 8px;
    font-size: 11px;
  }

  .home-button {
    width: 44px;
    min-height: 44px;
    height: 44px;
  }

  .home-button svg {
    width: 28px;
  }
}

@media (min-width: 600px) {
  .portrait {
    height: 540px;
  }

  .profile-card {
    margin-top: -90px;
    padding-top: 92px;
  }

  .work-card {
    padding-top: 64px;
  }

  .portfolio-card {
    padding-top: 64px;
  }

  .quick-nav {
    top: -38px;
  }

  .nav-button,
  .home-button {
    min-height: 56px;
  }

  .home-button {
    width: 56px;
    height: 56px;
  }

  .bio {
    line-height: 1.5;
  }
}
