:root {
  --bg: #0b0a08;
  --panel: #15120e;
  --line: #2a251e;
  --line2: #463d31;
  --text: #efe8da;
  --body: #c7bfae;
  --dim: #8b8273;
  --amber: #e6a94f;
  --amber2: #f4c47e;
  --rust: #cf5a3e;
  --side: 232px;
  --gut: 56px;
  --hud: linear-gradient(var(--amber), var(--amber));
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: var(--line2) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans);
  display: grid; grid-template-columns: var(--side) minmax(0, 1fr); counter-reset: fig; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60vw 55vh at 88% -5%, rgba(230, 169, 79, .08), transparent 70%),
              radial-gradient(45vw 60vh at 0% 105%, rgba(207, 90, 62, .06), transparent 70%); }
::selection { background: var(--amber); color: var(--bg); }
a { color: inherit; }
.note a { color: var(--amber); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.note a:hover { color: var(--text); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .9em; }

/* зерно плёнки поверх всего */
.grain { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .075;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(3) infinite; }
@keyframes grain { 0% { background-position: 0 0; } 33% { background-position: -61px 37px; } 66% { background-position: 43px -71px; } 100% { background-position: 0 0; } }

/* боковое меню */
.side { position: sticky; top: 0; z-index: 20; height: 100vh; display: flex; flex-direction: column; padding: 34px 0 28px 28px;
  border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(21, 18, 14, .7), rgba(11, 10, 8, .3)); }
.brand { display: block; font: 500 13px/1.5 var(--mono); letter-spacing: .32em; text-decoration: none; }
.brand b { color: var(--amber); font-weight: 500; }
.brand-sub { margin: 10px 0 40px; font: 11px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.sv-link { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(230, 169, 79, .4); padding-bottom: 2px; transition: color .15s, border-color .15s; }
.sv-link:hover, .sv-link:focus-visible { color: var(--amber2); border-bottom-color: var(--amber2); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: baseline; gap: 12px; margin-left: -12px; padding: 7px 14px 7px 12px; border-left: 2px solid transparent;
  font-size: 15px; color: var(--dim); text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.side nav a i { font: normal 500 11px var(--mono); letter-spacing: .06em; color: var(--line2); transition: color .2s; }
.side nav a:hover { color: var(--text); }
.side nav a.on { border-color: var(--amber); color: var(--text); background: linear-gradient(90deg, rgba(230, 169, 79, .1), transparent); }
.side nav a.on i { color: var(--amber); }
.progress { position: absolute; top: 0; right: -1px; width: 2px; height: 100%; }
.progress i { display: block; width: 100%; height: 100%; background: var(--amber); box-shadow: 0 0 10px rgba(230, 169, 79, .7);
  transform-origin: top; transform: scaleY(var(--p, 0)); }

.content { position: relative; min-width: 0; padding: 0 var(--gut); }
.content > section { max-width: 1040px; margin-left: auto; margin-right: auto; }
section { position: relative; padding: 120px 0 0; }

/* метки и заголовки */
.kicker { margin: 0 0 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--amber); }
.kicker::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: currentColor; }
.head { position: relative; margin-bottom: 24px; }
.head::before { content: attr(data-n); position: absolute; right: 0; top: -78px; z-index: -1; pointer-events: none;
  font: 900 104px/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(230, 169, 79, .09); }
h2 { margin: 0; font: 800 clamp(30px, 2.3vw, 40px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.note { margin: 0 0 32px; max-width: 680px; font-size: 18px; color: var(--body); }
.note:has(+ .note) { margin-bottom: 14px; }
.small { margin: 14px 0 0; font: 12px/1.6 var(--mono); letter-spacing: .04em; color: var(--dim); }

/* hero */
.hero { position: relative; isolation: isolate; margin: 0 calc(-1 * var(--gut)); height: 88vh; min-height: 560px; max-height: 1000px;
  overflow: hidden; display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  transform-origin: 62% 42%; animation: kenburns 30s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14) translate(1.2%, .8%); } to { transform: scale(1.02); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px),
              radial-gradient(120% 90% at 62% 40%, transparent 38%, rgba(11, 10, 8, .72) 100%),
              linear-gradient(to top, var(--bg) 0%, rgba(11, 10, 8, .86) 24%, rgba(11, 10, 8, .14) 62%, rgba(11, 10, 8, .4) 100%),
              linear-gradient(to right, rgba(11, 10, 8, .72), rgba(11, 10, 8, 0) 58%); }
.hero::after { content: ""; position: absolute; inset: 28px; pointer-events: none;
  background: var(--hud) 0 0 / 28px 2px, var(--hud) 0 0 / 2px 28px, var(--hud) 100% 0 / 28px 2px, var(--hud) 100% 0 / 2px 28px,
              var(--hud) 0 100% / 28px 2px, var(--hud) 0 100% / 2px 28px, var(--hud) 100% 100% / 28px 2px, var(--hud) 100% 100% / 2px 28px;
  background-repeat: no-repeat; opacity: .8; }
.hud { position: absolute; top: 46px; left: calc(var(--gut) + 4px); right: calc(var(--gut) + 4px); display: flex; justify-content: space-between; align-items: center;
  font: 500 12px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: rgba(239, 232, 218, .78); }
.lang { display: flex; align-items: center; }
.lang > * { padding: 6px 6px 6px 8px; text-decoration: none; }
.lang a { color: rgba(239, 232, 218, .55); transition: color .15s; }
.lang a:hover, .lang a:focus-visible { color: var(--amber2); }
.lang [aria-current] { color: var(--amber); }
.lang i { padding: 0; font-style: normal; color: rgba(239, 232, 218, .3); }
.rec { display: inline-block; width: 7px; height: 7px; margin-right: 12px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 10px var(--amber); vertical-align: 1px; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-text { position: relative; padding: 0 var(--gut) 96px; max-width: 760px; }
h1 { margin: 0 0 20px; font: 800 clamp(52px, 4.2vw, 80px)/.92 var(--display); text-transform: uppercase; letter-spacing: .02em; }
h1 span { display: block; }
h1 .outline { color: transparent; -webkit-text-stroke: 1.5px var(--amber); }
.lede { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--text); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.get { margin: 28px 0 0; }
.get a { display: inline-block; padding: 12px 18px; border: 1px solid var(--amber); background: rgba(11, 10, 8, .6);
  font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--amber); transition: background .15s, color .15s; }
.get a:hover, .get a:focus-visible { background: var(--amber); color: var(--bg); }

/* лента артов: две полосы навстречу, весь пояс слегка наклонён */
.band { position: relative; margin: 8px calc(-1 * var(--gut)) 0; padding: 40px 0; overflow: hidden; }
.band-in { display: grid; gap: 10px; width: 106%; margin-left: -3%; transform: rotate(-2deg); }
.float { overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.float.drag { cursor: grabbing; }
.track { display: flex; width: max-content; will-change: transform; }
.track img { height: 232px; width: auto; margin-right: 10px; -webkit-user-drag: none; filter: brightness(.86) saturate(.9); transition: filter .3s; }
.track img:hover { filter: none; }
.band-note { margin: 0; text-align: center; font: 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

/* цитата автора */
.goal-log { margin-top: 28px; }
.log { max-width: 760px; padding: 2px 0 2px 26px; border-left: 1px solid rgba(230, 169, 79, .55); }
.log .kicker { margin-bottom: 14px; font-size: 11px; }
.log .kicker::before { display: none; }
blockquote { margin: 0; font-size: 18px; line-height: 1.7; color: var(--body); }
blockquote p { margin: 0 0 16px; }
blockquote footer { margin-top: 18px; font: 13px var(--mono); letter-spacing: .04em; color: var(--dim); }

/* HUD-уголки у кадров */
.shot, .frame, .screen { position: relative; }
.shot::after, .frame::after, .screen::after { content: ""; position: absolute; inset: -1px; z-index: 3; pointer-events: none;
  background: var(--hud) 0 0 / 14px 2px, var(--hud) 0 0 / 2px 14px, var(--hud) 100% 0 / 14px 2px, var(--hud) 100% 0 / 2px 14px,
              var(--hud) 0 100% / 14px 2px, var(--hud) 0 100% / 2px 14px, var(--hud) 100% 100% / 14px 2px, var(--hud) 100% 100% / 2px 14px;
  background-repeat: no-repeat; opacity: .5; transition: opacity .25s, inset .25s; }
.shot:hover::after, .frame:hover::after, .screen:hover::after { opacity: 1; inset: -6px; }

figure { margin: 0; }
.shot { border: 1px solid var(--line); background: #0d0b09; }
.shot img { width: 100%; cursor: zoom-in; filter: brightness(.93); transition: filter .3s; }
.shot:hover img { filter: none; }
.shot figcaption { display: flex; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--panel); font-size: 14px; color: var(--body); }
.shot figcaption::before { counter-increment: fig; content: "FIG." counter(fig, decimal-leading-zero); flex: none; padding-top: 2px;
  font: 500 11px var(--mono); letter-spacing: .14em; color: var(--amber); }

.frame { border: 1px solid var(--line); background: #0d0b09; }
.frame::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 72px; pointer-events: none;
  background: linear-gradient(transparent, rgba(11, 10, 8, .85)); }
.scroll { max-height: 78vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.scroll img { width: 100%; }

/* «A look inside»: вкладки слева, кадр справа */
.viewer { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.tabs { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.tabs button { margin-left: -1px; padding: 12px 0 12px 18px; border: 0; border-left: 2px solid transparent; background: none; text-align: left;
  font: 600 22px/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--dim); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s; }
.tabs b { display: block; margin-bottom: 5px; font: 500 11px var(--mono); letter-spacing: .2em; color: var(--line2); transition: color .2s; }
.tabs span { display: none; margin-top: 8px; font: 400 14px/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: var(--body); }
.tabs button:hover { color: var(--text); }
.tabs button.on { border-color: var(--amber); color: var(--text); background: linear-gradient(90deg, rgba(230, 169, 79, .1), transparent 85%); }
.tabs button.on b { color: var(--amber); }
.tabs button.on span { display: block; }
.screen { padding: 12px; border: 1px solid var(--line); background: var(--panel); }
.screen-bar { display: flex; align-items: center; gap: 14px; padding: 0 2px 12px; }
.ticks { display: flex; gap: 5px; }
.ticks i { width: 22px; height: 3px; background: var(--line2); transition: background .3s, box-shadow .3s; }
.ticks i.on { background: var(--amber); box-shadow: 0 0 6px rgba(230, 169, 79, .6); }
.count { margin-right: auto; white-space: nowrap; font: 500 12px var(--mono); letter-spacing: .14em; color: var(--dim); }
.screen-bar button { width: 36px; height: 28px; padding: 0; border: 0; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line2);
  font-size: 14px; cursor: pointer; transition: color .2s, box-shadow .2s, background .2s; }
.screen-bar button:hover { color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); background: rgba(230, 169, 79, .08); }
.slides { position: relative; border: 1px solid var(--line); background: #0e0d0b; }
.slides img { width: 100%; cursor: zoom-in; }
/* snap — кадры одной ленты листаются свайпом */
.viewer[data-mode="snap"] .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.viewer[data-mode="snap"] .slides::-webkit-scrollbar { display: none; }
.viewer[data-mode="snap"] .slides > * { flex: 0 0 100%; scroll-snap-align: start; }
.viewer[data-mode="snap"] .slides img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
/* панели разной природы (панорама, скролл, код) сменяют друг друга с фейдом */
.viewer:not([data-mode="snap"]) .slides > * { display: none; }
.viewer:not([data-mode="snap"]) .slides > .on { display: block; animation: pane-in .35s ease both; }
@keyframes pane-in { from { opacity: 0; } to { opacity: 1; } }
.pane .scroll { max-height: min(70vh, 620px); }
/* кадры с телефона — рядом, по высоте панели */
.pane .phones { display: flex; justify-content: center; align-items: flex-start; gap: 12px; padding: 12px; }
.slides .phones img { width: auto; min-width: 0; max-width: calc(50% - 6px); max-height: min(70vh, 620px); border: 1px solid var(--line); }
.slides .phones img:only-child { max-width: 100%; }

/* генерация: описание и варианты */
.example { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
.desc { padding: 24px 26px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(230, 169, 79, .08), var(--panel) 48%);
  font-size: 15px; color: var(--body); }
.desc p { margin: 0; }
.example .desc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.example .desc .who { margin: 0; }
.desc .who { margin-bottom: 14px; font: 800 32px/1 var(--display); text-transform: uppercase; color: var(--text); }
.desc .who span { display: block; margin-top: 8px; font: 400 13px var(--mono); letter-spacing: .06em; text-transform: none; color: var(--dim); }
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.four img { aspect-ratio: 480 / 702; object-fit: cover; cursor: zoom-in; border: 1px solid var(--line); filter: brightness(.9);
  transition: transform .3s, border-color .3s, filter .3s; }
.four img:hover { transform: translateY(-4px); border-color: var(--amber); filter: none; }
.looks { margin-top: 56px; }
.looks h3 { margin: 0 0 10px; font: 800 26px/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--text); }
.look-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.look-tabs button { padding: 7px 14px; border: 1px solid var(--line2); background: var(--panel); font: 500 12px/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim); cursor: pointer; }
.look-tabs button:hover { color: var(--text); }
.look-tabs button.on { border-color: var(--amber); background: rgba(230, 169, 79, .08); color: var(--amber); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trio img { width: 100%; aspect-ratio: 438 / 640; object-fit: cover; border: 1px solid var(--line); cursor: zoom-in; transition: opacity .25s; }
.trio img.fade { opacity: .25; }
.outfit { margin: 12px 0 0; max-width: 820px; font: 13px/1.6 var(--mono); color: var(--dim); }
.outfit::before { content: "outfit: "; color: var(--amber); }
.code-pane pre { margin: 0; padding: 22px 24px; overflow-x: auto; background: #0d0b09; font: 12px/1.75 var(--mono); color: var(--body);
  scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.code-pane code { font-size: inherit; }
.api-scroll { background: #fff; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

/* доска Indri: окно-панорама, тянется мышью */
.pano { height: min(70vh, 620px); overflow: auto; overscroll-behavior-x: contain; cursor: grab; user-select: none;
  scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.pano.drag { cursor: grabbing; }
.slides .pano img { width: 2300px; max-width: none; cursor: inherit; filter: none; -webkit-user-drag: none; }
.pano-hint { position: absolute; top: 14px; right: 14px; z-index: 4; padding: 6px 12px 5px; border: 1px solid var(--line2); background: rgba(11, 10, 8, .82);
  font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text); pointer-events: none; transition: opacity .4s; }
.pano-hint::before { content: "↔ "; color: var(--amber); }
.pano-fig { position: relative; }
.pano-fig.moved .pano-hint { opacity: 0; }

/* подвал */
.foot { margin-top: 150px; padding: 0 0 44px; border-top: 1px solid var(--line); overflow: hidden; font-size: 14px; color: var(--dim); }
.wordmark { margin: 30px 0 18px; white-space: nowrap; font: 900 clamp(56px, 9.6vw, 190px)/.85 var(--display); letter-spacing: .01em;
  text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(230, 169, 79, .24); }
.foot p { margin: 0; font: 12px var(--mono); letter-spacing: .06em; }
.foot p + p { margin-top: 8px; }
.foot a { color: var(--amber); }

/* просмотр крупно */
.lb { position: fixed; inset: 0; z-index: 80; display: none; padding: 24px 64px; align-items: center; justify-content: center;
  background: rgba(8, 7, 6, .95); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; cursor: zoom-out; box-shadow: 0 0 0 1px var(--line2), 0 30px 80px rgba(0, 0, 0, .7); }
.lb button { position: fixed; width: 44px; height: 44px; border: 0; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2); font-size: 18px; cursor: pointer; }
.lb button:hover { color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.lb.full { display: none; overflow: auto; padding: 0; cursor: grab; }
.lb.full.on { display: block; }
.lb.full.drag { cursor: grabbing; }
.lb.full img { max-width: none; max-height: none; margin: 0 auto; cursor: inherit; -webkit-user-drag: none; }
.lb.tall { display: none; overflow-y: auto; overscroll-behavior: contain; }
.lb.tall.on { display: block; }
.lb.tall img { display: block; max-height: none; margin: 0 auto; }
.lb .x { top: 14px; right: 14px; }
.lb .pv { left: 12px; top: 50%; transform: translateY(-50%); }
.lb .nx { right: 12px; top: 50%; transform: translateY(-50%); }

/* появление при прокрутке — только со скриптом */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1200px) {
  :root { --gut: 40px; }
  .viewer { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
  .tabs button { font-size: 20px; }
}

@media (max-width: 900px) {
  .example .desc { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  :root { --gut: 16px; }
  html { scroll-padding-top: 64px; }
  body { display: block; font-size: 16px; }
  .side { height: auto; flex-direction: row; align-items: center; gap: 18px; padding: 0 0 0 16px; border-right: 0; border-bottom: 1px solid var(--line);
    background: rgba(11, 10, 8, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .brand { white-space: nowrap; font-size: 11px; line-height: 1.3; }
  .brand-sub { display: none; }
  .side nav { flex-direction: row; gap: 0; overflow-x: auto; scrollbar-width: none; padding-right: 16px; }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav a { margin: 0; padding: 15px 10px 13px; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; }
  .side nav a i { display: none; }
  .side nav a.on { background: none; }
  .progress { top: auto; bottom: -1px; right: auto; left: 0; width: 100%; height: 2px; }
  .progress i { transform-origin: left; transform: scaleX(var(--p, 0)); }
  .hero { height: 88vh; min-height: 560px; }
  .hero::after { inset: 10px; }
  .hud { top: 22px; font-size: 10px; letter-spacing: .14em; }
  .rec { margin-right: 8px; }
  .hero-text { padding-bottom: 52px; }
  h1 { font-size: clamp(40px, 12vw, 52px); margin-bottom: 16px; }
  h1 .outline { -webkit-text-stroke-width: 1px; }
  .lede { font-size: 16px; }
  .band { padding: 26px 0; }
  .band-in { gap: 6px; }
  .track img { height: 150px; margin-right: 6px; }
  section { padding-top: 88px; }
  .head::before { top: -56px; font-size: 72px; }
  h2 { font-size: 28px; }
  .note { font-size: 16px; }
  .log { padding-left: 16px; }
  .hero .kicker::before { display: none; }
  blockquote { font-size: 16px; }
  .viewer { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tabs { order: 2; border-left: 0; }
  .tabs button:not(.on) { display: none; }
  .tabs button.on { padding: 4px 0 0; border: 0; background: none; }
  .screen { padding: 6px; }
  .screen-bar { gap: 10px; padding-bottom: 6px; }
  .ticks i { width: 12px; }
  .scroll { max-height: 70vh; }
  .pano { height: 56vh; }
  .pano-hint { top: 8px; right: 8px; padding: 4px 8px 3px; font-size: 10px; }
  .slides .pano img { width: 1500px; }
  .pair, .example { grid-template-columns: minmax(0, 1fr); }
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { margin-top: 100px; }
  .lb { padding: 8px; }
  .lb .pv, .lb .nx { top: auto; bottom: 12px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .hero-bg, .rec { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* пайплайн: шаги и серии со стенда */
.pipe-steps { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--line); }
.pipe-steps li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pipe-n { font: 500 13px/1.9 var(--mono); letter-spacing: .14em; color: var(--amber); }
.pipe-n::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; }
.pipe-steps h3 { margin: 0 0 8px; font: 800 22px/1.15 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--text); }
.pipe-steps p { margin: 0; max-width: 760px; font-size: 16px; line-height: 1.65; color: var(--body); }
.pipe-steps a { color: var(--amber); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.pipe-cell { position: relative; overflow: hidden; }
.pipe-cell img { display: block; }
.pipe-tag { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; background: rgba(11, 10, 8, .78); border: 1px solid var(--line2);
  font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--body); pointer-events: none; }
.pipe-tag.on { border-color: var(--amber); color: var(--amber); }

.pipe-corners { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 6px; }
.pipe-corners .pipe-cell:nth-child(-n+2) { grid-column: span 3; }
.pipe-corners .pipe-cell:nth-child(n+3) { grid-column: span 2; }

.pipe-rows { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 10px; }
.pipe-label { margin: 0; font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.pipe-label.on { color: var(--amber); }
.pipe-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }

.pipe-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; }
.pipe-fix-sq .pipe-pair { max-width: 660px; margin: 0 auto; }

@media (max-width: 900px) {
  .pipe-steps li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pipe-corners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe-corners .pipe-cell:nth-child(n) { grid-column: span 1; }
  .pipe-corners .pipe-cell:first-child { grid-column: span 2; }
  .pipe-rows { grid-template-columns: minmax(0, 1fr); }
  .pipe-label br { display: none; }
}
.pipe-log { margin: 0 0 40px; }
.log blockquote s { color: var(--dim); text-decoration-thickness: 1px; }
.log blockquote a { color: var(--amber); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* русская версия: у Big Shoulders нет кириллицы — буквы берёт узкий шрифт следом */
:root:lang(ru) { --display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif; }
:lang(ru) .shot figcaption::before { content: "РИС." counter(fig, decimal-leading-zero); }
:lang(ru) .outfit::before { content: "одежда: "; }
