/* ==========================================================================
   YoFan Studio : Daylight Gallery Wall (Photographs at Uneven Sizes, Seed 303)
   Type System: Imbue (display serif) + Albert Sans (humanist grotesque)
   Strict 5-size scale: 88px (5.5rem) / 60px (3.75rem) / 36px (2.25rem) / 17px (1.0625rem) / 14px (0.875rem)
   Continuous warm stone gallery ground, no section blocks, no card grids
   ========================================================================== */

:root {
  --bg: #eeecea;
  --surface: #e2dfd9;
  --surface-elevated: #d8d4cd;
  --surface-active: #cbc6be;
  --ink: #1a1918;
  --muted: #4a4743;
  --accent: #2c4a3e;
  --accent-ink: #ffffff;

  --font-display: 'Imbue', Georgia, serif;
  --font-sans: 'Albert Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --size-hero: 5.5rem;
  --size-section: 3.75rem;
  --size-sub: 2.25rem;
  --size-body: 1.0625rem;
  --size-small: 0.875rem;

  --wrap: 1360px;
  --gutter: clamp(1.5rem, 4.5vw, 4rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--size-body);
  font-weight: 400;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--accent);
}

button,
input {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

/* --------------------------------------------------------------------------
   12-Column Asymmetric Gallery Grid (Open Dark Room)
   -------------------------------------------------------------------------- */

.room-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 2.4vw, 2.25rem);
}

/* --------------------------------------------------------------------------
   Typography : 5-Step Scale (Imbue + Albert Sans)
   -------------------------------------------------------------------------- */

.display-hero {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-hero);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.display-section {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-section);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.display-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-sub);
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
}

.body-lead,
.body-copy {
  font-family: var(--font-sans);
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.body-copy strong,
.body-lead strong {
  color: var(--ink);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Minimal Top Line (Unboxed, Floating in the Dark Room)
   -------------------------------------------------------------------------- */

.site-header {
  padding-block: 2rem 1.25rem;
}

.header-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.85rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--size-sub);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-tag {
  font-size: var(--size-small);
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: baseline;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  flex-wrap: wrap;
}

.site-nav a {
  font-size: var(--size-small);
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-cta {
  color: var(--accent);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Hero : Sculptural Masthead + Floating Monet Canvas in the Dark Room
   -------------------------------------------------------------------------- */

.hero-room {
  padding-top: clamp(2.25rem, 4vw, 3.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

.hero-intro {
  align-items: end;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.hero-title-col {
  grid-column: 1 / 8;
}

.hero-summary-col {
  grid-column: 8 / 13;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 0.35rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.45rem;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-sans);
  font-size: var(--size-small);
  font-weight: 500;
  border-radius: 2px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-gold:hover {
  color: var(--accent-ink);
  filter: brightness(1.07);
  transform: translateY(-2px);
}

.link-plain {
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-color: rgba(26, 25, 24, 0.32);
}

.link-plain:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Hero Exhibit: Unboxed canvas emerging from the dark room with side notes */
.hero-exhibit {
  align-items: center;
  row-gap: 2.5rem;
}

.hero-note-left {
  grid-column: 1 / 3;
  text-align: right;
  padding-right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-canvas-col {
  grid-column: 3 / 11;
}

.hero-note-right {
  grid-column: 11 / 13;
  padding-left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.exhibit-figure {
  position: relative;
}

.exhibit-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.exhibit-figure:hover .exhibit-image {
  transform: scale(1.012);
}

@keyframes ambientCanvasBreath {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero-canvas-col .exhibit-image {
  animation: ambientCanvasBreath 7s ease-in-out infinite;
}

.exhibit-caption {
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: var(--size-small);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.margin-callout {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.margin-callout-title {
  font-size: var(--size-body);
  font-weight: 500;
  color: var(--ink);
}

.margin-callout-desc {
  font-size: var(--size-small);
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Blueprint 1 : Showcase ("Headline you can type", Open Live Prompt Line)
   -------------------------------------------------------------------------- */

.live-prompt-section {
  padding-block: clamp(2.5rem, 4.2vw, 3.5rem);
}

.live-prompt-header {
  margin-bottom: 2.5rem;
}

.live-prompt-meta {
  grid-column: 1 / 5;
}

.live-prompt-lead {
  grid-column: 6 / 13;
  align-self: end;
}

.editable-headline-wrap {
  position: relative;
  padding-block: 1.15rem;
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
}

.prompt-caret-badge {
  font-family: var(--font-sans);
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}

.editable-headline-input {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-section);
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  caret-color: var(--accent);
  background: transparent;
  border: none;
  outline: none;
}

.editable-headline-input:focus {
  color: var(--accent);
}

.prompt-presets-row {
  margin-top: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.preset-links {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.preset-label {
  font-size: var(--size-small);
  color: var(--muted);
}

.preset-btn {
  font-size: var(--size-small);
  color: var(--muted);
  cursor: pointer;
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.preset-btn:hover,
.preset-btn.is-active {
  color: var(--accent);
  font-weight: 500;
}

/* Compact inline readout beneath the live prompt */
.prompt-telemetry {
  margin-top: 2.25rem;
  background-color: var(--surface);
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.telemetry-group {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.telemetry-key {
  font-size: var(--size-small);
  color: var(--muted);
}

.telemetry-val {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--ink);
}

.telemetry-val.is-gold {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Blueprint 2 : Features Part A ("Panel with margin notes", No Stage Box)
   -------------------------------------------------------------------------- */

.anatomy-section {
  padding-block: clamp(2.5rem, 4.2vw, 3.5rem);
}

.anatomy-intro {
  margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.anatomy-title-col {
  grid-column: 1 / 6;
}

.anatomy-lead-col {
  grid-column: 7 / 13;
  align-self: end;
}

.anatomy-grid {
  align-items: stretch;
}

.margin-notes-left {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  text-align: right;
  padding-right: 1.5rem;
  gap: 2.25rem;
}

.anatomy-panel-col {
  grid-column: 5 / 9;
  display: flex;
  justify-content: center;
}

.margin-notes-right {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  text-align: left;
  padding-left: 1.5rem;
  gap: 2.25rem;
}

.margin-note {
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.margin-note:hover {
  transform: translateY(-2px);
}

.margin-note-meta {
  font-family: var(--font-sans);
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 0.2rem;
}

.margin-note-heading {
  font-size: var(--size-body);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.margin-note-copy {
  font-size: var(--size-small);
  line-height: 1.5;
  color: var(--muted);
}

/* The tall product panel standing directly on the plain dark ground */
.inspector-plate {
  width: 100%;
  max-width: 390px;
  background-color: var(--surface);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.plate-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--ink);
}

.plate-status-dot {
  color: var(--accent);
  font-size: var(--size-small);
  font-weight: 500;
}

.plate-row {
  background-color: var(--surface-elevated);
  padding: 0.8rem 0.95rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.plate-row.is-highlighted {
  background-color: var(--surface-active);
  transform: translateX(3px);
}

.plate-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.plate-row-label {
  font-size: var(--size-small);
  color: var(--muted);
}

.plate-row-badge {
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--accent);
}

.plate-row-val {
  font-size: var(--size-small);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Features Part B : Staggered Gallery Exhibits Floating in the Dark Room
   -------------------------------------------------------------------------- */

.gallery-section {
  padding-block: clamp(2.5rem, 4.2vw, 3.5rem);
}

.gallery-intro {
  margin-bottom: clamp(2.5rem, 4.5vw, 3.75rem);
}

.gallery-title-col {
  grid-column: 1 / 7;
}

.gallery-lead-col {
  grid-column: 8 / 13;
  align-self: end;
}

.exhibit-stream {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 6vw, 5.25rem);
}

.exhibit-item {
  align-items: center;
  row-gap: 2rem;
}

.exhibit-item--left .exhibit-media {
  grid-column: 1 / 8;
}

.exhibit-item--left .exhibit-text {
  grid-column: 9 / 13;
}

.exhibit-item--right .exhibit-text {
  grid-column: 1 / 5;
}

.exhibit-item--right .exhibit-media {
  grid-column: 6 / 13;
}

.exhibit-item--offset .exhibit-media {
  grid-column: 2 / 9;
}

.exhibit-item--offset .exhibit-text {
  grid-column: 10 / 13;
}

.exhibit-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Blueprint 3 : How It Works ("Drag through the stages", Open 50/50 Split)
   -------------------------------------------------------------------------- */

.stages-section {
  padding-block: clamp(2.5rem, 4.2vw, 3.5rem);
}

.stages-header {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.stages-header-left {
  grid-column: 1 / 6;
}

.stages-header-right {
  grid-column: 7 / 13;
  align-self: end;
}

.stages-split {
  align-items: center;
  row-gap: 2.5rem;
  margin-bottom: 3rem;
}

.stage-clause-col {
  grid-column: 1 / 7;
  padding-right: clamp(1rem, 3vw, 3rem);
}

.stage-clause-title {
  margin-bottom: 1.25rem;
}

.stage-state-col {
  grid-column: 7 / 13;
}

.stage-console {
  background-color: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.stage-console-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.5rem;
}

.stage-console-title {
  font-size: var(--size-body);
  font-weight: 500;
  color: var(--ink);
}

.stage-console-badge {
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--accent);
}

.stage-kv-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stage-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: var(--size-small);
}

.stage-kv-key {
  color: var(--muted);
}

.stage-kv-val {
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Scrubber bar along the bottom */
.scrubber-bar {
  padding-top: 1.5rem;
}

.scrubber-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--surface-active);
  outline: none;
  cursor: pointer;
}

.scrubber-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 0;
  cursor: ew-resize;
}

.scrubber-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: none;
  border-radius: 0;
  cursor: ew-resize;
}

.scrubber-stops {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.scrubber-stop-btn {
  text-align: left;
  cursor: pointer;
  padding-top: 0.35rem;
  color: var(--muted);
  font-size: var(--size-small);
  transition: color 0.2s ease, transform 0.2s ease;
}

.scrubber-stop-btn:hover,
.scrubber-stop-btn.is-active {
  color: var(--ink);
  transform: translateY(-1px);
}

.scrubber-stop-btn .stop-phase {
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 0.15rem;
}

/* --------------------------------------------------------------------------
   Blueprint 5 : Pricing & Credit Rules ("The price, very large", No Cards)
   -------------------------------------------------------------------------- */

.pricing-section {
  padding-block: clamp(2.5rem, 4.2vw, 3.5rem);
}

.pricing-sticky-col {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pricing-monument-col {
  grid-column: 6 / 13;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.monument-figure {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.monument-numeral {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-hero);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.monument-numeral span {
  color: var(--accent);
}

.monument-caption {
  font-size: var(--size-body);
  color: var(--ink);
  font-weight: 500;
}

.unboxed-allowance-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.allowance-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  font-size: var(--size-body);
}

.allowance-name {
  color: var(--ink);
}

.allowance-meta {
  font-size: var(--size-small);
  color: var(--muted);
  text-align: right;
}

/* Mandatory Credit Usage Constraints : Open Typographic Rules, No Cards */
.credit-rules-ledger {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.credit-rules-heading {
  font-size: var(--size-body);
  font-weight: 500;
  color: var(--accent);
}

.credit-rule-entry {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.5rem;
  align-items: baseline;
}

.credit-rule-term {
  font-size: var(--size-body);
  font-weight: 500;
  color: var(--ink);
}

.credit-rule-detail {
  font-size: var(--size-body);
  line-height: 1.55;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Open Editorial Q&A & Policy Ledger (No Accordion Boxes)
   -------------------------------------------------------------------------- */

.editorial-qa-section {
  padding-block: clamp(2.5rem, 4.2vw, 3.5rem);
}

.qa-header {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.qa-title-col {
  grid-column: 1 / 6;
}

.qa-lead-col {
  grid-column: 7 / 13;
  align-self: end;
}

.qa-stream {
  display: flex;
  flex-direction: column;
  gap: 3.25rem;
}

.qa-pair {
  align-items: baseline;
}

.qa-question-col {
  grid-column: 1 / 6;
}

.qa-answer-col {
  grid-column: 6 / 13;
}

.policy-links-inline {
  margin-top: 1rem;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Blueprint 7 : Footer ("A single quiet line", No Footer Block)
   -------------------------------------------------------------------------- */

.quiet-footer {
  padding-block: 4rem 2.75rem;
}

.quiet-footer-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 1.5rem;
  font-size: var(--size-small);
  color: var(--muted);
}

.quiet-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.quiet-footer-right {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Scroll Reveal Choreography (Safe Opacity Floor for Full-Page Screenshots)
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0.92;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-canvas-col .exhibit-image {
    animation: none;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints : Tablet (<= 1024px) & Mobile (<= 640px)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --size-hero: 4rem;
    --size-section: 2.85rem;
    --size-sub: 1.95rem;
  }

  .hero-title-col,
  .hero-summary-col,
  .live-prompt-meta,
  .live-prompt-lead,
  .anatomy-title-col,
  .anatomy-lead-col,
  .gallery-title-col,
  .gallery-lead-col,
  .stages-header-left,
  .stages-header-right,
  .stage-clause-col,
  .stage-state-col,
  .pricing-sticky-col,
  .pricing-monument-col,
  .qa-title-col,
  .qa-lead-col,
  .qa-question-col,
  .qa-answer-col {
    grid-column: 1 / -1;
  }

  .hero-title-col,
  .pricing-sticky-col {
    margin-bottom: 1.5rem;
  }

  .hero-canvas-col {
    grid-column: 1 / -1;
    order: 1;
  }

  .hero-note-left {
    grid-column: 1 / 7;
    order: 2;
    text-align: left;
    padding-right: 0;
  }

  .hero-note-right {
    grid-column: 7 / 13;
    order: 3;
    padding-left: 0;
  }

  .anatomy-panel-col {
    grid-column: 1 / -1;
    order: 1;
    margin-bottom: 2rem;
  }

  .margin-notes-left {
    grid-column: 1 / 7;
    order: 2;
    text-align: left;
    padding-right: 0;
  }

  .margin-notes-right {
    grid-column: 7 / 13;
    order: 3;
    padding-left: 0;
  }

  .exhibit-item--left .exhibit-media,
  .exhibit-item--left .exhibit-text,
  .exhibit-item--right .exhibit-media,
  .exhibit-item--right .exhibit-text,
  .exhibit-item--offset .exhibit-media,
  .exhibit-item--offset .exhibit-text {
    grid-column: 1 / -1;
  }

  .exhibit-item--right .exhibit-media {
    order: 1;
  }

  .exhibit-item--right .exhibit-text {
    order: 2;
  }

  .quiet-footer-line {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .quiet-footer-links {
    justify-content: flex-start;
  }

  .quiet-footer-right {
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --size-hero: 2.85rem;
    --size-section: 2.2rem;
    --size-sub: 1.65rem;
  }

  .header-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .hero-note-left,
  .hero-note-right,
  .margin-notes-left,
  .margin-notes-right {
    grid-column: 1 / -1;
  }

  .scrubber-stops {
    grid-template-columns: repeat(2, 1fr);
  }

  .allowance-line {
    flex-direction: column;
    gap: 0.25rem;
  }

  .allowance-meta {
    text-align: left;
  }

  .credit-rule-entry {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
