* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--brand\/neutral\/950);
  color: var(--brand\/neutral\/50);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

button,
input {
  font: inherit;
}

.screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--brand\/neutral\/950);
}

.screen-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.screen-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.assessment-media img {
  object-position: center center;
}

.screen-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.nav {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  display: grid;
  width: min(100%, 1440px);
  height: var(--nav-height);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 0 var(--space-48);
  transform: translateX(-50%);
}

.assessment-nav {
  height: auto;
  min-height: 80px;
  align-items: start;
  padding: 30px var(--space-48) var(--space-16);
}

.nav-back-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  justify-self: start;
  border: 1px solid var(--brand\/neutral\/100);
  border-radius: 15.994px;
  background: transparent;
  transition:
    background-color 150ms ease,
    transform 120ms var(--motion-ease-out);
}

.nav-back-button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.nav-back-icon {
  display: block;
  width: 10.24px;
  height: 10.24px;
  background: url("../assets/icon-back.svg") center / contain no-repeat;
}

.assessment-nav-tools {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
  justify-self: start;
}

.nav-wheel-icon {
  display: block;
  width: 16px;
  height: 16px;
  background: url("../assets/icon-wheel.svg") center / contain no-repeat;
}

.assessment-nav-center {
  width: 448px;
  height: 40px;
  justify-self: center;
  opacity: 0;
  pointer-events: none;
}

.assessment-nav .nav-actions {
  align-items: flex-start;
}

.nav.assessment-nav .pill-link {
  min-height: 34px;
  padding: var(--space-8) var(--space-14);
  font-size: 14px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 124.483px;
  height: 19.421px;
  display: block;
  flex: 0 0 auto;
}

.brand-divider {
  width: 1px;
  height: 18.923px;
  background: rgba(255, 255, 255, 0.72);
  flex: 0 0 auto;
}

.brand-label {
  font-family: var(--font-display);
  font-size: var(--label\/--label-r-size);
  line-height: 14.4px;
  letter-spacing: 0.25px;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
}

.pill-link,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand\/neutral\/50);
  border-radius: 100px;
  background: transparent;
  color: var(--brand\/neutral\/50);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--label\/--label-r-size);
  font-weight: 500;
  line-height: 1;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 120ms var(--motion-ease-out);
  white-space: nowrap;
}

.nav .pill-link {
  min-height: 38px;
  padding: var(--space-8) var(--space-14);
}

.panel-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  width: 100%;
  padding-bottom: var(--space-24);
}

.title {
  margin: 0;
  color: var(--brand\/neutral\/50);
  font-family: var(--font-display);
  font-size: var(--heading\/--h1-size);
  font-weight: 800;
  letter-spacing: 0;
  line-height: var(--heading\/--h1-size);
}

.rule {
  width: 100%;
  height: 1px;
  background: var(--brand\/neutral\/800);
}

.lede {
  margin: 0;
  color: var(--brand\/neutral\/50);
  font-family: var(--font-serif);
  font-size: var(--heading\/--h3-size);
  font-style: italic;
  line-height: var(--heading\/--h3-size);
}

.body-copy {
  max-width: 620px;
  margin: 0;
  color: var(--brand\/neutral\/50);
  font-family: var(--font-text);
  font-size: 17.4px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 21.6px;
}

.panel-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.primary-button {
  min-height: 54px;
  gap: 10px;
  padding: 17px 28px;
  border: 2px solid var(--brand\/neutral\/800);
  font-family: var(--font-text);
  font-size: var(--label\/--label-r-size);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 15.68px;
}

.icon-button {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand\/neutral\/850);
  color: var(--brand\/neutral\/50);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 21px;
  line-height: 1;
  transition:
    background-color 150ms ease,
    transform 120ms var(--motion-ease-out);
}

.pill-link:active,
.pill-button:active,
.icon-button:active,
.nav-back-button:active,
.card-arrow:active,
.rating-option:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .icon-button:hover {
    background: var(--brand\/neutral\/800);
  }

  .nav-back-button:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}

.arrow-icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  background: url("../assets/icon-arrow.svg") center / contain no-repeat;
}

.arrow-icon-left {
  transform: rotate(180deg);
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 100%;
}

.field label {
  color: var(--semantic\/text\/primary);
  font-family: var(--font-display);
  font-size: var(--label\/--label-l-size);
  font-weight: 800;
  line-height: 1.1;
}

.field input {
  width: 100%;
  height: 45px;
  border: 0;
  border-radius: 6px;
  outline: 0;
  background: var(--brand\/neutral\/850);
  color: var(--brand\/neutral\/400);
  font-family: var(--font-text);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 15.68px;
  padding: 0 var(--space-12);
  transition: background-color 160ms ease;
}

.field input:hover,
.field input.is-hovered {
  background: var(--brand\/neutral\/800);
}

.field input:focus,
.field input:focus-visible {
  outline: 0;
  box-shadow: none;
}

.field input::placeholder {
  color: var(--brand\/neutral\/400);
  opacity: 1;
}

.field input:focus::placeholder {
  color: transparent;
}

.form-error {
  color: var(--brand\/accent\/cherry\/300);
  font-size: var(--paragraph\/--p-s-size);
  font-weight: 700;
  line-height: 18px;
  margin: 0;
}

.assessment-question-screen {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 93px;
}

.assessment-topbar {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 93px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 0;
  background: var(--brand\/neutral\/950);
  padding: var(--space-24) var(--space-48);
}

.assessment-topbar::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/assessment-question-bg.png");
  background-position: center 14%;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
}

.assessment-topbar::after {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 93px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.77) 100%);
  content: "";
}

.assessment-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 5px;
  overflow: hidden;
  background: #4d4d58;
}

.assessment-progress-value {
  display: block;
  width: 11.597222%;
  height: 100%;
  background: var(--brand\/accent\/sapphire\/400);
  transition: width 220ms ease;
}

.assessment-topbar-title {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  text-align: center;
}

.assessment-topbar-kicker {
  color: var(--brand\/neutral\/400);
  font-size: var(--paragraph\/--p-s-size);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 18px;
}

.assessment-topbar-name {
  color: var(--brand\/neutral\/50);
  font-size: 21.75px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 27px;
}

.rating-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--space-12) 0;
}

.rating-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-label {
  color: var(--brand\/neutral\/100);
  font-family: "Inter", var(--font-text);
  font-size: var(--label\/--label-l-size);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.rating-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 100px;
  padding: var(--space-4) var(--space-12);
  font-family: var(--font-display);
  font-size: var(--label\/--label-l-size);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.rating-field[data-tone="sapphire"] .rating-badge {
  background: var(--brand\/accent\/sapphire\/300);
  color: var(--brand\/accent\/sapphire\/400);
}

.rating-field[data-tone="cherry"] .rating-badge {
  background: var(--brand\/accent\/cherry\/300);
  color: var(--brand\/accent\/cherry\/400);
}

.rating-control {
  position: relative;
  display: grid;
  --rating-edge-gap: 3px;
  --rating-active-left: var(--rating-edge-gap);
  --rating-segment-width: 0px;
  min-height: 38px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
  overflow: hidden;
  border-radius: 100px;
  background: var(--brand\/neutral\/850);
  padding: var(--rating-edge-gap);
}

.rating-control:focus-within {
  box-shadow: none;
}

.rating-active-bg {
  position: absolute;
  top: var(--rating-edge-gap);
  left: var(--rating-active-left);
  z-index: 0;
  width: var(--rating-segment-width);
  height: calc(100% - (var(--rating-edge-gap) * 2));
  border-radius: 100px;
  transition: left 180ms ease;
}

.rating-option {
  position: relative;
  z-index: 1;
  display: flex;
  --rating-option-color: var(--brand\/neutral\/400);
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--label\/--label-l-size);
  font-weight: 800;
  letter-spacing: 0;
  opacity: 0.6;
  outline: 0;
  transition: opacity 420ms ease;
  -webkit-tap-highlight-color: transparent;
}

.rating-option::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  color: var(--rating-option-color);
  content: attr(data-value);
  transform: translate(-50%, -50%);
  transition: color 220ms ease;
}

.rating-option.is-selected {
  opacity: 1;
}

.rating-option:not(.is-selected):hover,
.rating-control[data-hover-value="1"] .rating-option[data-value="1"]:not(.is-selected),
.rating-control[data-hover-value="2"] .rating-option[data-value="2"]:not(.is-selected),
.rating-control[data-hover-value="3"] .rating-option[data-value="3"]:not(.is-selected),
.rating-control[data-hover-value="4"] .rating-option[data-value="4"]:not(.is-selected),
.rating-control[data-hover-value="5"] .rating-option[data-value="5"]:not(.is-selected),
.rating-control[data-hover-value="6"] .rating-option[data-value="6"]:not(.is-selected),
.rating-control[data-hover-value="7"] .rating-option[data-value="7"]:not(.is-selected),
.rating-control[data-hover-value="8"] .rating-option[data-value="8"]:not(.is-selected) {
  --rating-option-color: var(--brand\/neutral\/200);
  opacity: 1;
}

.rating-option:not(.is-selected):hover::after,
.rating-control[data-hover-value="1"] .rating-option[data-value="1"]:not(.is-selected)::after,
.rating-control[data-hover-value="2"] .rating-option[data-value="2"]:not(.is-selected)::after,
.rating-control[data-hover-value="3"] .rating-option[data-value="3"]:not(.is-selected)::after,
.rating-control[data-hover-value="4"] .rating-option[data-value="4"]:not(.is-selected)::after,
.rating-control[data-hover-value="5"] .rating-option[data-value="5"]:not(.is-selected)::after,
.rating-control[data-hover-value="6"] .rating-option[data-value="6"]:not(.is-selected)::after,
.rating-control[data-hover-value="7"] .rating-option[data-value="7"]:not(.is-selected)::after,
.rating-control[data-hover-value="8"] .rating-option[data-value="8"]:not(.is-selected)::after {
  transition-duration: 120ms;
}

.rating-control .rating-option.is-disabled,
.rating-control .rating-option.is-disabled:hover {
  --rating-option-color: var(--brand\/neutral\/700);
  cursor: not-allowed;
  opacity: 0.35;
}

.rating-control .rating-option.is-disabled::after {
  color: var(--brand\/neutral\/700);
}

.rating-control .rating-option.is-disabled:active {
  transform: none;
}

.rating-field[data-tone="sapphire"] .rating-option.is-selected {
  --rating-option-color: var(--brand\/accent\/sapphire\/400);
}

.rating-field[data-tone="sapphire"] .rating-active-bg {
  background: var(--brand\/accent\/sapphire\/300);
}

.rating-field[data-tone="cherry"] .rating-option.is-selected {
  --rating-option-color: var(--brand\/accent\/cherry\/400);
}

.rating-field[data-tone="cherry"] .rating-active-bg {
  background: var(--brand\/accent\/cherry\/300);
}

.rating-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
  opacity: 0;
  outline: 0;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

.rating-option:focus,
.rating-option:focus-visible,
.rating-range:focus,
.rating-range:focus-visible {
  outline: 0;
  box-shadow: none;
}

.rating-help {
  margin: 0;
  color: var(--brand\/neutral\/500);
  font-family: "Inter", var(--font-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 21.6px;
}

.skill-description-accordion {
  width: min(640px, 100%);
  color: var(--brand\/neutral\/500);
  font-family: "Inter", var(--font-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 22px;
}

.skill-description-accordion summary {
  width: fit-content;
  cursor: pointer;
  color: var(--brand\/neutral\/300);
  font-weight: 700;
  line-height: 21.6px;
}

.skill-description-accordion summary:focus-visible {
  outline: 0;
  box-shadow: 0 2px 0 var(--brand\/neutral\/50);
}

.skill-description-accordion p {
  margin: var(--space-8) 0 0;
  color: var(--brand\/neutral\/500);
}

.rating-field.is-syncing-rating .rating-badge,
.rating-field.is-syncing-rating .rating-help,
.rating-field.is-syncing-rating .rating-active-bg,
.rating-field.is-syncing-rating .rating-option,
.rating-field.is-syncing-rating .rating-option::after {
  transition: none;
}

.note-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.note-field label {
  color: var(--brand\/neutral\/100);
  font-family: var(--font-display);
  font-size: var(--label\/--label-l-size);
  font-weight: 800;
  line-height: 1.1;
}

.note-field textarea {
  width: 100%;
  min-height: 124px;
  resize: vertical;
  border: 0;
  border-radius: 6px;
  outline: 0;
  background: var(--brand\/neutral\/850);
  color: var(--brand\/neutral\/400);
  font-family: var(--font-text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 15.68px;
  padding: var(--space-12);
}

.note-field textarea:focus,
.note-field textarea:focus-visible {
  outline: 0;
  box-shadow: none;
}

.note-field textarea::placeholder {
  color: var(--brand\/neutral\/400);
  opacity: 1;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 30;
  visibility: hidden;
  pointer-events: none;
}

.modal-root.is-open {
  visibility: visible;
  pointer-events: auto;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.54);
  cursor: pointer;
  opacity: 0;
  transition: opacity 240ms var(--motion-ease-out);
}

.modal-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: clamp(460px, 40vw, 640px);
  height: 100%;
  flex-direction: column;
  border-left: 1px solid var(--brand\/neutral\/800);
  background: var(--brand\/neutral\/950);
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.42);
  opacity: 0;
  outline: 0;
  transform: translateX(100%);
  transition:
    opacity 220ms var(--motion-ease-out),
    transform 260ms var(--motion-ease-out);
  will-change: transform, opacity;
}

.modal-root.is-open .modal-scrim {
  opacity: 1;
}

.modal-root.is-open .modal-drawer {
  opacity: 1;
  transform: translateX(0);
}

.modal-drawer-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--brand\/neutral\/850);
  padding: var(--space-24);
}

.modal-drawer-eyebrow {
  margin: 0;
  color: var(--brand\/neutral\/500);
  font-family: var(--font-display);
  font-size: var(--paragraph\/--p-s-size);
  font-weight: 700;
  line-height: 18px;
}

.modal-close-button {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand\/neutral\/300);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    transform 120ms var(--motion-ease-out);
}

.modal-close-button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.modal-close-icon,
.modal-close-icon::after {
  display: block;
  width: 11px;
  height: 1.5px;
  border-radius: 100px;
  background: var(--brand\/neutral\/50);
  content: "";
}

.modal-close-icon {
  transform: rotate(45deg);
}

.modal-close-icon::after {
  transform: rotate(90deg);
}

body.is-modal-open {
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .modal-close-button:hover {
    background: var(--brand\/neutral\/850);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill-link,
  .pill-button,
  .icon-button,
  .nav-back-button,
  .modal-scrim,
  .modal-drawer,
  .modal-close-button,
  .rating-active-bg,
  .rating-option,
  .rating-option::after {
    transition: none;
  }

  .pill-link:active,
  .pill-button:active,
  .icon-button:active,
  .nav-back-button:active,
  .modal-close-button:active,
  .rating-option:active {
    transform: none;
  }
}

@media (max-width: 920px) {
  .nav {
    grid-template-columns: 1fr auto;
    padding: var(--space-16) var(--space-24);
  }

  .brand-lockup {
    grid-column: 1;
    grid-row: 1;
  }

  .nav > :nth-child(2) {
    display: none;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .brand-label {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 640px) {
  :root {
    --heading\/--h1-size: 40px;
    --heading\/--h2-size: 38px;
    --heading\/--h3-size: 21px;
    --nav-height: 66px;
  }

  .nav {
    padding: 0 var(--space-16);
  }

  .assessment-nav {
    min-height: 80px;
    padding: 30px var(--space-16) var(--space-16);
  }

  .assessment-nav-center {
    display: none;
  }

  .brand-logo {
    width: 105px;
    height: 16.4px;
  }

  .brand-divider,
  .brand-label {
    display: none;
  }

  .nav .pill-link {
    min-height: 34px;
    padding: var(--space-8) var(--space-12);
    font-size: 12px;
  }

  .body-copy {
    font-size: 15px;
    line-height: 19px;
  }

  .primary-button {
    min-height: 48px;
    padding: 14px 20px;
  }

  .icon-button {
    width: 48px;
    height: 48px;
  }

  .assessment-question-screen {
    padding-top: 93px;
  }

  .assessment-topbar {
    min-height: 93px;
    padding: var(--space-24) var(--space-16);
  }

  .assessment-topbar::after {
    width: 100%;
  }

  .assessment-nav-tools {
    gap: var(--space-8);
  }

  .modal-drawer {
    width: 100%;
  }
}
