:root {
  --navy-950: #061827;
  --navy-900: #0a2239;
  --navy-700: #194b6e;
  --gold: #c9a45b;
  --gold-soft: #e2c98f;
  --red: #c9183a;
  --paper: #f3f0e9;
  --white: #ffffff;
  --ink: #102536;
  --muted: #6b747c;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy-950);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--navy-950);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

.gateway {
  display: grid;
  width: 100%;
  min-height: 100svh;
  grid-template-columns: minmax(570px, 0.92fr) minmax(500px, 1.08fr);
  background: var(--paper);
}

.content-panel {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  padding: clamp(34px, 4.5vw, 70px) clamp(42px, 6vw, 100px) 34px;
  flex-direction: column;
  background:
    radial-gradient(circle at 5% 8%, rgba(201, 164, 91, 0.12), transparent 22%),
    var(--paper);
}

.content-panel::after {
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.32);
  content: "";
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.topline-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.identity {
  margin: clamp(54px, 8vh, 100px) 0 0;
}

.brand-heading {
  margin: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: min(100%, 580px);
  height: auto;
}

.intro {
  max-width: 570px;
  margin: 30px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.6;
}

.mobile-portrait {
  display: none;
}

.selection {
  margin-top: auto;
  padding-top: 42px;
}

.prompt {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.73rem;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
  display: grid;
  min-height: 146px;
  padding: 22px;
  align-content: start;
  color: var(--white);
  overflow: hidden;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.choice::before {
  position: absolute;
  width: 120px;
  height: 120px;
  right: -72px;
  bottom: -72px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
  transition: transform 250ms ease;
}

.choice-medical {
  background: linear-gradient(145deg, #d51a3e, #aa112d);
}

.choice-legal {
  background: linear-gradient(145deg, var(--navy-900), var(--navy-700));
}

.choice:hover,
.choice:focus-visible {
  box-shadow: 0 18px 40px rgba(6, 24, 39, 0.2);
  outline: none;
  transform: translateY(-4px);
}

.choice:hover::before,
.choice:focus-visible::before {
  transform: scale(1.45);
}

.choice-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.choice-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.choice-copy {
  display: grid;
}

.choice-copy small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.choice-copy strong {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}

.choice-copy > span {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.65rem;
  line-height: 1.35;
}

.choice-arrow {
  font-size: 1.15rem;
  transition: transform 180ms ease;
}

.choice:hover .choice-arrow,
.choice:focus-visible .choice-arrow {
  transform: translate(3px, -3px);
}

.principles {
  display: flex;
  padding: 0;
  margin-top: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  list-style: none;
  text-transform: uppercase;
}

.principles li {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.principles span {
  color: #96763c;
  font-size: 0.55rem;
}

.portrait-panel {
  position: relative;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: var(--navy-950);
}

.portrait-panel::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 9px;
  height: 100%;
  background: linear-gradient(var(--red) 0 50%, var(--gold) 50% 100%);
  content: "";
}

.portrait-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.01);
}

.portrait-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 24, 39, 0.04) 45%, rgba(6, 24, 39, 0.86) 100%),
    linear-gradient(90deg, rgba(6, 24, 39, 0.2), transparent 35%);
}

.portrait-caption {
  position: absolute;
  right: clamp(32px, 5vw, 76px);
  bottom: clamp(34px, 6vh, 70px);
  left: clamp(38px, 6vw, 88px);
  margin: 0;
  color: var(--white);
}

.portrait-caption span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.portrait-caption strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
}

@media (max-width: 1080px) {
  .gateway {
    grid-template-columns: minmax(520px, 1fr) minmax(360px, 0.72fr);
  }

  .content-panel {
    padding-inline: 48px;
  }

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

  .choice {
    min-height: 108px;
  }

  .choice-copy > span {
    margin-top: 5px;
  }
}

@media (max-width: 760px) {
  .gateway {
    display: block;
    min-height: 100svh;
  }

  .content-panel {
    display: block;
    min-height: 100svh;
    padding: 24px 20px 28px;
  }

  .content-panel::after {
    display: none;
  }

  .topline {
    justify-content: center;
    text-align: center;
  }

  .topline-rule {
    display: none;
  }

  .topline p {
    font-size: 0.56rem;
    line-height: 1.55;
    letter-spacing: 0.17em;
  }

  .identity {
    margin-top: 38px;
  }

  .brand-logo {
    width: 100%;
  }

  .intro {
    max-width: none;
    margin-top: 24px;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .mobile-portrait {
    position: relative;
    display: block;
    width: 100%;
    margin: 28px 0 0;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--navy-950);
  }

  .mobile-portrait::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(6, 24, 39, 0.88) 100%);
    content: "";
  }

  .mobile-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% 27%;
  }

  .mobile-portrait figcaption {
    position: absolute;
    z-index: 1;
    right: 18px;
    bottom: 17px;
    left: 18px;
    color: var(--white);
  }

  .mobile-portrait figcaption span {
    display: block;
    margin-bottom: 5px;
    color: var(--gold-soft);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .mobile-portrait figcaption strong {
    display: block;
    max-width: 290px;
    font-family: var(--serif);
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    font-weight: 400;
    line-height: 1.25;
  }

  .selection {
    margin-top: 30px;
    padding-top: 0;
  }

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

  .choice {
    min-height: 108px;
    padding: 19px;
  }

  .principles {
    margin: 27px 0 0;
    padding: 20px 0 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    border-top: 1px solid rgba(16, 37, 54, 0.13);
  }

  .portrait-panel {
    display: none;
  }
}

@media (max-width: 350px) {
  .content-panel {
    padding-inline: 16px;
  }

  .identity {
    margin-top: 32px;
  }

  .intro {
    font-size: 0.88rem;
  }

  .choice {
    padding-inline: 16px;
  }

  .choice-copy > span {
    font-size: 0.61rem;
  }
}

@media (max-height: 820px) and (min-width: 761px) {
  .content-panel {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .identity {
    margin-top: 28px;
  }

  .brand-logo {
    width: min(100%, 500px);
  }

  .intro {
    margin-top: 10px;
    font-size: 1rem;
  }

  .selection {
    padding-top: 22px;
  }

  .choice {
    min-height: 106px;
    padding: 17px;
  }

  .choice-copy > span {
    margin-top: 4px;
  }

  .principles {
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .choice,
  .choice::before,
  .choice-arrow {
    transition: none;
  }
}
