/* faradejo, Entwurf 04: Kreide-Kapitel
   Jedes Kapitel hat die Farbe seines Materials, abgenommen aus den eigenen Bildern:
   Kappenrot (Rotkäppchen), Papier-Sepia (Struwwelpeter), Dran-Blau, Waldgrün, Suchsel-Gelb, Kupferstich-Schwarz. */
:root {
  --paper: #efefeb;
  --ink: #1b1714;
  --muted: #5a5048;

  --red: #9c332d;     --on-red: #ffffff;
  --sepia: #e6dbbf;   --on-sepia: #2b2017;
  --blue: #2f4c85;    --on-blue: #efefeb;
  --green: #27452c;   --on-green: #efefeb;
  --yellow: #f2c55c;  --on-yellow: #1b1714;
  --black: #1b1714;   --on-black: #efefeb;
  --copper: #4a2616;

  --accent: #1f6b3a;  --accent-ink: #ffffff;

  --font: "Jost", "Futura", "Century Gothic", sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.25rem, 0.8rem + 8vw, 8.25rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --radius: 12px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--red) var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
:target { scroll-margin-top: 4rem; }
.wrap { padding-inline: var(--margin); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.head { font-size: var(--step-head); font-weight: 700; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.giant { font-size: var(--step-display); font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; }

.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
.link:hover { text-decoration-color: currentColor; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-thickness var(--t-hover) ease; }
.link-plain:hover { text-decoration-thickness: 0.14em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.96); }
.button-accent { background: var(--accent); color: var(--accent-ink); }
.button-accent:hover { background: #18582f; }

/* chapters: every section a flat field */
.chapter { position: relative; }
.ch-red { background: var(--red); color: var(--on-red); }
.ch-sepia { background: var(--sepia); color: var(--on-sepia); }
.ch-blue { background: var(--blue); color: var(--on-blue); }
.ch-paper { background: var(--paper); color: var(--ink); }
.ch-yellow { background: var(--yellow); color: var(--on-yellow); }
.ch-black { background: var(--black); color: var(--on-black); }

/* ---------- hero: swatch column beside the view ---------- */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 10px; height: 100svh; min-height: 600px; padding: 10px; background: var(--paper); }
.hero-panel { grid-column: 1 / span 10; grid-row: 1; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--copper); color: var(--paper); }
.hero-view { position: absolute; inset: 0; overflow: hidden; }
/* the picture is set a little larger than the panel and anchored left and low, so the burin and its curl stay in the upper right and the lower band is clear copper for the words */
.hero-img { position: absolute; left: 0; bottom: 0; width: 100%; height: 114%; object-fit: cover; object-position: 0% 100%; transform-origin: 78% 40%; }
.hero-view::after { content: ""; position: absolute; inset: 0; background: rgba(36, 16, 6, 0.3); pointer-events: none; }
.hero-mark, .hero-title { z-index: 1; }
.hero-mark { position: absolute; top: 28px; left: 32px; font-size: var(--step-lead); font-weight: 500; text-decoration: none; letter-spacing: -0.01em; }
.hero-mark:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
.hero-title { position: absolute; left: 32px; right: 32px; bottom: 168px; font-size: var(--step-display); font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 0 32px 36px; color: var(--paper); }
.hero-sub { max-width: 46ch; font-size: var(--step-body); line-height: 1.45; }
.hero-btn { flex: none; background: var(--paper); color: var(--ink); }
.hero-btn:hover { background: #fff; }
.swatches { grid-column: 11 / span 2; display: grid; grid-template-rows: repeat(5, 1fr); border-radius: var(--radius); overflow: hidden; }
.sw { display: block; padding: 20px; background: var(--c); color: var(--ci); font-size: var(--step-body); font-weight: 500; text-decoration: none; transition: padding-left 0ms, transform 240ms var(--ease-out); }
.sw:focus-visible { outline-offset: -7px; }
.sw:hover { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; }

/* the tab that takes the colour of the chapter below it: a vertical label in the right margin */
.tab { position: fixed; z-index: 20; right: 0; top: 50%; display: flex; gap: 0.9rem; align-items: center; writing-mode: vertical-rl; padding: 0.9rem 0.25rem; width: calc(var(--margin) - 4px); background: var(--tab-ink, var(--ink)); color: var(--tab-bg, var(--paper)); border-radius: var(--radius) 0 0 var(--radius); font-size: var(--step-small); font-weight: 500; transform: translate(110%, -50%); transition: transform 300ms var(--ease-out), background-color 300ms ease, color 300ms ease; pointer-events: none; }
.tab.is-on { transform: translate(0, -50%); }
.tab.is-on.is-end { transform: translate(110%, -50%); }
.tab-mark { font-weight: 700; }

/* ---------- films: giant title, uneven wall ---------- */
.films { padding-block: clamp(4.5rem, 9vw, 8rem) clamp(5rem, 10vw, 9rem); }
.films-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; }
.films-link { font-size: var(--step-body); white-space: nowrap; }
.films-sub { margin-top: 1.5rem; max-width: 60ch; font-size: var(--step-lead); line-height: 1.35; }
.wall { margin-top: 2.5rem; display: grid; gap: 8px; }
.wall-row { display: flex; gap: 8px; }
.tile { flex: var(--r) 1 0; min-width: 0; }
.tile img, .tile video { width: 100%; height: var(--h); object-fit: cover; border-radius: var(--radius); background: rgba(0,0,0,0.15); transition: filter 300ms ease; }
.tile figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0.1rem 0.6rem; font-size: var(--step-small); line-height: 1.35; }
.tile figcaption .tc { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wall:hover .tile:not(:hover) img, .wall:hover .tile:not(:hover) video { filter: brightness(0.82); }
.sound { margin-left: 0.6rem; padding: 0.2rem 0.6rem; background: var(--paper); color: var(--ink); font-weight: 500; border-radius: 0; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.sound:hover { background: #fff; }
.sound:active { transform: scale(0.95); }
.tile-film.is-playing video { object-fit: contain; background: #000; }
.films-text { margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.films-text p { max-width: 52ch; }

/* ---------- Sachbuch: one item per poster line ---------- */
.book { padding-block: clamp(5rem, 9vw, 8rem); }
.book-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.book-copy { grid-column: 1 / span 6; display: grid; gap: 1.75rem; }
.book-copy p { max-width: 40ch; font-size: var(--step-lead); line-height: 1.35; }
.reels { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.reel figcaption { margin-top: 0.6rem; font-size: var(--step-small); }

/* the planned format, drawn: two phone-format frames in the chapter's paper and ink */
.reel { container-type: inline-size; }
.reel-screen[data-ui] { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; padding: 9cqw 8cqw 8cqw; transition: transform 400ms var(--ease-out); }
.reel:hover .reel-screen { transform: translateY(-6px); }
.reel-dark { background: var(--on-sepia); color: var(--sepia); }
.reel-light { background: #f5eedc; color: var(--on-sepia); }
.r-top { display: flex; justify-content: space-between; align-items: center; font-size: max(13px, 6.4cqw); font-weight: 500; }
.r-stamp { padding: 0.15em 0.5em; background: var(--red); color: #fff; font-weight: 500; }
.r-num { margin-top: auto; font-size: 60cqw; font-weight: 700; line-height: 0.78; letter-spacing: -0.05em; color: #e9b3a6; margin-left: -0.04em; }
.r-big { margin-top: 5cqw; font-size: 12cqw; font-weight: 700; line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; }
.r-field { margin-top: 4cqw; font-size: max(13px, 7.4cqw); font-weight: 500; color: #e9b3a6; }
.r-foot { margin-top: 10cqw; display: grid; gap: 3cqw; }
.r-bar { display: block; height: 1.6cqw; min-height: 4px; background: rgba(230, 219, 191, 0.25); }
.r-bar i { display: block; height: 100%; width: 100%; background: var(--sepia); transform: scaleX(0.18); transform-origin: left; }
.r-time { display: flex; justify-content: space-between; font-size: max(13px, 5.6cqw); font-variant-numeric: tabular-nums; }
.r-segs { display: flex; gap: 2cqw; margin: -4cqw 0 6cqw; }
.r-segs i { flex: 1; height: 1.2cqw; min-height: 3px; background: rgba(43, 32, 23, 0.2); }
.r-segs i.on { background: var(--on-sepia); }
.reel-light .r-small { margin-top: 16cqw; font-size: max(13px, 7.4cqw); font-weight: 500; }
.reel-light .r-big { margin-top: 3cqw; font-size: 17cqw; color: var(--red); }
.r-fields { margin-top: auto; display: flex; flex-wrap: wrap; gap: 2.5cqw; font-size: max(13px, 6.2cqw); font-weight: 500; }
.r-fields li { padding: 0.2em 0.55em; background: rgba(43, 32, 23, 0.08); }
.r-fields li.on { background: var(--on-sepia); color: #f5eedc; }
@media (prefers-reduced-motion: no-preference) {
  .reels.is-in .reel-dark .r-bar i { animation: reelRun 12s linear 600ms infinite; }
}
@keyframes reelRun { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.poster { margin-top: clamp(5.5rem, 8vw, 7rem); }
.poster li { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; }
.pl { font-size: var(--step-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-transform: uppercase; transition: color var(--t-hover) ease; }
.pd { font-size: var(--step-lead); text-align: right; max-width: 22ch; line-height: 1.25; }
.poster li:hover .pl { color: var(--red); }

/* ---------- apps: object on a disc, the shape taken from each icon ---------- */
.apps { overflow: hidden; }
.apps-grid { --size: min(64vh, 40vw, 36rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; grid-template-areas: "list list list list list list stage stage stage stage stage stage" "facts facts facts facts facts facts stage stage stage stage stage stage" "note note note note note note stage stage stage stage stage stage"; column-gap: var(--gutter); align-content: center; min-height: max(100svh, 760px); padding-block: clamp(5rem, 9vw, 8rem); }
.app-list { grid-area: list; }
.app-facts { grid-area: facts; margin-top: 2.5rem; max-width: 34ch; }
.js .app-facts { min-height: calc(var(--step-lead) * 1.35 * 6 + 3.5rem); }
.app-note { grid-area: note; align-self: end; margin-top: 2.5rem; font-size: var(--step-body); }
.stage { grid-area: stage; align-self: center; justify-self: center; position: relative; width: var(--size); height: var(--size); }

/* the disc: four shapes, one per icon, cross-faded and turned with transform and opacity only */
.disc { position: absolute; inset: 0; }
.d { position: absolute; left: 50%; top: 50%; width: var(--size); height: var(--size); opacity: 0; transform: translate(-50%, -50%) scale(0.86) rotate(var(--rot, 0deg)); transition: opacity 320ms ease, transform 600ms var(--ease-out); }
.d[data-shape="tile"] { background: #a8812a; border-radius: 18%; }
.d[data-shape="pill"] { height: calc(var(--size) * 0.42); border-radius: 999px; background: var(--yellow); --rot: -32deg; }
.d[data-shape="card"] { width: calc(var(--size) * 0.7); border-radius: 6%; background: #7f93c9; --rot: 7deg; }
.d[data-shape="circle"] { border-radius: 50%; background: var(--paper); }
.disc[data-shape="tile"] .d[data-shape="tile"], .disc[data-shape="pill"] .d[data-shape="pill"], .disc[data-shape="card"] .d[data-shape="card"], .disc[data-shape="circle"] .d[data-shape="circle"] { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(var(--rot, 0deg)); }
html:not(.js) .d[data-shape="tile"] { opacity: 1; transform: translate(-50%, -50%); }

.app-fig { position: absolute; left: 50%; bottom: 8%; height: 100%; transform: translateX(-50%); }
.app-fig img { height: 100%; width: auto; max-width: none; border-radius: var(--radius); }
.app-fig[data-app="kilnfit"] { height: 84%; }
.js .app-fig { opacity: 0; transform: translate(-50%, 24px); transition: opacity 300ms ease, transform 500ms var(--ease-out); }
.js .app-fig.is-on { opacity: 1; transform: translate(-50%, 0); }
html:not(.js) .app-fig { display: none; }
html:not(.js) .app-fig:first-of-type { display: block; }
html:not(.js) .stage:has(.app-fig:target) .app-fig { display: none; }
html:not(.js) .stage:has(.app-fig:target) .app-fig:target { display: block; }

.fact + .fact { margin-top: 1.5rem; }
.js .fact { display: none; }
.js .fact.is-on { display: block; animation: factIn 400ms var(--ease-out); }
@keyframes factIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fact p { font-size: var(--step-lead); line-height: 1.35; }
.fact .fact-t { font-weight: 700; margin-bottom: 0.4rem; }
.fact-n { display: block; text-transform: uppercase; letter-spacing: 0.01em; }
.js .fact-n { display: none; }
.fact .state { margin-top: 1.1rem; display: inline-block; padding: 0.3rem 0.75rem; background: var(--paper); color: var(--ink); font-weight: 500; font-size: var(--step-body); }
.app-h { font-size: var(--step-head); font-weight: 500; line-height: 1.1; color: #c9d4ef; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.app-names li { line-height: 1.12; }
.app-name { display: inline-flex; align-items: center; gap: 0.8rem; min-height: 44px; font-size: var(--step-head); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; text-decoration: none; color: #c3cee9; transition: color var(--t-hover) ease, transform 300ms var(--ease-out); }
.app-name img { width: 0.8em; height: 0.8em; border-radius: 22%; }
.app-name:hover { color: #fff; transform: translateX(6px); }
.app-name:active { transform: translateX(6px) scale(0.98); }
.app-name.is-on { color: #ffffff; }
.app-name.is-on::after { content: ""; display: inline-block; width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--yellow); }

/* ---------- about: inset panel, shaped picture ---------- */
.about { padding: 20px; }
.panel { display: grid; grid-template-columns: 1fr minmax(0, 1fr); column-gap: var(--gutter); min-height: 100svh; border-radius: var(--radius); overflow: hidden; background: var(--green); color: var(--on-green); }
.panel-left { position: relative; padding: 56px 56px 0; min-height: 40rem; display: flex; flex-direction: column; gap: 3rem; }
.panel-left h2 { max-width: 12ch; color: #e7efe0; }
.roundel { margin-top: auto; margin-bottom: -7vw; width: min(36vw, 38rem); aspect-ratio: 1; object-fit: cover; object-position: 50% 50%; border-radius: 50%; height: auto; }
.panel-right { padding: 56px 56px 56px 0; display: grid; align-content: start; gap: 3rem; max-width: 34rem; }
.pblock h3 { font-size: var(--step-lead); font-weight: 500; margin-bottom: 0.5rem; }
.panel-right .button { justify-self: start; }

/* ---------- contact: picture strip and three-cell bar ---------- */
.contact { padding-block: 3rem 7rem; overflow: hidden; }
.strip { overflow: hidden; }
.strip-track { display: flex; gap: 8px; width: max-content; }
.strip-track img { height: 150px; width: calc(150px * var(--r)); object-fit: cover; border-radius: var(--radius); }
.contact-head { margin-top: 4.5rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.contact-h { grid-column: 1 / span 6; }
.contact-head p { grid-column: 8 / span 5; max-width: 40ch; font-size: var(--step-lead); line-height: 1.3; }
.bar3 { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cell { min-height: 96px; border-radius: var(--radius); background: #e2b54f; display: flex; }
.cell input { flex: 1; min-width: 0; background: transparent; border: 0; text-align: center; font-size: var(--step-lead); color: var(--ink); border-radius: var(--radius); transition: background-color var(--t-hover) ease; }
.cell input::placeholder { color: #4a3a1c; opacity: 1; }
.cell input:focus { outline: none; background: #f8dc97; }
.cell:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.cell-go { padding-inline: 1.25rem; white-space: nowrap; justify-content: center; align-items: center; background: var(--ink); color: var(--yellow); font-size: var(--step-lead); font-weight: 500; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.cell-go:hover { background: #000; }
.cell-go:active { transform: scale(0.98); }
.bar3-notes { margin-top: 0.9rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: var(--step-small); }
.bar3-notes p:last-child { grid-column: 3; }

/* ---------- footer: name, places under it ---------- */
.foot { padding-top: 6rem; overflow: hidden; }
.foot-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.places { grid-column: 1 / span 5; }
.places a { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); color: var(--yellow); text-decoration: none; line-height: 1.3; }
.places a:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
.foot-cols { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); font-size: var(--step-body); }
.foot-cols li + li { margin-top: 0.4rem; }
.ph { display: block; font-size: var(--step-small); color: #c8bfb4; }
.credits { margin-top: 4rem; max-width: 68ch; font-size: var(--step-small); color: #d8d0c6; }
.legal { margin-top: 1.5rem; display: flex; justify-content: space-between; font-size: var(--step-small); }
.foot-word { margin-top: 3rem; font-size: 25.5vw; font-weight: 700; line-height: 1; height: 0.8em; letter-spacing: -0.04em; padding-left: 0.02em; color: #d0564b; overflow: hidden; text-align: center; }

/* ---------- motion (content stays visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .wall .tile { opacity: 0; transform: translateY(20px) scale(0.98); transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-expo); }
  .js .wall .tile.is-in { opacity: 1; transform: none; }
  .js .hero-title, .js .hero-sub, .js .hero-btn, .js .hero-mark { animation: rise 1000ms var(--ease-expo) backwards; }
  .js .hero-btn { animation-delay: 180ms; }
  .js .hero-sub { animation-delay: 120ms; }
  .js .hero-mark { animation-delay: 200ms; }
  .js .hero-img { animation: drift 14s var(--ease-out) both; }
  .js .sw { animation: swIn 700ms var(--ease-out) both; }
  .js .sw:nth-child(2) { animation-delay: 70ms; } .js .sw:nth-child(3) { animation-delay: 140ms; } .js .sw:nth-child(4) { animation-delay: 210ms; } .js .sw:nth-child(5) { animation-delay: 280ms; }
  .strip-track { animation: marquee 70s linear infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes swIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .strip { overflow-x: auto; }
}

/* ---------- tablet ---------- */
@media (max-width: 64em) {
  .apps-grid { --size: 56vw; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "list" "stage" "facts" "note"; min-height: 0; padding-block: 4.5rem; }
  .stage { margin: 3.5rem 0 1rem; }
  .app-facts { max-width: 40ch; }
  .js .app-facts { min-height: calc(var(--step-lead) * 1.35 * 4 + 3.5rem); }
  .app-note { margin-top: 2rem; }
  .panel { grid-template-columns: 1fr; }
  .panel { display: flex; flex-direction: column; }
  .panel-left { display: contents; }
  .panel-left h2 { order: 1; padding: 40px 40px 2rem; max-width: none; }
  .panel-right { order: 2; }
  .roundel { order: 3; width: 70%; margin: 1rem 40px -12vw; }
  .panel-right { padding: 0 40px 56px; }
  .foot-row { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .bar3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .book-head { display: block; }
  .reels { margin-top: 3rem; max-width: 36rem; }
  .poster { margin-top: 9rem; }
  .places, .foot-cols { grid-column: 1 / -1; }
}


/* ---------- tablet and phone: the hero stacks, swatches become bars ---------- */
@media (max-width: 64em) {
  .hero { display: flex; flex-direction: column; height: auto; min-height: 0; padding: 12px; gap: 0; }
  .hero-panel { background: var(--paper); border-radius: 0; overflow: visible; }
  .hero-view { position: relative; inset: auto; height: 56svh; min-height: 400px; max-height: 640px; border-radius: var(--radius); background: var(--copper); }
  .hero-img { height: 112%; object-position: 30% 100%; }
  .hero-title { left: 24px; right: 24px; bottom: 24px; }
  .hero-mark { top: 18px; left: 24px; }
  .hero-copy { position: static; flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.5rem 12px 1.75rem; color: var(--ink); }
  .hero-sub { max-width: 44ch; font-size: var(--step-lead); line-height: 1.35; }
  .hero-btn { background: var(--accent); color: var(--accent-ink); }
  .hero-btn:hover { background: #18582f; }
  .swatches { display: flex; flex-direction: column; margin-top: 8px; }
  .sw { min-height: 52px; padding: 14px 16px; font-size: var(--step-small); }
  .poster li { flex-direction: column; gap: 0; margin-bottom: 1.4rem; }
  .pd { text-align: left; font-size: var(--step-small); margin-top: 6px; max-width: none; }
  .pl { font-size: 11vw; }
}
@media (max-width: 40em) {
  .hero { padding: 8px; }
  .hero-copy { padding: 1.25rem 18px 1.5rem; }
  .sw { padding-inline: 18px; }
  .hero-btn { align-self: stretch; }
}

/* ---------- phone ---------- */
@media (max-width: 40em) {
  .hero-title { left: 18px; right: 18px; bottom: 20px; font-size: 10vw; }
  .hero-mark { left: 18px; }
  .films-head { flex-direction: column; gap: 0.75rem; }
  .giant { font-size: 12vw; }
  .films-sub { font-size: var(--step-body); }
  .wall-row { flex-wrap: wrap; }
  .tile { flex-basis: 38%; }
  .tile img, .tile video { height: 150px; }
  .wall-row:first-child .tile { flex-basis: 100%; }
  .wall-row:first-child .tile img, .wall-row:first-child .tile video { height: 220px; }
  .films-text { grid-template-columns: 1fr; }
  .book-copy { gap: 1rem; }
  .book-copy p { font-size: var(--step-body); }
  .reels { margin-top: 2.5rem; gap: 10px; }
  .poster { margin-top: 5.5rem; }
  .pl { font-size: 12vw; }
  .apps-grid { --size: 76vw; }
  .stage { margin-top: 2.5rem; }
  .fact p { font-size: var(--step-body); }
  .js .app-facts { min-height: calc(var(--step-body) * 1.35 * 6 + 3rem); }
  .fact .fact-t { font-size: var(--step-lead); }
  .app-names { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
  .app-name { font-size: var(--step-lead); }
  .about { padding: 10px; }
  .panel-left h2 { padding: 28px 20px 1.5rem; }
  .roundel { width: 86%; margin: 1rem auto -20vw; }
  .panel-right { padding: 0 20px 40px; gap: 2rem; }
  .bar3 { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }
  .bar3-notes { grid-template-columns: 1fr; }
  .bar3-notes p:last-child { grid-column: auto; }
  .strip-track img { height: 110px; width: calc(110px * var(--r)); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .places a { font-size: var(--step-lead); }
  .contact-head p { margin-top: 1rem; font-size: var(--step-body); }
  .contact-head { display: block; }
  .tab { display: none; }
}
.strip:hover .strip-track { animation-play-state: paused; }
