:root {
  --ink: #222235;
  --muted: #5f6175;
  --purple: #6c42d9;
  --purple-dark: #4a279f;
  --purple-pale: #eee9ff;
  --paper: #ffffff;
  --line: rgba(41, 36, 65, 0.13);
  --shadow: 0 22px 60px rgba(25, 20, 49, 0.22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: #ffffff;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

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

/* Approved opening asset */
.splash-screen {
  align-items: center;
  background: #ffffff;
  display: flex;
  inset: 0;
  justify-content: center;
  overflow: hidden;
  position: fixed;
  transition: opacity 360ms ease, visibility 360ms ease;
  z-index: 30;
}

.splash-screen.is-leaving {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.splash-frame {
  align-items: center;
  display: flex;
  height: 100svh;
  justify-content: center;
  max-width: 700px;
  overflow: hidden;
  width: 100%;
}

#splash-video {
  display: block;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.skip-splash {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(30, 26, 50, 0.12);
  border-radius: 999px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  color: rgba(34, 34, 53, 0.64);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 15px;
  position: absolute;
  text-transform: uppercase;
}

.skip-splash:hover,
.skip-splash:focus-visible {
  border-color: rgba(108, 66, 217, 0.5);
  color: var(--purple-dark);
  outline: none;
}

/* Classroom control screen */
.classroom-screen {
  align-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(131, 87, 227, 0.48), transparent 39%),
    linear-gradient(135deg, #19152b, #2c2450);
  display: flex;
  inset: 0;
  min-height: 100svh;
  overflow: hidden;
  position: fixed;
  justify-content: center;
  transition: opacity 360ms ease;
  z-index: 1;
}

.classroom-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scene-canvas {
  box-shadow: 0 0 80px rgba(6, 4, 16, 0.46);
  height: 100svh;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  width: min(100vw, 56.01svh);
}

.classroom-art,
.classroom-shade {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.classroom-art {
  background: center center / cover no-repeat url("./assets/albert-classroom.png");
  transform: scale(1.015);
}

.classroom-shade {
  background:
    linear-gradient(180deg, rgba(20, 18, 36, 0.08) 0%, rgba(20, 18, 36, 0.02) 32%, rgba(21, 18, 35, 0.12) 65%, rgba(20, 17, 32, 0.48) 100%),
    radial-gradient(circle at 50% 57%, rgba(255, 255, 255, 0.18), transparent 34%);
}

.app-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: calc(18px + env(safe-area-inset-top)) 20px 20px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 5;
}

.wordmark {
  color: #ffffff;
  font-size: clamp(1.32rem, 5vw, 1.78rem);
  font-weight: 850;
  letter-spacing: -0.075em;
  text-shadow: 0 1px 12px rgba(20, 17, 32, 0.28);
}

.wordmark-dot {
  color: #b99eff;
}

.profile-button {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: var(--ink);
  display: flex;
  font-size: 0.78rem;
  font-weight: 750;
  gap: 8px;
  max-width: 180px;
  padding: 5px 12px 5px 5px;
  box-shadow: 0 5px 20px rgba(16, 13, 29, 0.16);
}

.profile-button img {
  border: 2px solid #ffffff;
  border-radius: 50%;
  height: 29px;
  object-fit: cover;
  width: 29px;
}

.classroom-stage {
  inset: 0;
  position: absolute;
  z-index: 2;
}

.stage-copy {
  color: #ffffff;
  left: 20px;
  max-width: min(78vw, 420px);
  position: absolute;
  text-shadow: 0 2px 14px rgba(17, 13, 30, 0.45);
  top: clamp(100px, 16svh, 170px);
}

.eyebrow {
  color: var(--purple);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.stage-copy .eyebrow {
  color: #cbb9ff;
}

.stage-copy h1,
.sheet-header h2,
.profile-card h2 {
  font-size: clamp(2rem, 9vw, 3.8rem);
  letter-spacing: -0.068em;
  line-height: 0.92;
  margin: 0;
}

.stage-copy p:last-child {
  font-size: clamp(0.95rem, 3.9vw, 1.12rem);
  line-height: 1.4;
  margin: 12px 0 0;
  max-width: 360px;
}

.atom-trigger {
  align-items: center;
  background: radial-gradient(circle at 32% 25%, #a98aff 0%, #8359f1 36%, #5624bd 100%);
  border: 5px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(48, 21, 118, 0.4), 0 0 0 8px rgba(116, 70, 223, 0.18);
  color: #ffffff;
  display: grid;
  height: clamp(108px, 29vw, 150px);
  left: 50%;
  place-items: center;
  position: absolute;
  top: 61%;
  transform: translate(-50%, -50%);
  transition: box-shadow 260ms ease, transform 260ms ease;
  width: clamp(108px, 29vw, 150px);
  z-index: 4;
}

.atom-trigger:hover,
.atom-trigger:focus-visible,
.classroom-screen.menu-is-open .atom-trigger {
  box-shadow: 0 20px 45px rgba(48, 21, 118, 0.5), 0 0 0 12px rgba(116, 70, 223, 0.22);
  outline: none;
  transform: translate(-50%, -50%) scale(1.04);
}

.atom-trigger svg {
  height: 76%;
  overflow: visible;
  width: 76%;
}

.atom-orbit {
  fill: none;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 3;
}

.atom-orbit--two {
  transform: rotate(60deg);
  transform-origin: 80px 80px;
}

.atom-orbit--three {
  transform: rotate(-60deg);
  transform-origin: 80px 80px;
}

.atom-electron {
  fill: #ffffff;
}

.atom-nucleus {
  fill: #ffffff;
}

.atom-proton {
  fill: #7a4ce8;
}

.atom-neutron {
  fill: #cfc0ff;
}

.atom-label {
  bottom: 11%;
  font-size: 0.6rem;
  font-weight: 850;
  left: 50%;
  letter-spacing: 0.1em;
  position: absolute;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.orbit-menu {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.orbit-action {
  --offset-x: 0px;
  --offset-y: 0px;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(28, 20, 50, 0.24);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-size: clamp(0.62rem, 2.7vw, 0.75rem);
  font-weight: 820;
  height: clamp(76px, 19vw, 100px);
  justify-content: center;
  left: 50%;
  line-height: 1.08;
  opacity: 0;
  padding: 6px;
  pointer-events: none;
  position: absolute;
  text-align: center;
  top: 61%;
  transform: translate(-50%, -50%) scale(0.25);
  transition: opacity 180ms ease, transform 440ms cubic-bezier(0.23, 1.28, 0.45, 1), box-shadow 180ms ease;
  width: clamp(76px, 19vw, 100px);
}

.orbit-action:hover,
.orbit-action:focus-visible {
  box-shadow: 0 16px 34px rgba(28, 20, 50, 0.32);
  outline: 3px solid rgba(114, 72, 221, 0.32);
}

.orbit-action--one {
  --offset-x: -150px;
  --offset-y: 0px;
  color: var(--purple-dark);
}

.orbit-action--two {
  --offset-x: -92px;
  --offset-y: -145px;
}

.orbit-action--three {
  --offset-x: 92px;
  --offset-y: -145px;
}

.orbit-action--four {
  --offset-x: -78px;
  --offset-y: 142px;
}

.orbit-action--five {
  --offset-x: 150px;
  --offset-y: 0px;
}

.orbit-action__icon {
  font-size: 1.08rem;
  line-height: 1;
  margin-bottom: 3px;
}

.classroom-screen.menu-is-open .orbit-menu {
  pointer-events: auto;
}

.classroom-screen.menu-is-open .orbit-action {
  opacity: 1;
  pointer-events: auto;
  transform: translate(calc(-50% + var(--offset-x)), calc(-50% + var(--offset-y))) scale(1);
}

.classroom-screen.menu-is-open .orbit-action--one {
  transition-delay: 20ms;
}

.classroom-screen.menu-is-open .orbit-action--two {
  transition-delay: 65ms;
}

.classroom-screen.menu-is-open .orbit-action--three {
  transition-delay: 110ms;
}

.classroom-screen.menu-is-open .orbit-action--four {
  transition-delay: 155ms;
}

.classroom-screen.menu-is-open .orbit-action--five {
  transition-delay: 200ms;
}

.orbit-message {
  bottom: calc(20px + env(safe-area-inset-bottom));
  color: #ffffff;
  font-size: 0.77rem;
  font-weight: 650;
  left: 50%;
  margin: 0;
  max-width: min(88vw, 460px);
  opacity: 0;
  position: absolute;
  text-align: center;
  text-shadow: 0 1px 10px rgba(17, 13, 30, 0.8);
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.orbit-message.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.desk-hotspot,
.teacher-hotspot {
  background: transparent;
  border: 0;
  color: #ffffff;
  padding: 0;
  position: absolute;
}

.desk-hotspot {
  border-radius: 18px;
  z-index: 3;
}

.desk-hotspot--tablet {
  height: 17%;
  left: 4%;
  top: 68%;
  width: 51%;
}

.desk-hotspot--notes {
  height: 16%;
  right: 2%;
  top: 78%;
  width: 39%;
}

.phone-hotspot {
  background: linear-gradient(145deg, #1a1b26, #06070c);
  border: 2px solid #4c4d5e;
  border-radius: 13px;
  box-shadow: 7px 11px 14px rgba(19, 12, 28, 0.33);
  height: clamp(84px, 13.5%, 136px);
  left: 48%;
  overflow: visible;
  padding: 7px 5px;
  position: absolute;
  top: 81%;
  transform: rotate(7deg);
  transition: transform 160ms ease, box-shadow 160ms ease;
  width: clamp(48px, 10%, 72px);
  z-index: 4;
}

.phone-hotspot:hover,
.phone-hotspot:focus-visible {
  box-shadow: 9px 15px 19px rgba(19, 12, 28, 0.42);
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
  transform: rotate(7deg) translateY(-4px);
}

.phone-hotspot__speaker {
  background: #646474;
  border-radius: 99px;
  display: block;
  height: 3px;
  margin: 0 auto 5px;
  width: 38%;
}

.phone-hotspot__screen {
  align-items: center;
  background: linear-gradient(165deg, #a88dff, #6b3fd3 53%, #262156);
  border-radius: 7px;
  display: flex;
  gap: 3px;
  height: calc(100% - 12px);
  justify-content: center;
  width: 100%;
}

.phone-hotspot__screen i {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: block;
  height: 5px;
  width: 5px;
}

.phone-hotspot__label {
  backdrop-filter: blur(8px);
  background: rgba(34, 26, 61, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 820;
  left: 50%;
  letter-spacing: 0.02em;
  opacity: 0;
  padding: 5px 8px;
  position: absolute;
  top: 108%;
  transform: translateX(-50%) rotate(-7deg);
  transition: opacity 150ms ease;
  white-space: nowrap;
}

.phone-hotspot:hover .phone-hotspot__label,
.phone-hotspot:focus-visible .phone-hotspot__label {
  opacity: 1;
}

.teacher-hotspot {
  border-radius: 36%;
  height: 39%;
  left: 29%;
  top: 11%;
  width: 42%;
  z-index: 2;
}

.desk-hotspot span,
.teacher-hotspot span {
  backdrop-filter: blur(9px);
  background: rgba(34, 26, 61, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(16, 11, 31, 0.2);
  font-size: 0.69rem;
  font-weight: 830;
  left: 50%;
  letter-spacing: 0.03em;
  opacity: 0.64;
  padding: 7px 10px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 150ms ease, transform 150ms ease, background 150ms ease;
  white-space: nowrap;
}

.teacher-hotspot span {
  top: 13%;
}

.desk-hotspot:hover span,
.desk-hotspot:focus-visible span,
.teacher-hotspot:hover span,
.teacher-hotspot:focus-visible span {
  background: rgba(93, 52, 203, 0.93);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.desk-hotspot:focus-visible,
.teacher-hotspot:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

/* Intake and local profile */
.intake-sheet,
.desk-sheet {
  background: #ffffff;
  border-radius: 30px 30px 0 0;
  bottom: 0;
  box-shadow: 0 -20px 60px rgba(20, 14, 38, 0.26);
  color: var(--ink);
  max-height: min(88svh, 860px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px calc(32px + env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  transform: translateY(0);
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1), visibility 400ms ease;
  width: min(100%, 700px);
  z-index: 20;
}

.intake-sheet.is-hidden,
.desk-sheet.is-hidden {
  pointer-events: none;
  transform: translateY(105%);
  visibility: hidden;
}

.sheet-handle {
  background: #d7d3e2;
  border-radius: 999px;
  height: 5px;
  margin: 0 auto 16px;
  width: 48px;
}

.close-sheet {
  align-items: center;
  background: #f2eff8;
  border: 0;
  border-radius: 50%;
  color: #393447;
  display: grid;
  font-size: 1.45rem;
  height: 38px;
  line-height: 1;
  place-items: center;
  position: absolute;
  right: 18px;
  top: 17px;
  width: 38px;
}

.close-sheet:hover,
.close-sheet:focus-visible {
  background: var(--purple-pale);
  color: var(--purple-dark);
  outline: none;
}

.sheet-header {
  max-width: 560px;
  padding-right: 44px;
}

.sheet-header h2,
.profile-card h2 {
  font-size: clamp(1.9rem, 7vw, 2.75rem);
}

.sheet-header > p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.48;
  margin: 12px 0 20px;
}

.intake-form {
  display: grid;
  gap: 15px;
  max-width: 630px;
}

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

.intake-form label,


.field-label {
  color: #38354b;
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 7px;
  letter-spacing: 0.01em;
}

.optional {
  color: #858197;
  font-size: 0.72rem;
  font-weight: 650;
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  appearance: none;
  background: #fbfaff;
  border: 1px solid #ded9eb;
  border-radius: 13px;
  color: var(--ink);
  min-height: 48px;
  outline: none;
  padding: 0 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  width: 100%;
}

.intake-form select {
  background-image: linear-gradient(45deg, transparent 50%, #6b6580 50%), linear-gradient(135deg, #6b6580 50%, transparent 50%);
  background-position: calc(100% - 17px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 38px;
}

.intake-form textarea {
  line-height: 1.45;
  min-height: 170px;
  padding: 13px;
  resize: vertical;
}

.intake-form input::placeholder {
  color: #9b97aa;
}

.intake-form input:focus,
.intake-form select:focus {
  background: #ffffff;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(108, 66, 217, 0.13);
}

.intake-form select:disabled {
  color: #9894a5;
  cursor: not-allowed;
}

.field-note {
  color: #716d7e;
  display: block;
  font-size: 0.74rem;
  font-weight: 520;
  line-height: 1.37;
  margin-top: -2px;
}

.subject-field {
  border: 1px solid #e4dff0;
  border-radius: 18px;
  margin: 0;
  padding: 14px;
}

.subject-field legend {
  color: #38354b;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0 4px;
}

.subject-field .field-note {
  margin: 0 0 12px;
}

.subject-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subject-chip {
  background: #fbfaff;
  border: 1px solid #ded9eb;
  border-radius: 999px;
  color: #4f4a61;
  font-size: 0.75rem;
  font-weight: 740;
  padding: 8px 10px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.subject-chip:hover,
.subject-chip:focus-visible {
  border-color: #aa8ded;
  outline: none;
  transform: translateY(-1px);
}

.subject-chip[aria-pressed="true"] {
  background: #673ad2;
  border-color: #673ad2;
  color: #ffffff;
}

.other-subject {
  margin-top: 13px;
}

.avatar-field {
  align-items: center;
  background: linear-gradient(126deg, #f7f5ff 0%, #fcfbff 100%);
  border: 1px solid #e4dff0;
  border-radius: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 86px;
  padding: 15px;
}

.avatar-field .field-label {
  margin: 0 0 5px;
}

.photo-picker {
  background: #ffffff;
  border: 1px solid #cfbfef;
  border-radius: 999px;
  color: var(--purple-dark) !important;
  cursor: pointer;
  display: inline-flex !important;
  font-size: 0.75rem !important;
  margin-top: 12px;
  padding: 9px 13px;
  place-self: start;
  width: auto;
}

.photo-picker:hover,
.photo-picker:focus-visible {
  background: var(--purple-pale);
  outline: none;
}

.avatar-preview-wrap {
  align-items: center;
  background: radial-gradient(circle at 35% 25%, #ffffff, #ded4ff);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(77, 49, 137, 0.18);
  color: var(--purple-dark);
  display: flex;
  font-size: 1.7rem;
  height: 82px;
  justify-content: center;
  overflow: hidden;
  width: 82px;
}

.avatar-preview {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.form-message {
  color: #a12b58;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin: -2px 0 0;
  min-height: 1.1em;
}

.form-message.is-success {
  color: #46733f;
}

.setup-callout {
  background: #f5f1ff;
  border: 1px solid #ded2fb;
  border-radius: 16px;
  color: #504a63;
  font-size: 0.89rem;
  line-height: 1.45;
  margin: 0 0 16px;
  padding: 14px;
}

.setup-callout p {
  margin: 0;
}

.setup-callout .secondary-button {
  margin-bottom: 0;
  margin-top: 12px;
}

.setup-callout.is-hidden {
  display: none;
}

.save-profile,
.secondary-button {
  align-items: center;
  border: 0;
  border-radius: 15px;
  display: inline-flex;
  font-weight: 820;
  justify-content: center;
  min-height: 54px;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.save-profile {
  background: linear-gradient(105deg, #5f34d1, #7c4de8);
  box-shadow: 0 12px 22px rgba(91, 47, 196, 0.26);
  color: #ffffff;
  gap: 13px;
  padding: 0 20px;
}

.save-profile:hover,
.save-profile:focus-visible {
  box-shadow: 0 16px 27px rgba(91, 47, 196, 0.34);
  outline: none;
  transform: translateY(-1px);
}

.secondary-button {
  background: #f1edfb;
  color: var(--purple-dark);
  margin: 16px 0 10px;
  width: 100%;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: #e7defa;
  outline: none;
}

.profile-panel {
  align-items: end;
  background: rgba(18, 15, 31, 0.48);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 25;
}

.profile-panel.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.profile-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  max-width: 520px;
  padding: 32px 24px 24px;
  position: relative;
  text-align: center;
  width: min(100%, 520px);
}

.profile-card .eyebrow {
  margin-top: 0;
}

.profile-avatar {
  background: #ece6ff;
  border: 5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(77, 49, 137, 0.22);
  height: 118px;
  margin: 2px auto 18px;
  object-fit: cover;
  width: 118px;
}

.profile-summary {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.48;
  margin: 13px auto 0;
  max-width: 360px;
}

.roster-preview {
  display: grid;
  gap: 11px;
  margin: 4px 0 16px;
}

.roster-preview article {
  align-items: center;
  background: #f7f4ff;
  border: 1px solid #e4dff0;
  border-radius: 17px;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 1fr;
  padding: 13px;
}

.teacher-contact {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e4dff0;
  border-radius: 17px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 1fr auto;
  padding: 12px;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.teacher-contact:hover,
.teacher-contact:focus-visible {
  border-color: #ab8bef;
  box-shadow: 0 9px 18px rgba(89, 56, 156, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.teacher-contact small {
  color: #706b7f;
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: 2px;
}

.teacher-contact b {
  color: var(--purple-dark);
  font-size: 1.5rem;
  font-weight: 500;
}

.teacher-contact__avatar {
  align-items: center;
  background: linear-gradient(145deg, #7b4be5, #43238d);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(59, 34, 127, 0.24);
  color: #ffffff;
  display: grid;
  font-size: 0.88rem;
  font-weight: 850;
  height: 42px;
  place-items: center;
  width: 42px;
}

.teacher-contact__avatar--chemistry {
  background: linear-gradient(145deg, #2f9384, #1e535b);
}

.teacher-contact__avatar--drama {
  background: linear-gradient(145deg, #e37a53, #a33d72);
}

.teacher-chat-header {
  align-items: center;
  display: flex;
  gap: 12px;
  margin: 4px 45px 14px 0;
}

.teacher-chat-header .teacher-contact__avatar {
  flex: 0 0 auto;
  height: 49px;
  width: 49px;
}

.teacher-chat-header .eyebrow {
  margin: 0 0 3px;
}

.teacher-chat-header h2 {
  font-size: 1.45rem;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
}

.teacher-chat-header p:last-child {
  color: #716c7e;
  font-size: 0.76rem;
  margin: 4px 0 0;
}

.teacher-preview-note {
  background: #f5f1ff;
  border: 1px solid #ded2fb;
  border-radius: 12px;
  color: #5b5570;
  font-size: 0.73rem;
  line-height: 1.35;
  margin: 0 0 12px;
  padding: 9px 11px;
}

.teacher-thread {
  background: #fbfaff;
  border: 1px solid #ebe7f3;
  border-radius: 18px;
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
  max-height: 44svh;
  min-height: 190px;
  overflow-y: auto;
  padding: 13px;
}

.teacher-message {
  border-radius: 14px;
  font-size: 0.83rem;
  line-height: 1.4;
  max-width: 86%;
  padding: 10px 11px;
}

.teacher-message--mentor {
  background: #f0ecfb;
  color: #3f3856;
  justify-self: start;
}

.teacher-message--student {
  background: #6840d3;
  color: #ffffff;
  justify-self: end;
}

.teacher-composer {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) 54px;
}

.teacher-composer textarea {
  background: #fbfaff;
  border: 1px solid #ded9eb;
  border-radius: 14px;
  color: var(--ink);
  min-height: 53px;
  outline: none;
  padding: 10px 12px;
  resize: none;
  width: 100%;
}

.teacher-composer textarea:focus {
  background: #ffffff;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(108, 66, 217, 0.13);
}

.atom-send {
  align-items: center;
  background: radial-gradient(circle at 32% 25%, #a98aff, #693dd8 58%, #4a269f);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 15px rgba(75, 36, 166, 0.27);
  display: grid;
  height: 53px;
  padding: 8px;
  place-items: center;
  transition: transform 150ms ease, box-shadow 150ms ease;
  width: 53px;
}

.atom-send:hover,
.atom-send:focus-visible {
  box-shadow: 0 11px 19px rgba(75, 36, 166, 0.36);
  outline: none;
  transform: translateY(-1px) scale(1.04);
}

.atom-send svg {
  fill: #ffffff;
  height: 100%;
  stroke: #ffffff;
  stroke-width: 3.4;
  width: 100%;
}

.roster-preview p {
  color: #706b7f;
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 3px 0 0;
}

.roster-icon {
  align-items: center;
  background: #e5dcff;
  border-radius: 50%;
  color: var(--purple-dark);
  display: grid;
  font-size: 1.2rem;
  height: 42px;
  place-items: center;
  width: 42px;
}

@media (min-width: 760px) {
  .app-header {
    padding-left: 36px;
    padding-right: 36px;
  }

  .stage-copy {
    left: 8vw;
    top: 18svh;
  }

  .atom-trigger,
  .orbit-action {
    top: 64%;
  }

  .intake-sheet,
  .desk-sheet {
    border-radius: 30px 0 0 30px;
    bottom: 0;
    max-height: 100svh;
    padding: 28px 34px 34px;
    top: 0;
  }

  .intake-sheet.is-hidden,
  .desk-sheet.is-hidden {
    transform: translateX(105%);
  }

  .sheet-handle {
    display: none;
  }

  .close-sheet {
    right: 28px;
    top: 26px;
  }
}

@media (max-width: 420px) {
  .orbit-action--one { --offset-x: -122px; --offset-y: 0px; }
  .orbit-action--two { --offset-x: -75px; --offset-y: -116px; }
  .orbit-action--three { --offset-x: 75px; --offset-y: -116px; }
  .orbit-action--four { --offset-x: -62px; --offset-y: 114px; }
  .orbit-action--five { --offset-x: 122px; --offset-y: 0px; }

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

@media (max-height: 660px) and (max-width: 759px) {
  .stage-copy {
    top: 90px;
  }

  .stage-copy h1 {
    font-size: 1.85rem;
  }

  .stage-copy p:last-child {
    font-size: 0.86rem;
  }

  .atom-trigger,
  .orbit-action {
    top: 65%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Albert quiet-classroom revision: focused entry flow. */
.splash-screen {
  background: #130b2e;
  padding: 0;
}

.splash-frame,
#splash-video {
  height: 100%;
  width: 100%;
}

#splash-video {
  object-fit: contain;
  object-position: center;
}

.classroom-screen.is-hidden {
  visibility: hidden;
}

.classroom-art {
  background-image: url("./assets/albert-classroom-empty-desks-v2.png");
  transform: none;
}

.app-header,
.stage-copy,
.desk-hotspot,
.teacher-hotspot,
.phone-hotspot {
  display: none !important;
}

.atom-trigger {
  border-width: 3px;
  box-shadow: 0 8px 18px rgba(48, 21, 118, 0.42), 0 0 0 4px rgba(116, 70, 223, 0.18);
  height: clamp(56px, 15vw, 66px);
  top: 94%;
  width: clamp(56px, 15vw, 66px);
  z-index: 6;
}

.atom-trigger:hover,
.atom-trigger:focus-visible,
.classroom-screen.menu-is-open .atom-trigger {
  box-shadow: 0 10px 22px rgba(48, 21, 118, 0.52), 0 0 0 5px rgba(116, 70, 223, 0.24);
}

.atom-label {
  display: none !important;
}

.orbit-menu {
  display: grid !important;
  gap: clamp(6px, 2vw, 12px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: auto;
  inset: auto;
  left: 50%;
  opacity: 1;
  pointer-events: none;
  position: absolute;
  top: 67%;
  transform: translate(-50%, -50%);
  visibility: visible;
  width: min(calc(100% - 24px), 340px);
  z-index: 5;
}

.orbit-action {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 18px rgba(28, 20, 50, 0.2);
  font-size: 0;
  height: auto;
  left: auto;
  min-height: 0;
  opacity: 0;
  padding: 0;
  position: relative;
  top: auto;
  transform: translateY(24px) scale(0.72);
  visibility: hidden;
  width: 100%;
}

.orbit-action__icon {
  color: var(--purple-dark);
  font-size: clamp(0.9rem, 3.8vw, 1.14rem);
  line-height: 1;
  margin: 0;
}

.orbit-action > span:not(.orbit-action__icon) {
  display: none;
}

.classroom-screen.menu-is-open .orbit-menu {
  pointer-events: auto;
}

.classroom-screen.menu-is-open .orbit-action {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

@media (max-width: 380px) {
  .orbit-menu {
    gap: 5px;
    width: calc(100% - 20px);
  }
}
