.master-details {
  display: grid;
  grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  scroll-margin-top: 120px;
}
.master-details[hidden] { display: none; }
.master-details-close {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 10px 16px;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  cursor: pointer;
}
.master-details-portrait { width: 100%; height: auto; border-radius: var(--radius); }
.master-details .profile-details { align-content: start; min-width: 0; }
.master-details video { width: 100%; max-height: 480px; }
.master-person[aria-expanded="true"], .portfolio-student[aria-expanded="true"] { outline: 2px solid var(--cyan); outline-offset: 4px; }
.profile-photo-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.profile-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--black);
  border-radius: var(--radius);
}
.profile-gallery-title { grid-column: 1 / -1; margin: 0; }
.profile-photo-button {
  position: relative;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 220ms ease, box-shadow 180ms ease, border-color 180ms ease;
  display: block;
  min-width: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--black);
  cursor: pointer;
}
.profile-photo-button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.profile-video-section { grid-column: 1 / -1; min-width: 0; }
.profile-video-section h4 { margin: 0 0 16px; }
.profile-player {
  overflow: hidden;
  border: 1px solid rgba(84, 240, 255, .35);
  border-radius: 12px;
  background: #080d17;
  box-shadow: 0 12px 42px #0005;
}
.profile-player-stage { position: relative; background: #030509; }
.profile-player .profile-player-stage video {
  display: block;
  width: 100%;
  height: min(56vw, 480px);
  max-height: none;
  object-fit: contain;
  cursor: pointer;
}
.profile-player button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  font: inherit;
  cursor: pointer;
}
.profile-player button:hover { color: var(--cyan); background: #54f0ff12; }
.profile-player button:focus-visible, .profile-player input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.profile-player .profile-player-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  background: #080d17cc;
  color: var(--cyan);
  font-size: 28px;
  box-shadow: 0 0 32px #20b8ff40;
}
.profile-player [hidden] { display: none; }
.profile-player-controls { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid #54f0ff25; }
.profile-player-controls input { flex: 1; min-width: 40px; height: 24px; accent-color: var(--cyan); cursor: pointer; }
.profile-player-time { white-space: nowrap; color: #bdccda; font-size: 12px; font-variant-numeric: tabular-nums; }
.profile-player-status { margin: 0; padding: 12px 18px; color: #bdccda; font-size: 14px; }
.profile-player:fullscreen { display: flex; flex-direction: column; justify-content: center; border: 0; border-radius: 0; }
.profile-player:fullscreen .profile-player-stage video { height: calc(100dvh - 84px); }
@media (max-width: 640px) {
  .profile-player-controls { gap: 4px; padding: 6px; flex-wrap: wrap; }
  .profile-player-controls input { order: -1; flex-basis: 100%; }
  .profile-player-time { margin-right: auto; }
  .profile-player .profile-player-stage video { height: 300px; }
}
.lightbox-photo-navigation {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: #08090fee;
  color: var(--white);
  z-index: 2;
}
.lightbox-photo-navigation[hidden] { display: none; }
.lightbox-photo-navigation button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}
.lightbox-photo-navigation button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.master-details-close:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
@media (max-width: 640px) {
  .master-details { grid-template-columns: 1fr; gap: 18px; }
  .master-details-portrait { max-width: 280px; }
  .profile-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@font-face {
  font-family: "Proxima Nova Regular";
  src:
    local("Proxima Nova Regular"),
    local("ProximaNova-Regular"),
    local("Proxima Nova Rg"),
    local("ProximaNovaA-Regular"),
    local("ProximaNova"),
    local("Proxima Nova");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TsehovikAtypDisplay";
  src:
    local("TsehovikAtypDisplay"),
    local("Atyp Display"),
    url("https://static.tildacdn.com/tild3533-3964-4332-a238-373432653831/AtypDisplay-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #06070b;
  --ink: #f4f7fb;
  --muted: #ffffff;
  --line: rgba(255, 255, 255, 0.16);
  --blue: #20b8ff;
  --cyan: #54f0ff;
  --violet: #8b4dff;
  --purple: #c13dff;
  --red: #ff3d2e;
  --gold: #ffba4a;
  --green: #34d399;
  --white: #ffffff;
  --soft: #0a101a;
  --panel: rgba(16, 22, 34, 0.78);
  --max: 1440px;
  --radius: 8px;
  --shadow: 0 28px 90px rgba(32, 184, 255, 0.16);
  --font-text: "Proxima Nova Regular", "Proxima Nova", Arial, sans-serif;
  --font-display: "Proxima Nova Regular", "Proxima Nova", Arial, sans-serif;
  --font-heading: "TsehovikAtypDisplay", "Atyp Display", "Proxima Nova Regular", "Proxima Nova", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-synthesis: none;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(84, 240, 255, 0.055) 1px, transparent 1px) 0 0 / 68px 68px,
    linear-gradient(180deg, #05070c 0%, #0a101a 46%, #05070c 100%);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.52;
}

strong,
b,
cite {
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 61, 46, 0.2), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(32, 184, 255, 0.24), transparent 28%),
    radial-gradient(circle at 72% 84%, rgba(52, 211, 153, 0.16), transparent 26%);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
  resize: none;
}

::selection {
  color: var(--black);
  background: var(--cyan);
}

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

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--cyan), var(--green));
  box-shadow: 0 0 18px rgba(84, 240, 255, 0.58);
}

.has-lightbox {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--white);
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100%, var(--max));
  min-height: 78px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 208px;
}

.brand img {
  width: 208px;
  height: auto;
}

.brand img {
  max-height: 44px;
}

.footer-brand picture,
.footer-brand img {
  display: block;
}

.footer-brand img {
  width: 208px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  font-size: 12px;
  font-weight: 400;
}

.nav a {
  position: relative;
  padding: 9px 0;
  text-transform: uppercase;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
  transition: transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--white);
}

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

.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.header-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.1;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: var(--white);
  background: transparent;
  transition: opacity 180ms ease, background 180ms ease, transform 180ms ease;
}

.social-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.social-icon:hover,
.social-icon:focus-visible {
  opacity: 0.78;
  transform: translateY(-1px);
}

.phone-link {
  color: var(--white);
  font-size: 13px;
  font-weight: 400;
}

.header-button,
.primary-action,
.secondary-action,
.contact-form button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid currentColor;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.header-button {
  color: var(--black);
  border-color: var(--cyan);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 32px rgba(32, 184, 255, 0.3);
}

.header-button:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 38px rgba(32, 184, 255, 0.4);
}

.header-button .button-play {
  background: var(--black);
}

.secondary-action:hover {
  transform: translateY(-2px);
  border-color: var(--purple);
  background: linear-gradient(135deg, var(--blue), var(--violet) 42%, var(--purple));
  box-shadow: 0 18px 50px rgba(193, 61, 255, 0.38);
}

.button-play {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  clip-path: polygon(18% 8%, 92% 50%, 18% 92%);
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 61, 46, 0.55);
  animation: playBeat 1.9s ease-in-out infinite;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  --mx: 70%;
  --my: 34%;
  min-height: 0;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  background: #061527;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  display: none;
}

.hero::after {
  inset: 0;
  z-index: 0;
  opacity: 1;
  background: transparent;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(6, 7, 11, 0.22), rgba(6, 7, 11, 0) 34%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 94px 22px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 640px);
  align-items: stretch;
  gap: 44px;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
}

.section-kicker {
  color: var(--red);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 400;
  text-transform: uppercase;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.34);
}

h2 {
  max-width: 840px;
  margin: 0 0 26px;
  color: var(--ink);
  font-size: 40px;
  font-weight: 400;
  text-transform: none;
}

.intro h2 {
  font-weight: 700;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 400;
  text-transform: none;
}

.lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--white);
  font-size: 22px;
  line-height: 1.45;
}

.hero-metrics {
  max-width: 690px;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metrics span {
  min-height: 76px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  color: var(--white);
  font-size: 13px;
  font-weight: 400;
}

.hero-metrics strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-action {
  position: relative;
  overflow: hidden;
  color: var(--white);
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue) 28%, var(--violet) 68%, var(--purple) 100%);
  box-shadow: 0 16px 42px rgba(32, 184, 255, 0.3), 0 0 28px rgba(139, 77, 255, 0.18);
}

.primary-action::after,
.contact-form button::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -35%;
  width: 26%;
  transform: skewX(-18deg);
  background: rgba(255, 255, 255, 0.42);
  animation: buttonSweep 3.4s ease-in-out infinite;
  pointer-events: none;
}

.primary-action:hover,
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(32, 184, 255, 0.42), 0 0 34px rgba(139, 77, 255, 0.24);
}

.secondary-action {
  color: var(--white);
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 58%, #4968ff 86%, var(--violet) 100%);
  box-shadow: 0 16px 42px rgba(32, 184, 255, 0.34), 0 0 22px rgba(139, 77, 255, 0.12);
}

.hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  display: flex;
  height: 100%;
  min-height: 100%;
  transform: translateY(var(--reveal-y, 0)) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.34);
  animation: posterFloat 7s ease-in-out infinite;
  transition: opacity 560ms ease, transform 220ms ease, box-shadow 180ms ease;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -30%;
  opacity: 0.2;
  background: conic-gradient(from 160deg, transparent, var(--blue), transparent, var(--red), transparent);
  animation: spinLight 12s linear infinite;
}

.hero-slider {
  position: relative;
  z-index: 1;
}

.hero-slider {
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 560ms ease, transform 860ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slider-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-slider-arrow,
.hero-slider-dot {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(6, 7, 11, 0.58);
  color: var(--white);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-slider-arrow {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  font-size: 24px;
  line-height: 1;
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  padding: 0;
}

.hero-slider-dot.is-active {
  width: 22px;
  border-color: var(--cyan);
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.section {
  padding: 88px 0;
}

.intro {
  padding-top: 18px;
}

.section-inner,
.contact-inner,
.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 22px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 52px;
  align-items: start;
}

.intro p:not(.section-kicker),
.program p:not(.section-kicker) {
  max-width: 780px;
  font-size: 20px;
}

.masters {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f7f8f7 0%, #ffffff 42%, #f3f5f6 100%);
}

.masters::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 6%, rgba(255, 61, 46, 0.09), transparent 24%),
    radial-gradient(circle at 91% 12%, rgba(32, 184, 255, 0.12), transparent 24%),
    linear-gradient(90deg, rgba(6, 7, 11, 0.055), transparent 28%, transparent 72%, rgba(6, 7, 11, 0.04));
  opacity: 0.78;
}

.master-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
  padding-top: 10px;
  padding-bottom: 10px;
}

.master-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  border: 1px solid rgba(6, 7, 11, 0.16);
  background:
    linear-gradient(135deg, rgba(6, 7, 11, 0.96), rgba(20, 28, 44, 0.92));
  box-shadow:
    0 34px 92px rgba(6, 7, 11, 0.2),
    12px 12px 0 rgba(6, 7, 11, 0.08);
}

.master-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.master-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 48%, rgba(6, 7, 11, 0.64)),
    linear-gradient(90deg, rgba(6, 7, 11, 0.22), transparent 42%);
}

.master-photo::after {
  content: "мастер лаборатории";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(6, 7, 11, 0.78);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.master-copy {
  max-width: 760px;
  padding: 18px 0 18px clamp(0px, 3vw, 38px);
  border-left: 1px solid rgba(6, 7, 11, 0.12);
}

.master-copy p:not(.section-kicker) {
  margin: 0 0 28px;
  max-width: 700px;
  color: #3c4351;
  font-size: 18px;
  line-height: 1.58;
}

.master-copy h2 {
  margin-bottom: 12px;
  max-width: 620px;
}

.master-role {
  width: fit-content;
  margin: 0 0 24px;
  border: 1px solid rgba(6, 7, 11, 0.16);
  border-radius: 4px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.64);
  color: #252a35;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
}

.master-copy h3 {
  margin: 26px 0 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(6, 7, 11, 0.1);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.master-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
  row-gap: 12px;
}

.master-list li {
  position: relative;
  padding-left: 24px;
  color: #3c4351;
  font-size: 15px;
  line-height: 1.52;
}

.master-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 1px;
  background: var(--red);
  box-shadow: 6px 0 0 var(--blue);
}

.quote-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(32, 184, 255, 0.28);
  border-radius: var(--radius);
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    linear-gradient(135deg, rgba(32, 184, 255, 0.18), rgba(255, 186, 74, 0.18));
  box-shadow: var(--shadow);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.42;
}

.quote-panel::before {
  content: "LAB";
  position: absolute;
  right: -10px;
  bottom: -20px;
  color: rgba(32, 184, 255, 0.14);
  font-family: var(--font-display);
  font-size: 92px;
  line-height: 1;
}

.quote-panel p {
  position: relative;
  margin: 0;
}

.quote-panel img {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 0 22px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 6px;
  box-shadow: 0 18px 42px rgba(6, 7, 11, 0.14);
}

.professions,
.courses,
.tools,
.benefits {
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.03), rgba(6, 7, 11, 0)),
    var(--soft);
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  margin-bottom: 30px;
}

.section-title-row h2 {
  margin-bottom: 0;
}

:is(.section-title-row a, .master-details-close) {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid currentColor;
  color: #087fb4;
  font-weight: 400;
}

.profession-grid,
.review-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

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

.profession-card,
blockquote {
  position: relative;
  overflow: hidden;
  transform: translateY(var(--reveal-y, 0)) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  background: var(--panel);
  border: 1px solid rgba(17, 19, 27, 0.1);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(18, 24, 34, 0.08);
  backdrop-filter: blur(16px);
  transition: opacity 560ms ease, transform 220ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.profession-card::before,
blockquote::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(84, 240, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(32, 184, 255, 0.17), rgba(255, 61, 46, 0.08));
  transition: opacity 180ms ease;
}

.profession-card:hover::before,
blockquote:hover::before,
.profession-card.is-active::before {
  opacity: 1;
}

.profession-card {
  cursor: pointer;
}

.profession-card:hover,
.profession-card:focus-visible,
.profession-card.is-active {
  border-color: rgba(32, 184, 255, 0.42);
  box-shadow: 0 24px 70px rgba(18, 24, 34, 0.16);
}

.profession-card:focus-visible {
  outline: 3px solid rgba(32, 184, 255, 0.34);
  outline-offset: 3px;
}

.profession-card > *,
blockquote > * {
  position: relative;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 48px;
  border-radius: 50%;
  color: var(--black);
  background: var(--cyan);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
}

.profession-card h3 {
  min-height: 46px;
}

.profession-card p,
blockquote p {
  margin: 0;
}

.role-lab {
  margin-top: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(17, 19, 27, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,255,255,0.72)),
    radial-gradient(circle at 10% 20%, rgba(84, 240, 255, 0.28), transparent 30%);
  box-shadow: 0 20px 60px rgba(18, 24, 34, 0.1);
}

.role-lab-index {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.role-lab h3 {
  margin-bottom: 10px;
}

.role-lab p {
  margin: 0;
}

.role-lab-skill {
  max-width: 220px;
  padding: 11px 14px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--black);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.course-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.course-feature {
  position: relative;
  overflow: hidden;
  transform: translateY(var(--reveal-y, 0)) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border: 1px solid rgba(17, 19, 27, 0.12);
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: var(--shadow);
  transition: opacity 560ms ease, transform 220ms ease, box-shadow 180ms ease;
}

.course-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(84, 240, 255, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(6, 7, 11, 0.46), transparent 52%);
  mix-blend-mode: screen;
}

.course-feature-media {
  position: relative;
  min-height: 310px;
  overflow: hidden;
}

.course-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--poster-pos, center);
  transition: opacity 260ms ease, transform 620ms ease;
}

.course-feature-poster {
  opacity: 1;
}

.course-feature:hover .course-feature-poster {
  transform: scale(1.035);
}

.course-feature-copy {
  position: absolute;
  left: 28px;
  bottom: 26px;
  z-index: 2;
  width: min(520px, calc(100% - 56px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(6, 7, 11, 0.66);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.course-feature-copy h3 {
  margin-bottom: 12px;
  font-size: 26px;
}

.course-feature-copy p:not(.section-kicker) {
  margin: 0;
  color: var(--white);
  font-weight: 400;
}

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

.course-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 28px;
  align-items: start;
  margin-top: 22px;
  padding: 28px;
  border: 1px solid rgba(84, 240, 255, 0.48);
  border-radius: var(--radius);
  background: rgba(6, 10, 18, 0.9);
  color: var(--white);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.course-details h3 { margin: 8px 0 10px; color: var(--white); }
.course-details-summary { margin: 0; color: rgba(255, 255, 255, 0.74); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.course-details-program { display: grid; gap: 9px; margin: 20px 0 0; padding: 0; list-style: none; }
.course-details-program li { display: flex; gap: 10px; align-items: baseline; }
.course-details-program li::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }

.course-price {
  min-width: 210px;
  padding: 20px;
  border: 1px solid rgba(255, 186, 74, 0.78);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 186, 74, 0.2), rgba(255, 79, 134, 0.15));
  box-shadow: 0 0 28px rgba(255, 186, 74, 0.14);
}

.course-price span, .course-price strong { display: block; }
.course-price span { color: rgba(255, 255, 255, 0.8); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.course-price strong { margin-top: 8px; color: #fff2cc; font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); line-height: 1; }
.course-details-action { grid-column: 1 / -1; justify-self: center; width: fit-content; max-width: 100%; min-height: 48px; padding: 0 18px; }

.course-card {
  position: relative;
  overflow: hidden;
  transform: translateY(var(--reveal-y, 0)) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border: 1px solid rgba(17, 19, 27, 0.1);
  border-radius: var(--radius);
  padding: 0;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 18px 50px rgba(18, 24, 34, 0.08);
  transition: opacity 560ms ease, transform 220ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, 0.38), transparent 30%);
  transition: opacity 180ms ease;
}

.course-card:hover,
.course-card:focus-visible,
.course-card.is-active {
  border-color: rgba(32, 184, 255, 0.48);
  box-shadow: 0 24px 70px rgba(18, 24, 34, 0.16);
}

.course-card:hover::before,
.course-card:focus-visible::before {
  opacity: 1;
}

.course-card:focus-visible {
  outline: 3px solid rgba(32, 184, 255, 0.34);
  outline-offset: 3px;
}

.course-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--black);
}

.course-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 220ms ease, transform 480ms ease, filter 220ms ease;
}

.course-card-poster {
  opacity: 0;
}

.course-card:hover .course-card-base,
.course-card:focus-visible .course-card-base {
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.04);
}

.course-card:hover .course-card-poster,
.course-card:focus-visible .course-card-poster {
  opacity: 1;
  transform: scale(1.025);
}

.course-card-generated::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.05), rgba(6, 7, 11, 0.76)),
    radial-gradient(circle at 50% 18%, rgba(84, 240, 255, 0.3), transparent 34%);
  transition: opacity 220ms ease;
}

.generated-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 24px;
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.generated-poster em {
  font-style: normal;
  font-size: 15px;
}

.generated-poster strong {
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1;
  text-transform: none;
}

.generated-poster small {
  width: fit-content;
  padding: 7px 10px;
  background: var(--blue);
  font-size: 15px;
}

.course-card:hover .course-card-generated::after,
.course-card:focus-visible .course-card-generated::after,
.course-card:hover .generated-poster,
.course-card:focus-visible .generated-poster {
  opacity: 1;
  transform: translateY(0);
}

.course-card-meta {
  display: block;
  padding: 16px;
}

.course-card-meta strong,
.course-card-meta small {
  display: block;
}

.course-card-meta strong {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.18;
  text-transform: none;
}

.course-card-meta small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 20px 0 20px 40px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  font-weight: 400;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 18px;
  height: 18px;
  border: 5px solid var(--blue);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(32, 184, 255, 0.12);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tool-item {
  position: relative;
  overflow: hidden;
  transform: translateY(var(--reveal-y, 0)) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 19, 27, 0.1);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 18px 50px rgba(18, 24, 34, 0.08);
  transition: opacity 560ms ease, transform 220ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tool-item::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 186, 74, 0.22), transparent 34%);
  transition: opacity 180ms ease;
}

.tool-item:hover,
.tool-item:focus-within {
  border-color: rgba(255, 186, 74, 0.34);
  box-shadow: 0 24px 70px rgba(18, 24, 34, 0.14);
}

.tool-item:hover::before {
  opacity: 1;
}

.tool-item > * {
  position: relative;
  z-index: 1;
}

.tool-poster {
  position: relative;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: end start;
  overflow: hidden;
  border-radius: 6px;
  padding: 18px;
  color: var(--white);
  background:
    linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.78)),
    repeating-linear-gradient(135deg, #3b414f 0 28px, #151923 28px 56px);
}

.tool-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.02), rgba(6, 7, 11, 0.72)),
    linear-gradient(90deg, rgba(6, 7, 11, 0.2), transparent 58%);
}

.tool-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-blue img {
  object-position: 43% 34%;
}

.poster-red img {
  object-position: center 38%;
}

.poster-blue {
  box-shadow: inset 0 0 0 6px var(--blue);
}

.poster-red {
  box-shadow: inset 0 0 0 6px var(--red);
}

.tool-item p {
  margin: 0;
}

.photo-reel {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.72fr;
  gap: 14px;
}

.photo-thumb {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 27, 0.12);
  border-radius: var(--radius);
  padding: 0;
  background: var(--black);
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(18, 24, 34, 0.1);
}

.photo-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 26%, rgba(6, 7, 11, 0.78)),
    radial-gradient(circle at 18% 16%, rgba(84, 240, 255, 0.24), transparent 26%);
  transition: opacity 180ms ease;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 360ms ease;
}

.photo-thumb:nth-child(2) img {
  object-position: center 38%;
}

.photo-thumb:nth-child(3) img {
  object-position: 40% 28%;
}

.photo-thumb span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
}

.photo-thumb:hover img,
.photo-thumb:focus-visible img {
  transform: scale(1.06);
}

.photo-thumb:focus-visible {
  outline: 3px solid rgba(32, 184, 255, 0.32);
  outline-offset: 3px;
}

.project-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-card,
.portfolio-card {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transform: translateY(var(--reveal-y, 0)) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  aspect-ratio: 3 / 4;
  min-height: 0;
  border: 1px solid rgba(17, 19, 27, 0.1);
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  box-shadow: 0 18px 50px rgba(18, 24, 34, 0.1);
  transition: opacity 560ms ease, transform 220ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.project-card,
button.project-card {
  cursor: pointer;
}

button.project-card {
  padding: 0;
  border: 1px solid rgba(17, 19, 27, 0.1);
  text-align: left;
  font: inherit;
  appearance: none;
}

.project-card img,
.project-card video,
.portfolio-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.project-card img,
.project-card video {
  position: absolute;
  inset: 0;
}

.project-card.has-project-poster-video video {
  opacity: 0;
  transition: opacity 220ms ease, transform 480ms ease;
}

.project-card.has-project-poster-video:hover video,
.project-card.has-project-poster-video:focus-visible video,
.project-card.has-project-poster-video.is-video-playing video {
  opacity: 1;
}

.project-card.has-project-poster-video:hover img,
.project-card.has-project-poster-video:focus-visible img,
.project-card.has-project-poster-video.is-video-playing img {
  opacity: 0;
}

.project-card::after,
.portfolio-student::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 22%, rgba(6, 7, 11, 0.82)),
    radial-gradient(circle at 18% 18%, rgba(84, 240, 255, 0.26), transparent 28%);
}

.project-card > div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
}

.project-card h3,
.portfolio-card h3 {
  margin-bottom: 8px;
}

.project-card p,
.portfolio-card p {
  margin: 0;
  color: var(--white);
  font-size: 16px;
  line-height: 1.38;
}

.portfolio {
  background: var(--white);
}

.portfolio-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
}

.portfolio-student {
  min-height: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.08), rgba(6, 7, 11, 0.86)),
    var(--black);
  color: var(--white);
}

.portfolio-student > img,
.portfolio-image,
.image-auto-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.portfolio-student > img,
.portfolio-image,
.image-auto-slider img {
  object-fit: cover;
  object-position: center 18%;
}

.image-auto-slider {
  overflow: hidden;
}

.image-auto-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 640ms ease, transform 900ms ease;
}

.image-auto-slider img.is-active {
  opacity: 1;
  transform: scale(1);
}

.portfolio-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portfolio-student h3,
.portfolio-student p {
  margin: 0;
}

.portfolio-student p {
  color: var(--white);
  font-size: 16px;
  line-height: 1.32;
}

.portfolio-student a {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 4px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

.portfolio-avatar {
  position: absolute;
  inset: 18px 18px auto auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1;
}

.portfolio-placeholder {
  display: grid;
  align-content: end;
  min-height: 390px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.02), rgba(6, 7, 11, 0.12)),
    var(--soft);
  color: var(--ink);
}

.portfolio-placeholder span {
  position: absolute;
  left: 50%;
  top: 28%;
  width: 82px;
  height: 118px;
  transform: translateX(-50%);
}

.portfolio-placeholder span::before,
.portfolio-placeholder span::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 19, 27, 0.18);
}

.portfolio-placeholder span::before {
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.portfolio-placeholder span::after {
  bottom: 0;
  width: 82px;
  height: 62px;
  border-radius: 48px 48px 8px 8px;
}

.reviews {
  background:
    linear-gradient(120deg, rgba(6, 7, 11, 0.96), rgba(13, 18, 28, 0.82)),
    url("assets/labmovie-stage-wide.jpg") center 42% / cover no-repeat,
    #08090f;
  color: var(--white);
}

.reviews h2 {
  color: var(--white);
}

.reviews .section-kicker {
  color: var(--cyan);
}

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

blockquote {
  margin: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
}

blockquote cite {
  display: block;
  margin-top: 22px;
  color: var(--cyan);
  font-style: normal;
  font-weight: 400;
}

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

.benefit-grid div {
  min-height: 178px;
  position: relative;
  overflow: hidden;
  transform: translateY(var(--reveal-y, 0)) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  padding: 24px;
  border: 1px solid rgba(17, 19, 27, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(18, 24, 34, 0.08);
  transition: opacity 560ms ease, transform 220ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.benefit-grid div::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  width: 34px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--cyan));
}

.benefit-grid div::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(52, 211, 153, 0.18), transparent 36%);
  transition: opacity 180ms ease;
}

.benefit-grid div:hover {
  border-color: rgba(52, 211, 153, 0.34);
  box-shadow: 0 24px 70px rgba(18, 24, 34, 0.14);
}

.benefit-grid div:hover::after {
  opacity: 1;
}

.benefit-grid strong,
.benefit-grid span {
  position: relative;
  z-index: 1;
  display: block;
}

.benefit-grid strong {
  padding-top: 40px;
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: none;
}

.benefit-grid span {
  margin-top: 12px;
  color: var(--muted);
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background:
    linear-gradient(108deg, rgba(6,7,11,0.97), rgba(10,18,28,0.88)),
    radial-gradient(circle at 12% 25%, rgba(255, 61, 46, 0.28), transparent 24%),
    radial-gradient(circle at 84% 28%, rgba(32, 184, 255, 0.35), transparent 26%),
    url("assets/labmovie-team.jpg") center 40% / cover no-repeat,
    #08090f;
  color: var(--white);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background: repeating-linear-gradient(90deg, transparent 0 80px, rgba(255,255,255,0.08) 80px 81px);
}

.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 0.72fr);
  gap: 52px;
  align-items: start;
}

.contact-inner h2 {
  color: var(--white);
}

.contact-inner p:not(.eyebrow) {
  max-width: 660px;
  color: var(--white);
  font-size: 20px;
}

.contact-form {
  padding: 28px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
  color: #202431;
  font-weight: 400;
}

.contact-form label > span {
  color: var(--red);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(17, 19, 27, 0.16);
  border-radius: 6px;
  padding: 14px 15px;
  background: rgba(255,255,255,0.86);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(32, 184, 255, 0.28);
  border-color: var(--blue);
}

.contact-form button {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: var(--black);
  cursor: pointer;
}

.contact-form button .button-play {
  background: linear-gradient(135deg, #a855f7, #e879f9);
  box-shadow:
    0 0 12px rgba(168, 85, 247, 0.78),
    0 0 24px rgba(232, 121, 249, 0.48);
}

.contact-form.is-sent button {
  border-color: var(--green);
  background: var(--green);
}

.form-note {
  min-height: 24px;
  margin: 14px 0 0;
  color: #087f5b;
  font-weight: 400;
}

.footer {
  padding: 36px 0;
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex: 0 0 208px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.footer-links a {
  color: var(--white);
}

.footer-links a[href^="#"] {
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-socials {
  gap: 8px;
}

.footer-socials .social-icon {
  width: 34px;
  height: 34px;
  color: var(--white);
  background: rgba(17, 19, 27, 0.86);
}

.footer-socials .social-icon:hover,
.footer-socials .social-icon:focus-visible {
  background: rgba(17, 19, 27, 0.72);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 26px;
  opacity: 0;
  pointer-events: none;
  background: rgba(6, 7, 11, 0.84);
  backdrop-filter: blur(18px);
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox figure {
  width: min(100%, 980px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.46);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}

.lightbox-video {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: #000;
}

.lightbox-video[hidden],
.lightbox img[hidden] {
  display: none;
}

.lightbox.is-video figure {
  width: min(100%, 1080px);
}

.lightbox figcaption {
  padding: 16px 18px;
  color: var(--white);
  font-weight: 400;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 400;
}

.reveal {
  --reveal-y: 22px;
  transform: translateY(var(--reveal-y));
  opacity: 0;
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  --reveal-y: 0;
  opacity: 1;
}

.profession-card.reveal,
.course-card.reveal,
.tool-item.reveal,
.project-card.reveal,
.portfolio-card.reveal,
.master-card.reveal,
.benefit-grid div.reveal,
.hero-visual.reveal {
  transform: translateY(var(--reveal-y, 0)) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

@keyframes spinLight {
  to {
    transform: rotate(1turn);
  }
}

@keyframes recPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.86;
  }

  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

@keyframes playBeat {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.16);
  }
}

@keyframes recBlink {
  0%,
  42% {
    opacity: 1;
  }

  43%,
  100% {
    opacity: 0.32;
  }
}

@keyframes buttonSweep {
  0%,
  48% {
    left: -36%;
  }

  62%,
  100% {
    left: 118%;
  }
}

@keyframes posterFloat {
  0%,
  100% {
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.34);
  }

  50% {
    box-shadow: 0 38px 120px rgba(32, 184, 255, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 1420px) {
  .header-socials {
    display: none;
  }

  .nav {
    gap: 12px;
  }

  .brand {
    min-width: 180px;
  }

  .header-button {
    padding: 0 12px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    min-height: 72px;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 14px 22px 20px;
    background: rgba(6, 7, 11, 0.96);
    border-top: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(18px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
  }

  .header-contact {
    display: none;
  }

  .hero-inner,
  .intro-grid,
  .master-card,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .master-copy {
    padding-left: 0;
    border-left: 0;
  }

  .master-list {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 104px;
  }

  .hero-visual {
    max-width: 650px;
    height: auto;
    min-height: 0;
  }

  .hero-slider {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .profession-grid,
  .project-grid,
  .portfolio-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-lab {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .role-lab-skill {
    grid-column: 1 / -1;
    max-width: none;
  }

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

  .course-feature-media {
    min-height: 270px;
  }

  .tool-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .photo-reel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .section-inner,
  .contact-inner,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 162px;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    padding-top: 50px;
    padding-bottom: 42px;
    gap: 22px;
  }

  h1 {
    font-size: 43px;
    line-height: 1.06;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  .lead {
    margin-top: 18px;
    font-size: 17px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }

  .hero-metrics span {
    min-height: 62px;
    padding: 10px;
    font-size: 11px;
  }

  .hero-metrics strong {
    font-size: 20px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-actions,
  .section-title-row,
  .footer-inner {
    display: block;
  }

  .primary-action,
  .secondary-action,
  :is(.section-title-row a, .master-details-close),
  .profile-video-button {
    min-height: 46px;
    width: 100%;
    margin-bottom: 12px;
  }

  .section,
  .contact-section {
    padding: 60px 0;
  }

  .intro {
    padding-top: 18px;
  }

  .master-card {
    gap: 24px;
  }

  .master-copy {
    padding-left: 0;
    border-left: 0;
  }

  .master-copy p:not(.section-kicker) {
    font-size: 17px;
  }

  .master-list {
    grid-template-columns: 1fr;
  }

  .master-photo::after {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .quote-panel {
    padding: 22px;
    font-size: 19px;
  }

  .profession-grid,
  .project-grid,
  .portfolio-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .role-lab {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .role-lab-index {
    width: 58px;
    height: 58px;
    font-size: 19px;
  }

  .course-feature-media {
    min-height: 218px;
  }

  .course-feature-copy {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    border-width: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: rgba(6, 7, 11, 0.92);
  }

  .course-feature-copy h3 {
    font-size: 22px;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .course-card-meta {
    padding: 12px;
  }

  .course-card-meta strong {
    font-size: 11px;
  }

  .course-card-meta small {
    font-size: 11px;
  }

  .generated-poster {
    padding: 14px;
  }

  .generated-poster strong {
    font-size: 20px;
  }

  .profession-card h3 {
    min-height: 0;
  }

  .card-index {
    margin-bottom: 24px;
  }

  .tool-item {
    grid-template-columns: 1fr;
  }

  .tool-poster {
    width: 100%;
    height: 180px;
  }

  .photo-reel {
    grid-template-columns: 1fr;
  }

  .photo-thumb {
    min-height: 190px;
  }

  .project-card,
  .portfolio-card {
    min-height: 280px;
  }

  .hero-slider {
    aspect-ratio: 16 / 7;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

:root {
  color-scheme: dark;
  --ink: #f4f7fb;
  --muted: #ffffff;
  --line: rgba(255, 255, 255, 0.16);
  --soft: #0a101a;
  --panel: rgba(16, 22, 34, 0.78);
  --shadow: 0 28px 90px rgba(32, 184, 255, 0.16);
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(84, 240, 255, 0.055) 1px, transparent 1px) 0 0 / 68px 68px,
    linear-gradient(180deg, #05070c 0%, #0a101a 46%, #05070c 100%);
}

body::before {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 61, 46, 0.2), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(32, 184, 255, 0.24), transparent 28%),
    radial-gradient(circle at 72% 84%, rgba(52, 211, 153, 0.16), transparent 26%);
}

#hero-title {
  max-width: 980px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  text-transform: none;
}

.site-header {
  background: #000;
  border-bottom-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.professions,
.courses,
.masters,
.portfolio,
.tools,
.benefits {
  background:
    linear-gradient(180deg, rgba(84, 240, 255, 0.035), rgba(6, 7, 11, 0)),
    var(--soft);
}

.intro p:not(.section-kicker),
.program p:not(.section-kicker),
.benefit-grid span {
  color: var(--muted);
}

.master-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.master-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(var(--reveal-y, 0)) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: opacity 560ms ease, transform 220ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

button.master-tile {
  padding: 0;
  text-align: left;
  font: inherit;
  appearance: none;
  cursor: pointer;
}

button.master-tile:hover,
button.master-tile:focus-visible {
  border-color: rgba(84, 240, 255, 0.34);
  box-shadow: 0 26px 78px rgba(32, 184, 255, 0.14);
}

button.master-tile:focus-visible {
  outline: 3px solid rgba(84, 240, 255, 0.34);
  outline-offset: 4px;
}

.master-person img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.master-person::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(6, 7, 11, 0.88)),
    radial-gradient(circle at 18% 18%, rgba(84, 240, 255, 0.2), transparent 30%);
}

.master-person > div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.master-tile h3 {
  margin: 0;
}

.master-tile p,
.master-tile span {
  display: block;
  margin: 0;
  color: var(--white);
  font-size: 16px;
  line-height: 1.4;
}

.master-tile p {
  margin-bottom: 10px;
  color: var(--cyan);
  text-transform: lowercase;
}

.master-person p,
.master-person span {
  display: none;
}

.master-person p {
  display: block;
  margin-top: 2px;
  margin-bottom: 0;
  color: var(--white);
  font-size: 16px;
  line-height: 1.38;
  text-transform: none;
}

.master-placeholder {
  display: grid;
  align-content: end;
  padding: 18px;
}

.master-placeholder span {
  position: absolute;
  left: 50%;
  top: 28%;
  width: 82px;
  height: 118px;
  transform: translateX(-50%);
}

.master-placeholder span::before,
.master-placeholder span::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.16);
}

.master-placeholder span::before {
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.master-placeholder span::after {
  bottom: 0;
  width: 82px;
  height: 62px;
  border-radius: 48px 48px 8px 8px;
}

.profession-card,
.course-card,
.tool-item,
.portfolio-placeholder,
.benefit-grid div {
  color: var(--ink);
  background: var(--panel);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.portfolio-card {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

button.portfolio-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.portfolio-student p,
.portfolio-student a {
  display: none;
}

.portfolio-placeholder span::before,
.portfolio-placeholder span::after {
  background: rgba(255, 255, 255, 0.16);
}

:is(.section-title-row a, .master-details-close) {
  color: var(--cyan);
}

.role-lab,
.quote-panel {
  border-color: rgba(84, 240, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(18, 25, 39, 0.88), rgba(9, 14, 24, 0.82)),
    radial-gradient(circle at 12% 18%, rgba(84, 240, 255, 0.18), transparent 32%);
  box-shadow: var(--shadow);
}

.role-lab-skill {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.course-feature {
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
}

.course-feature-copy {
  background: rgba(6, 7, 11, 0.74);
  border-color: rgba(255, 255, 255, 0.16);
}

.contact-form {
  color: var(--ink);
  background: rgba(14, 20, 32, 0.88);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.contact-form label,
.master-copy h3 {
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  color: var(--ink);
  background: rgba(5, 8, 14, 0.72);
  border-color: rgba(255, 255, 255, 0.16);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(244, 247, 251, 0.48);
}

.form-note {
  color: var(--green);
}

.footer {
  background: var(--black);
  color: var(--white);
  border-top-color: rgba(255, 255, 255, 0.16);
}

.footer-links a {
  color: var(--white);
}

.footer-socials .social-icon {
  color: var(--white);
  background: transparent;
}

.footer-socials .social-icon:hover,
.footer-socials .social-icon:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.social-icon-rutube:hover,
.social-icon-rutube:focus-visible {
  background: transparent;
}

.social-icon-rutube img,
.social-icon-vk-video img {
  width: 22px;
  height: 22px;
}

.lightbox {
  background: rgba(0, 0, 0, 0.9);
}

.lightbox.is-profile figure {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  width: min(100%, 920px);
}

.lightbox.is-profile img {
  height: 100%;
  max-height: 78vh;
  object-fit: cover;
}

.lightbox.is-profile.is-master-profile figure {
  width: min(100%, 920px);
  gap: 28px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lightbox.is-profile.is-master-profile img {
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.lightbox.is-profile.is-master-profile figcaption {
  align-self: start;
  max-height: min(62vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 50px 0 0;
  scrollbar-color: var(--violet) rgba(255, 255, 255, 0.14);
  scrollbar-width: thin;
}

.profile-details {
  display: grid;
  gap: 10px;
}

.lightbox.is-profile.is-master-profile figcaption::-webkit-scrollbar {
  width: 6px;
}

.lightbox.is-profile.is-master-profile figcaption::-webkit-scrollbar-track {
  margin-block: 25%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.lightbox.is-profile.is-master-profile figcaption::-webkit-scrollbar-thumb {
  min-height: 50%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--blue) 42%, var(--violet) 72%, var(--purple) 100%);
  box-shadow:
    0 0 14px rgba(84, 240, 255, 0.34),
    0 0 20px rgba(139, 77, 255, 0.32);
}

.profile-details h3 {
  margin-bottom: 4px;
}

.profile-details p {
  margin: 0;
  color: var(--white);
  font-size: 16px;
  line-height: 1.4;
}

.lightbox.is-profile.is-master-profile .profile-details p:first-of-type {
  margin-bottom: 8px;
}

.profile-video-button {
  position: relative;
  overflow: hidden;
  width: fit-content;
  margin-top: 8px;
  padding: 12px 18px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 42px rgba(32, 184, 255, 0.28);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
}

.profile-video-button:hover,
.profile-video-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(32, 184, 255, 0.4);
}

h1,
h2,
h3,
#hero-title,
.course-card-meta strong,
.course-card-meta small,
.generated-poster strong,
:is(.section-title-row a, .master-details-close),
.header-button,
.primary-action,
.secondary-action,
.contact-form button,
.profile-video-button {
  text-transform: uppercase;
}

body::before {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(84, 240, 255, 0.2), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(32, 184, 255, 0.24), transparent 28%),
    radial-gradient(circle at 72% 84%, rgba(139, 77, 255, 0.14), transparent 26%);
}

.scroll-progress {
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
  box-shadow: 0 0 18px rgba(84, 240, 255, 0.58);
}

.button-play {
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(84, 240, 255, 0.55);
}

.master-list li::before {
  background: var(--cyan);
  box-shadow: 6px 0 0 var(--blue);
}

:is(.section-title-row a, .master-details-close) {
  color: var(--white);
}

.intro-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 52px;
  align-items: start;
}

.quote-panel {
  isolation: isolate;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: var(--shadow);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.42;
  transition: opacity 560ms ease, transform 220ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.quote-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(84, 240, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(32, 184, 255, 0.17), rgba(139, 77, 255, 0.1));
  transition: opacity 180ms ease;
}

.quote-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 0 2px rgba(84, 240, 255, 0.46);
  transition: opacity 180ms ease;
}

.quote-panel::after {
  display: block;
}

.quote-panel img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  margin: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 38%;
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(6, 7, 11, 0.14);
}

.quote-panel p {
  display: none;
}

.intro-copy p {
  color: var(--white);
}

.course-card {
  min-height: 390px;
  border: 0;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 20px 60px rgba(32, 184, 255, 0.12);
}

.course-card::before {
  z-index: 2;
  opacity: 1;
  background:
    linear-gradient(180deg, transparent 18%, rgba(6, 7, 11, 0.88)),
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(84, 240, 255, 0.22), transparent 30%);
}

.course-card:hover,
.course-card:focus-visible,
.course-card.is-active {
  border-color: rgba(84, 240, 255, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 0 2px rgba(84, 240, 255, 0.46),
    0 26px 78px rgba(32, 184, 255, 0.24);
}

.course-card-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.course-card-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 0;
}

.course-card-meta strong {
  color: var(--white);
  font-size: 22px;
  line-height: 1.04;
  text-transform: uppercase;
}

.course-card-meta small {
  margin-top: 8px;
  color: var(--white);
  font-size: 16px;
  line-height: 1.38;
  text-transform: uppercase;
}

.hero-visual:hover,
.hero-visual:focus-within,
.quote-panel:hover,
.master-tile:hover,
.master-tile:focus-visible,
.profession-card:hover,
.profession-card:focus-visible,
.profession-card.is-active,
.course-feature:hover,
.course-card:hover,
.course-card:focus-visible,
.project-card:hover,
.project-card:focus-visible,
:is(.portfolio-card, .profile-photo-button):hover,
:is(.portfolio-card, .profile-photo-button):focus-visible,
.contact-form:hover,
:is(.section-title-row a, .master-details-close):hover,
:is(.section-title-row a, .master-details-close):focus-visible {
  border-color: rgba(84, 240, 255, 0.4);
  box-shadow: 0 26px 78px rgba(32, 184, 255, 0.22);
}

.master-photo,
.role-lab,
.course-feature,
.project-card,
.portfolio-card,
.contact-form {
  box-shadow: 0 20px 60px rgba(32, 184, 255, 0.14);
}

.master-grid,
.portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.master-tile,
.portfolio-card,
.portfolio-student {
  aspect-ratio: 3 / 4;
  min-height: 0;
}

.primary-action {
  border-color: var(--blue);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue) 28%, var(--violet) 68%, var(--purple) 100%);
  box-shadow: 0 16px 42px rgba(32, 184, 255, 0.3), 0 0 28px rgba(139, 77, 255, 0.18);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue) 22%, var(--violet) 64%, var(--purple) 100%);
  box-shadow: 0 18px 52px rgba(32, 184, 255, 0.38), 0 0 36px rgba(139, 77, 255, 0.24);
}

.primary-action .button-play {
  background: var(--white);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.42);
}

.header-button,
.primary-action,
.secondary-action,
:is(.section-title-row a, .master-details-close),
.contact-form button,
.profile-video-button {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.header-button,
.primary-action,
:is(.section-title-row a, .master-details-close),
.contact-form button,
.profile-video-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue) 28%, var(--violet) 68%, var(--purple) 100%);
  box-shadow: 0 16px 42px rgba(32, 184, 255, 0.3), 0 0 28px rgba(139, 77, 255, 0.18);
}

.secondary-action,
:is(.section-title-row a, .master-details-close) {
  border-color: var(--blue);
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 58%, #4968ff 86%, var(--violet) 100%);
  box-shadow: 0 16px 42px rgba(32, 184, 255, 0.34), 0 0 22px rgba(139, 77, 255, 0.12);
}

.header-button::after,
.secondary-action::after,
:is(.section-title-row a, .master-details-close)::after,
.profile-video-button::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -35%;
  width: 26%;
  transform: skewX(-18deg);
  background: rgba(255, 255, 255, 0.42);
  animation: buttonSweep 3.4s ease-in-out infinite;
  pointer-events: none;
}

.header-button:hover,
.header-button:focus-visible,
:is(.section-title-row a, .master-details-close):hover,
:is(.section-title-row a, .master-details-close):focus-visible,
.contact-form button:hover,
.contact-form button:focus-visible,
.profile-video-button:hover,
.profile-video-button:focus-visible {
  transform: translateY(-2px);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue) 22%, var(--violet) 64%, var(--purple) 100%);
  box-shadow: 0 18px 52px rgba(32, 184, 255, 0.38), 0 0 36px rgba(139, 77, 255, 0.24);
}

.secondary-action:hover,
.secondary-action:focus-visible,
:is(.section-title-row a, .master-details-close):hover,
:is(.section-title-row a, .master-details-close):focus-visible {
  border-color: var(--blue);
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 64%, #4968ff 88%, var(--violet) 100%);
  box-shadow: 0 18px 52px rgba(32, 184, 255, 0.44), 0 0 28px rgba(139, 77, 255, 0.16);
}

.header-button,
.primary-action {
  border-color: var(--violet);
  color: var(--white);
  background: linear-gradient(135deg, var(--violet), var(--purple));
  box-shadow: 0 16px 42px rgba(139, 77, 255, 0.34);
}

.header-button:hover,
.header-button:focus-visible,
.primary-action:hover,
.primary-action:focus-visible {
  color: var(--white);
  background: linear-gradient(135deg, var(--violet), var(--purple));
  box-shadow: 0 18px 52px rgba(139, 77, 255, 0.46);
}

:is(.section-title-row a, .master-details-close) {
  flex: 0 0 auto;
  border-bottom: 0;
}

.header-button .button-play,
.primary-action .button-play {
  background: var(--white);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.42);
}

.contact-form button .button-play {
  background: var(--white);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.42);
}

.hero-slider-controls {
  display: none;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(84, 240, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(32, 184, 255, 0.17), rgba(139, 77, 255, 0.1));
  transition: opacity 180ms ease;
}

.hero-visual:hover .hero-slider::after,
.hero-visual:focus-within .hero-slider::after {
  opacity: 1;
}

.master-tile::before,
.course-feature::before,
.project-card::before,
:is(.portfolio-card, .profile-photo-button)::before,
.contact-form::before,
.role-lab::before,
.photo-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(84, 240, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(32, 184, 255, 0.17), rgba(139, 77, 255, 0.1));
  transition: opacity 180ms ease;
}

.master-tile,
.course-feature,
.project-card,
.portfolio-card,
.contact-form,
.role-lab,
.benefit-grid div,
.photo-thumb {
  position: relative;
  overflow: hidden;
}

.master-tile > *,
.course-feature > *,
.project-card > *,
.portfolio-card > *,
.contact-form > *,
.role-lab > *,
.benefit-grid div > * {
  position: relative;
  z-index: 1;
}

.project-card > div,
.portfolio-copy,
.master-person > div,
.course-feature-copy,
.photo-thumb span,
blockquote > *,
.contact-form > *,
.role-lab > *,
.benefit-grid div > * {
  position: relative;
  z-index: 3;
}

.benefit-grid div::before {
  z-index: 3;
}

.photo-thumb::after {
  z-index: 1;
}

.benefit-grid div::after,
blockquote::before {
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(84, 240, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(32, 184, 255, 0.17), rgba(139, 77, 255, 0.1));
}

.master-tile:hover::before,
.master-tile:focus-visible::before,
.quote-panel:hover::before,
.quote-panel:focus-visible::before,
.course-feature:hover::before,
.course-feature:focus-visible::before,
.project-card:hover::before,
.project-card:focus-visible::before,
.project-card.is-video-playing::before,
:is(.portfolio-card, .profile-photo-button):hover::before,
:is(.portfolio-card, .profile-photo-button):focus-visible::before,
.contact-form:hover::before,
.contact-form:focus-within::before,
.role-lab:hover::before,
.role-lab:focus-visible::before,
.benefit-grid div:hover::after,
.benefit-grid div:focus-visible::after,
.photo-thumb:hover::before,
.photo-thumb:focus-visible::before,
blockquote:hover::before,
blockquote:focus-visible::before {
  opacity: 1;
}

.master-tile:hover,
.master-tile:focus-visible,
.course-feature:hover,
.course-feature:focus-visible,
.course-card:hover,
.course-card:focus-visible,
.project-card:hover,
.project-card:focus-visible,
.project-card.is-video-playing,
:is(.portfolio-card, .profile-photo-button):hover,
:is(.portfolio-card, .profile-photo-button):focus-visible,
.contact-form:hover,
.contact-form:focus-within,
.role-lab:hover,
.role-lab:focus-visible,
.benefit-grid div:hover,
.benefit-grid div:focus-visible,
.photo-thumb:hover,
.photo-thumb:focus-visible,
blockquote:hover,
blockquote:focus-visible {
  border-color: rgba(32, 184, 255, 0.42);
  box-shadow: 0 24px 70px rgba(18, 24, 34, 0.16), 0 0 34px rgba(84, 240, 255, 0.2);
}

.course-grid .course-card:hover,
.course-grid .course-card:focus-visible,
.course-grid .course-card.is-active {
  border-color: rgba(84, 240, 255, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 0 2px rgba(84, 240, 255, 0.46),
    0 24px 70px rgba(18, 24, 34, 0.16),
    0 0 34px rgba(84, 240, 255, 0.2);
}

.quote-panel:hover,
.quote-panel:focus-visible {
  box-shadow:
    0 24px 70px rgba(18, 24, 34, 0.16),
    0 0 34px rgba(84, 240, 255, 0.2);
}

.quote-panel:hover::after,
.quote-panel:focus-visible::after {
  opacity: 1;
}

@media (max-width: 1420px) {
  .master-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .master-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #hero-title {
    font-size: 32px;
  }

  .quote-panel {
    padding: 0;
    font-size: 19px;
  }

  .quote-panel p {
    padding: 18px;
  }

  .course-card {
    min-height: 320px;
  }

  .master-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .lightbox.is-profile figure {
    grid-template-columns: 1fr;
  }

  .lightbox.is-profile img {
    max-height: 46vh;
  }
}

.project-grid,
.master-grid,
.portfolio-grid {
  grid-template-columns: repeat(auto-fill, 295px);
  justify-content: start;
  align-items: start;
}

.project-card,
.master-tile,
.portfolio-card,
.portfolio-student {
  width: 295px;
  height: 360px;
  aspect-ratio: auto;
  min-height: 0;
}

.project-card::after,
.portfolio-student::after,
.master-person::after {
  z-index: 1;
  pointer-events: none;
}

.project-card > div,
.portfolio-copy,
.master-person > div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  z-index: 3;
}

.project-card p,
.portfolio-card p,
.master-tile p {
  margin-bottom: 0;
}

.portfolio-student .portfolio-copy p {
  display: block;
  margin: 0;
  color: var(--white);
  font-size: 16px;
  line-height: 1.38;
  text-transform: none;
}

.lightbox.is-profile.is-master-profile img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: transparent;
  align-self: start;
}

.lightbox.is-profile.is-master-profile {
  place-items: start center;
  padding-top: 15px;
}

.lightbox.is-profile.is-master-profile figure {
  align-self: start;
}

@media (max-width: 640px) {
  .project-grid,
  .master-grid,
  .portfolio-grid {
    grid-template-columns: minmax(0, 295px);
  }

  .lightbox.is-profile.is-master-profile {
    padding-top: 15px;
  }

  .lightbox.is-profile.is-master-profile figcaption {
    max-height: 42vh;
    padding-right: 28px;
  }
}

.footer-links > a {
  position: relative;
  padding: 9px 0;
  color: var(--white);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
}

.footer-links > a[href^="#"] {
  text-transform: uppercase;
}

.footer-links > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
  transition: transform 180ms ease;
}

.footer-links > a:hover,
.footer-links > a:focus-visible {
  color: var(--white);
}

.footer-links > a:hover::after,
.footer-links > a:focus-visible::after {
  transform: scaleX(1);
}

.intro,
.program {
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.98), rgba(10, 16, 26, 0.98)),
    var(--soft);
}

.intro {
  padding-top: 88px;
}

.program {
  background:
    linear-gradient(108deg, rgba(6, 7, 11, 0.92), rgba(10, 18, 28, 0.78)),
    radial-gradient(circle at 84% 28%, rgba(32, 184, 255, 0.22), transparent 26%),
    url("assets/course-theater-14-17-wide.jpg") center 42% / cover no-repeat,
    #08090f;
  color: var(--white);
}

.contact-section::before {
  display: none;
}

/* Shared photographic backdrop for the four featured sections. */
.role-lab-action {
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.role-lab p,
.role-lab-skill {
  white-space: pre-line;
}

.hero,
.professions,
.masters,
.portfolio {
  background: #101116 url("assets/section-bokeh.jpg") center / cover no-repeat;
}

.masters::before {
  display: none;
}

@media (max-width: 640px) {
  .course-details {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .course-price {
    min-width: 0;
  }

  .intro {
    padding-top: 60px;
  }
}



/* Keep the spacing entered in the discipline program. */
.course-details-program li { white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; min-height: 1lh; }
.course-details-program li:empty::before { visibility: hidden; }

.course-details:not(.is-open) { display: none; }

/* Hide section kicker labels throughout the site. */
.section-kicker { display: none !important; }

/* Preserve spacing authored in the content editor. */
main :is(h1, h2, h3, h4, p, li, blockquote),
main :is(span, strong, small, a, button, label):not(:has(*)),
footer :is(p, a, span, strong, small):not(:has(*)),
header :is(a, span):not(:has(*)),
.lightbox-caption { white-space: pre-wrap !important; overflow-wrap: anywhere; tab-size: 4; }
.profile-details p:empty { min-height: 1lh; }
