.learning-page {
  --learning-ink: #0a1019;
  --learning-line: #8cbde636;
  --learning-accent: #89dfff;
  --learning-copy: #bfcedf;
  min-height: 100svh;
  background: var(--learning-ink);
}

.learning-shell { width: min(1280px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.learning-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0b1420 url('assets/learning/app-background-poster.webp') center / cover;
}

.learning-backdrop video { display: block; width: 100%; height: 100%; object-fit: cover; }
.learning-backdrop::after {
  position: absolute;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, #08101bea 8%, #0a1320bb 59%, #091321a8),
    linear-gradient(0deg, #0a1019 0%, #0a101900 50%, #0a1019b3);
}

.learning-header, .learning-page main, .learning-footer { position: relative; z-index: 1; }
.learning-header { border-bottom: 1px solid var(--learning-line); background: #0a1019bf; }
.learning-header-inner, .learning-header-actions { display: flex; align-items: center; }
.learning-header-inner { min-height: 76px; justify-content: space-between; gap: 14px; }
.learning-header-actions { gap: clamp(12px, 2.7vw, 30px); }
.learning-brand { display: inline-flex; min-height: 44px; align-items: center; }
.learning-brand img { display: block; width: clamp(118px, 16vw, 175px); height: auto; }

.learning-home, .learning-motion {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #d4e4f3;
  font-size: 13px;
  white-space: nowrap;
}

.learning-home:hover, .learning-motion:hover { color: var(--learning-accent); }
.learning-home .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.learning-motion { min-height: 38px; padding: 0 11px; border: 1px solid var(--learning-line); border-radius: 6px; background: #14202dc9; }
.learning-motion .icon { width: 16px; height: 16px; }
.learning-page[data-motion='running'] .learning-play-icon,
.learning-page[data-motion='paused'] .learning-pause-icon { display: none; }

.learning-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(16px, 3.5vw, 50px);
  min-height: min(680px, calc(100svh - 76px));
  padding-block: 39px 58px;
}

.learning-intro { position: relative; z-index: 1; }
.learning-eyebrow {
  margin: 0 0 14px;
  color: var(--learning-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.learning-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #8fe3ff;
  box-shadow: 0 0 12px #65d1ffb3;
}

.learning-intro h1 {
  margin: 0;
  color: #f1f7ff;
  font-size: clamp(48px, 6.6vw, 94px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.065em;
}

.learning-intro h1 span { color: #a1defb; }
.learning-lede { max-width: 44ch; margin: 24px 0 0; color: #d1deec; font-size: 17px; line-height: 1.7; }
.learning-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.learning-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #a5dcff65;
  border-radius: 6px;
  color: #ebf7ff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  transition: background .2s, border-color .2s;
}

.learning-button .icon { width: 18px; height: 18px; }
.learning-button-primary { border-color: #7bd9ff; background: #7bd9ff; color: #0b2231; }
.learning-button-primary:hover { border-color: #adf0ff; background: #adf0ff; }
.learning-button-outline { background: #172b3ca6; }
.learning-button-outline:hover { border-color: #a5dcffb0; background: #233e52; }

.learning-hologram {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  min-height: 490px;
  aspect-ratio: 1.13;
  background: radial-gradient(ellipse at 48% 55%, #1d76a94a 0%, #15384c45 35%, transparent 71%);
}

.holo-floor { position: absolute; inset: 0; overflow: clip; }

.holo-grid {
  position: absolute;
  inset: 30% 9% 4%;
  transform: perspective(430px) rotateX(58deg) rotateZ(-8deg);
  background:
    repeating-linear-gradient(0deg, #87d7ff30 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, #87d7ff30 0 1px, transparent 1px 26px);
  mask-image: radial-gradient(ellipse, #000 13%, transparent 69%);
}

.holo-orbit {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 3%;
  height: 25%;
  border: 1px solid #67d2fa77;
  border-radius: 50%;
  background: radial-gradient(ellipse, #318dbe3d, #3fc1ff12 63%, transparent 67%);
  box-shadow: 0 0 38px #3abdf23d, inset 0 0 26px #3abdf236;
  transform: rotate(-7deg);
  animation: holo-orbit 5s ease-in-out infinite paused;
}

.holo-orbit::before, .holo-orbit::after {
  position: absolute;
  inset: 15% 9%;
  border: 1px solid #6bd5ff57;
  border-radius: inherit;
  content: '';
}

.holo-orbit::after { inset: 29% 18%; border-color: #6bd5ff35; }

.holo-phone {
  position: absolute;
  top: 6%;
  left: 31%;
  z-index: 2;
  width: min(37%, 225px);
  animation: holo-float 6.4s ease-in-out infinite paused;
}

.holo-device, .preview-device {
  overflow: hidden;
  border: 1px solid #92d2ffb5;
  border-radius: 13% / 6%;
  background: #07111b;
  box-shadow: 0 22px 55px #030810c2, 0 0 31px #57c4ff59;
}

.holo-device {
  padding: clamp(4px, .65vw, 8px);
  transform: perspective(720px) rotateY(-12deg) rotateZ(-9deg);
  box-shadow: 4px 3px 0 #537996, 9px 5px 0 #111f2f, 0 25px 55px #02070ee3, 0 0 36px #58c9ff59;
}

.holo-device img { display: block; width: 100%; height: auto; border-radius: 12% / 5.5%; }

.holo-tile {
  --tilt: 0deg;
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 5px;
  width: min(35%, 188px);
  padding: clamp(9px, 1.1vw, 15px);
  border: 1px solid #9cdbff70;
  border-radius: 12px;
  background: linear-gradient(140deg, #233e55ec, #101b2de8 70%);
  box-shadow: inset 0 1px 0 #d3edff41, 0 13px 32px #050b15a3, 0 0 22px #44baff35;
  transform: rotate(var(--tilt));
  animation: holo-tile-float 6.4s ease-in-out infinite paused;
}

.holo-tile span { color: #b5d9ef; font-size: clamp(8px, .85vw, 11px); line-height: 1.25; }
.holo-tile strong { color: #edf7ff; font-size: clamp(11px, 1.15vw, 15px); font-weight: 600; line-height: 1.2; }
.holo-tile .icon { width: 19px; height: 19px; color: #8fddff; }
.holo-tile-bim { --tilt: 7deg; top: 15%; right: 2%; animation-delay: -.6s; }
.holo-tile-course { --tilt: -8deg; top: 43%; left: 1%; animation-delay: -2.1s; }
.holo-tile-disciplines { --tilt: 5deg; right: 2%; bottom: 15%; animation-delay: -3.8s; }
.holo-model { display: block; width: 82%; max-width: 106px; margin: -3px 0 3px; filter: drop-shadow(0 0 8px #4ecaff70); }
.holo-progress { height: 4px; margin-top: 4px; overflow: hidden; border-radius: 8px; background: #7fb0ce3b; }
.holo-progress i { display: block; width: 66%; height: 100%; background: linear-gradient(90deg, #1da8ed, #a4e8ff); }
.holo-fields { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }

.holo-phone, .holo-tile {
  translate: var(--repel-x, 0px) var(--repel-y, 0px);
  transition: translate .34s cubic-bezier(.2,.7,.25,1);
}

.learning-page[data-motion='running'] :is(.holo-phone, .holo-tile, .holo-orbit) { animation-play-state: running; }
@keyframes holo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes holo-tile-float { 0%, 100% { transform: translateY(0) rotate(var(--tilt)); } 50% { transform: translateY(-9px) rotate(calc(var(--tilt) + 2deg)); } }
@keyframes holo-orbit { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

.learning-disciplines, .learning-preview { scroll-margin-top: 22px; }
.learning-disciplines { padding-block: 45px 76px; border-top: 1px solid var(--learning-line); }
.learning-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.learning-section-heading h2, .preview-copy h2 { margin: 0; color: #f2f7fd; font-size: clamp(34px, 4.5vw, 54px); font-weight: 600; letter-spacing: -.047em; line-height: 1.06; }
.learning-section-heading > p, .preview-copy > p:not(.learning-eyebrow) { max-width: 44ch; margin: 0; color: var(--learning-copy); font-size: 15px; line-height: 1.62; }
.learning-track-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.learning-track {
  min-width: 0;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid var(--learning-line);
  border-radius: 12px;
  background: linear-gradient(135deg, #17283cf2, #101a28f5);
  transition: border-color .2s, background .2s;
}

.learning-track:hover { border-color: #8ad6ff76; background: #192d42; }
.track-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 14px; border: 1px solid #82c7f043; border-radius: 7px; background: #4bbafa17; color: var(--learning-accent); }
.track-icon .icon { width: 20px; height: 20px; }
.learning-track h3 { margin: 0 0 7px; color: #ecf6ff; font-size: 17px; font-weight: 600; }
.learning-track p { margin: 0; color: var(--learning-copy); font-size: 14px; line-height: 1.6; }

.learning-preview-panel {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #8dc9f044;
  border-radius: 17px;
  background: #101a28f5;
}

.preview-copy { align-self: center; padding: clamp(22px, 4vw, 54px); }
.preview-copy > p:not(.learning-eyebrow) { margin: 13px 0 21px; }
.preview-options { display: grid; gap: 7px; }
.preview-options button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #86b2d326;
  border-radius: 6px;
  background: #182637;
  color: #e0edf8;
  text-align: left;
  font-size: 14px;
}

.preview-options button span { color: #a7c5d9; font-size: 11px; font-variant-numeric: tabular-nums; }
.preview-options .icon { width: 17px; height: 17px; color: var(--learning-accent); }
.preview-options button:hover, .preview-options button[aria-pressed='true'] { border-color: #8ad6ff8f; background: #223b50; }

.preview-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 30px 20px 22px;
  border-left: 1px solid var(--learning-line);
  background:
    radial-gradient(ellipse at 50% 45%, #2c78a547, #0c1524a8 65%),
    url('assets/revit-tools/05-tools-wave-background-v1.webp') center / cover;
}

.preview-device { display: flex; justify-content: center; width: clamp(158px, 18vw, 220px); height: clamp(320px, 37vw, 452px); max-width: 100%; padding: 5px; }
.preview-device img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 12% / 5.5%; }
.preview-figure figcaption { min-height: 36px; color: #d0e0ef; font-size: 13px; line-height: 1.5; text-align: center; }
.learning-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 65px; padding-block: 18px 24px; border-top: 1px solid var(--learning-line); color: #aebfd0; font-size: 12px; line-height: 1.5; }
.learning-footer a:hover { color: var(--learning-accent); }

@media (max-width: 950px) {
  .learning-hero { grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); }
  .learning-hologram { min-height: 375px; }
  .learning-intro h1 { font-size: clamp(43px, 7.5vw, 70px); }
  .learning-track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .learning-header-inner { min-height: 64px; }
  .learning-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; min-height: 0; padding-block: 43px 25px; }
  .learning-intro h1 { font-size: clamp(43px, 10vw, 65px); }
  .learning-lede { margin-top: 17px; font-size: 16px; }
  .learning-actions { margin-top: 20px; }
  .learning-hologram { width: min(100%, 490px); min-height: 0; aspect-ratio: 1.07; margin-inline: auto; }
  .learning-section-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .learning-disciplines { padding-block: 42px 56px; }
  .learning-preview-panel { grid-template-columns: minmax(0, 1fr); }
  .preview-figure { border-top: 1px solid var(--learning-line); border-left: 0; }
  .preview-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-options button { grid-template-columns: 18px minmax(0, 1fr); gap: 5px; font-size: 12px; }
  .preview-options .icon { display: none; }
}

@media (max-width: 480px) {
  .learning-home { font-size: 12px; }
  .learning-motion { min-width: 36px; justify-content: center; padding: 0; }
  .learning-motion [data-motion-label] { display: none; }
  .learning-track-grid { grid-template-columns: minmax(0, 1fr); }
  .holo-tile { width: 37%; }
  .holo-fields { gap: 4px; }
  .holo-fields .icon { width: 15px; height: 15px; }
  .learning-footer { align-items: flex-start; flex-direction: column; }
}
