/* ============================================================================
   Milli Teknoloji Atölyesi
   Theme layer on top of scrollcraft.css. The engine stylesheet is the floor
   (tokens, devices, browser surfaces); everything below is this brand.

   Palette is measured from the atelier footage rather than chosen: the ground
   is the room's own near-black, the secondary ink is the steel that windows and
   monitors resolve to, and the single accent is the tungsten of the ceiling
   practicals. One accent, locked page-wide. Every corner is square.
   ========================================================================== */

/* The token block that used to live here now lives in css/tokens.css, which is
   loaded immediately before this file. Values are unchanged — the split exists
   so the application screens and the landing cannot drift apart. Anything below
   is landing composition, not tokens. */

body {
  font-weight: 400;
  letter-spacing: -0.003em;
}

/* DESIGN.md display sesi: 700 ağırlık, 0.90 satır, sıkı harf aralığı. En büyük
   basamak (hero) 140px'e kadar çıkar ve neredeyse bir logotip gibi okunur. */
.sc-display {
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.021em;
}
.sc-display--xl { font-size: clamp(3.4rem, 1.2rem + 7.4vw, 8.75rem); letter-spacing: -0.035em; }
.sc-display--lg { letter-spacing: -0.03em; }
.sc-display--md { letter-spacing: -0.026em; }
/* Hero başlığı 140px'te 46rem'lik kopya kolonuna sığmaz: o durum genişler. */
.sc-copy:has(> .sc-display--xl) { max-width: min(76rem, 88vw); }
/* Karşılama başlığı xl'in bir tık altında. */
.sc-copy--lead .sc-display--xl { font-size: clamp(2.9rem, 1rem + 6.2vw, 7.25rem); }

.sc-label {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--sc-ink-soft);
}

/* ------------------------------------------------------------------ chrome -- */

.chrome {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--sc-z-chrome);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--sc-5);
  padding-inline: var(--sc-gutter);
}
/* The chrome floats over full-bleed footage and over display type that scrolls
   up behind it, so it carries its own shadow rather than a bar. The gradient is
   taller than the chrome and eased in three stops: a hard bar would read as a
   second surface and break the one-shot, and a two-stop gradient banded
   visibly against the near-black ground. */
.chrome::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--nav-h) * 1.9);
  pointer-events: none;
  background: linear-gradient(to bottom,
    color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 78%, transparent) 34%,
    color-mix(in oklab, var(--sc-canvas) 40%, transparent) 66%,
    transparent 100%);
}
.chrome > * { position: relative; }

.chrome__mark {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
  min-width: 0;
}
/* MTA · KBB · TÜBİTAK logo şeridi: saydam zeminde beyaz, koyu chrome için. */
.chrome__logo {
  display: block;
  height: 4.5rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* ----------------------------------------------------------------- actions -- */

/* DESIGN.md "Primary CTA Button (Glowing)": kor dolgu, beyaz 15px metin,
   4px yarıçap, çift katmanlı kor ışıma. Sistemin tek elevasyonu. */
.act-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  border: 0;
  border-radius: 4px;
  background: var(--sc-accent);
  color: var(--sc-accent-ink);
  box-shadow: var(--mt-glow);
  font-family: var(--sc-font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.006em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--sc-d-fast) var(--sc-ease-out),
              box-shadow var(--sc-d-base) var(--sc-ease-out),
              transform var(--sc-d-base) cubic-bezier(0.34, 1.56, 0.64, 1);
}
.act-btn::after {
  content: "→";
  font-weight: 500;
  transition: translate var(--sc-d-base) cubic-bezier(0.34, 1.56, 0.64, 1);
}
.act-btn:hover { background: color-mix(in oklab, var(--sc-accent) 90%, #ffffff); box-shadow: var(--mt-glow-strong); transform: translateY(-1px); }
.act-btn:hover::after { translate: 4px 0; }
.act-btn:active { transform: translateY(1px) scale(0.98); }

.act-btn--lg {
  padding: 1rem 1.6rem;
  font-size: 1.0625rem;
}

/* İkincil eylem (Giriş yap): Kaydol ile aynı ölçü, dolgusuz. Çerçeve iç gölge
   olarak çizilir ki iki düğmenin yüksekliği birebir tutsun; zemin hafif koyu ve
   bulanık, çünkü düğme aydınlık görüntünün üzerine de düşebiliyor. */
.act-btn--ghost {
  background: color-mix(in oklab, var(--sc-canvas) 38%, transparent);
  color: var(--sc-ink);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-ink) 62%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.act-btn--ghost::after { content: none; }
.act-btn--ghost:hover {
  background: color-mix(in oklab, var(--sc-ink) 12%, transparent);
  box-shadow: inset 0 0 0 1px var(--sc-ink);
}

/* A quiet text action, for the footer. */
.act-link {
  color: var(--sc-ink-soft);
  text-decoration-color: color-mix(in oklab, var(--sc-ink) 30%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  transition: color var(--sc-d-fast) var(--sc-ease-out), text-decoration-color var(--sc-d-fast) var(--sc-ease-out);
}
.act-link:hover { color: var(--sc-ink); text-decoration-color: var(--sc-accent); }

@media (hover: none) {
  .act-btn:not(.act-btn--ghost):hover { background: var(--sc-accent); box-shadow: var(--mt-glow); transform: none; }
  .act-btn--ghost:hover {
    background: color-mix(in oklab, var(--sc-canvas) 38%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--sc-ink) 62%, transparent);
    transform: none;
  }
  .act-btn:hover::after { translate: 0 0; }
}

/* ====================================================================== FILM
   The pinned cinematic act. Clip time is mapped 1:1 onto the pinned travel
   (data-sc-clip-map="travel") so a scroll position is a frame, and each copy
   state is cued on the frames it actually describes.
   ========================================================================== */

.film__stage { background: var(--sc-canvas); }

/* Each copy state carries its own scrim, cued on the same window, so the frame
   is only darkened where and while there is text on it. */
.film__scrim { z-index: 1; }
/* The peak is centred over the iron, the one bright metal in the shot, so its
   density is a well under the headline rather than a corner. */
.film__scrim--peak {
  background: radial-gradient(58% 44% at 50% 38%,
    color-mix(in oklab, var(--sc-canvas) 60%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 26%, transparent) 58%,
    transparent 100%);
}

.film__note {
  font-size: var(--sc-t-sm);
  line-height: 1.6;
  color: color-mix(in oklab, var(--sc-ink) 74%, var(--sc-ink-soft));
  max-width: 34ch;
  margin: var(--sc-4) 0 0;
  text-wrap: pretty;
}
.sc-copy--trail .film__note { margin-left: auto; }

.film__lede {
  font-size: var(--sc-t-base);
  line-height: 1.58;
  color: color-mix(in oklab, var(--sc-ink) 80%, var(--sc-ink-soft));
  max-width: 64ch;
  margin: var(--sc-5) 0 0;
  text-wrap: pretty;
}
/* Atölyenin adı satır sonunda bölünmez; geniş ekranda cümle tam iki satır. */
.film__lede-ad { white-space: nowrap; }

.film__cta { margin-top: var(--sc-6); }
/* Kaydol + Giriş yap: birincil düğme ve yanında metin bağlantısı. */
:is(.film__cta, .close__cta) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-4) var(--sc-6); }

/* The peak. It sits alone, centred, above the crest of the drawing, and it is
   the only state on the page with no supporting line under it. */
.film__peak { top: 38%; }
.film__peak .sc-display { letter-spacing: -0.04em; }
/* The wipe runs on this wrapper, not on the type, because clip-path is measured
   against the border box and display type set below a line-height of 1 has a
   box shorter than its own glyphs. The padding buys the descenders back. */
.film__peakmask { padding-block: 0.22em; }

/* ------------------------------------------------- the technical line ----- */
/* Signature move. A single hairline whose shape is a pure function of scroll:
   a straight datum, then a wing section, then a right-angled circuit trace,
   then a settled horizon. Drawn from the left as you descend and erased when
   you climb, with a short accent segment riding at the drawing head. */

.cine-draw {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  height: clamp(130px, 22vh, 230px);
  width: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.cine-draw__path {
  fill: none;
  stroke: color-mix(in oklab, var(--sc-ink) 42%, transparent);
  stroke-width: 2;
}
.cine-draw__pen {
  fill: none;
  stroke: var(--sc-accent);
  stroke-width: 3;
  filter: drop-shadow(0 0 6px var(--sc-accent));
}

/* ================================================================ UNDERFILM
   The footage carried on under the flat sections as a dimmed ground. The act
   fills the wrapper; the stage sticks to the viewport for the wrapper's whole
   length. Its opacity is the engine's cue (fade in off the film's black, fade
   out before the close, which has a ground of its own); the dimming is a
   separate, fixed opacity on the media so the two never fight.
   ========================================================================== */

.afterfilm {
  position: relative;
  isolation: isolate;
}
.afterfilm > section { position: relative; z-index: 1; }

/* The hand-over. Pulled up under the film's last viewport of travel, so it
   scrolls into place behind the pinned stage (z-index 1 beats this wrapper's
   auto) and is already there when the stage dissolves. Keyed on the engine's
   class: without the engine the film act is one screen tall and this margin
   would bury the manifesto under it. The extra top room puts the manifesto in
   the middle of the screen at the moment the film lets go. */
#film.sc-act--pinned + .afterfilm { margin-top: -100vh; margin-top: -100svh; }
#film.sc-act--pinned + .afterfilm .manifesto { padding-top: 30svh; }

.underfilm {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.underfilm__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: clip;
  pointer-events: none;
}
/* Desaturated as well as dimmed: the footage is daylight and signal yellow,
   and at full chroma the signage competes with the type set over it. */
.underfilm__media {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  filter: saturate(0.75);
}
.underfilm__media > :is(img, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.underfilm__poster { transition: opacity 380ms var(--sc-ease-out); }
.underfilm.sc-has-clip .underfilm__poster { opacity: 0; }

/* Melts the frame into the ground at both edges, so the chrome sits on black
   and the sticky stage never shows a hard top or bottom line, and leaves a
   slightly heavier band at the foot where the rail copy and the method lines
   are set. */
.underfilm__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      var(--sc-canvas) 0%,
      color-mix(in oklab, var(--sc-canvas) 40%, transparent) 16%,
      transparent 38%,
      transparent 62%,
      color-mix(in oklab, var(--sc-canvas) 55%, transparent) 86%,
      var(--sc-canvas) 100%);
}

/* ================================================================= MANIFESTO
   Flow section. Reduced block padding on top because the pinned stage above it
   already spends a full viewport sliding away.
   ========================================================================== */

/* Asymmetric bleed: the film has just dissolved to ground, so the manifesto
   opens with room above it and closes tight, handing straight to the rail. */
.manifesto { padding-block: var(--sc-9) var(--sc-8); }
.manifesto__inner {
  display: grid;
  gap: var(--sc-7);
  grid-template-columns: minmax(0, 1fr);
}
.manifesto__head {
  max-width: 22ch;
  margin: 0;
}
.manifesto__body {
  font-size: var(--sc-t-lg);
  line-height: 1.5;
  letter-spacing: -0.014em;
  color: var(--sc-ink-soft);
  max-width: 44ch;
  margin: 0;
  text-wrap: pretty;
}
.manifesto__body strong {
  color: var(--sc-ink);
  font-weight: 700;
}

@media (min-width: 62rem) {
  .manifesto__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: var(--sc-8);
  }
  /* The body sits on the display's last baseline rather than beside its top,
     so the two blocks read as one composition instead of two columns. */
  .manifesto__body { padding-bottom: 0.5rem; }
}

/* ================================================================ ATÖLYELER
   Lateral travel, because this is breadth rather than argument. The heading is
   the first rail item and the closing note is the last: both earn their place
   and both add the width the travel needs.
   ========================================================================== */

.rail__stage { display: flex; align-items: center; }
.rail {
  align-items: stretch;
  gap: clamp(2rem, 4vw, 4.5rem);
  padding-inline: var(--sc-gutter);
  padding-top: var(--nav-h);
}
/* Every item hangs from one hairline held at the same height across the whole
   rail, so the lateral travel reads as a single ruled datum rather than as a
   row of cards. The item is tall and the copy sits at its foot: that is what
   gives the pan something to move through instead of a strip of centred text
   floating in an empty stage. */
.rail__item {
  flex: 0 0 auto;
  width: clamp(17rem, 26vw, 24rem);
  height: clamp(20rem, 58vh, 34rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-top: 2px solid var(--sc-hairline);
  padding-top: var(--sc-4);
}
.rail__item--head {
  width: clamp(18rem, 30vw, 27rem);
  border-top: 0;
  grid-template-rows: auto 1fr;
  align-content: center;
  padding-top: 0;
}
.rail__eyebrow { display: block; margin-bottom: var(--sc-5); }

/* Counted, because the point of the section is that a vehicle needs all of
   them. Tabular figures so the numbers sit on one another as the rail passes. */
/* Numara kor: rayın her durağı bir marka anı. */
.rail__no {
  font-family: var(--sc-font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--sc-accent);
}
.rail__body { grid-row: 3; }
.rail__name {
  margin: 0;
  font-size: var(--sc-t-xl);
  font-family: var(--sc-font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-wrap: balance;
}
/* Rail copy is read cropped for most of its life, so the fact line is short
   and self-contained. */
.rail__fact {
  margin: var(--sc-4) 0 0;
  font-size: var(--sc-t-sm);
  line-height: 1.55;
  color: var(--sc-ink-soft);
}
.rail__item--note {
  width: clamp(16rem, 24vw, 22rem);
  grid-template-rows: none;
  align-content: end;
}
.rail__close {
  margin: 0;
  font-size: var(--sc-t-lg);
  line-height: 1.4;
  letter-spacing: -0.014em;
  color: var(--sc-ink);
  max-width: 24ch;
}

/* ==================================================================== YÖNTEM
   A staircase. The four words are the atelier's own motto and they are a real
   sequence, so the reading path descends to the right rather than stacking.
   ========================================================================== */

.method__list {
  display: grid;
  gap: var(--sc-9);
  margin: var(--sc-8) 0 0;
  padding: 0;
  list-style: none;
}
.method__item {
  display: grid;
  gap: var(--sc-4);
  max-width: 40rem;
  border-left: 2px solid var(--sc-hairline);
  padding-left: var(--sc-5);
  transition: border-color var(--sc-d-base) var(--sc-ease-out);
}
.method__item:hover { border-left-color: var(--sc-accent); }
.method__word {
  margin: 0;
  font-family: var(--sc-font-display);
  font-weight: 700;
  font-size: var(--sc-t-3xl);
  /* Tek kelime; 0.9'da "Ü", "Ş" gibi büyük harf noktaları satır kutusundan taşar. */
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.method__word span { color: var(--sc-accent); text-shadow: 0 0 28px color-mix(in oklab, var(--sc-accent) 22%, transparent); }
.method__line {
  margin: 0;
  font-size: var(--sc-t-base);
  line-height: 1.6;
  color: var(--sc-ink-soft);
  max-width: 48ch;
  text-wrap: pretty;
}

@media (min-width: 62rem) {
  .method__item:nth-child(2) { margin-left: 9vw; }
  .method__item:nth-child(3) { margin-left: 18vw; }
  .method__item:nth-child(4) { margin-left: 27vw; }
}

/* ===================================================================== KAPAT
   The close. It resolves on one frame out of the middle of the film — the bench
   itself, not the wide room — because the line asks the reader to take a bench.
   ========================================================================== */

.close__stage {
  display: grid;
  place-items: center;
  isolation: isolate;
}
.close__ground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.34;
  /* A slow settle rather than a reveal: the copy here greets and holds, so the
     ground is what still answers to the scroll. --sc-p inherits from the act. */
  transform: scale(calc(1.07 - 0.07 * var(--sc-p, 0)));
  transform-origin: 50% 46%;
}
/* The frame is a lit workshop and the copy is centred over the middle of it, so
   the ground is pushed down twice: once flat, and once as a soft well under the
   type. Together they hold the headline well clear of AA on the busiest pixel. */
.close__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(72% 58% at 50% 48%,
      color-mix(in oklab, var(--sc-canvas) 88%, transparent) 0%,
      color-mix(in oklab, var(--sc-canvas) 46%, transparent) 62%,
      transparent 100%),
    linear-gradient(to bottom,
      color-mix(in oklab, var(--sc-canvas) 62%, transparent) 0%,
      color-mix(in oklab, var(--sc-canvas) 30%, transparent) 42%,
      color-mix(in oklab, var(--sc-canvas) 74%, transparent) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .close__ground { transform: none; }
}
.close__inner {
  position: relative;
  z-index: var(--sc-z-copy);
  text-align: center;
  padding-inline: var(--sc-gutter);
  max-width: 46rem;
}
.close__head { margin: 0; }
.close__line {
  margin: var(--sc-5) auto 0;
  font-size: var(--sc-t-base);
  line-height: 1.6;
  color: color-mix(in oklab, var(--sc-ink) 78%, var(--sc-ink-soft));
  max-width: 40ch;
}
.close__cta { margin-top: var(--sc-7); justify-content: center; }

/* ============================================================== INNER PAGES
   The flat pages (haberler, gizlilik). Same ground, same two families, same
   square corners; no second theme.
   ========================================================================== */

.page {
  padding-block: calc(var(--nav-h) + var(--sc-9)) var(--sc-section);
}
.page__head { margin: 0; max-width: 24ch; }
.page__lede {
  margin: var(--sc-5) 0 0;
  font-size: var(--sc-t-lg);
  line-height: 1.5;
  letter-spacing: -0.014em;
  color: var(--sc-ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}
.page__body { margin: var(--sc-5) 0 0; max-width: 62ch; color: var(--sc-ink-soft); }

/* Uzun yasal metin (gizlilik): okunur kolon, numaralı bölüm başlıkları. */
.legal {
  margin-top: var(--sc-8);
  padding-top: var(--sc-6);
  border-top: 2px solid var(--sc-hairline);
  max-width: 68ch;
  color: var(--sc-ink-soft);
  line-height: 1.65;
}
.legal__meta { font-family: var(--sc-font-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.legal h2 {
  margin: var(--sc-8) 0 var(--sc-4);
  font-family: var(--sc-font-display);
  font-size: var(--sc-t-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--sc-ink);
  text-wrap: balance;
}
.legal p { margin: 0 0 var(--sc-4); text-wrap: pretty; }
.legal ul { margin: 0 0 var(--sc-4); padding-left: 1.25em; }
.legal li { margin-bottom: var(--sc-2); }
.legal li::marker { color: var(--sc-accent); }
.legal strong { color: var(--sc-ink); font-weight: 600; }

/* ---------------------------------------------------------------- footer -- */

.foot {
  border-top: 2px solid var(--sc-hairline);
  padding-block: var(--sc-6);
  font-size: var(--sc-t-sm);
  color: var(--sc-ink-soft);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sc-3) var(--sc-6);
}
.foot__org {
  display: flex;
  align-items: center;
  gap: var(--sc-3);
  margin-right: auto;
}
.foot__logo { width: 3rem; height: 3rem; flex: none; }
.foot__copy {
  flex-basis: 100%;
  margin: 0;
  padding-top: var(--sc-4);
  border-top: 1px solid var(--sc-hairline);
  font-size: var(--sc-t-xs);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sc-3) var(--sc-5);
}

/* ==================================================================== MOBILE
   Not the desktop composition scaled down. The film stops being a bed for text
   and becomes a window: a fixed 16:9 frame in the upper screen with the
   editorial states on solid ground beneath it. That removes the text-over-video
   contrast problem instead of scrimming harder for it, so the scrims are gone
   here and the technical line moves below the window.
   ========================================================================== */

@media (max-width: 53.75rem) {
  :root {
    --nav-h: 4rem;
    /* The window and the two bands under it are derived from one set of numbers
       so the film, the copy and the drawing cannot drift apart. 3:2 rather than
       16:9: a 16:9 window on a 390px screen is 219px tall and leaves a third of
       the screen empty under the copy. */
    --film-win-top: calc(var(--nav-h) + 3.5svh);
    --film-win-h: 66.67vw;
    --film-copy-top: calc(var(--film-win-top) + var(--film-win-h) + 4svh);
  }

  /* The logo strip sits beside two actions (Giriş yap, Kaydol): it gives up
     size first so the actions never collide with it. */
  .chrome { gap: var(--sc-4); }
  .chrome__logo { height: 3.5rem; }
  .chrome .act-btn { padding: 0.55rem 0.85rem; font-size: 0.875rem; gap: 0.4rem; }
  .chrome .act-btn--ghost { padding-inline: 0.8rem; }
  @media (max-width: 30rem) {
    .chrome { gap: var(--sc-3); }
    .chrome__logo { height: 2.5rem; }
    .chrome .act-btn { padding: 0.5rem 0.7rem; font-size: 0.8125rem; gap: 0.3rem; }
    .chrome .act-btn--ghost { padding-inline: 0.65rem; }
  }

  .film__stage :is(video[data-sc-scrub], .film__poster) {
    inset: var(--film-win-top) 0 auto 0;
    width: 100%;
    height: var(--film-win-h);
    object-fit: cover;
  }

  /* The window's own frame, so it reads as a viewport rather than a crop. */
  .film__stage::after {
    content: "";
    position: absolute;
    inset: var(--film-win-top) 0 auto 0;
    height: var(--film-win-h);
    border-block: 2px solid var(--sc-hairline);
    pointer-events: none;
    z-index: 3;
  }

  .film__scrim { display: none; }

  /* Every state lands in the same band under the window and crossfades there.
     The band is a box, not a top edge, and the copy centres inside it: states
     are between two and five lines long and a shared top edge would leave the
     short ones hanging with the whole lower screen empty beneath them. */
  .film__stage .sc-copy {
    inset: var(--film-copy-top) var(--sc-gutter) 15svh var(--sc-gutter);
    max-width: none;
    text-align: left;
    translate: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .film__peak { top: var(--film-copy-top); }
  .film__note, .film__lede { max-width: 38ch; }
  .film__lede-br { display: none; }
  .sc-copy--trail .film__note { margin-left: 0; }

  /* Step the hero down a rung. The 4xl floor is a desktop floor and wraps a
     normal headline to six lines on a 390px screen. */
  .film__stage .sc-display--xl { font-size: var(--sc-t-2xl); }

  .cine-draw {
    top: auto;
    bottom: 5svh;
    translate: none;
    height: 72px;
  }

  .manifesto { padding-block: var(--sc-8) var(--sc-8); }

  /* On a phone the type is full width over the whole frame, with no gutter of
     plain ground beside it, so the underfilm steps further back. */
  .underfilm__media { opacity: 0.2; }

  /* The stack. atolye.js has removed the pan act by the time this applies, so
     the stage is an ordinary block and the rail an ordinary grid. The items keep
     their hairline and their number: the section reads the same, down a column
     instead of across a rail. */
  .rail-act--stacked { padding-block: var(--sc-8) var(--sc-section); }
  .rail__stage { display: block; }
  .rail {
    display: grid;
    gap: var(--sc-7);
    padding-top: 0;
  }
  .rail__item {
    width: auto;
    height: auto;
    grid-template-rows: none;
    row-gap: var(--sc-4);
    padding-top: var(--sc-3);
  }
  .rail__item--head {
    padding-bottom: var(--sc-2);
    row-gap: 0;
  }
  .rail__item--note { padding-top: var(--sc-4); }
  .rail__no { grid-row: auto; }
  .rail__body { grid-row: auto; }
  .rail__name { font-size: var(--sc-t-lg); }

  .method__list { gap: var(--sc-8); }
  .method__item { max-width: none; }
}

/* -------------------------------------------------------- reduced motion -- */

@media (prefers-reduced-motion: reduce) {
  /* The drawing carries meaning, so it is not removed: it is shown settled and
     complete instead of animating. */
  .cine-draw__pen { display: none; }
}
