:root {
  --paper: #f8f5ee;
  --white: #ffffff;
  --navy: #092653;
  --navy-2: #123667;
  --blue: #2456d8;
  --blue-dark: #1945bb;
  --orange: #f5821f;
  --amber: #f5a623;
  --coral: #f26b4e;
  --green: #17643a;
  --text: #173052;
  --muted: #607089;
  --line: rgba(9, 38, 83, 0.11);
  --shadow: 0 18px 45px rgba(40, 53, 73, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 86% 8%, rgba(36, 86, 216, 0.1), transparent 24rem),
    radial-gradient(circle at 20% 38%, rgba(245, 166, 35, 0.08), transparent 22rem),
    var(--paper);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

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

button,
input {
  font: inherit;
}

.shell {
  width: min(1360px, calc(100% - 80px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  padding-top: 32px;
}

.header-inner {
  min-height: 100px;
  padding: 18px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(34, 45, 66, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: min(255px, 30vw);
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
}

.desktop-nav a {
  position: relative;
  padding: 17px 2px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 600;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
}

.mobile-menu {
  display: none;
}

.hero {
  min-height: 660px;
  padding-block: 88px 64px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Sora, "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--navy);
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(50px, 5.2vw, 76px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.hero-text {
  max-width: 690px;
  margin-bottom: 30px;
  color: #344967;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.65;
}

.primary-button {
  min-height: 64px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), #0c69f4);
  box-shadow: 0 14px 28px rgba(36, 86, 216, 0.24);
  color: white;
  font-size: 18px;
  font-weight: 800;
  transition: 200ms ease;
}

.primary-button span {
  font-size: 26px;
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(36, 86, 216, 0.3);
}

.hero-badges {
  margin-top: 27px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero-badges span::first-letter {
  color: var(--green);
}

.hero-art {
  position: relative;
  min-height: 450px;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-art::before {
  width: 330px;
  height: 330px;
  top: -40px;
  right: 8%;
  background: rgba(36, 86, 216, 0.08);
}

.hero-art::after {
  width: 290px;
  height: 220px;
  right: -6%;
  bottom: -12%;
  border-radius: 46% 54% 70% 30% / 46% 43% 57% 54%;
  background: rgba(245, 166, 35, 0.11);
}

.video-window {
  position: absolute;
  z-index: 3;
  top: 70px;
  left: 2%;
  width: 88%;
  min-height: 275px;
  overflow: hidden;
  border: 1px solid rgba(9, 38, 83, 0.1);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.window-bar {
  height: 52px;
  padding-left: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
}

.window-bar i {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 50%;
  background: white;
  opacity: 0.9;
}

.window-body {
  padding: 48px 46px 30px;
  display: flex;
  align-items: center;
  gap: 42px;
}

.play-symbol {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue), #0c69f4);
  box-shadow: 0 14px 30px rgba(36, 86, 216, 0.3);
  color: white;
  font-size: 38px;
  padding-left: 7px;
}

.lesson-lines {
  width: 100%;
  display: grid;
  gap: 16px;
}

.lesson-lines span {
  width: 75%;
  height: 14px;
  border-radius: 99px;
  background: #d8e1ef;
}

.lesson-lines span:nth-child(2) {
  width: 58%;
}

.lesson-lines span:nth-child(3) {
  width: 83%;
}

.progress-line {
  height: 8px;
  margin: 0 46px 34px;
  overflow: hidden;
  border-radius: 99px;
  background: #dce4f0;
}

.progress-line span {
  width: 38%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--blue);
}

.art-chat {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 10%;
  width: 98px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 24px 24px 24px 8px;
  background: var(--coral);
  box-shadow: 0 10px 26px rgba(242, 107, 78, 0.24);
  color: white;
  font-size: 28px;
  letter-spacing: 4px;
}

.mini-chart {
  position: absolute;
  z-index: 4;
  right: 4%;
  bottom: 6px;
  width: 210px;
  height: 130px;
  padding: 22px 26px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.mini-chart i {
  width: 24px;
  height: 35%;
  border-radius: 8px 8px 3px 3px;
  background: #bcd2ff;
}

.mini-chart i:nth-child(2) {
  height: 65%;
  background: var(--blue);
}

.mini-chart i:nth-child(3) {
  height: 92%;
  background: var(--amber);
}

.mini-chart i:nth-child(4) {
  height: 53%;
  background: var(--coral);
}

.art-dot {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.dot-one {
  width: 60px;
  height: 60px;
  top: 12px;
  right: 6%;
  background: var(--amber);
}

.dot-two {
  width: 25px;
  height: 25px;
  bottom: 28%;
  left: 0;
  background: var(--blue);
}

.portal-section {
  padding-block: 58px 110px;
  scroll-margin-top: 24px;
}

.section-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.section-heading h2,
.help-content h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 3vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.section-heading > p {
  max-width: 400px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portal-card {
  position: relative;
  min-height: 300px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(35, 48, 69, 0.09);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.portal-card::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.07;
}

.portal-card.student {
  color: var(--blue);
  background: linear-gradient(145deg, #f8fbff, #e5edff);
}

.portal-card.teacher {
  color: #d95a08;
  background: linear-gradient(145deg, #fffdf7, #fff0df);
}

.portal-card.admin {
  color: var(--green);
  background: linear-gradient(145deg, #fbfff9, #e8f4e8);
}

.portal-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 42px rgba(35, 48, 69, 0.14);
}

.portal-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 35px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 18px;
  font-family: Sora, sans-serif;
  font-size: 25px;
  font-weight: 800;
}

.lesson-count {
  position: absolute;
  top: 34px;
  right: 30px;
  padding: 7px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.65);
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
}

.portal-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 26px;
  letter-spacing: -0.025em;
}

.portal-card p {
  min-height: 52px;
  margin-bottom: 22px;
  color: #566983;
  line-height: 1.6;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: currentColor;
  font-size: 14px;
  font-weight: 800;
}

.card-action b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  font-size: 20px;
}

.help-strip {
  padding-block: 76px;
  background: var(--navy);
}

.help-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.help-content h2 {
  max-width: 760px;
  color: white;
}

.help-content a {
  flex: 0 0 auto;
  padding: 17px 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  color: white;
  font-weight: 800;
  transition: 180ms ease;
}

.help-content a:hover {
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  padding-block: 36px;
  background: #071d3e;
  color: rgba(255, 255, 255, 0.66);
}

.footer-inner {
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 34px;
}

.footer-inner img {
  width: 180px;
  height: 60px;
  padding: 8px 12px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
}

.footer-inner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-inner a {
  color: white;
  font-size: 14px;
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tutorial-site {
  --portal-color: var(--blue);
  --portal-soft: #eaf0ff;
  min-height: 100vh;
}

.tutorial-site.theme-professor {
  --portal-color: #dd5f0c;
  --portal-soft: #fff0e3;
}

.tutorial-site.theme-admin {
  --portal-color: var(--green);
  --portal-soft: #e6f4e9;
}

.tutorial-hero {
  margin-top: 30px;
  padding-block: 62px 68px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 24%, color-mix(in srgb, var(--portal-color) 16%, transparent), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), var(--portal-soft));
  border-block: 1px solid rgba(255, 255, 255, 0.86);
}

.back-link {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--portal-color);
  font-size: 14px;
  font-weight: 800;
}

.tutorial-hero-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 60px;
}

.tutorial-hero-copy h1 {
  margin-bottom: 22px;
  font-size: clamp(50px, 5.5vw, 78px);
}

.tutorial-hero-copy > div:first-child > p:last-child {
  max-width: 780px;
  margin-bottom: 0;
  color: #405571;
  font-size: 19px;
  line-height: 1.7;
}

.tutorial-total {
  width: 175px;
  height: 150px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 32px rgba(35, 48, 69, 0.08);
}

.tutorial-total strong {
  color: var(--portal-color);
  font-family: Sora, sans-serif;
  font-size: 54px;
  line-height: 1;
}

.tutorial-total span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.responsive-notice {
  max-width: 850px;
  margin-top: 38px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--portal-color) 18%, white);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.responsive-notice > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--portal-soft);
  color: var(--portal-color);
  font-size: 23px;
  font-weight: 900;
}

.responsive-notice p {
  margin: 0;
  color: #52657f;
  font-size: 14px;
  line-height: 1.5;
}

.responsive-notice strong {
  color: var(--navy);
}

.tutorial-library {
  padding-block: 88px 110px;
}

.library-toolbar {
  margin-bottom: 36px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.library-toolbar h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 3.5vw, 50px);
  letter-spacing: -0.04em;
}

.search-box {
  width: min(100%, 360px);
  height: 58px;
  padding-inline: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  box-shadow: 0 8px 20px rgba(35, 48, 69, 0.05);
}

.search-box > span:not(.sr-only) {
  color: var(--portal-color);
  font-size: 28px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font-size: 15px;
}

.search-box:focus-within {
  outline: 3px solid color-mix(in srgb, var(--portal-color) 32%, transparent);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tutorial-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 30px rgba(35, 48, 69, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.tutorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px rgba(35, 48, 69, 0.13);
}

.thumbnail-button {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  display: block;
  border: 0;
  background: var(--navy);
  cursor: pointer;
}

.thumbnail-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 23, 51, 0.44), transparent 60%);
}

.thumbnail-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 280ms ease;
}

.tutorial-card:hover .thumbnail-button img {
  transform: scale(1.025);
}

.card-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 66px;
  height: 66px;
  padding-left: 4px;
  display: grid;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: var(--portal-color);
  box-shadow: 0 12px 25px rgba(6, 31, 67, 0.25);
  color: white;
  font-size: 25px;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.thumbnail-button:hover .card-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-number {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 13px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(7, 29, 62, 0.84);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.tutorial-card-content {
  padding: 24px;
}

.video-label {
  color: var(--portal-color);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tutorial-card h3 {
  min-height: 58px;
  margin: 9px 0 23px;
  font-size: 21px;
  line-height: 1.34;
  letter-spacing: -0.025em;
}

.tutorial-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tutorial-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--portal-color);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.tutorial-actions a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  padding: 70px 24px;
  border: 1px dashed color-mix(in srgb, var(--portal-color) 34%, white);
  border-radius: 24px;
  background: white;
  text-align: center;
}

.empty-state strong {
  color: var(--navy);
  font-size: 24px;
}

.empty-state p {
  margin: 10px 0 22px;
  color: var(--muted);
}

.empty-state button {
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--portal-color);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.next-portal {
  padding-block: 68px;
  background: var(--portal-soft);
}

.next-portal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.next-portal h2 {
  margin: 0;
  font-size: clamp(32px, 3vw, 44px);
}

.next-portal-inner > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.next-portal-inner a {
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--portal-color) 25%, white);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--portal-color);
  font-size: 13px;
  font-weight: 900;
}

.video-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(3, 18, 41, 0.82);
  backdrop-filter: blur(8px);
}

.video-dialog {
  width: min(100%, 980px);
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.video-dialog-header {
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.video-dialog-header span {
  color: var(--portal-color);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.video-dialog-header h2 {
  margin: 3px 0 0;
  font-size: clamp(18px, 2vw, 25px);
}

.video-dialog-header button {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  border: 0;
  border-radius: 12px;
  background: #edf2fa;
  color: var(--navy);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #061b39;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@media (max-width: 1050px) {
  .shell {
    width: min(100% - 40px, 900px);
  }

  .desktop-nav {
    gap: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-art {
    width: min(100%, 760px);
    margin: -20px auto 0;
  }

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

  .portal-card {
    min-height: 250px;
  }

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 620px);
  }

  .site-header {
    padding-top: 14px;
  }

  .header-inner {
    min-height: 76px;
    padding: 10px 14px 10px 18px;
    border-radius: 18px;
  }

  .brand img {
    width: 170px;
    height: 50px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    width: 46px;
    height: 46px;
    display: grid;
    place-content: center;
    gap: 5px;
    border-radius: 12px;
    background: #edf3ff;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    width: 22px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: var(--navy);
  }

  .mobile-menu nav {
    position: absolute;
    top: 56px;
    right: 0;
    width: 220px;
    padding: 10px;
    display: grid;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow);
  }

  .mobile-menu nav a {
    padding: 13px 14px;
    border-radius: 10px;
    color: var(--navy);
    font-weight: 700;
  }

  .mobile-menu nav a.active {
    background: #edf3ff;
    color: var(--blue);
  }

  .hero {
    min-height: auto;
    padding-block: 66px 40px;
    gap: 28px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-text {
    font-size: 17px;
  }

  .primary-button {
    width: 100%;
    justify-content: space-between;
  }

  .hero-art {
    min-height: 330px;
  }

  .video-window {
    top: 48px;
    left: 0;
    width: 96%;
    min-height: 215px;
  }

  .window-bar {
    height: 40px;
  }

  .window-body {
    padding: 35px 25px 24px;
    gap: 22px;
  }

  .play-symbol {
    width: 74px;
    height: 74px;
    flex-basis: 74px;
    font-size: 28px;
  }

  .lesson-lines {
    gap: 11px;
  }

  .lesson-lines span {
    height: 10px;
  }

  .progress-line {
    margin: 0 25px 26px;
  }

  .art-chat {
    left: 5%;
    width: 75px;
    height: 55px;
    font-size: 20px;
  }

  .mini-chart {
    right: 0;
    width: 150px;
    height: 95px;
    padding: 17px;
    gap: 10px;
  }

  .mini-chart i {
    width: 18px;
  }

  .dot-one {
    width: 42px;
    height: 42px;
  }

  .portal-section {
    padding-block: 40px 72px;
  }

  .section-heading,
  .help-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-card {
    padding: 25px;
  }

  .help-strip {
    padding-block: 58px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .tutorial-hero {
    margin-top: 14px;
    padding-block: 42px 50px;
  }

  .back-link {
    margin-bottom: 30px;
  }

  .tutorial-hero-copy {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tutorial-hero-copy h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .tutorial-total {
    width: 100%;
    height: auto;
    padding: 18px 24px;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
  }

  .tutorial-total strong {
    font-size: 38px;
  }

  .tutorial-library {
    padding-block: 68px 78px;
  }

  .library-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

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

  .tutorial-card h3 {
    min-height: auto;
  }

  .next-portal-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .next-portal-inner > div:last-child {
    justify-content: flex-start;
  }

  .video-modal {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise 580ms both;
  }

  .hero-art {
    animation: rise 620ms 100ms both;
  }

  .portal-card {
    animation: rise 520ms both;
  }

  .portal-card:nth-child(2) {
    animation-delay: 70ms;
  }

  .portal-card:nth-child(3) {
    animation-delay: 140ms;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
