:root {
  --home-night: #071724;
  --home-night-soft: #0b2639;
  --home-cyan: #72e3f4;
  --home-mint: #8ee7c4;
  --home-violet: #9b87f7;
  --home-paper: #f4f7f6;
  --home-ink: #102b3b;
  --home-muted: #627684;
  --home-line: #dce7e7;
  --home-radius: 24px;
  --home-shadow: 0 22px 60px rgba(8, 42, 62, .12);
}

.portal-body {
  color: var(--home-ink);
  background: var(--home-paper);
  font-family: var(--suoda-body);
}

.portal-header {
  min-height: 66px;
  padding-inline: clamp(16px, 3vw, 46px);
  gap: clamp(12px, 2vw, 28px);
  border-bottom-color: rgba(15, 54, 76, .09);
  box-shadow: 0 10px 35px rgba(10, 44, 64, .06);
}

.portal-brand > img {
  width: clamp(132px, 13vw, 172px);
}

.portal-brand strong {
  color: #135f85;
  font-weight: 800;
}

.portal-nav a,
.portal-roles a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.portal-nav a {
  border-radius: 999px;
  font-weight: 750;
}

.portal-nav a[aria-current="page"] {
  background: #103e59;
  box-shadow: none;
}

.portal-roles a {
  border-color: #cfdddf;
  border-radius: 999px;
}

.portal-roles a:last-child {
  border-color: #113f59;
  background: #113f59;
}

.portal-main {
  min-width: 0;
}

.home-experience {
  position: relative;
  min-height: calc(100dvh - 66px);
  padding: clamp(24px, 4vh, 48px) clamp(18px, 4vw, 64px) 24px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 15%, rgba(56, 176, 207, .17), transparent 29%),
    radial-gradient(circle at 12% 82%, rgba(137, 113, 242, .14), transparent 28%),
    linear-gradient(128deg, #06131f, #092438 58%, #102c3b);
}

.home-experience::before {
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image:
    linear-gradient(rgba(141, 229, 243, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 229, 243, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(120deg, #000, transparent 68%);
  content: "";
  pointer-events: none;
}

.home-ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .19;
  pointer-events: none;
  animation: home-ambient-drift 10s ease-in-out infinite alternate;
}

.home-ambient-one {
  top: -190px;
  left: 28%;
  width: 440px;
  height: 440px;
  background: #4bd6e9;
}

.home-ambient-two {
  right: -160px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  background: #9b6ff1;
  animation-delay: -4s;
}

.home-hero {
  position: relative;
  z-index: 2;
  width: min(1480px, 100%);
  min-height: min(620px, calc(100dvh - 184px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(310px, .75fr) minmax(520px, 1.25fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 22px clamp(30px, 5vw, 84px);
}

.home-hero-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding-bottom: 12px;
}

.home-hero .portal-eyebrow {
  margin-bottom: 14px;
  color: var(--home-cyan);
}

.home-hero h1 {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 4.5vw, 4.65rem);
  font-weight: 720;
  letter-spacing: -.06em;
  line-height: .98;
}

.home-lead {
  max-width: 610px;
  margin: 20px 0 0;
  color: #b9cbd4;
  font-size: clamp(.94rem, 1.25vw, 1.08rem);
  line-height: 1.65;
}

.home-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-actions a {
  min-height: 46px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.home-actions a:hover,
.home-actions a:focus-visible {
  transform: translateY(-2px);
}

.home-action-primary {
  color: #062330;
  background: var(--home-cyan);
  box-shadow: 0 12px 28px rgba(88, 210, 229, .2);
}

.home-action-secondary {
  color: #eef8fb;
  border: 1px solid rgba(255, 255, 255, .21);
  background: rgba(255, 255, 255, .06);
}

.home-facts {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.home-facts span {
  min-height: 32px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: #91a9b7;
  background: rgba(255, 255, 255, .035);
  font-size: .68rem;
}

.home-facts strong {
  margin-right: 4px;
  color: #fff;
  font-size: .76rem;
}

.home-carousel {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  max-height: min(620px, calc(100dvh - 150px));
  aspect-ratio: 3 / 2;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(161, 229, 240, .22);
  border-radius: clamp(22px, 3vw, 36px);
  background: #0b2638;
  box-shadow: 0 38px 90px rgba(0, 0, 0, .31);
  isolation: isolate;
}

.home-carousel::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: inherit;
  box-shadow: inset 0 0 80px rgba(4, 21, 32, .15);
  content: "";
  pointer-events: none;
}

.home-carousel-slides,
.home-slide,
.home-slide picture {
  position: absolute;
  inset: 0;
}

.home-slide {
  margin: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition: opacity .62s ease, transform 1s cubic-bezier(.2, .75, .25, 1), visibility .62s;
}

.home-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

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

.home-slide::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 18, 28, .08) 35%, rgba(5, 18, 28, .86) 100%),
    linear-gradient(90deg, rgba(4, 17, 27, .18), transparent 45%);
  content: "";
}

.home-slide figcaption {
  position: absolute;
  right: clamp(22px, 4vw, 48px);
  bottom: clamp(72px, 8vw, 96px);
  left: clamp(22px, 4vw, 48px);
  z-index: 3;
  max-width: 570px;
  display: grid;
  gap: 7px;
}

.home-slide figcaption small {
  color: var(--home-cyan);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-slide figcaption strong {
  color: #fff;
  font-size: clamp(1.28rem, 2.25vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.14;
}

.home-slide figcaption span {
  max-width: 540px;
  color: #c6d5dc;
  font-size: clamp(.75rem, 1vw, .88rem);
  line-height: 1.55;
}

.home-carousel-toggle,
.home-carousel-arrows button,
.home-carousel-dots button {
  position: relative;
  z-index: 5;
  border: 0;
  color: #fff;
  background: rgba(6, 26, 39, .76);
  backdrop-filter: blur(14px);
}

.home-carousel-toggle {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  cursor: pointer;
}

.home-carousel-toggle .play-symbol {
  display: none;
  padding-left: 2px;
  font-size: .72rem;
}

.home-carousel.is-paused .home-carousel-toggle .pause-symbol {
  display: none;
}

.home-carousel.is-paused .home-carousel-toggle .play-symbol {
  display: inline;
}

.home-carousel-toolbar {
  position: absolute;
  right: 18px;
  bottom: 17px;
  left: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 13px;
}

.home-carousel-arrows {
  display: flex;
  gap: 6px;
}

.home-carousel-arrows button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  cursor: pointer;
}

.home-carousel-toggle:hover,
.home-carousel-toggle:focus-visible,
.home-carousel-arrows button:hover,
.home-carousel-arrows button:focus-visible {
  color: #092333;
  background: var(--home-cyan);
}

.home-carousel-dots {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-carousel-dots button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.home-carousel-dots button::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  content: "";
  transition: width .25s ease, background .25s ease;
}

.home-carousel-dots button.is-active::after {
  width: 18px;
  border-radius: 999px;
  background: var(--home-cyan);
}

.home-companion {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  max-width: 500px;
  min-height: 78px;
  padding: 10px 14px 10px 8px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(141, 226, 239, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(12px);
}

.home-companion img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 15px;
}

.home-companion div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.home-companion small {
  color: var(--home-cyan);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-companion strong {
  color: #fff;
  font-size: .82rem;
}

.home-companion span {
  color: #9fb5c1;
  font-size: .67rem;
  line-height: 1.45;
}

.home-quick-dock {
  position: relative;
  z-index: 3;
  width: min(1480px, 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 19px;
  overflow: hidden;
  background: rgba(5, 22, 34, .66);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
  backdrop-filter: blur(18px);
}

.home-quick-dock a {
  min-width: 0;
  min-height: 70px;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  transition: background .25s ease;
}

.home-quick-dock a:last-child {
  border-right: 0;
}

.home-quick-dock a:hover,
.home-quick-dock a:focus-visible {
  background: rgba(114, 227, 244, .11);
}

.home-quick-dock > a > .ui-icon {
  width: 20px;
  height: 20px;
  color: var(--home-cyan);
}

.home-quick-dock div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.home-quick-dock strong {
  overflow: hidden;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-quick-dock small {
  overflow: hidden;
  color: #829eae;
  font-size: .63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-quick-dock i {
  color: var(--home-cyan);
  font-style: normal;
}

.home-about {
  min-height: 78dvh;
  padding: clamp(52px, 8vw, 110px) clamp(18px, 5vw, 78px);
  color: var(--home-ink);
  background:
    radial-gradient(circle at 5% 15%, rgba(104, 218, 225, .15), transparent 23%),
    linear-gradient(180deg, #f7faf9, #edf4f3);
}

.home-about-heading,
.home-story {
  width: min(1380px, 100%);
  margin-inline: auto;
}

.home-about-heading {
  margin-bottom: clamp(28px, 4vw, 50px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, .65fr);
  align-items: end;
  gap: 24px clamp(30px, 7vw, 110px);
}

.home-about-heading h2 {
  max-width: 760px;
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(1.85rem, 3.4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.home-about-heading > p {
  margin: 0;
  color: var(--home-muted);
  font-size: .92rem;
  line-height: 1.7;
}

.home-story {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(420px, 1.25fr) minmax(190px, .46fr);
  gap: 12px;
}

.home-story-tabs,
.home-story-panels,
.home-values {
  border: 1px solid rgba(19, 74, 93, .1);
  border-radius: var(--home-radius);
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 18px 50px rgba(17, 60, 78, .07);
}

.home-story-tabs {
  padding: 9px;
  display: grid;
  align-content: start;
  gap: 5px;
}

.home-story-tabs button {
  min-height: 58px;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 15px;
  color: #55707e;
  background: transparent;
  font-size: .74rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.home-story-tabs button .ui-icon {
  width: 19px;
  height: 19px;
  color: #8da0a9;
}

.home-story-tabs button[aria-selected="true"] {
  color: #fff;
  background: #123e56;
  box-shadow: 0 10px 24px rgba(16, 61, 84, .17);
}

.home-story-tabs button[aria-selected="true"] .ui-icon {
  color: var(--home-cyan);
}

.home-story-panels {
  position: relative;
  min-height: 360px;
  padding: clamp(24px, 4vw, 52px);
  overflow: hidden;
}

.home-story-panel {
  position: relative;
  z-index: 2;
  max-width: 740px;
  animation: story-panel-enter .45s cubic-bezier(.2, .75, .25, 1) both;
}

.home-story-panel[hidden] {
  display: none;
}

.home-story-panel > p:first-child {
  margin: 0 0 9px;
  color: #197c99;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.home-story-panel h3 {
  max-width: 690px;
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(1.45rem, 2.45vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.home-story-copy {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-story-copy p {
  margin: 0;
  color: #5a707c;
  font-size: .78rem;
  line-height: 1.7;
}

.home-story-panel > a {
  margin-top: 24px;
  min-height: 42px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border-radius: 999px;
  color: #fff;
  background: #123f57;
  font-size: .72rem;
  font-weight: 800;
}

.home-story-signature {
  position: absolute;
  right: -16px;
  bottom: -35px;
  display: flex;
  align-items: baseline;
  color: rgba(17, 67, 88, .045);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 800;
  letter-spacing: -.09em;
  line-height: 1;
  pointer-events: none;
}

.home-story-signature strong {
  color: rgba(67, 186, 198, .09);
}

.home-story-signature small {
  display: none;
}

.home-values {
  padding: 12px;
  display: grid;
  align-content: stretch;
  gap: 8px;
  background: #123e56;
}

.home-values > span {
  min-height: 92px;
  padding: 14px;
  display: grid;
  align-content: center;
  grid-template-columns: 28px 1fr;
  gap: 3px 7px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
}

.home-values .ui-icon {
  width: 19px;
  height: 19px;
  grid-row: 1 / span 2;
  color: var(--home-cyan);
}

.home-values strong {
  color: #fff;
  font-size: .78rem;
}

.home-values small {
  color: #a8bec8;
  font-size: .62rem;
  line-height: 1.45;
}

.portal-workspace {
  width: min(1440px, calc(100% - clamp(24px, 5vw, 84px)));
  padding-top: clamp(18px, 3vw, 36px);
}

.workspace-heading {
  padding: clamp(19px, 3vw, 34px);
  border: 1px solid rgba(18, 75, 99, .09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(90, 206, 218, .11), transparent 28%),
    #fff;
  box-shadow: 0 16px 44px rgba(17, 59, 78, .07);
}

.workspace-heading h1 {
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.06;
}

.workspace-heading p:not(.portal-eyebrow) {
  max-width: 770px;
  line-height: 1.65;
}

.compact-course-grid .catalog-course-card,
.compact-library-grid .library-card,
.tool-card {
  border-color: rgba(20, 73, 94, .1);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(15, 55, 73, .07);
}

.tool-card > .ui-icon {
  width: 27px;
  height: 27px;
  color: #1783a6;
  background: currentColor;
  border-radius: 0;
}

.catalog-course-card:hover,
.library-card:hover,
.tool-card:hover {
  box-shadow: 0 24px 52px rgba(15, 55, 73, .12);
}

.portal-footer {
  min-height: 48px;
  color: #637985;
  background: #edf3f2;
}

.portal-footer a {
  color: #345668;
}

@keyframes home-ambient-drift {
  to {
    transform: translate3d(32px, 18px, 0) scale(1.08);
  }
}

@keyframes story-panel-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 1180px) {
  .home-hero {
    grid-template-columns: minmax(300px, .72fr) minmax(460px, 1.1fr);
    gap: 18px 32px;
  }

  .home-quick-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-quick-dock a:nth-child(2) {
    border-right: 0;
  }

  .home-quick-dock a:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .home-story {
    grid-template-columns: 190px 1fr;
  }

  .home-values {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .portal-nav {
    top: 64px;
    border-bottom: 1px solid #dce7e7;
  }

  .portal-nav a {
    justify-content: center;
    border-radius: 13px;
  }

  .home-experience {
    min-height: auto;
    padding-top: 32px;
  }

  .home-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .home-hero-copy,
  .home-carousel,
  .home-companion {
    grid-column: 1;
    grid-row: auto;
  }

  .home-hero-copy {
    max-width: 760px;
    padding-bottom: 0;
  }

  .home-carousel {
    max-height: none;
  }

  .home-companion {
    max-width: none;
  }

  .home-about-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 700px) {
  .home-experience {
    padding: 27px 14px 14px;
  }

  .home-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.7rem);
  }

  .home-lead {
    margin-top: 15px;
  }

  .home-actions {
    margin-top: 19px;
  }

  .home-actions a {
    flex: 1 1 150px;
  }

  .home-facts {
    margin-top: 18px;
  }

  .home-carousel {
    min-height: 390px;
    aspect-ratio: auto;
    border-radius: 23px;
  }

  .home-slide figcaption {
    right: 20px;
    bottom: 76px;
    left: 20px;
  }

  .home-slide figcaption strong {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .home-slide figcaption span {
    font-size: .73rem;
  }

  .home-quick-dock {
    grid-template-columns: 1fr;
  }

  .home-quick-dock a,
  .home-quick-dock a:nth-child(2),
  .home-quick-dock a:nth-child(-n + 2) {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .home-quick-dock a:last-child {
    border-bottom: 0;
  }

  .home-about {
    padding: 58px 14px;
  }

  .home-about-heading {
    margin-bottom: 26px;
  }

  .home-story {
    grid-template-columns: 1fr;
  }

  .home-story-tabs {
    padding: 6px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .home-story-tabs button {
    min-width: 145px;
    min-height: 50px;
    scroll-snap-align: start;
  }

  .home-story-panels {
    min-height: 440px;
    padding: 25px 21px;
  }

  .home-story-copy {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-values {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .home-values > span {
    min-height: 74px;
  }

  .portal-workspace {
    width: calc(100% - 20px);
  }
}

@media (max-width: 440px) {
  .home-carousel {
    min-height: 365px;
  }

  .home-carousel-toggle {
    top: 12px;
    left: 12px;
  }

  .home-carousel-toolbar {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .home-carousel-arrows button {
    width: 38px;
    height: 38px;
  }

  .home-companion {
    grid-template-columns: 54px 1fr;
  }

  .home-companion img {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-ambient,
  .home-story-panel {
    animation: none;
  }

  .home-slide {
    transform: none;
    transition: opacity .01ms linear, visibility .01ms linear;
  }
}
