:root {
  --navy: #1a285e;
  --navy-deep: #111c49;
  --blue: #346eb2;
  --cyan: #2fc1df;
  --orange: #f3a000;
  --white: #ffffff;
  --soft-white: #f7f9ff;
  --muted: #c7d0e4;
  --shadow: 0 28px 75px rgba(2, 11, 41, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy-deep);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(47, 193, 223, 0.07) 0 1px, transparent 1px 96px),
    linear-gradient(155deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 132px),
    linear-gradient(135deg, #0c1737 0%, var(--navy-deep) 48%, #132454 100%);
  font-family: "Avenir Next", Avenir, Montserrat, Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(1320px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(28px, 4vh, 48px) clamp(22px, 4.2vw, 68px) clamp(22px, 3vh, 34px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(22px, 3vh, 34px);
}

.brand-header {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}

.brand-header::after {
  content: "";
  width: 84px;
  height: 3px;
  margin-top: 17px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.company-logo {
  width: clamp(190px, 20vw, 275px);
  height: auto;
  margin-bottom: clamp(16px, 2.2vh, 26px);
  object-fit: contain;
}

.brand-kicker {
  margin: 0 0 7px;
  color: var(--cyan);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.24em;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(1.45rem, 2.05vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.intro {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.profile-grid {
  min-height: 430px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
}

.profile-card {
  position: relative;
  min-height: min(49vh, 530px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(22px, 2.2vw, 34px);
  box-shadow: var(--shadow);
  text-decoration: none;
  outline: none;
  transform: translateZ(0);
}

.profile-card > img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1), filter 600ms ease;
}

.profile-card--doctor > img {
  object-position: 51% center;
}

.profile-card--patient > img {
  object-position: 53% 50%;
}

.profile-card__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 16, 51, 0.05) 5%, rgba(8, 20, 58, 0.26) 42%, rgba(8, 18, 50, 0.95) 100%),
    linear-gradient(90deg, rgba(13, 30, 77, 0.72), transparent 70%);
  transition: opacity 350ms ease;
}

.profile-card--patient .profile-card__veil {
  background:
    linear-gradient(180deg, rgba(8, 25, 58, 0.02) 5%, rgba(8, 22, 58, 0.2) 42%, rgba(8, 18, 50, 0.94) 100%),
    linear-gradient(90deg, rgba(26, 40, 94, 0.6), transparent 74%);
}

.profile-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.profile-card--patient .profile-card__accent {
  background: linear-gradient(90deg, var(--orange), #ffd472);
}

.profile-card__content {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  align-content: end;
  padding: clamp(25px, 3.2vw, 44px);
}

.profile-card__eyebrow {
  margin-bottom: 9px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.profile-card--patient .profile-card__eyebrow {
  color: #ffc457;
}

.profile-card__title {
  display: block;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.profile-card__copy {
  display: block;
  max-width: 440px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.81);
  font-size: clamp(0.95rem, 1.1vw, 1.07rem);
  line-height: 1.48;
}

.profile-card__action {
  width: fit-content;
  min-height: 46px;
  margin-top: 20px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 999px;
  color: var(--navy-deep);
  background: var(--white);
  font-size: 0.94rem;
  font-weight: 750;
  box-shadow: 0 10px 28px rgba(4, 12, 38, 0.2);
  transition: transform 250ms ease, background-color 250ms ease;
}

.profile-card--patient .profile-card__action {
  background: var(--orange);
}

.profile-card__action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 250ms ease;
}

.profile-card:hover > img,
.profile-card:focus-visible > img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.profile-card:hover .profile-card__action,
.profile-card:focus-visible .profile-card__action {
  transform: translateY(-2px);
}

.profile-card:hover .profile-card__action svg,
.profile-card:focus-visible .profile-card__action svg {
  transform: translateX(4px);
}

.profile-card:focus-visible {
  box-shadow: 0 0 0 4px var(--soft-white), 0 0 0 8px var(--cyan), var(--shadow);
}

.site-footer {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  letter-spacing: 0.035em;
  text-align: center;
}

.footer-line {
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 820px) {
  .page-shell {
    padding-inline: 18px;
    gap: 24px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .profile-card {
    min-height: 460px;
  }

  .profile-card__title br {
    display: none;
  }

  .site-footer {
    padding: 4px 0 8px;
    flex-direction: column;
    gap: 5px;
  }

  .footer-line {
    display: none;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding-top: 24px;
  }

  .company-logo {
    width: 205px;
    margin-bottom: 17px;
  }

  h1 {
    max-width: 350px;
    font-size: 1.34rem;
  }

  .intro {
    margin-top: 8px;
    font-size: 0.95rem;
  }

  .brand-header::after {
    margin-top: 14px;
  }

  .profile-card {
    min-height: 415px;
    border-radius: 24px;
  }

  .profile-card__content {
    padding: 25px;
  }

  .profile-card__title {
    font-size: 2.45rem;
  }

  .profile-card__copy {
    max-width: 330px;
  }
}

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