@font-face {
  font-family: Inter;
  src: url("assets/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.cover-line:first-child { font-family: var(--serif); font-style: italic; font-weight: 400; line-height: 1.02; letter-spacing: -.065em; color: #f2e5d1; }
.cover-line + .cover-line { margin-top: .035em; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: auto 0 -1px; height: 22%; background: linear-gradient(0deg,#151815,transparent); pointer-events: none; }
:where(html[data-motion="on"]) .cover-title { transform: translateY(var(--name-drift,0px)); }
:where(html[data-motion="on"]) .hero::after { height: var(--edge-height,22%); }
@keyframes drift-surname {
  from { transform: translateX(0); }
  to { transform: translateX(max(0px,min(var(--surname-travel,0px),calc(100vw - var(--gutter) - var(--gutter) - 100%)))); }
}
:where(html[data-motion="on"]) .cover-named .cover-line + .cover-line {
  animation: drift-surname 5.75s ease-in-out .45s infinite alternate both;
  animation-play-state: var(--cover-play);
}
.bio-intro, .bio-results-layout {
  display: grid;
  grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr);
  column-gap: clamp(40px,7vw,115px);
  max-width: 1500px;
}
.bio-intro { align-items: center; padding-block: clamp(44px,7.5vw,112px); }
.bio-intro h2 {
  max-width: 20ch; color: #f1eade;
  font: 400 clamp(32px,4.25vw,62px)/1.07 var(--serif); letter-spacing: -.048em;
  text-wrap: balance; --rise: .51em;
}
.bio-tenure { white-space: nowrap; }
.bio-intro h2 em { color: #dfbc96; font-weight: 400; }
.bio-detail { display: grid; gap: clamp(18px,2.2vw,34px); max-width: 34rem; }
.bio-detail p { font: 400 clamp(20px,1.65vw,27px)/1.43 var(--sans); letter-spacing: -.012em; }
.bio-detail .bio-education { color: #bfc4b8; font-size: clamp(17px,1.35vw,22px); }
.bio-results { background: var(--light-section-background); color: #272c26; }
.bio-results-layout { align-items: start; padding-block: clamp(42px,6.5vw,96px) 0; row-gap: clamp(22px,2.8vw,42px); }
.bio-results h3 {
  max-width: 17ch; font: 400 clamp(34px,3.8vw,60px)/1.08 var(--serif);
  letter-spacing: -.045em; text-wrap: balance; --rise: .48em;
}
.results-list { list-style: none; margin: 0; padding: 0; container-type: inline-size; }
.results-list li {
  display: grid;
  grid-template-columns: minmax(0,1fr) max-content;
  align-items: last baseline;
  gap: .12em clamp(16px,2vw,36px);
  position: relative; padding: .6em 0 .68em; font: 400 clamp(22px,1.85vw,31px)/1.38 var(--sans);
  letter-spacing: -.014em;
}
.results-list li:first-child { padding-top: 0; }
.results-list li::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px; background: #9f9e8e;
  transform-origin: left;
}
.results-list em { justify-self: end; text-align: end; color: #754930; font: italic 400 1.15em/1.05 var(--serif); white-space: nowrap; }
@container (max-width: 27rem) {
  .results-list li { grid-template-columns: minmax(0,1fr); }
}
.reading-frame {
  display: grid;
  place-items: center;
  padding: clamp(26px,3.2vw,46px) var(--gutter);
}
.bio-outlook {
  width: min(100%, 33ch);
  margin-inline: auto;
  overflow-wrap: anywhere;
  color: #101510;
  font: 400 clamp(1.65rem, 1.05rem + 2.45vw, 3.4rem)/1.17 var(--serif);
  letter-spacing: -.035em;
  text-align: center;
  text-wrap: balance;
}
@media screen and (forced-colors: none) {
  :where(html[data-motion="on"]) .reading-track.can-pin {
    --pin-top: max(0px, calc((100svh - var(--reading-frame)) / 2));
    min-height: calc(var(--reading-frame) + clamp(180px,29svh,300px));
    scroll-margin-block-start: var(--pin-top);
  }
  :where(html[data-motion="on"]) .can-pin .reading-frame {
    position: sticky;
    top: var(--pin-top);
  }
  :where(html[data-motion="on"]) .can-pin .reading-word {
    color: #858174;
    -webkit-text-stroke: clamp(.45px,.018em,.9px) transparent;
    transition: color .14s linear, -webkit-text-stroke-color .14s linear;
  }
  :where(html[data-motion="on"]) .can-pin .reading-word.is-read {
    color: inherit;
    -webkit-text-stroke-color: currentColor;
  }
}
:where(html[data-motion="on"]) .bio-intro .ink-ready .ink-read .ink-word, :where(html[data-motion="on"]) .bio-results .ink-ready .ink-read .ink-word {
  transition: opacity .4s ease-out var(--ink-delay,0ms), transform .62s var(--ease) var(--ink-delay,0ms);
}
:where(html[data-motion="on"]) .results-list .ink-ready::after { transform: scaleX(0); transition: transform .72s var(--ease); }
:where(html[data-motion="on"]) .results-list .ink-ready.row-entered::after { transform: scaleX(1); }
@media (max-width: 800px) {
  .bio-intro, .bio-results-layout { grid-template-columns: minmax(0,1fr); row-gap: 24px; }
  .bio-intro h2 { max-width: 22ch; font-size: clamp(31px,8.1vw,51px); }
  .bio-detail { gap: 16px; }
  .bio-results h3 { max-width: 19ch; font-size: clamp(31px,7.6vw,47px); }
}

/* Subject introductions have their own measure alongside the exercises. */
.chapter .chapter-head {
  display: block;
  text-align: end;
  padding-block-end: clamp(27px, 4.4vw, 44px);
  border-block-end: 1px solid var(--rule);
  margin-block-end: clamp(22px, 3.5vw, 38px);
}
.chapter .chapter-head p {
  max-inline-size: 35ch;
  margin-inline-start: auto;
  margin-block-start: clamp(11px, 1.2vw, 20px);
  text-wrap: pretty;
}
.math-chapter .chapter-head { text-align: start; }
.math-chapter .chapter-head p {
  max-inline-size: 41ch;
  margin-inline-start: 0;
}
.pattern-intro p { text-wrap: pretty; }
.pattern-task { margin-block-start: 12px; }
@media (max-width: 760px) {
  .math-chapter .chapter-head { padding-block-end: clamp(15px, 4.3vw, 21px); }
}
@media (min-width: 761px) {
  .pattern-layout { grid-template-areas: "head head" "intro art" "controls art"; }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 961px) {
    .pattern-layout, .cs-chapter > .wrap {
      --chapter-gutter: clamp(30px, 6.2vw, 100px);
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: clamp(24px, 2.5vw, 42px) var(--chapter-gutter);
    }
    .chapter .chapter-head {
      container-type: inline-size;
      align-self: stretch;
      padding-block-end: 0;
      margin-block-end: 0;
      border-block-end: 0;
    }
    .chapter .chapter-head::before {
      content: "";
      position: absolute;
      inset-block: 0;
      inset-inline-start: calc(var(--chapter-gutter) / -2);
      border-inline-start: 1px solid var(--rule);
      pointer-events: none;
    }
    .chapter .chapter-head h2 { font-size: min(6.5vw, 17cqi, 112px); }
    .pattern-layout {
      --math-copy-width: clamp(367px, 31.6vw, 530px);
      grid-template-areas: "intro head" "art head" "art controls" "art .";
      grid-template-rows: auto 1fr auto 1fr;
      row-gap: 8px;
    }
    .math-chapter .chapter-head h2, .math-chapter .chapter-head p {
      max-inline-size: min(100%, var(--math-copy-width));
      margin-inline-start: auto;
    }
    .math-chapter .chapter-head h2 { font-size: min(5.65vw, 14.8cqi, 92px); }
    .math-chapter .chapter-head p { margin-block-start: 8px; }
    .pattern-figure { grid-template-rows: auto auto; row-gap: 6px; }
    .pattern-dial { width: min(100%, 590px, 64svh); }
    .angle-caption { padding-block: 0; }
    .pattern-controls { align-self: center; justify-content: flex-end; margin-block-start: 0; }
    .pattern-intro, .runner-intro { align-self: end; }

    .cs-chapter .chapter-head { grid-area: 1 / 2; z-index: 1; }
    .cs-chapter .runner {
      grid-area: 1 / 1 / span 2 / -1;
      /* Give the Python exercise its own scroll destination below the subject. */
      margin-block-start: clamp(64px, 8.5vw, 88px);
      display: grid;
      grid-template: subgrid / subgrid;
      grid-template-areas: "intro ." "work result";
      align-items: start;
    }
    .cs-chapter .runner-layout { display: contents; }
  }
  @media (min-width: 961px) and (min-height: 761px) {
    .pattern-layout {
      --math-copy-width: clamp(350px, 30.5vw, 530px);
      grid-template-areas: "lead head" "art head" "art task" "art controls" "art .";
      grid-template-rows: max-content auto max-content max-content 1fr;
      row-gap: clamp(12px, 2svh, 24px);
    }
    .math-chapter .chapter-head p { margin-block-start: 12px; }
    .pattern-intro { display: contents; }
    .pattern-intro p { align-self: start; }
    .pattern-intro .pattern-lead { grid-area: lead; max-inline-size: 50ch; }
    .pattern-task { grid-area: task; }
    .pattern-task, .pattern-controls {
      inline-size: min(100%, var(--math-copy-width));
      justify-self: end;
    }
    .pattern-controls { justify-content: flex-start; }
    /* Keep the caption with the dial as the right-hand text grows. */
    .pattern-figure { align-self: start; row-gap: 12px; }
  }
}

#flower { scroll-margin-block-start: clamp(52px,14svh,120px); }

.angle-band {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch;
  background: #ddd9c8; color: #30382d; border-block: 1px solid #6e73604a;
}
.angle-window { min-width: 0; overflow: clip; container-type: inline-size; }
.angle-tape { display: flex; width: max-content; min-width: 100%; }
.angle-lap { display: flex; flex: none; min-width: 100cqi; }
.angle-stamp {
  display: flex; align-items: center; justify-content: center; gap: clamp(0px,.6vw,14px);
  min-height: clamp(68px,7vw,107px); min-width: clamp(94px,12cqi,182px); flex: 1 0 auto;
  padding-inline: 8px; border-inline-end: 1px solid #6c705e40;
}
.angle-stamp svg { width: clamp(35px,4.8vw,72px); height: auto; flex: none; }
.angle-stamp b { font: 400 clamp(21px,2.2vw,34px)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.055em; }
.band-caption { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding-inline: clamp(16px,2.3vw,40px); background: #ddd9c8; border-inline-start: 1px solid #727660; }
.band-caption a { display: flex; align-items: center; gap: .85em; min-height: 44px; font-size: clamp(16px,1.3vw,21px); }
.band-caption a:hover { text-decoration: underline; text-underline-offset: .2em; }
.tape-toggle { display: none; width: 44px; height: 44px; border: 1px solid #8c907f; border-radius: 50%; place-items: center; }
.tape-toggle i { width: 9px; height: 11px; border-inline: 2px solid currentColor; }
.tape-toggle[aria-pressed="true"] i { border: 0; background: currentColor; clip-path: polygon(7% 0,100% 50%,7% 100%); }
.angle-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.angle-lap + .angle-lap, .angle-stamp[data-echo] { display: none; }
.flower-imprint { width: clamp(56px,6.4vw,100px); height: auto; flex: none; }
.imprint-rim { fill: none; stroke: #b7a07e; stroke-width: 1.5; stroke-dasharray: 1.5 5; }
.teacher-sign { display: inline-flex; align-items: center; gap: clamp(10px,1.3vw,20px); }
:where(html[data-motion="on"]) .angle-band.has-motion .angle-lap + .angle-lap { display: flex; }
:where(html[data-motion="on"]) .angle-band.has-motion .angle-stamp[data-echo] { display: flex; }
:where(html[data-motion="on"]) .angle-band.has-motion .angle-tape { transform: translateX(var(--tape-shift,0%)); }
@keyframes pass-angles { to { transform: translateX(-50%); } }
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  :where(html[data-motion="on"]) .angle-band.has-motion .angle-tape { animation: pass-angles 28s linear infinite; animation-play-state: paused; }
  :where(html[data-motion="on"]) .angle-band.is-visible:not(.is-paused) .angle-tape { animation-play-state: running; }
  :where(html[data-motion="on"]) .angle-band.has-motion .angle-window:hover .angle-tape { animation-play-state: paused; }
  :where(html[data-motion="on"]) .angle-band.has-motion .tape-toggle { display: grid; }
}
@media (max-width: 760px) {
  .angle-band { grid-template-columns: minmax(0,1fr); }
  .band-caption { justify-content: flex-end; border: 0; border-top: 1px solid #6c705e40; }
  .angle-band:not(.has-motion) .angle-stamp { min-width: 0; padding-inline: 2px; flex-direction: column; gap: 0; }
}
@media (max-width: 760px) {
  :where(html:not([data-motion="on"])) .angle-stamp { min-width: 0; padding-inline: 2px; flex-direction: column; gap: 0; }
}

@media (min-width: 761px) {
  :root { --chapter-space: clamp(36px, min(5.8vw, 8svh), 96px); }
  .bio-intro, .chapter, .reviews, .faq-layout { padding-block: var(--chapter-space); }
  .bio-results-layout, .contact { padding-block-start: var(--chapter-space); }
}

/* Olive color study from the portrait-to-contacts comparison. */
:root[data-palette="olive"] { --graphite: #20251d; --reviews-background: #35392c; --light-section-background: #f2e9d5; --ink: #292d22; --paper: #f3eedf; --muted: #c8c9b7; --copper: #e7b78b; --rule: #c7c7ad63; }
:where(html[data-palette="olive"]) .hero { background: #20251d; }
:where(html[data-palette="olive"]) .hero::after { background: linear-gradient(0deg,#292e23,transparent); }
:where(html[data-palette="olive"]) .cover-line:first-child { color: #f6edd7; }
:where(html[data-palette="olive"]) .about { background: #292e23; }
:where(html[data-palette="olive"]) .bio-intro h2 { color: #f3eedf; }
:where(html[data-palette="olive"]) .bio-intro h2 em { color: #ecbf98; }
:where(html[data-palette="olive"]) .bio-detail .bio-education { color: #cbccbb; }
:where(html[data-palette="olive"]) .bio-results,
:where(html[data-palette="olive"]) .faq { color: #292d22; }
:where(html[data-palette="olive"]) .results-list em,
:where(html[data-palette="olive"]) .faq-plus { color: #77492d; }
:where(html[data-palette="olive"]) .results-list li::after { background: #a89d85; }
:where(html[data-palette="olive"]) .bio-outlook { color: #25291f; }
:where(html[data-motion="on"][data-palette="olive"]) .can-pin .reading-word { color: #837b68; }
:where(html[data-motion="on"][data-palette="olive"]) .can-pin .reading-word.is-read { color: inherit; }
:where(html[data-palette="olive"]) .math-chapter,
:where(html[data-palette="olive"]) .cs-chapter,
:where(html[data-palette="olive"]) .contact { background: #23271e; }
:where(html[data-palette="olive"]) .chapter-head p,
:where(html[data-palette="olive"]) .pattern-intro p,
:where(html[data-palette="olive"]) .runner-intro p,
:where(html[data-palette="olive"]) .review-heading p,
:where(html[data-palette="olive"]) .contact-intro p { color: #dedecb; }
:where(html[data-palette="olive"]) .play-loop { background: #edd2a9; color: #292d22; }
:where(html[data-palette="olive"]) .angle-formula strong,
:where(html[data-palette="olive"]) .line-active .print-command { color: #efb088; }
:where(html[data-palette="olive"]) .runner { --printed-angle-color: #efb088; }
:where(html[data-palette="olive"]) .angle-band,
:where(html[data-palette="olive"]) .band-caption { background: #e1d4b5; color: #303525; }
:where(html[data-palette="olive"]) .review-card { --cover: #eee6d5; }
:where(html[data-palette="olive"]) .review-card.card-2 { --cover: #e7e5d6; }
:where(html[data-palette="olive"]) .review-card.card-3 { --cover: #f0e4d5; }
:where(html[data-palette="olive"]) .review-card.card-4 { --cover: #e8dfd2; }
:where(html[data-palette="olive"]) .faq-answer p { color: #484b3b; }
:where(html[data-palette="olive"]) .contact-link .address { color: #ced0bf; }
:where(html[data-palette="olive"]) #menu { --menu-wash: rgb(16 19 13 / .92); }

.cover-initials { font-weight: inherit; }
.cover-credit, .name-marquee { display: none; }

/* The default palette shares paper and graphite across sections. */
@media (forced-colors: none) {
  :where(html[data-palette="paper"]) :is(.about, .contact) { background: #191e1b; }
  :where(html[data-palette="paper"]) :is(.angle-band, .band-caption) { background: var(--light-section-background); }
  :where(html[data-palette="paper"]) .review-card[class] { --cover: var(--light-section-background); }
}

/* Anchor the shared 21:9 photograph at the midpoint of the eyes. */
.hero {
  --eye-x: 49.8%;
  --eye-y: 41.9%;
  --eye-inline: clamp(68%, calc(52% + 36svh), 72%);
  --eye-level: 43%;
  --photo-height: 111%;
  background: #080808;
}

.cover-photo img {
  position: absolute;
  top: var(--eye-level);
  left: var(--eye-inline);
  width: auto;
  max-width: none;
  height: calc(var(--photo-height) * 1.1);
  object-fit: contain;
  object-position: center;
  translate: calc(0% - var(--eye-x)) calc(0% - var(--eye-y));
  transform-origin: var(--eye-x) var(--eye-y);
  filter: none;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 92%, transparent);
}

@media (max-aspect-ratio: 1/1) {
  .hero {
    --eye-inline: 56.5%;
    --eye-level: 41%;
    --photo-height: min(100%, 150vw);
  }
}

[data-cover="closeup"] .hero {
  --photo-height: 105%;
  --static-top: 62%;
  --eye-inline: 51%;
  --eye-level: 38%;
  --name-size: min(26vw, 45svh);
  --name-period: 26s;
  --opening-ease: cubic-bezier(.22, 1, .36, 1);
  display: block;
  background: #000;
}
[data-cover="closeup"] .hero::before {
  background: linear-gradient(180deg, #08080865, transparent 15%, transparent 77%, #10110f7a);
}
[data-cover="closeup"] .hero::after { display: none; }
[data-cover="closeup"][data-motion="on"] .hero::after {
  display: block;
  inset: 0;
  height: auto;
  background: #000;
  opacity: var(--portrait-shade, 0);
}
[data-cover="closeup"] .mast { border-bottom-color: transparent; }
[data-cover="closeup"] .cover-initials { display: none; }
[data-cover="closeup"] .cover-credit {
  display: inline-block;
  color: #f4f2ec;
  font: 580 clamp(11px, .95vw, 16px)/1.15 var(--sans);
  letter-spacing: .085em;
  text-transform: uppercase;
}
[data-cover="closeup"] .mast .monogram { display: flex; align-items: center; min-height: 44px; }
[data-cover="closeup"] .cover-photo {
  inset: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  transform-origin: var(--eye-inline) var(--eye-level);
  clip-path: none;
  mask-image: none;
  animation: none;
}
[data-cover="closeup"] .cover-photo img {
  transform: none;
  mask-image: linear-gradient(#000 86%, transparent), linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent);
  mask-composite: intersect;
  animation: none;
}
@media (min-width: 961px) and (forced-colors: none) {
  [data-cover="closeup"]:not([data-cover-opening]) .cover-enter .cover-photo img {
    animation: portrait-drift 8s ease-in-out infinite alternate-reverse both;
    animation-play-state: var(--cover-play);
  }
}
[data-cover="closeup"] .cover-exam > span { display: block; }
[data-cover-opening="waiting"] .hero :is(.mast, .cover-photo, .cover-title, .name-marquee, .hero-foot) {
  opacity: 0;
}
[data-cover-opening="playing"] .hero .cover-photo {
  animation: closeup-develop 2.2s var(--opening-ease) .1s backwards;
}
[data-cover-opening="playing"] .name-marquee {
  animation: closeup-appear 1.4s ease .6s backwards;
}
[data-cover-opening="playing"] .mast {
  animation: closeup-appear .6s var(--opening-ease) 1.2s backwards;
}
[data-cover-opening="playing"] .cover-actions {
  animation: closeup-tools .8s var(--opening-ease) .8s backwards;
}
[data-cover-opening="playing"] .cover-exam { overflow: clip; overflow-clip-margin: 2px; }
[data-cover-opening="playing"] .cover-exam > span {
  animation: closeup-line 1s var(--opening-ease) .8s backwards;
}
@keyframes closeup-develop {
  from { opacity: 0; transform: translateY(20px) scale(1.08); }
  to { opacity: 1; transform: none; }
}
@keyframes closeup-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes closeup-tools {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes closeup-line { from { transform: translateY(110%); } to { transform: none; } }
[data-cover="closeup"] .cover-title {
  position: absolute;
  inset: var(--static-top) var(--gutter) auto;
  margin: 0;
  transform: none;
}
[data-cover="closeup"] .cover-title h1 {
  margin-inline: auto;
  font: 490 clamp(36px, min(10vw, 8svh), 82px)/.98 var(--sans);
  letter-spacing: -.055em;
  text-align: center;
}
[data-cover="closeup"] .cover-line {
  width: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}
[data-cover="closeup"] .cover-named .cover-line,
[data-cover="closeup"] .cover-named .cover-line > span { animation: none; }
[data-cover="closeup"] .cover-named .cover-title {
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[data-cover="closeup"] .cover-named .name-marquee {
  display: block;
  position: absolute;
  inset: var(--marquee-top, 50%) 0 auto;
  translate: 0 -50%;
  color: #f4f3ee;
  mix-blend-mode: difference;
  /* Keep the softer area stationary and give descending letters room inside the mask. */
  padding-block: .16em;
  mask-image: radial-gradient(ellipse min(57vw, 47svh) 53% at var(--eye-inline) 56%,
    rgb(0 0 0 / .74) 20%,
    rgb(0 0 0 / .83) var(--name-mask-midpoint, 67%),
    #000 var(--name-mask-edge, 115%));
  font: var(--marquee-weight, 500) var(--name-size)/.88 Inter, var(--sans);
  letter-spacing: -.06em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
[data-marquee-weight="550"] .name-marquee { --marquee-weight: 550; }
.name-marquee-track { display: flex; width: max-content; }
.name-marquee-track > span { flex: none; display: flex; align-items: baseline; }
.name-marquee-track i { font-style: normal; margin-inline: .42em; }
[data-cover="closeup"] .cover-named .name-marquee-track {
  animation: closeup-name var(--name-period) linear infinite;
  animation-play-state: var(--cover-play);
}
@keyframes closeup-name { to { transform: translateX(-50%); } }
[data-cover="closeup"] .hero-foot {
  position: absolute;
  inset: auto var(--gutter) clamp(16px, 3.5svh, 44px);
  margin: 0;
}
@media (min-aspect-ratio: 1/1) and (min-width: 761px) {
  [data-cover="closeup"] .hero-foot p {
    order: 1;
    font-size: clamp(24px, min(2.9vw, 5.2svh), 53px);
    line-height: 1.02;
    letter-spacing: -.045em;
    text-align: right;
  }
}
@media (max-aspect-ratio: 1/1) {
  [data-cover="closeup"] .hero {
    --name-size: min(50vw, 42svh);
    --name-period: 21s;
  }
}
@media (max-width: 768px) and (orientation: portrait) {
  [data-cover="closeup"] .hero {
    height: 100dvh;
    --photo-height: min(80%, 156vw);
    --eye-level: 37%;
    --eye-inline: 57%;
    --name-size: min(70vw, 46svh);
    --name-period: 14.7s;
  }
}
@media (max-width: 699px) and (max-aspect-ratio: 4/5) {
  [data-cover="closeup"] .hero-foot { align-items: center; }
  [data-cover="closeup"] .hero-foot .cover-exam {
    font-size: clamp(23px, 7.45vw, 43px);
    line-height: 1.05;
    letter-spacing: -.045em;
    text-wrap: balance;
  }
  [data-cover="closeup"] .cover-actions { flex-shrink: 0; }
}
@media (min-width: 961px) and (orientation: landscape) {
  .hero {
    --photo-height: 123%;
    --eye-level: 49%;
    --eye-inline: min(clamp(68%, calc(52% + 36svh), 72%), calc(100% - 37svh));
  }
  [data-cover="closeup"] .hero {
    --photo-height: 117%;
    --eye-level: calc(41.5% - 30px);
    /* The top of the Inter capital T sits about .37em above the row centre. */
    --marquee-top: calc(var(--eye-level) + .37em - 2px);
    --static-top: min(71%, calc(100% - 18svh - 60px));
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  [data-cover="closeup"] .hero { --static-top: 52%; }
  [data-cover="closeup"] .cover-title h1 { font-size: clamp(26px, 8svh, 40px); }
  [data-cover="closeup"] .cover-line { display: inline; }
}
@media (forced-colors: active) {
  [data-cover="closeup"] .cover-named .name-marquee { display: none; }
  [data-cover="closeup"] .cover-named .cover-title {
    inset: var(--static-top) var(--gutter) auto;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
}
