:root {
  --ink: #080807;
  --ink-soft: #0d0d0b;
  --paper: #e9dfcf;
  --paper-bright: #f5efe5;
  --muted: #9f998f;
  --quiet: #6e6a64;
  --ember: #dc6b2f;
  --ember-soft: rgba(220, 107, 47, 0.18);
  --ice: #729cd0;
  --line: rgba(233, 223, 207, 0.16);
  --line-strong: rgba(233, 223, 207, 0.3);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --sans: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 92% 36%, rgba(132, 68, 34, 0.1), transparent 32rem),
    linear-gradient(180deg, #080807, #0b0a09 52%, #070706);
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.1;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.74' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

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

button,
video {
  font: inherit;
}

button {
  color: inherit;
}

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

::selection {
  color: #120c08;
  background: #e18a54;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #10100e;
  background: var(--paper-bright);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
}

.page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ember), #e6b07f, var(--ice));
  box-shadow: 0 0 12px rgba(220, 107, 47, 0.5);
}

.topbar {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) auto minmax(160px, 0.8fr);
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 68px);
  border-bottom: 1px solid rgba(233, 223, 207, 0.13);
  background: rgba(7, 7, 6, 0.74);
  backdrop-filter: blur(18px) saturate(115%);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  width: max-content;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.brand small {
  color: var(--quiet);
  font: 0.56rem/1 var(--mono);
  letter-spacing: 0.13em;
}

.topnav {
  display: flex;
  justify-self: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 30px);
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.topnav::-webkit-scrollbar {
  display: none;
}

.topnav a {
  position: relative;
  padding: 27px 0 24px;
  color: #aaa398;
  font-size: 0.72rem;
}

.topnav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.topnav a:hover,
.topnav a:focus-visible,
.topnav a[aria-current="page"] {
  color: var(--paper-bright);
}

.topnav a:hover::after,
.topnav a:focus-visible::after,
.topnav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  --hero-shift: 0px;
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #060606;
}

.hero-image {
  position: absolute;
  z-index: -3;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: brightness(0.54) saturate(0.82) contrast(1.08);
  transform: translate3d(0, var(--hero-shift), 0) scale(1.01);
  will-change: transform;
}

.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.88) 0%, rgba(5, 5, 4, 0.55) 34%, rgba(5, 5, 4, 0.08) 68%),
    linear-gradient(180deg, rgba(5, 5, 4, 0.38) 0%, transparent 24%, rgba(5, 5, 4, 0.08) 58%, rgba(5, 5, 4, 0.8) 100%);
}

.hero-copy {
  width: min(760px, calc(100% - 48px));
  margin: 96px 0 0 clamp(24px, 7vw, 116px);
}

.eyebrow,
.section-index,
.caption-label,
.observation-kicker,
.site-footer span {
  font-family: var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 22px;
  color: #deb094;
  font-size: 0.66rem;
}

.hero h1 {
  margin: 0;
  color: var(--paper-bright);
  font-family: var(--serif);
  font-size: clamp(4.9rem, 9vw, 9.6rem);
  font-weight: 420;
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.38);
}

.hero-statement {
  position: relative;
  max-width: 36rem;
  margin: 34px 0 0;
  padding-top: 28px;
  color: #d5cec3;
  font-family: var(--serif);
  font-size: clamp(1.16rem, 1.8vw, 1.7rem);
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.hero-statement::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 210px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--ember), transparent);
}

.text-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 32px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(220, 107, 47, 0.62);
  color: #d9d1c5;
  font-size: 0.78rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: white;
  border-color: var(--ember);
}

.hero-axis {
  position: absolute;
  right: clamp(26px, 5vw, 82px);
  bottom: 46px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: #77736c;
  font: 0.52rem/1 var(--mono);
  letter-spacing: 0.16em;
}

.hero-axis i {
  display: block;
  width: clamp(80px, 12vw, 190px);
  height: 1px;
  background: linear-gradient(90deg, var(--ember), rgba(255, 255, 255, 0.5), var(--ice));
}

.scroll-cue {
  position: absolute;
  bottom: 42px;
  left: 50%;
  margin: 0;
  color: #8a857c;
  font: 0.5rem/1 var(--mono);
  letter-spacing: 0.24em;
  transform: translateX(-50%);
}

.scroll-cue::before {
  display: block;
  width: 1px;
  height: 48px;
  margin: 0 auto 14px;
  content: "";
  background: linear-gradient(transparent, #d7c9ba);
}

.section {
  position: relative;
  padding: clamp(96px, 10vw, 154px) 0;
  border-bottom: 0;
}

.section-shell {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
}

.section-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(290px, 390px);
  gap: clamp(26px, 4vw, 68px);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 84px);
}

.section-index {
  margin: 8px 0 0;
  color: var(--ember);
  font-size: 0.62rem;
}

.section h2,
.closing h2 {
  margin: 0;
  color: var(--paper-bright);
  font-family: var(--serif);
  font-size: clamp(3.1rem, 5.6vw, 6.3rem);
  font-weight: 420;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.section-head > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 2;
}

.image-section {
  background:
    radial-gradient(circle at 14% 14%, rgba(108, 117, 128, 0.07), transparent 30rem),
    #090908;
}

.image-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.64fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: start;
  padding: clamp(28px, 3.6vw, 52px) 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.active-scene {
  margin: 0;
}

.active-media {
  position: relative;
  overflow: hidden;
  background: #141414;
}

.active-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(233, 223, 207, 0.18);
}

.active-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.active-media img.is-switching {
  opacity: 0.34;
  --image-motion-scale: 1.012;
}

.active-media > span {
  position: absolute;
  right: 18px;
  bottom: 14px;
  padding: 5px 8px;
  color: #f4e8d8;
  font: 0.68rem/1 var(--mono);
  background: rgba(7, 7, 6, 0.74);
}

.active-scene figcaption {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 26px;
  align-items: start;
  padding-top: 26px;
}

.caption-label,
.observation-kicker {
  margin: 4px 0 0;
  color: var(--ember);
  font-size: 0.58rem;
}

.active-scene figcaption > p:last-child {
  margin: 0;
  color: #d9d1c5;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.9;
}

.observation {
  padding-top: 2px;
}

.observation h3 {
  margin: 18px 0 30px;
  color: var(--paper-bright);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.3vw, 3.8rem);
  font-weight: 430;
}

.observation dl {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.observation dl > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.observation dt {
  color: #bcb3a7;
  font-size: 0.74rem;
}

.observation dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.observation .uncertain dt,
.observation .uncertain dd {
  color: #d99468;
}

.scene-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
}

.scene-tab {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  background: transparent;
}

.scene-tab::after {
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--ember);
  transition: width 0.3s ease;
}

.scene-tab:hover::after,
.scene-tab:focus-visible::after,
.scene-tab.is-active::after {
  width: 100%;
}

.scene-tab > span {
  display: block;
  padding: 14px 0 10px;
  color: #858078;
  font: 0.74rem/1 var(--mono);
}

.scene-tab img {
  width: 100%;
  aspect-ratio: 1 / 0.76;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.72);
  transition: filter 0.28s ease, transform 0.45s ease;
}

.scene-tab strong {
  display: block;
  padding: 12px 0 4px;
  color: #aaa297;
  font-size: 0.8rem;
  font-weight: 500;
}

.scene-tab:hover img,
.scene-tab:focus-visible img,
.scene-tab.is-active img {
  filter: saturate(0.94) brightness(0.96);
  --image-motion-scale: 1.02;
}

.scene-tab.is-active strong {
  color: var(--paper-bright);
}

.scene-tab:focus-visible,
.chapter:focus-visible {
  outline: 1px solid var(--ember);
  outline-offset: 4px;
}

.video-section {
  background:
    radial-gradient(circle at 88% 12%, rgba(177, 76, 32, 0.09), transparent 28rem),
    linear-gradient(180deg, #0c0b0a, #080807);
}

.video-head {
  grid-template-columns: 150px minmax(0, 1fr) minmax(300px, 430px);
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.62fr);
  gap: clamp(34px, 4.5vw, 76px);
  align-items: start;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.player-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 709;
  border: 1px solid rgba(233, 223, 207, 0.24);
  background: #050505;
}

.video-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: #858078;
  font: 0.6rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.video-caption {
  padding-top: 8px;
}

.video-caption > p:nth-child(2) {
  margin: 24px 0 0;
  color: #d8cfc2;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  line-height: 2;
}

.video-caption small {
  display: block;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #8f887e;
  font-size: 0.76rem;
  line-height: 1.75;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 46px);
  margin-top: clamp(58px, 7vw, 96px);
  padding-top: 28px;
}

.timeline-line {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line-strong);
}

.timeline-line span {
  display: block;
  width: var(--video-progress);
  height: 100%;
  background: var(--ember);
  box-shadow: 0 0 10px rgba(220, 107, 47, 0.54);
}

.chapter {
  position: relative;
  display: grid;
  align-content: start;
  padding: 0;
  border: 0;
  text-align: left;
  cursor: pointer;
  background: transparent;
}

.chapter::before {
  position: absolute;
  top: -33px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ember);
  border-radius: 50%;
  content: "";
  background: var(--ink);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.chapter.is-active::before {
  background: var(--ember);
  box-shadow: 0 0 14px rgba(220, 107, 47, 0.72);
}

.chapter img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.76);
  transition: filter 0.25s ease;
}

.chapter:hover img,
.chapter:focus-visible img,
.chapter.is-active img {
  filter: saturate(0.96) brightness(0.96);
}

.chapter > span {
  margin-top: 18px;
  color: var(--ember);
  font: 0.74rem/1 var(--mono);
}

.chapter strong {
  margin-top: 9px;
  color: #ddd3c6;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.chapter p {
  margin: 10px 0 0;
  color: #8f887e;
  font-size: 0.76rem;
  line-height: 1.7;
}

.video-observations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 62px 0 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.video-observations > div {
  min-height: 154px;
  padding: 24px clamp(14px, 2vw, 28px);
}

.video-observations > div + div {
  border-left: 1px solid var(--line);
}

.video-observations dt {
  color: #d48655;
  font-size: 0.78rem;
}

.video-observations dd {
  margin: 14px 0 0;
  color: #9a9389;
  font-size: 0.77rem;
  line-height: 1.8;
}

.closing {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 100svh;
  padding: clamp(110px, 11vw, 170px) max(32px, calc((100vw - 1320px) / 2));
  overflow: hidden;
  background: #080807;
}

.closing::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(8, 8, 7, 0.98) 0%, rgba(8, 8, 7, 0.72) 44%, rgba(8, 8, 7, 0.16) 78%, rgba(8, 8, 7, 0.48));
}

.closing-image {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 62%;
  height: 66%;
}

.closing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.64) saturate(0.72);
}

.closing-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  width: min(710px, 52%);
}

.closing-copy h2 {
  margin-top: 34px;
}

.closing-intro {
  max-width: 34rem;
  margin: 34px 0 0;
  color: #bdb5aa;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.3vw, 1.26rem);
  line-height: 2;
}

.method-line {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: clamp(72px, 13vh, 136px) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line-strong);
}

.method-line li {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 0 18px 22px 0;
}

.method-line li::after {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ember);
  border-radius: 50%;
  content: "";
  background: #090807;
}

.method-line span {
  color: var(--ember);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.6vw, 3.1rem);
}

.method-line strong {
  color: #d2c8bb;
  font-family: var(--serif);
  font-size: clamp(0.86rem, 1vw, 1.08rem);
  font-weight: 500;
}

.boundary-pair {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 58px;
  border-bottom: 1px solid var(--line);
}

.boundary-summary {
  padding: 0 42px 38px 0;
}

.boundary-summary + .boundary-summary {
  padding-left: 42px;
  border-left: 1px solid var(--line-strong);
}

.boundary-pair span {
  color: var(--ember);
  font-size: 0.8rem;
}

.boundary-summary > p {
  margin: 20px 0 0;
  color: #ded4c7;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 2.2rem);
  line-height: 1.5;
}

.boundary-record {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.boundary-record > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.boundary-record dt {
  color: #706b64;
  font: 0.58rem/1 var(--mono);
  letter-spacing: 0.14em;
}

.boundary-record dd {
  margin: 0;
  color: #bdb5aa;
  font-size: 0.76rem;
  line-height: 1.7;
}

.boundary-output {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding: 28px 0 8px;
  border-top: 1px solid var(--line-strong);
}

.boundary-output-label small {
  display: block;
  margin-top: 12px;
  color: #6f6a63;
  font: 0.56rem/1.4 var(--mono);
  letter-spacing: 0.12em;
}

.boundary-output > p {
  max-width: 58rem;
  margin: 0;
  color: #ded4c7;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.55vw, 1.72rem);
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-wrap: pretty;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  align-items: center;
  min-height: 170px;
  padding: 32px max(32px, calc((100vw - 1320px) / 2));
  border-top: 0;
  background: #070706;
}

.site-footer > div {
  display: grid;
  gap: 10px;
}

.site-footer span {
  color: #716c64;
  font-size: 0.54rem;
}

.site-footer strong {
  color: #d8cec1;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: #8f887e;
  font-size: 0.76rem;
}

.site-footer a {
  padding-bottom: 7px;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--paper-bright);
  border-color: var(--ember);
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.76s ease, transform 0.76s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 24px;
  }

  .topnav {
    justify-self: end;
    justify-content: flex-end;
  }

  .brand small {
    display: none;
  }

  .section-head,
  .video-head {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .section-head > p:last-child {
    grid-column: 2;
  }

  .image-workbench,
  .video-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .observation {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
  }

  .observation .observation-kicker,
  .observation h3 {
    grid-column: 1;
  }

  .observation h3 {
    margin-top: 4px;
  }

  .observation dl {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .scene-rail {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    overflow-x: auto;
    padding-bottom: 16px;
  }

  .video-caption {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px 28px;
  }

  .video-caption > p:nth-child(2) {
    margin-top: 0;
  }

  .video-caption small {
    grid-column: 2;
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    display: flex;
    gap: 22px;
    min-height: 62px;
    padding-inline: 18px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand strong {
    font-size: 0.86rem;
  }

  .topnav {
    justify-self: auto;
    justify-content: flex-start;
    gap: 18px;
  }

  .topnav a {
    padding: 23px 0 20px;
    font-size: 0.64rem;
  }

  .topnav a::after {
    bottom: 15px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-image {
    object-position: 58% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 5, 4, 0.86), rgba(5, 5, 4, 0.22)),
      linear-gradient(180deg, rgba(5, 5, 4, 0.46), transparent 24%, rgba(5, 5, 4, 0.76));
  }

  .hero-copy {
    width: calc(100% - 40px);
    margin: 70px 20px 0;
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 6.2rem);
  }

  .hero-statement {
    max-width: 22rem;
    font-size: 1.08rem;
  }

  .hero-axis {
    display: none;
  }

  .scroll-cue {
    right: 22px;
    bottom: 28px;
    left: auto;
    transform: none;
  }

  .section {
    padding: 82px 0;
  }

  .section-shell {
    width: calc(100% - 36px);
  }

  .section-head,
  .video-head {
    display: block;
    margin-bottom: 44px;
  }

  .section h2,
  .closing h2 {
    margin-top: 20px;
    font-size: clamp(2.8rem, 13vw, 4.7rem);
  }

  .section-head > p:last-child {
    max-width: 33rem;
    margin-top: 24px;
  }

  .image-workbench {
    gap: 38px;
    padding: 22px 0 34px;
  }

  .active-scene figcaption {
    display: block;
  }

  .active-scene figcaption > p:last-child {
    margin-top: 14px;
    font-size: 0.96rem;
  }

  .observation {
    display: block;
  }

  .observation h3 {
    margin: 12px 0 24px;
    font-size: 2.5rem;
  }

  .observation dl > div {
    grid-template-columns: 70px 1fr;
  }

  .scene-rail {
    grid-template-columns: repeat(5, 168px);
    margin-right: -18px;
  }

  .scene-tab img {
    aspect-ratio: 4 / 3;
  }

  .video-layout {
    gap: 34px;
    padding-top: 18px;
  }

  .video-facts {
    justify-content: flex-start;
  }

  .video-caption {
    display: block;
  }

  .video-caption > p:nth-child(2) {
    margin-top: 18px;
    font-size: 1rem;
  }

  .video-caption small {
    margin-top: 22px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 58px;
    padding-top: 0;
  }

  .timeline-line {
    display: none;
  }

  .chapter {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    column-gap: 18px;
  }

  .chapter::before {
    display: none;
  }

  .chapter img {
    grid-row: 1 / span 4;
    width: 128px;
    height: 100%;
    min-height: 118px;
  }

  .chapter > span,
  .chapter strong,
  .chapter p {
    grid-column: 2;
  }

  .chapter > span {
    margin-top: 4px;
  }

  .chapter strong {
    font-size: 1rem;
  }

  .chapter p {
    font-size: 0.72rem;
  }

  .video-observations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 50px;
  }

  .video-observations > div {
    min-height: 142px;
    padding: 20px 16px;
    border-bottom: 1px solid var(--line);
  }

  .video-observations > div:nth-child(odd) {
    border-left: 0;
  }

  .video-observations > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .closing {
    display: block;
    min-height: auto;
    padding: 94px 18px 88px;
  }

  .closing::after {
    background: linear-gradient(180deg, rgba(8, 8, 7, 0.48), rgba(8, 8, 7, 0.94) 38%, #080807 68%);
  }

  .closing-image {
    width: 100%;
    height: 42%;
  }

  .closing-copy {
    width: 100%;
  }

  .closing-intro {
    max-width: 25rem;
    font-size: 1rem;
  }

  .method-line {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 86px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }

  .method-line li {
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .method-line li::after {
    display: none;
  }

  .method-line span {
    font-size: 1.9rem;
  }

  .boundary-pair {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 46px;
  }

  .boundary-summary {
    padding: 0 0 28px;
  }

  .boundary-summary + .boundary-summary {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .boundary-summary > p {
    font-size: 1.34rem;
  }

  .boundary-output {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0 8px;
  }

  .boundary-output > p {
    font-size: 1.08rem;
  }

  .site-footer {
    display: grid;
    min-height: 190px;
    padding: 34px 18px;
  }
}

/* 2026-08-15 scale and documentation pass */
.hero {
  display: block;
  min-height: auto;
  padding: clamp(106px, 8.5vw, 132px) 0 clamp(18px, 2vw, 28px);
  background:
    radial-gradient(circle at 84% 18%, rgba(91, 124, 163, 0.1), transparent 30rem),
    radial-gradient(circle at 18% 82%, rgba(182, 84, 39, 0.08), transparent 28rem),
    #080807;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.48fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(42px, 6vw, 96px);
  row-gap: clamp(20px, 2vw, 28px);
  align-items: start;
  width: min(1344px, calc(100% - 48px));
  margin-inline: auto;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  margin: 0;
  padding-top: 0;
}

.hero .eyebrow {
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.8rem, 4vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-shadow: none;
}

.hero-statement {
  max-width: 25rem;
  margin-top: 18px;
  padding-top: 16px;
  font-size: clamp(1rem, 1.25vw, 1.24rem);
  line-height: 1.68;
}

.hero .text-link {
  margin-top: 22px;
}

.hero-visual {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: min(100%, 820px);
  margin: 0;
  justify-self: end;
}

.hero-image {
  position: static;
  width: 100%;
  height: auto;
  border: 1px solid rgba(233, 223, 207, 0.2);
  object-fit: contain;
  filter: brightness(0.94) saturate(1.13) contrast(1.03);
  transform: none;
  will-change: auto;
}

.hero-caption {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  align-self: start;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.hero-caption-copy > span {
  color: var(--ember);
  font: 0.56rem/1 var(--mono);
  letter-spacing: 0.16em;
}

.hero-caption-copy p {
  margin: 10px 0 0;
  color: #aaa299;
  font-family: var(--serif);
  font-size: 0.8rem;
  line-height: 1.72;
  letter-spacing: 0.025em;
  text-wrap: pretty;
}

.hero-caption dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-left: 1px solid var(--line);
}

.hero-caption dl > div {
  min-width: 0;
  padding: 2px 12px 4px;
  border-right: 1px solid var(--line);
}

.hero-caption dt {
  color: #7f7971;
  font-size: 0.62rem;
}

.hero-caption dd {
  margin: 6px 0 0;
  color: #d3c8ba;
  font-size: 0.7rem;
  line-height: 1.5;
}

.description-system {
  padding: clamp(36px, 3.5vw, 51px) 0 clamp(21px, 2vw, 30px);
  border-bottom: 0;
  background: #0a0a09;
}

.compact-head {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(260px, 390px);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
  margin-bottom: 23px;
}

.compact-head h2 {
  max-width: 10em;
  margin: 0;
  color: var(--paper-bright);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.3vw, 3.55rem);
  font-weight: 430;
  line-height: 1.18;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.compact-head > p:last-child {
  max-width: 35rem;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.9;
  text-wrap: pretty;
}

.system-board {
  display: grid;
  grid-template-columns: minmax(230px, 0.82fr) minmax(320px, 1.18fr) minmax(300px, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.system-board > * {
  min-width: 0;
  padding: 30px clamp(22px, 2.6vw, 38px) 34px;
}

.system-board > * + * {
  border-left: 1px solid var(--line);
}

.board-label {
  margin: 0;
  color: var(--ember);
  font: 0.58rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.system-definition h3,
.video-method h3,
.sample-output h3 {
  margin: 24px 0 0;
  color: #e9dfd2;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  font-weight: 480;
  line-height: 1.45;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.system-definition > p:last-child,
.video-method article > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.9;
}

.system-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.system-steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.system-steps li:first-child {
  padding-top: 0;
}

.system-steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.system-steps span,
.observation-order li span,
.extraction-flow li span {
  color: var(--ember);
  font: 0.68rem/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
}

.system-steps strong,
.observation-order li strong,
.extraction-flow li strong {
  color: #ded4c7;
  font-size: 0.9rem;
  font-weight: 600;
}

.system-steps p,
.observation-order li p,
.extraction-flow li p {
  margin: 7px 0 0;
  color: #8d877e;
  font-size: 0.74rem;
  line-height: 1.7;
}

.system-fields dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 23px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.system-fields dl > div {
  min-height: 86px;
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.system-fields dt,
.video-method dt {
  color: #d9824d;
  font-size: 0.71rem;
}

.system-fields dd,
.video-method dd {
  margin: 8px 0 0;
  color: #999289;
  font-size: 0.7rem;
  line-height: 1.6;
}

.section {
  padding: clamp(20px, 1.75vw, 28px) 0;
}

.section-shell {
  width: min(1180px, calc(100% - 64px));
}

.section-head {
  grid-template-columns: 140px minmax(0, 0.8fr) minmax(300px, 0.82fr);
  gap: clamp(28px, 4vw, 62px);
  margin-bottom: clamp(21px, 2vw, 29px);
}

.section h2,
.closing h2 {
  font-size: clamp(2.25rem, 3.5vw, 3.85rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-head > p:last-child {
  margin-top: 2px;
  line-height: 1.9;
}

.image-workbench {
  grid-template-columns: minmax(0, 720px) minmax(280px, 1fr);
  gap: clamp(28px, 4vw, 58px);
  justify-content: center;
}

.active-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.scene-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.scene-specs > div {
  display: grid;
  gap: 7px;
  min-height: 78px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scene-specs span {
  color: #827c73;
  font-size: 0.66rem;
}

.scene-specs strong {
  color: #d9cec0;
  font-size: 0.76rem;
  font-weight: 550;
}

.scene-rail {
  margin-top: 17px;
}

.image-document {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  margin-top: 27px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.image-document > article {
  min-width: 0;
  padding: 30px clamp(24px, 3vw, 42px) 34px;
}

.image-document > article + article {
  border-left: 1px solid var(--line);
}

.observation-order ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.observation-order li {
  min-width: 0;
  padding: 0 16px;
}

.observation-order li:first-child {
  padding-left: 0;
}

.observation-order li + li {
  border-left: 1px solid var(--line);
}

.observation-order li span,
.observation-order li strong {
  display: block;
}

.observation-order li strong {
  margin-top: 12px;
}

.sample-output h3 {
  font-size: 1.75rem;
}

.sample-output > p:nth-of-type(2) {
  margin: 18px 0 0;
  color: #a9a197;
  font-family: var(--serif);
  font-size: 0.94rem;
  line-height: 1.95;
}

.output-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 23px;
}

.output-tags span {
  padding: 7px 9px;
  border: 1px solid rgba(220, 107, 47, 0.28);
  color: #c9beb1;
  font: 0.6rem/1 var(--mono);
}

.video-method {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  margin-bottom: 24px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.video-method > * {
  min-width: 0;
  padding: 30px clamp(24px, 3vw, 42px) 34px;
}

.video-method > * + * {
  border-left: 1px solid var(--line);
}

.video-method h3 {
  max-width: 13em;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.video-method dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.video-method dl > div {
  min-height: 98px;
  padding: 15px 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.video-method dl > div:nth-child(3n) {
  border-right: 0;
}

.video-method dl > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.video-layout {
  grid-template-columns: minmax(0, 760px) minmax(280px, 1fr);
  gap: clamp(28px, 4vw, 54px);
  justify-content: center;
}

.extraction-flow {
  margin-top: 28px;
  padding: 15px 0 0;
  border-top: 1px solid var(--line-strong);
}

.extraction-flow ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line-strong);
}

.extraction-flow li {
  min-height: 146px;
  padding: 20px 20px 24px 0;
}

.extraction-flow li + li {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.extraction-flow li span,
.extraction-flow li strong {
  display: block;
}

.extraction-flow li strong {
  margin-top: 14px;
}

.closing {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  column-gap: clamp(42px, 6vw, 86px);
  row-gap: clamp(21px, 3vw, 43px);
  width: min(1180px, calc(100% - 64px));
  min-height: auto;
  margin-inline: auto;
  padding: clamp(22px, 2vw, 31px) 0;
  overflow: visible;
}

.closing::after {
  display: none;
}

.closing-image {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 100%;
  height: auto;
}

.closing-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  object-fit: cover;
  filter: brightness(0.84) saturate(0.92);
}

.closing-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  width: 100%;
  padding-bottom: 0;
}

.closing-copy h2 {
  margin-top: 24px;
}

.closing-intro {
  margin-top: 24px;
  font-size: 1rem;
}

.closing-ledger {
  margin: 28px 0 0;
  border-top: 1px solid var(--line-strong);
}

.closing-ledger > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.closing-ledger dt {
  color: var(--ember);
  font: 0.58rem/1 var(--mono);
  letter-spacing: 0.12em;
}

.closing-ledger dd {
  margin: 0;
  color: #a9a198;
  font-size: 0.76rem;
  line-height: 1.7;
}

.method-line,
.boundary-pair {
  grid-column: 1 / -1;
}

.method-line {
  margin-top: 8px;
}

.boundary-pair {
  margin-top: 21px;
}

.timeline {
  margin-top: clamp(29px, 3.5vw, 48px);
}

.video-observations {
  margin-top: 31px;
}

.site-footer {
  min-height: 85px;
  padding-block: 16px;
}

@media (max-width: 960px) {
  .hero-shell,
  .compact-head,
  .section-head,
  .system-board,
  .image-document,
  .video-method,
  .closing {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    width: min(100%, 820px);
  }

  .hero-copy {
    grid-column: 1;
    grid-row: auto;
    padding-bottom: 0;
  }

  .hero-caption {
    grid-column: 1;
    grid-row: auto;
  }

  .compact-head > p:last-child,
  .section-head > p:last-child {
    grid-column: 1;
  }

  .system-board > * + *,
  .image-document > article + article,
  .video-method > * + * {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .image-workbench,
  .video-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .observation-order ol,
  .extraction-flow ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .observation-order li,
  .observation-order li:first-child,
  .extraction-flow li,
  .extraction-flow li + li {
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }

  .observation-order li:nth-child(odd),
  .extraction-flow li:nth-child(odd) {
    border-left: 0;
  }

  .closing-image,
  .closing-copy {
    grid-column: 1;
  }

  .closing-image {
    grid-row: 1;
    width: min(100%, 820px);
  }

  .closing-copy {
    grid-row: 2;
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 82px 0 32px;
  }

  .hero-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: calc(100% - 36px);
  }

  .hero-visual {
    order: 2;
  }

  .hero-copy {
    order: 1;
    width: 100%;
    margin: 0;
    padding-top: 0;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 12vw, 3.5rem);
  }

  .hero-statement {
    font-size: 1rem;
  }

  .hero-caption {
    order: 3;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-top: 16px;
  }

  .hero-caption dl > div {
    padding-inline: 10px;
  }

  .hero-caption dl > div:first-child {
    padding-left: 0;
  }

  .description-system {
    padding: 34px 0 19px;
  }

  .section {
    padding: 17px 0 19px;
  }

  .section-shell {
    width: calc(100% - 36px);
  }

  .compact-head,
  .section-head {
    display: grid;
    gap: 18px;
    margin-bottom: 17px;
  }

  .compact-head h2,
  .section h2,
  .closing h2 {
    margin-top: 0;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .system-board > *,
  .image-document > article,
  .video-method > * {
    padding: 26px 20px 30px;
  }

  .system-fields dl,
  .scene-specs,
  .video-method dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-method dl > div,
  .video-method dl > div:nth-child(3n),
  .video-method dl > div:nth-last-child(-n + 3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .video-method dl > div:nth-child(even) {
    border-right: 0;
  }

  .video-method dl > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .observation-order ol,
  .extraction-flow ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .observation-order li,
  .observation-order li:first-child,
  .observation-order li + li,
  .extraction-flow li,
  .extraction-flow li + li {
    min-height: auto;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .observation-order li:last-child,
  .extraction-flow li:last-child {
    border-bottom: 0;
  }

  .closing {
    display: grid;
    gap: 16px;
    width: calc(100% - 36px);
    padding: 18px 0 20px;
  }

  .closing-image {
    position: relative;
    width: 100%;
    height: auto;
  }

  .closing-copy {
    position: relative;
  }

  .closing-ledger {
    margin-top: 20px;
  }

  .closing-ledger > div {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .method-line {
    margin-top: 11px;
  }

  .timeline {
    margin-top: 29px;
  }

  .video-observations {
    margin-top: 25px;
  }

  .site-footer {
    min-height: 95px;
    padding-block: 17px;
  }
}

/* Pointer-responsive image motion. The variables let existing scene states
   keep their own scale while the pointer layer only supplies position/tilt. */
.hero-visual,
.active-media,
.closing-image {
  overflow: hidden;
}

img.image-motion {
  --image-motion-x: 0px;
  --image-motion-y: 0px;
  --image-motion-rotate-x: 0deg;
  --image-motion-rotate-y: 0deg;
  --image-motion-scale: 1;
  backface-visibility: hidden;
  transform: perspective(1000px)
    translate3d(var(--image-motion-x), var(--image-motion-y), 0)
    rotateX(var(--image-motion-rotate-x))
    rotateY(var(--image-motion-rotate-y))
    scale(var(--image-motion-scale));
  transform-origin: center;
  transition:
    opacity 250ms ease,
    filter 280ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

img.image-motion.is-image-motion-active {
  --image-motion-scale: 1.026;
  transition-duration: 250ms, 280ms, 90ms;
  will-change: transform;
}

.scene-tab:hover img.image-motion,
.scene-tab:focus-visible img.image-motion,
.scene-tab.is-active img.image-motion {
  --image-motion-scale: 1.02;
}

.scene-tab:hover img.image-motion.is-image-motion-active,
.scene-tab:focus-visible img.image-motion.is-image-motion-active,
.scene-tab.is-active img.image-motion.is-image-motion-active {
  --image-motion-scale: 1.035;
}

.active-media img.image-motion.is-switching {
  --image-motion-scale: 1.012;
}

.active-media img.image-motion.is-switching.is-image-motion-active {
  --image-motion-scale: 1.028;
}

@media (hover: none), (pointer: coarse) {
  img.image-motion {
    transform: none;
    transition: none;
  }
}

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

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

  .hero-image,
  img.image-motion {
    transform: none !important;
    will-change: auto;
  }
}
