.eo-student-cover {
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(115deg, var(--eo-paper) 9%, #f0f1d8 50%, var(--eo-celery));
}
.eo-reading-frame { z-index: 1; }
.eo-reading-copy { position: relative; }

/* All passages share the same grid cell. Even the longest translation reserves its space. */
.eo-message-deck { display: grid; touch-action: pan-y; }
.eo-message-slide { grid-area: 1 / 1; align-self: start; min-width: 0; }
.eo-message-slide[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.eo-message-slide .eo-intro-text { margin-bottom: 0; }
.eo-reading-copy > .eo-actions { margin-top: var(--eo-actions-gap); }
.eo-title-line { display: block; clip-path: inset(-.13em -.12em -.17em -.08em); }
.eo-title-line > span { display: block; transform-origin: left bottom; }
.eo-message-slide .eo-eyebrow::before { flex: none; transform-origin: left; }
.eo-message-slide .eo-eyebrow > span { display: block; }

.eo-campus-backdrop, .eo-campus-backdrop::after { position: absolute; inset: 0; pointer-events: none; }
.eo-campus-backdrop { display: block; z-index: 0; }
.eo-campus-backdrop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% 52%; }
.eo-campus-backdrop::after {
  content: "";
  background: linear-gradient(90deg, rgba(250,250,236,.97) 0%, rgba(250,250,236,.91) 21%, rgba(247,248,228,.78) 39%, rgba(244,246,221,.30) 54%, rgba(242,244,217,0) 71%);
}
.eo-campus-student {
  position: absolute;
  z-index: 2;
  display: block;
  bottom: 0;
  left: 53%;
  width: 42%;
  height: calc(100% - var(--eo-mast-height) - clamp(28px, 4.5vh, 58px));
  pointer-events: none;
}
.eo-campus-student img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
@media (min-width: 1101px) {
  .eo-campus-student {
    right: 5%;
    width: min(42%, calc((100vh - var(--eo-mast-height) - clamp(28px, 4.5vh, 58px)) * .75036));
    height: auto;
    aspect-ratio: 1040 / 1386;
    margin-inline: auto;
    transform-origin: 52% 100%;
  }
  .eo-campus-backdrop img { transform-origin: 64% 58%; }
}
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
  .eo-scene-preparing .eo-campus-student { visibility: hidden; }
  .eo-campus-student.eo-arriving { animation: eo-student-arrive 1.18s cubic-bezier(.19,.76,.2,1) .09s backwards; }
}
@keyframes eo-student-arrive {
  from { opacity: 0; transform: translate(17px, 5px) rotate(.4deg) scale(.988); }
  to { opacity: 1; transform: none; }
}
/* Only an explicitly marked image holder moves. Pausing it offscreen preserves its phase. */
@media (prefers-reduced-motion: no-preference) {
  .eo-camera-ready [data-photo-zoom] > img {
    animation: eo-photograph-zoom 36s cubic-bezier(.42,0,.58,1) infinite alternate;
    animation-play-state: paused;
  }
  .eo-camera-running [data-photo-zoom].eo-scene-visible > img {
    animation-play-state: running;
  }
}
@keyframes eo-photograph-zoom { from { transform: scale(1); } to { transform: scale(1.04); } }
@media (min-width: 1101px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* Only the silhouette responds. The courtyard visible through the image stays part of the background. */
  .eo-campus-student::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: auto;
    clip-path: polygon(55% 4%,66% 6%,72% 11%,71% 18%,65% 25%,65% 28%,78% 38%,87% 63%,90% 74%,91% 85%,84% 89%,79% 86%,74% 69%,76% 85%,69% 87%,65% 100%,43% 100%,36% 87%,27% 81%,28% 78%,17% 75%,10% 66%,12% 59%,16% 53%,17% 47%,27% 37%,35% 30%,45% 27%,50% 25%,46% 15%,46% 10%);
  }
  .eo-campus-student img { transform-origin: 52% 100%; transition: transform .8s cubic-bezier(.22,.72,.25,1); }
  .eo-campus-student:hover img { transform: translateX(-3px) rotate(-.2deg) scale(1.012); }
}
.eo-study-guides .eo-highlight { text-decoration: none; transition: border-color .24s; }
.eo-study-guides .eo-highlight svg { width: clamp(22px, 1.8vw, 32px); flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.eo-study-guides .eo-highlight strong { font: 540 clamp(18px, 1.32vw, 25px)/1.12 var(--eo-display); }
.eo-study-guides .eo-highlight:hover, .eo-study-guides .eo-highlight:focus-visible { border-color: var(--eo-action); color: var(--eo-ink); }
.eo-study-guides .eo-highlight-dark:hover, .eo-study-guides .eo-highlight-dark:focus-visible { color: var(--eo-paper); }
.eo-study-guides .eo-highlight:is(:hover, :focus-visible) strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .17em; }

@media (max-width: 720px) {
  .eo-student-cover { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  .eo-reading-frame { flex: none; }
  .eo-campus-student {
    position: relative;
    inset: auto;
    order: 1;
    align-self: center;
    flex: 1 0 0;
    width: 100%;
    min-height: calc(var(--eo-dock-height) + var(--eo-dock-inset) + 85px);
    height: 0;
  }
  .eo-campus-student img { position: absolute; inset: 0; }
  .eo-campus-backdrop::after {
    background: linear-gradient(180deg, rgba(250,250,236,.94) 5%, rgba(250,250,236,.90) 38%, rgba(250,250,236,.63) 55%, rgba(250,250,236,.04) 79%);
  }
}
@media (max-width: 375px) and (max-height: 650px) {
  .eo-campus-student { min-height: calc(var(--eo-dock-height) + var(--eo-dock-inset) + 42px); }
}

@media (prefers-reduced-motion: no-preference) {
  .eo-message-slide[aria-hidden="false"] .eo-eyebrow::before { animation: eo-draw-guide .70s var(--eo-ease-out) backwards; }
  .eo-message-slide[aria-hidden="false"] .eo-eyebrow > span { animation: eo-type-wipe .70s var(--eo-ease-out) 65ms backwards; }
  .eo-message-slide[aria-hidden="false"] .eo-title-line > span {
    animation: eo-title-impression .86s cubic-bezier(.18,.78,.2,1) 75ms backwards;
  }
  .eo-message-slide[aria-hidden="false"] .eo-title-line + .eo-title-line > span { animation-delay: 145ms; }
  .eo-message-slide[aria-hidden="false"] .eo-intro-text {
    -webkit-mask-image: linear-gradient(#000 0% 40%, transparent 57%);
    mask-image: linear-gradient(#000 0% 40%, transparent 57%);
    -webkit-mask-size: 100% 250%;
    mask-size: 100% 250%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: eo-read-down .88s cubic-bezier(.27,.56,.22,1) 180ms backwards;
  }
  .eo-type-pending .eo-message-slide[aria-hidden="false"] :is(.eo-eyebrow > span, .eo-title-line > span, .eo-intro-text),
  .eo-type-pending .eo-message-slide[aria-hidden="false"] .eo-eyebrow::before { animation-play-state: paused; }
}
@keyframes eo-type-wipe {
  from { opacity: 0; clip-path: inset(-4px 100% -4px -4px); }
  to { opacity: 1; clip-path: inset(-4px); }
}
@keyframes eo-draw-guide { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes eo-title-impression {
  from { opacity: 0; transform: translateY(.78em) rotate(.85deg); }
  to { opacity: 1; transform: none; }
}
@keyframes eo-read-down {
  from { opacity: .02; -webkit-mask-position: 0 100%; mask-position: 0 100%; }
  to { opacity: 1; -webkit-mask-position: 0 0%; mask-position: 0 0%; }
}
