:root {

  --ink:
    #182432;

  --muted:
    #667383;

  --line:
    #d9dee4;

  --ivory:
    #f7f4ed;

  --paper:
    #ffffff;

  --blue:
    #314e68;

  --blue-dark:
    #20384e;

  --gold:
    #a58a52;

  --soft-blue:
    #edf2f6;

  --shadow:
    0 18px 50px
    rgba(
      24,
      36,
      50,
      0.07
    );
}


* {

  box-sizing:
    border-box;
}


body {

  margin: 0;

  min-height: 100vh;

  color:
    var(--ink);

  background:
    linear-gradient(
      180deg,
      #f8f6f0 0%,
      #f2f3f4 100%
    );

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


.library-shell {

  width:
    min(
      1280px,
      calc(100% - 48px)
    );

  margin:
    0 auto;

  padding:
    58px 0 90px;
}


.library-header {

  max-width:
    760px;

  margin-bottom:
    54px;
}


.eyebrow {

  margin:
    0 0 10px;

  color:
    var(--gold);

  font-size:
    0.72rem;

  font-weight:
    800;

  letter-spacing:
    0.14em;
}


.library-header h1 {

  margin:
    0;

  color:
    var(--ink);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      2.8rem,
      6vw,
      5rem
    );

  font-weight:
    500;

  letter-spacing:
    -0.04em;
}


.library-header > p:last-child {

  max-width:
    650px;

  margin:
    16px 0 0;

  color:
    var(--muted);

  font-size:
    1.08rem;

  line-height:
    1.65;
}


/*
 * ============================================================
 * SPECIALTY SUITES
 * ============================================================
 */


.library-shell section > h2 {

  margin:
    0 0 24px;

  color:
    var(--ink);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      1.8rem,
      3vw,
      2.5rem
    );

  font-weight:
    500;

  letter-spacing:
    -0.025em;
}


.suite-grid {

  display:
    grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(
        270px,
        1fr
      )
    );

  gap:
    18px;
}


/*
 * ============================================================
 * SUITE CARD
 * ============================================================
 */


.suite-card {

  position:
    relative;

  min-height:
    300px;

  overflow:
    hidden;

  display:
    flex;

  flex-direction:
    column;

  justify-content:
    flex-end;

  border:
    1px solid
    var(--line);

  border-radius:
    18px;

  color:
    var(--ink);

  text-decoration:
    none;

  background:
    rgba(
      255,
      255,
      255,
      0.88
    );

  box-shadow:
    0 8px 28px
    rgba(
      24,
      36,
      50,
      0.035
    );

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}


.suite-card:hover {

  transform:
    translateY(-3px);

  border-color:
    rgba(
      49,
      78,
      104,
      0.35
    );

  box-shadow:
    var(--shadow);
}


.suite-card:focus-visible {

  outline:
    3px solid
    rgba(
      49,
      78,
      104,
      0.35
    );

  outline-offset:
    3px;
}


/*
 * ============================================================
 * VISUAL FIELD
 * ============================================================
 */


.suite-card-visual {

  position:
    absolute;

  inset:
    0;

  overflow:
    hidden;

  pointer-events:
    none;
}


.suite-card-visual::after {

  content:
    "";

  position:
    absolute;

  inset:
    0;

  background:
    linear-gradient(
      180deg,
      rgba(
        255,
        255,
        255,
        0.02
      )
      15%,
      rgba(
        255,
        255,
        255,
        0.18
      )
      53%,
      rgba(
        255,
        255,
        255,
        0.97
      )
      84%
    );
}


.suite-card:not(
  .suite-card-manifested
)
.suite-card-visual {

  background:
    radial-gradient(
      circle at 72% 24%,
      rgba(
        49,
        78,
        104,
        0.07
      ),
      transparent 38%
    );
}


/*
 * ============================================================
 * CONTENT FIELD
 * ============================================================
 */


.suite-card-content {

  position:
    relative;

  z-index:
    3;

  padding:
    24px;
}


.suite-card-kicker {

  display:
    block;

  margin-bottom:
    8px;

  color:
    var(--gold);

  font-size:
    0.67rem;

  font-weight:
    800;

  letter-spacing:
    0.13em;
}


.suite-card-title {

  max-width:
    90%;

  margin:
    0;

  color:
    var(--ink);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    1.55rem;

  font-weight:
    500;

  line-height:
    1.12;

  letter-spacing:
    -0.025em;
}


.suite-card-action {

  display:
    block;

  margin-top:
    14px;

  color:
    var(--blue);

  font-size:
    0.76rem;

  font-weight:
    750;

  letter-spacing:
    0.04em;
}


/*
 * ============================================================
 * MANIFESTATION
 * ============================================================
 */


.suite-manifest-svg {

  position:
    absolute;

  width:
    86%;

  height:
    78%;

  top:
    -1%;

  right:
    -5%;

  overflow:
    visible;
}


.manifest-organ {

  transform-box:
    fill-box;

  transform-origin:
    center;
}


.organ-fill {

  fill:
    rgba(
      49,
      78,
      104,
      0.11
    );

  stroke:
    rgba(
      32,
      56,
      78,
      0.72
    );

  stroke-width:
    2;

  stroke-linejoin:
    round;
}


.organ-detail {

  fill:
    none;

  stroke:
    rgba(
      32,
      56,
      78,
      0.62
    );

  stroke-width:
    1.5;

  stroke-linecap:
    round;
}


.organ-detail-soft {

  opacity:
    0.6;
}


.organ-vessel {

  fill:
    none;

  stroke:
    rgba(
      165,
      138,
      82,
      0.72
    );

  stroke-width:
    4;

  stroke-linecap:
    round;
}


.organ-vessel-major {

  stroke-width:
    6;
}


.organ-airway {

  fill:
    none;

  stroke:
    rgba(
      49,
      78,
      104,
      0.62
    );

  stroke-width:
    3;

  stroke-linecap:
    round;
}


.organ-airway-major {

  stroke-width:
    5;
}


.organ-ureter {

  fill:
    none;

  stroke:
    rgba(
      49,
      78,
      104,
      0.55
    );

  stroke-width:
    2;

  stroke-linecap:
    round;
}


/*
 * ============================================================
 * HEART PHYSIOLOGIC MOTION
 * ============================================================
 */


.suite-card:hover
.manifest-heart {

  animation:
    medatlas-heart-cycle
    1.15s
    ease-in-out
    infinite;
}


@keyframes medatlas-heart-cycle {

  0%,
  100% {

    transform:
      scale(1);
  }

  14% {

    transform:
      scale(1.028);
  }

  26% {

    transform:
      scale(1);
  }

  38% {

    transform:
      scale(1.014);
  }

  52% {

    transform:
      scale(1);
  }
}


/*
 * ============================================================
 * RESPIRATORY MOTION
 * ============================================================
 */


.suite-card:hover
.manifest-lungs {

  animation:
    medatlas-respiratory-cycle
    4.8s
    ease-in-out
    infinite;
}


@keyframes medatlas-respiratory-cycle {

  0%,
  100% {

    transform:
      scale(
        0.985,
        0.98
      );
  }

  50% {

    transform:
      scale(
        1.025,
        1.035
      );
  }
}


/*
 * ============================================================
 * RENAL PRESENCE
 * ============================================================
 */


.suite-card:hover
.manifest-kidneys {

  animation:
    medatlas-renal-presence
    3.6s
    ease-in-out
    infinite;
}


@keyframes medatlas-renal-presence {

  0%,
  100% {

    opacity:
      0.88;
  }

  50% {

    opacity:
      1;
  }
}


/*
 * ============================================================
 * ACCESSIBILITY
 * ============================================================
 */


@media (
  prefers-reduced-motion:
  reduce
) {

  .suite-card,
  .manifest-organ {

    transition:
      none !important;

    animation:
      none !important;
  }
}


/*
 * ============================================================
 * RESPONSIVE
 * ============================================================
 */


@media (
  max-width:
  720px
) {

  .library-shell {

    width:
      min(
        100% - 28px,
        1280px
      );

    padding:
      36px 0 64px;
  }


  .library-header {

    margin-bottom:
      40px;
  }


  .suite-grid {

    grid-template-columns:
      1fr;
  }


  .suite-card {

    min-height:
      270px;
  }


  .suite-manifest-svg {

    width:
      74%;

    right:
      -2%;
  }
}
