/* ==========================================================================
   看山七问 — redesign layer
   A curatorial viewing practice, not a painting magnifier.
   Loaded after main.css and viewer.css. All new classes are scoped.
   ========================================================================== */

:root {
  --rx-dark: #1f1e19;
  --rx-dark-soft: #2a2822;
  --rx-on-dark: #f2ecdf;
  --rx-on-dark-muted: rgba(242, 236, 223, 0.62);
  --rx-on-dark-line: rgba(242, 236, 223, 0.18);
  --rx-accent-soft: #d7a18f;
  --rx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Home / hero
   -------------------------------------------------------------------------- */
body[data-page="home"] {
  background: var(--paper);
}

.rx-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: clamp(6.2rem, 9vw, 8.5rem) 0 clamp(2.6rem, 5vw, 4.5rem);
  overflow: hidden;
  background: var(--rx-dark);
  color: var(--rx-on-dark);
}

.rx-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--rx-on-dark-line);
}

.rx-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  width: 100%;
}

.rx-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding-left: clamp(0px, 1.4vw, 18px);
}

.rx-hero .eyebrow {
  color: var(--rx-on-dark-muted);
}

.rx-hero .eyebrow::before {
  background: var(--rx-accent-soft);
}

.rx-hero__title {
  margin: 1.4rem 0 0.2rem;
  font-family: var(--serif);
  font-size: clamp(4.6rem, 8.4vw, 8.4rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: var(--rx-on-dark);
}

.rx-hero__en {
  margin-top: 0.65rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--rx-on-dark-muted);
}

.rx-hero__thesis {
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.25vw, 2.25rem);
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: -0.015em;
  color: var(--rx-on-dark);
}

.rx-hero__thesis em {
  color: var(--rx-accent-soft);
  font-style: normal;
}

.rx-hero__lede {
  max-width: 440px;
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--rx-on-dark-muted);
}

.rx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.6rem;
  align-items: center;
  margin-top: 2rem;
}

.rx-hero .btn {
  background: var(--rx-on-dark);
  color: var(--ink);
  border-color: var(--rx-on-dark);
}

.rx-hero .btn:hover {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: var(--paper-light);
}

.rx-hero .link-arrow {
  color: var(--rx-on-dark);
  border-color: var(--rx-on-dark-line);
}

.rx-hero .link-arrow:hover {
  color: var(--rx-accent-soft);
  border-color: var(--rx-accent-soft);
}

.rx-exercises,
.rx-loop,
.rx-notebook {
  scroll-margin-top: 92px;
}

.rx-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1rem;
  border-top: 1px solid var(--rx-on-dark-line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--rx-on-dark-muted);
}

.rx-hero__meta span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 0.5rem;
  background: var(--cinnabar);
  vertical-align: 1px;
}

.rx-hero__apertures {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 7px;
  height: min(72vh, 720px);
  min-height: 500px;
}

.rx-aperture {
  position: relative;
  display: block;
  overflow: hidden;
  background: #14130f;
  color: var(--rx-on-dark);
  text-decoration: none;
}

.rx-aperture--vertical {
  grid-column: 1 / 8;
  grid-row: 1 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rx-aperture.rx-aperture--vertical img {
  width: auto;
  height: calc(100% - 84px);
  object-fit: contain;
}

.rx-aperture--vertical .rx-aperture__bottom {
  background: #14130f;
}

.rx-aperture--time {
  grid-column: 8 / 13;
  grid-row: 1 / 6;
}

.rx-aperture--city {
  grid-column: 8 / 13;
  grid-row: 6 / 11;
}

.rx-aperture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 1.4s var(--rx-ease), filter 0.6s ease;
}

.rx-aperture--vertical img { object-position: 50% 30%; }
.rx-aperture--time img { object-position: 50% 50%; }
.rx-aperture--city img { object-position: 50% 52%; }

.rx-aperture:hover img,
.rx-aperture:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.02);
}

.rx-aperture__top {
  position: absolute;
  inset: 12px 12px auto;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--rx-on-dark);
}

.rx-aperture__top span {
  padding: 5px 7px;
  background: rgba(20, 19, 15, 0.72);
}

.rx-aperture__bottom {
  position: absolute;
  inset: auto 0 0;
  padding: 13px 14px 14px;
  background: rgba(20, 19, 15, 0.8);
  border-top: 1px solid var(--rx-on-dark-line);
}

.rx-aperture__no {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--rx-accent-soft);
}

.rx-aperture__bottom h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.rx-aperture__bottom p {
  margin: 0.35rem 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--rx-on-dark-muted);
}

.rx-aperture__cue {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--rx-accent-soft);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s var(--rx-ease);
}

.rx-aperture:hover .rx-aperture__cue,
.rx-aperture:focus-visible .rx-aperture__cue {
  opacity: 1;
  transform: none;
}

.rx-hero__scroll {
  position: absolute;
  right: 0;
  bottom: -1.8rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--rx-on-dark-muted);
}

/* --------------------------------------------------------------------------
   Home / exercises
   -------------------------------------------------------------------------- */
.rx-exercises {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.rx-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem 4rem;
  align-items: end;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-strong);
}

.rx-section-head h2 {
  max-width: 760px;
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.2vw, 4.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.rx-section-head p {
  max-width: 400px;
  margin: 0 0 0 auto;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.rx-exercise-list {
  display: block;
}

.rx-exercise {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.rx-exercise__media {
  position: relative;
  grid-column: 1 / 6;
  grid-row: 1;
  overflow: hidden;
  background: var(--paper-deep);
}

.rx-exercise__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--rx-ease), filter 0.5s ease;
}

.rx-exercise--time .rx-exercise__media img { object-position: 50% 48%; }
.rx-exercise--city .rx-exercise__media img { object-position: 50% 52%; }

.rx-exercise--enter .rx-exercise__media { aspect-ratio: 5 / 6; }
.rx-exercise--time .rx-exercise__media { aspect-ratio: 16 / 7; }
.rx-exercise--city .rx-exercise__media { aspect-ratio: 16 / 7; }

.rx-exercise:hover .rx-exercise__media img {
  transform: scale(1.025);
}

.rx-exercise__tag {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 5px 7px;
  background: rgba(20, 19, 15, 0.78);
  color: var(--paper-light);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.rx-exercise__body {
  grid-column: 6 / 13;
  grid-row: 1;
  min-width: 0;
}

.rx-exercise--flip .rx-exercise__media {
  grid-column: 7 / 13;
}

.rx-exercise--flip .rx-exercise__body {
  grid-column: 1 / 7;
}

.rx-exercise__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.rx-exercise__meta span + span::before {
  content: "·";
  margin-right: 0.55rem;
  color: var(--line-strong);
}

.rx-exercise__status {
  margin-left: auto;
  color: var(--cinnabar);
}

.rx-exercise__status::before {
  content: none !important;
  margin-right: 0 !important;
}

.rx-exercise__title {
  margin: 0.8rem 0 0.6rem;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

.rx-exercise:hover .rx-exercise__title {
  color: var(--cinnabar);
}

.rx-exercise__question {
  max-width: 620px;
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.rx-exercise__desc {
  max-width: 550px;
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.rx-exercise__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.2rem;
  margin: 1.2rem 0 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.rx-exercise__steps span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 11px;
  color: var(--text-secondary);
}

.rx-exercise__steps b {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--cinnabar);
}

.rx-exercise__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.rx-exercise__foot .progress {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.rx-exercise__go {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--cinnabar);
}

/* --------------------------------------------------------------------------
   Home / practice loop
   -------------------------------------------------------------------------- */
.rx-loop {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: var(--rx-dark-soft);
  color: var(--rx-on-dark);
}

.rx-loop__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.rx-loop .eyebrow { color: var(--rx-on-dark-muted); }
.rx-loop .eyebrow::before { background: var(--rx-accent-soft); }

.rx-loop h2 {
  max-width: 430px;
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.rx-loop__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rx-on-dark-line);
}

.rx-loop__steps li {
  padding: 1.3rem 1.2rem 0 0;
  border-right: 1px solid var(--rx-on-dark-line);
}

.rx-loop__steps li + li {
  padding-left: 1.2rem;
}

.rx-loop__steps li:last-child {
  border-right: 0;
}

.rx-loop__steps span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--rx-accent-soft);
}

.rx-loop__steps h3 {
  margin: 0.7rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.rx-loop__steps p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--rx-on-dark-muted);
}

.rx-loop__foot {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rx-on-dark-line);
}

.rx-loop__foot p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--rx-on-dark-muted);
}

.rx-loop__foot a {
  flex: 0 0 auto;
  color: var(--rx-on-dark);
  border-color: var(--rx-on-dark-line);
}

.rx-loop__foot a:hover {
  color: var(--rx-accent-soft);
  border-color: var(--rx-accent-soft);
}

/* --------------------------------------------------------------------------
   Home / notebook
   -------------------------------------------------------------------------- */
.rx-notebook {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line-strong);
}

.rx-notebook__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.rx-notebook .eyebrow { margin-bottom: 0.7rem; }

.rx-notebook h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.rx-notebook p {
  max-width: 520px;
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.rx-notebook__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
}

.rx-notebook__stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}

.rx-notebook__stat span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.rx-notebook__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Work / act rail and brief
   -------------------------------------------------------------------------- */
.work-head__practice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  justify-content: flex-end;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.work-head__practice strong {
  font-weight: 500;
  color: var(--cinnabar);
}

.act-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: var(--s4);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.act-tab {
  display: block;
  padding: 0.8rem 0.9rem 0.85rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.act-tab:last-child { border-right: 0; }

.act-tab:hover {
  background: rgba(50, 48, 40, 0.04);
  color: var(--ink);
}

.act-tab[aria-pressed="true"] {
  background: var(--paper-deep);
  color: var(--ink);
  box-shadow: inset 0 2px 0 var(--cinnabar);
}

.act-tab__no {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--cinnabar);
}

.act-tab[aria-pressed="true"] .act-tab__no {
  color: var(--cinnabar);
}

.act-tab__title {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.2;
}

.act-tab__sub {
  display: block;
  margin-top: 0.3rem;
  font-size: 10px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.act-tab[aria-pressed="true"] .act-tab__sub {
  color: var(--ink-soft);
}

.act-brief {
  display: block;
  padding: 0 0 var(--s4);
  margin-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}

.act-brief__no {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--cinnabar);
}

.act-brief h2 {
  margin: 0.35rem 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.25;
}

.act-brief p {
  max-width: 560px;
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.act-brief__go {
  align-self: end;
  white-space: nowrap;
}

.act-preview {
  display: grid;
  gap: 8px;
  margin: 1.1rem 0 1rem;
}

.act-preview__item {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  column-gap: 0.6rem;
  row-gap: 0.2rem;
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.act-preview__item:hover {
  border-color: var(--ink-soft);
  background: rgba(50, 48, 40, 0.03);
}

.act-preview__no {
  grid-row: 1 / 3;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cinnabar);
  padding-top: 0.15rem;
}

.act-preview__item strong {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.3;
}

.act-preview__item em {
  font-style: normal;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Work / task layer and notebook
   -------------------------------------------------------------------------- */
.task-box {
  padding: 0.2rem 0 1rem;
  margin-bottom: var(--s4);
  border-bottom: 1px solid var(--line-strong);
}

.task-box__kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--cinnabar);
}

.task-box__q {
  margin: 0.55rem 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.5vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
}

.guess-options {
  display: grid;
  gap: 5px;
}

.guess-option {
  width: 100%;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.guess-option:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.guess-option.is-correct {
  border-color: var(--celadon);
  background: rgba(119, 129, 107, 0.16);
  color: var(--ink);
}

.guess-option.is-wrong {
  border-color: var(--cinnabar);
  background: rgba(166, 94, 73, 0.1);
  color: var(--ink);
}

.guess-option:disabled {
  cursor: default;
}

.task-feedback {
  margin: 0.75rem 0 0;
  padding-left: 0.7rem;
  border-left: 2px solid var(--cinnabar);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.task-skip {
  margin-top: 0.7rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.task-skip:hover { color: var(--ink); }

.find-task {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.2rem;
}

.find-task__hint {
  flex: 1 1 180px;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.find-btn.is-active {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: var(--paper-light);
}

.find-btn.is-found {
  background: var(--celadon);
  border-color: var(--celadon);
  color: var(--paper-light);
  opacity: 1;
}

.viewer.is-finding {
  cursor: crosshair;
}

.viewer.is-finding .marker {
  opacity: 0;
  pointer-events: none;
}

.viewer.is-finding::after {
  content: "在画面里找到它 · 单击确认";
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 8;
  transform: translateX(-50%);
  padding: 7px 10px;
  background: var(--ink);
  color: var(--paper-light);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  pointer-events: none;
  white-space: nowrap;
}

.note-box {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}

.note-box label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--cinnabar);
}

.note-box input {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
}

.note-box input:focus {
  outline: 2px solid var(--cinnabar);
  outline-offset: -2px;
}

.note-box__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.55rem;
}

.note-box__status {
  font-size: 10px;
  color: var(--text-secondary);
}

.scale-readout {
  margin: 1rem 0 0;
  padding: 0.9rem 0 0.2rem;
  border-top: 1px solid var(--line);
}

.scale-readout__head {
  margin-bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--cinnabar);
}

.scale-readout__row {
  display: grid;
  grid-template-columns: 5.1rem minmax(0, 1fr);
  gap: 0.2rem 0.7rem;
  align-items: start;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-secondary);
}

.scale-readout__row span {
  grid-row: 1 / 3;
  padding-top: 0.15rem;
  letter-spacing: 0.04em;
}

.scale-readout__row strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

.scale-readout__row em {
  font-style: normal;
  font-size: 10px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.scale-readout__bar {
  height: 2px;
  background: var(--line);
  position: relative;
}

.scale-readout__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--cinnabar);
}

.scale-readout__bar--human i {
  background: var(--celadon);
}

.scale-readout p {
  margin: 0.5rem 0 0;
  font-size: 10px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes rxRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.rx-hero__copy > * {
  animation: rxRise 0.85s var(--rx-ease) both;
}

.rx-hero__copy > :nth-child(2) { animation-delay: 0.05s; }
.rx-hero__copy > :nth-child(3) { animation-delay: 0.1s; }
.rx-hero__copy > :nth-child(4) { animation-delay: 0.16s; }
.rx-hero__copy > :nth-child(5) { animation-delay: 0.22s; }
.rx-hero__copy > :nth-child(6) { animation-delay: 0.28s; }
.rx-hero__copy > :nth-child(7) { animation-delay: 0.34s; }

.rx-hero__apertures {
  animation: rxRise 1s var(--rx-ease) 0.12s both;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .rx-hero {
    min-height: auto;
    padding-top: clamp(7rem, 9vw, 8.5rem);
    padding-bottom: 3.5rem;
  }

  .rx-hero__grid {
    gap: 2.5rem;
    align-items: start;
  }

  .rx-hero__apertures { min-height: 460px; height: min(68vh, 620px); }
  .rx-exercise__title { font-size: 2.5rem; }
  .rx-exercise__question { font-size: 1.15rem; }
}

@media (max-width: 900px) {
  .rx-hero {
    min-height: auto;
    padding-top: 7.2rem;
  }

  .rx-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .rx-hero__copy { max-width: 640px; }
  .rx-hero__title { font-size: clamp(4.4rem, 14vw, 7rem); }
  .rx-hero__apertures { height: min(62vh, 600px); min-height: 420px; }

  .rx-section-head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .rx-section-head p { margin-left: 0; }

  .rx-exercise {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .rx-exercise__media,
  .rx-exercise--flip .rx-exercise__media {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .rx-exercise__body,
  .rx-exercise--flip .rx-exercise__body {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .rx-exercise--enter .rx-exercise__media { aspect-ratio: 16 / 10; }
  .rx-exercise--time .rx-exercise__media,
  .rx-exercise--city .rx-exercise__media { aspect-ratio: 16 / 8; }

  .rx-loop__grid { grid-template-columns: 1fr; gap: 2rem; }
  .rx-notebook__inner { grid-template-columns: 1fr 1fr; }
  .rx-notebook__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 680px) {
  .rx-hero { padding-top: 6.4rem; }
  .rx-hero__title { font-size: 4.1rem; }
  .rx-hero__thesis { font-size: 1.45rem; }
  .rx-hero__lede { font-size: 13px; }
  .rx-hero__actions { align-items: flex-start; }
  .rx-hero__apertures {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 5px;
  }

  .rx-aperture--vertical,
  .rx-aperture--time,
  .rx-aperture--city {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 8;
  }

  .rx-aperture--vertical { aspect-ratio: 4 / 5; }
  .rx-aperture--vertical img { object-position: 50% 24%; }
  .rx-aperture--time img { object-position: 50% 48%; }

  .rx-aperture__top { inset: 8px 8px auto; }
  .rx-aperture__top span { padding: 4px 5px; font-size: 8px; }
  .rx-aperture__bottom { padding: 9px 10px 10px; }
  .rx-aperture__bottom h2 { font-size: 1.05rem; }
  .rx-aperture__bottom p { font-size: 9px; }
  .rx-aperture__cue { display: none; }

  .rx-section-head h2 { font-size: 2.5rem; }
  .rx-exercise { padding: 1.7rem 0; }
  .rx-exercise__title { font-size: 2.1rem; }
  .rx-exercise__question { font-size: 1.08rem; }
  .rx-exercise__steps { gap: 0.4rem 0.9rem; }
  .rx-exercise__foot { align-items: flex-start; }

  .rx-loop__steps { grid-template-columns: 1fr; }
  .rx-loop__steps li { padding: 1rem 0; border-right: 0; border-bottom: 1px solid var(--rx-on-dark-line); }
  .rx-loop__steps li + li { padding-left: 0; }
  .rx-loop__steps li:last-child { border-bottom: 0; }
  .rx-loop__foot { flex-direction: column; align-items: flex-start; }

  .rx-notebook__inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .rx-notebook__actions { grid-column: auto; }
  .rx-notebook__stats { gap: 0.8rem 1.4rem; }

  .act-tab { min-width: 0; padding: 0.7rem 0.4rem; }
  .act-tab__title { font-size: 1rem; }
  .act-tab__no { gap: 0.25rem; letter-spacing: 0.02em; }
  .act-tab__sub { display: none; }
  .act-brief { grid-template-columns: 1fr; gap: 0.8rem; }
  .act-brief__go { justify-self: start; }
  .work-head__practice { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .rx-hero__copy > *,
  .rx-hero__apertures {
    animation: none;
  }

  .rx-aperture img,
  .rx-exercise__media img {
    transition: none;
  }
}

.rx-history__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 0.65rem;
  border: 1px solid var(--line);
  background: rgba(238, 229, 211, 0.025);
  color: var(--cinnabar);
}
.rx-history__icon .icon { width: 18px; height: 18px; }
