/* Record Room site styles. Palette follows getplotiq.in (warm off-white canvas, brown primary, orange accent),
   with TLB type (brand/tokens.css). */

:root {
  --rr-page: #FBFBF8;          /* canvas */
  --rr-sand: #F3F1EA;          /* alternate sections */
  --rr-surface: #FFFFFF;       /* cards */
  --rr-ink: #18170F;
  --rr-ink-soft: #6A6053;      /* secondary text; PlotIQ ink-70 darkened a little to keep AA on the alternate sections */
  --rr-line: #E7E3DA;
  --rr-primary: #7A5A3A;       /* brown: numbers, links, accents */
  --rr-primary-deep: #4B3422;  /* labels */
  --rr-primary-tint: #EEE5DC;
  --rr-accent: #E87524;        /* orange: borders and focus only, never small text */
  --rr-link: var(--rr-primary);
  --rr-focus: var(--rr-accent);
  --rr-gutter: clamp(16px, 5vw, 64px);
  --rr-measure: 1120px;
  --rr-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --rr-reveal-ms: 700ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --rr-page: #18170F;
    --rr-sand: #211F17;
    --rr-surface: #24211A;
    --rr-ink: #F3F1EA;
    --rr-ink-soft: #BDB4A6;
    --rr-line: #3A352B;
    --rr-primary: #D9B48F;
    --rr-primary-deep: #E8CFB3;
    --rr-primary-tint: #3A2E22;
    --rr-accent: #F59A55;
  }
}

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

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

body {
  margin: 0;
  background: var(--rr-page);
  color: var(--rr-ink);
  font-family: var(--tlb-font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: var(--rr-link); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--rr-focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(32px, 6vw, 64px); line-height: 1.08; max-width: 22ch; margin-bottom: 40px; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0 0 16px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--rr-ink); color: var(--rr-page); padding: 8px 16px; z-index: 10; }
.skip-link:focus { left: 8px; }

.label {
  font-family: var(--rr-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rr-primary-deep);
  margin-bottom: 20px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--rr-gutter);
  background: color-mix(in srgb, var(--rr-page) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rr-line);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; color: var(--rr-primary); text-decoration: none; letter-spacing: -0.02em; }
/* The mark is drawn through a mask, so it takes the brand brown in light mode and the lighter brown in dark mode. */
.wordmark__mark {
  flex: none; width: 30px; height: 30px; background: var(--rr-primary);
  -webkit-mask: url("../brand/assets/record-room-mark-brown-256.png") center / contain no-repeat;
  mask: url("../brand/assets/record-room-mark-brown-256.png") center / contain no-repeat;
}
.site-nav { display: flex; gap: clamp(14px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--rr-ink-soft); text-decoration: none; font-size: 16px; }
.site-nav a:hover { color: var(--rr-ink); }

/* Sections share one width and generous space, as on godyns.com */
main > section { padding: clamp(80px, 14vw, 160px) var(--rr-gutter); }
main > section > * { max-width: var(--rr-measure); margin-left: auto; margin-right: auto; }
main > section:nth-of-type(even) { background: var(--rr-sand); }

/* Hero: the owner's pencil illustrations fill the hero as a carousel (scripts/record-room-hero-carousel.js). The
   village map sits on top near the bottom right corner inside a crisp round frame, like a game minimap, drawn in pencil
   on the same paper tone. Each time a new picture comes in, one plot on the map is cleared and turns brand brown
   (scripts/record-room-land-map.js). The heading and buttons sit in a row below. */
.hero {
  position: relative; overflow: hidden; isolation: isolate; padding: 0;
  --slide-ms: 7000ms;          /* how long each picture stays */
  --slide-change-ms: 1600ms;   /* the pencil wipe from one picture to the next */
  --hero-stage-height: max(380px, min(64svh, 50vw));
  --hero-map-size: min(20vw, 330px, calc(var(--hero-stage-height) * 0.6));
  --hero-map-inset: clamp(14px, 2.4vw, 40px);   /* gap between the circle and the bottom right corner of the pictures */
  --hero-map-rim: 3px;                           /* width of the dark round frame */
  --map-frame: #3B2F25;                          /* dark brown frame, like a game minimap */
  --map-paper: #F4EBDD;           /* the paper tone of the drawings */
  --map-pencil: #4A443D;          /* graphite */
  --neon-trace: #C27A3A;          /* brown neon glow */
  --neon-trace-core: #FFE2BF;
  --hatch-dispute: #E0482A;
  --hatch-cleared: #7A5A3A;   /* brand brown (was green; Sandeep, 2026-11-16) */
}
.hero > .hero__stage { position: relative; max-width: none; margin: 0; height: var(--hero-stage-height); border-bottom: 1px solid var(--rr-line); }
.hero__stage > .hero-carousel { position: absolute; inset: 0; z-index: 0; overflow: hidden; }   /* its own layer, so the map sits above every picture */
.hero__map {
  position: absolute; z-index: 2; bottom: var(--hero-map-inset); right: var(--hero-map-inset);
  width: var(--hero-map-size); height: var(--hero-map-size); border-radius: 50%; overflow: hidden;
  background: var(--map-paper); pointer-events: none;
  /* A crisp round frame like a game minimap: a dark rim, a thin paper line inside it, a light line outside it,
     a soft shadow on the picture and a faint darkening towards the rim. Box shadows only, no filters (BUG-002). */
  border: var(--hero-map-rim) solid var(--map-frame);
  box-shadow:
    inset 0 0 0 1.5px rgb(244 235 221 / 0.9),
    inset 0 0 calc(var(--hero-map-size) * 0.08) rgb(74 68 61 / 0.28),
    0 0 0 2px var(--map-paper),
    0 6px 18px rgb(0 0 0 / 0.22);
}
.hero__map > .hero-map { position: absolute; inset: 0; }

.hero > .hero__text {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0 56px; align-items: start;
  max-width: none; margin: 0; padding: 36px var(--rr-gutter) 56px;
}
.hero__text .label { grid-column: 1 / -1; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 4.8vw, 72px); line-height: 1.02; letter-spacing: -0.03em; max-width: 13ch; margin: 0; }
.hero__accent { color: var(--rr-primary); }
.hero__lead { font-size: clamp(18px, 1.7vw, 22px); color: var(--rr-ink-soft); max-width: 38ch; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

.hero-carousel__slides { position: absolute; inset: 0; touch-action: pan-y; }
.hero-slide { position: absolute; inset: 0; margin: 0; overflow: hidden; visibility: hidden; }
.hero-slide img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 60% 50%);
  transform-origin: var(--focus, 60% 50%);
}
/* Without JavaScript only the first picture shows. */
.hero-slide:first-child, .hero-slide.is-active, .hero-slide.is-leaving { visibility: visible; }
.js .hero-slide:first-child:not(.is-active):not(.is-leaving) { visibility: hidden; }
/* The old picture lies on top while it blows away; the new one waits underneath. */
.hero-slide.is-active { z-index: 1; }
.hero-slide.is-leaving { z-index: 2; }

/* Animations: the picture drifts slowly (a different direction each time). On a change, a soft wind blows the old
   picture away from left to right (it lifts, slides a little and thins out; no blur, which is costly to redraw), uncovering the new one as a
   finished pencil drawing, which then fills with colour. */
.hero-slide.is-active img, .hero-slide.is-leaving img {
  animation: hero-drift calc(var(--slide-ms) + var(--slide-change-ms) * 2) linear both;
}
.hero-slide.is-leaving {
  -webkit-mask-image: linear-gradient(100deg, transparent 0, transparent 36%, #000 64%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 0, transparent 36%, #000 64%, #000 100%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  animation: hero-wind-away var(--slide-change-ms) cubic-bezier(.5, 0, .35, 1) both;
}
.hero-slide.is-entering img {
  animation: hero-drift calc(var(--slide-ms) + var(--slide-change-ms) * 2) linear both,
             hero-pencil-finish calc(var(--slide-change-ms) * 1.8) ease-out both;
}
@keyframes hero-drift {
  from { transform: scale(1.03) translate(0, 0); }
  to { transform: scale(1.13) translate(var(--drift-x, -2%), var(--drift-y, -1%)); }
}
@keyframes hero-wind-away {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; transform: none; opacity: 1; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; transform: translate(2.5%, -1%); opacity: 0; }
}
@keyframes hero-pencil-finish {
  0% { filter: grayscale(1) contrast(1.5) brightness(1.16); }
  45% { filter: grayscale(1) contrast(1.25) brightness(1.02); }
  100% { filter: none; }
}

/* No buttons, count or dots: a hidden timer element measures each picture's time. */
.hero-carousel__timer { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hero-carousel__timer.is-running { animation: hero-timer var(--slide-ms) linear both; }
@keyframes hero-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Paused (hero off screen, tab hidden, reduced motion): everything stops where it is. */
.hero.is-paused .hero-slide img, .hero.is-paused .hero-slide, .hero.is-paused .hero-carousel__timer { animation-play-state: paused !important; }

@media (prefers-color-scheme: dark) {
  .hero-slide img, .hero__map { filter: brightness(0.86) sepia(0.12); }
  @keyframes hero-pencil-finish {
    0% { filter: grayscale(1) contrast(1.4) brightness(1); }
    45% { filter: grayscale(1) contrast(1.2) brightness(0.9); }
    100% { filter: brightness(0.86) sepia(0.12); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide img, .hero-slide.is-leaving, .hero-slide.is-entering img, .hero-carousel__timer { animation: none !important; }
  .hero-slide.is-leaving { -webkit-mask-image: none; mask-image: none; }
}

/* Village map in the hero: a real Khordha map drawn like the illustrations, in graphite pencil on paper. The map uses
   no SVG filters (pencil wobble, glow blur): they made the map flicker when a picture changed (BUG-002). The view
   drifts to random spots and, for each new picture, a brown neon light travels along plot borders to a red plot; it
   turns brand brown when cleared. */
.hero-map__svg { display: block; width: 100%; height: 100%; }
.land-plot { fill: transparent; stroke: var(--map-pencil); stroke-opacity: 0.72; stroke-width: 0.34; stroke-linejoin: round; stroke-linecap: round; }
.land-plot.is-dispute { fill: url(#hatch-dispute); }
.land-plot.is-cleared { fill: url(#hatch-cleared); }
.land-plot.is-latest { stroke: var(--hatch-cleared); stroke-width: 1.1; }   /* the plot cleared for the picture showing now */
#hatch-dispute .hatch-line { stroke: var(--hatch-dispute); stroke-width: 0.5; stroke-opacity: 0.95; stroke-linecap: round; }
#hatch-cleared .hatch-line { stroke: var(--hatch-cleared); stroke-width: 0.46; stroke-opacity: 0.9; stroke-linecap: round; }
.hatch-line--thin { stroke-width: 0.24 !important; stroke-opacity: 0.55 !important; }
.hero-map__trace polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* The glow is drawn as stacked strokes (wide and faint, then brown, then a bright core) instead of an SVG blur
   filter: SVG filters made some browsers redraw the whole map when the glow appeared (BUG-002). */
.trace-halo { stroke: var(--neon-trace); stroke-width: 5; stroke-opacity: 0.22; }
.trace-glow { stroke: var(--neon-trace); stroke-width: 1.9; }
.trace-core { stroke: var(--neon-trace-core); stroke-width: 0.6; }

/* The map note, moved from the hero to the footer. */
.map-note { max-width: 70ch; }

/* Where land cases go: seven map sheets stacked one above the other, tilted like a map on a table. The real field
   map sits at the bottom; each level above shows the same land from higher up (more plots, fainter lines), up to the
   High Court. The disputed plot shows on every level, turning a step from red to brand brown as it rises, and a dashed
   brown line joins it through every level. The sheets rise into place one
   after another when the section scrolls into view. */
.ladder {
  --ladder-sheet: 250px;                                  /* side of each square map sheet before tilting */
  --ladder-box: calc(var(--ladder-sheet) * 1.42);         /* width the tilted sheet takes */
  --ladder-step: 108px;                                   /* vertical gap from one level to the next */
  --ladder-paper: #F4EBDD;
  --ladder-pencil: #4A443D;
  --ladder-case-start: #E0482A;   /* red: in dispute, on the field */
  --ladder-case-end: #7A5A3A;     /* brand brown: settled, at the top (was green; Sandeep, 2026-11-16) */
}
.ladder__lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--rr-ink-soft); max-width: 52ch; }
.ladder__symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.ladder__stack {
  position: relative; list-style: none; padding: 0; margin-top: 56px; margin-bottom: 0;
  display: flex; flex-direction: column-reverse;
  padding-top: calc(var(--ladder-sheet) * 0.36); padding-bottom: calc(var(--ladder-sheet) * 0.36);
}
/* The case's path: from the disputed plot on the field up through every level. */
.ladder__stack::before {
  content: ''; position: absolute; z-index: 20; left: calc(var(--ladder-box) / 2 - 1px);
  top: calc(var(--ladder-sheet) * 0.36 + var(--ladder-step) / 2); bottom: calc(var(--ladder-sheet) * 0.36 + var(--ladder-step) / 2);
  border-left: 2px dashed var(--rr-primary); pointer-events: none;
}
.ladder__level { position: relative; display: grid; grid-template-columns: var(--ladder-box) minmax(0, 1fr); gap: 32px; align-items: center; height: var(--ladder-step); }
.ladder__sheet { position: relative; height: 100%; }
.ladder__sheet svg {
  position: absolute; left: 50%; top: 50%; width: var(--ladder-sheet); height: var(--ladder-sheet);
  background: var(--ladder-paper); border: 1px solid color-mix(in srgb, var(--ladder-pencil) 45%, transparent);
  box-shadow: 0 30px 40px -18px #412E1F55;
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-42deg);
  transition: transform 300ms ease-out;
}
/* Lines get finer and fainter as the view rises, as if seen from higher up. */
.ladder__land { vector-effect: non-scaling-stroke; fill: none; stroke: var(--ladder-pencil); stroke-width: calc(1.1px - var(--level) * 0.1px); stroke-opacity: calc(0.85 - var(--level) * 0.07); stroke-linejoin: round; }
.ladder__case {
  /* The same plot on every level, its colour moving a step from red to brand brown with each level (6 steps). */
  --case-colour: color-mix(in oklch, var(--ladder-case-start) calc(100% - var(--level) * 100% / 6), var(--ladder-case-end));
  vector-effect: non-scaling-stroke; fill: color-mix(in srgb, var(--case-colour) 40%, transparent); stroke: var(--case-colour); stroke-width: 1.4px;
}
.ladder__name { margin: 0; font-size: clamp(17px, 1.7vw, 21px); color: var(--rr-ink); }
.ladder__name strong { font-weight: 600; }
.ladder__note { display: block; font-family: var(--rr-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--rr-primary-deep); margin-top: 2px; }
.ladder__level:hover .ladder__sheet svg { transform: translate(-50%, calc(-50% - 10px)) rotateX(58deg) rotateZ(-42deg); }
.ladder__level:hover .ladder__name strong { color: var(--rr-primary); }
/* Rising into place: only once the script runs (content stays visible without it). */
.js .ladder__stack .ladder__level { opacity: 0; transform: translateY(36px); transition: opacity 700ms ease-out, transform 700ms ease-out; transition-delay: calc(var(--level) * 140ms); }
.js .ladder__stack.is-visible .ladder__level { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  .ladder__sheet svg { filter: brightness(0.86) sepia(0.12); box-shadow: 0 30px 40px -18px #000A; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ladder__stack .ladder__level { opacity: 1; transform: none; transition: none; }
  .ladder__sheet svg { transition: none; }
}

/* What we do: the promise line under the heading. */
.offer__promise { font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; color: var(--rr-primary-deep); margin-top: -8px; margin-bottom: 36px; }

.button {
  display: inline-block; padding: 14px 26px; border-radius: var(--tlb-pill);
  font-weight: 500; font-size: 17px; text-decoration: none; border: 1.5px solid var(--rr-ink);
}
.button--primary { background: var(--rr-ink); color: var(--rr-page); }
.button--primary:hover { background: var(--rr-primary); border-color: var(--rr-primary); }
.button--quiet { color: var(--rr-ink); }
.button--quiet:hover { border-color: var(--rr-primary); color: var(--rr-primary); }

/* Belief */
.belief h2 { color: var(--rr-ink); }
.belief__line { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.3; color: var(--rr-primary-deep); margin-bottom: 8px; }
.belief__quote { margin-top: 56px; padding-left: 24px; border-left: 3px solid var(--rr-primary); }
.belief__quote p { font-size: clamp(20px, 2.4vw, 26px); font-style: italic; max-width: 40ch; }
.belief__quote cite { font-family: var(--rr-mono); font-size: 13px; font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rr-ink-soft); }

/* Stakes */
.stat-list, .country-list, .problem-list, .step-list { list-style: none; margin-top: 0; margin-bottom: 0; padding: 0; }
.stat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--rr-line); }
.stat:last-child { border-bottom: 1px solid var(--rr-line); }
.stat__number { font-size: clamp(36px, 6vw, 64px); font-weight: 700; line-height: 1.05; color: var(--rr-primary); letter-spacing: -0.02em; }
.stat__text { font-size: clamp(18px, 2vw, 22px); color: var(--rr-ink-soft); }
.stakes__close, .world__close { font-size: clamp(22px, 3vw, 30px); font-weight: 500; margin-top: 48px; max-width: 30ch; }

.source-ref {
  font-family: var(--rr-mono); font-size: 12px; vertical-align: super; margin-left: 4px;
  text-decoration: none; color: var(--rr-link);
}

/* Countries, listed like the godyns.com names list */
.country { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--rr-line); }
.country:last-child { border-bottom: 1px solid var(--rr-line); }
.country__name { font-family: var(--rr-mono); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rr-primary); padding-top: 4px; }
.country__text { font-size: clamp(18px, 2vw, 21px); }

/* Offer */
.offer-grid, .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.offer-card, .person { background: var(--rr-surface); border: 1px solid var(--rr-line); border-radius: var(--tlb-radius); padding: 28px; border-top-width: 4px; }
.offer-card--free { border-top-color: var(--rr-primary); }
.offer-card--charges { border-top-color: var(--rr-accent); }
.offer-card--who { border-top-color: var(--rr-primary-deep); }
.offer-card h3, .person h3 { margin-bottom: 12px; }
.offer-card p, .person p { color: var(--rr-ink-soft); margin: 0; }

/* Problems */
.problem-list { display: flex; flex-wrap: wrap; gap: 12px; }
.problem-list li { border: 1px solid var(--rr-line); border-radius: var(--tlb-pill); padding: 10px 20px; background: var(--rr-surface); }

/* Steps */
.step-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; counter-reset: step; }
.step { counter-increment: step; border-top: 2px solid var(--rr-primary-deep); padding-top: 20px; }
.step::before { content: '0' counter(step); display: block; font-family: var(--rr-mono); font-size: 14px; color: var(--rr-primary); margin-bottom: 12px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--rr-ink-soft); margin: 0; }

/* AI */
.ai p:not(.label) { font-size: clamp(19px, 2.2vw, 24px); max-width: 42ch; }

/* Team */
.person__role { font-family: var(--rr-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--rr-primary-deep) !important; margin-bottom: 12px !important; }

/* Contact */
.contact { text-align: left; }
.contact p { font-size: clamp(19px, 2.2vw, 24px); }
.contact__pending { color: var(--rr-primary-deep); font-family: var(--rr-mono); font-size: 16px !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--rr-line); }
.site-footer .tlb-saree-foot { transform: scaleY(-1); }
/* The diamonds in Record Room brown instead of TLB teal (Sandeep, 2026-11-16). */
.site-footer .tlb-saree-foot { background-image: url("../brand/assets/pattern-saree-brown.svg"); }
@media (prefers-color-scheme: dark) {
  .site-footer .tlb-saree-foot { background-image: url("../brand/assets/pattern-saree-brown-on-dark.svg"); }
}
.site-footer__inner { max-width: var(--rr-measure); margin: 0 auto; padding: 32px var(--rr-gutter) 56px; font-size: 15px; color: var(--rr-ink-soft); }
.disclaimer { max-width: 70ch; }
/* The ARTICLE 300A line and button at the end of the page (Sandeep, 2026-11-16). */
.product-of { margin: 40px 0 24px; padding-top: 24px; border-top: 1px solid var(--rr-line); }
.product-of__text { margin: 0 0 14px; font-size: 17px; color: var(--rr-ink); }
/* Sources: hidden behind a very small button (Sandeep, 2026-11-16). */
.sources-toggle { margin: 32px 0 12px; }
.sources-button {
  display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  padding: 3px 10px; border: 1px solid var(--rr-line); border-radius: var(--tlb-pill, 999px); color: var(--rr-ink-soft);
}
.sources-button::-webkit-details-marker { display: none; }
.sources-button::after { content: '+'; font-family: var(--rr-mono); font-size: 12px; }
.sources-toggle[open] .sources-button::after { content: '\2212'; }
.sources-button:hover { color: var(--rr-ink); border-color: var(--rr-primary); }
.sources-button:focus-visible { outline: 3px solid var(--rr-focus); outline-offset: 2px; }
.sources__title { display: inline; font-family: var(--rr-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; max-width: none; color: inherit; }
.sources-toggle[open] .sources { margin-top: 12px; }
.sources { padding-left: 20px; margin: 0 0 32px; }
.sources li { margin-bottom: 6px; }
.copyright { font-family: var(--rr-mono); font-size: 13px; }

/* Scroll reveal: content stays visible without JavaScript; only hidden once the script runs. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--rr-reveal-ms) ease-out, transform var(--rr-reveal-ms) ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Phones */
@media (max-width: 760px) {
  body { font-size: 17px; }
  /* Hero: picture band with the round map near its bottom right corner, then the heading. */
  .hero { --hero-stage-height: auto; --hero-map-size: 30vw; --hero-map-inset: 10px; }
  .hero__stage > .hero-carousel { position: relative; height: 64vw; }
  .hero > .hero__text { grid-template-columns: 1fr; padding: 28px var(--rr-gutter) 56px; }
  .hero__lead { margin-top: 20px; }
  .ladder { --ladder-sheet: 120px; --ladder-step: 78px; }
  .ladder__level { gap: 10px; }
  .ladder__name { font-size: 15px; line-height: 1.3; }
  .ladder__note { font-size: 11px; letter-spacing: 0.02em; }
  .site-nav li:not(:last-child) { display: none; }
  .stat, .country { grid-template-columns: 1fr; gap: 8px; }
}

/* Partner / Donate / Take Help form (styles/help-request-form.css, shared with ARTICLE 300A) uses Record Room's font. */
.help-button, .help-form { --font: var(--tlb-font); }
