/* ============================================================
   从影视技术到 AI 创作工具 — Darkroom / 负片显影
   Palette: Safelight Black / Emulsion / Negative Orange /
            Amber Safelight / Fixer Teal
   Type:    Bricolage Grotesque (display) · Newsreader (body)
            · Space Mono (data / timecode)
   ============================================================ */

:root {
  color-scheme: dark;

  --safelight-black: #120d0a;
  --safelight-black-2: #1b130d;
  --emulsion: #f4ecdd;
  --emulsion-dim: rgba(244, 236, 221, 0.62);
  --emulsion-faint: rgba(244, 236, 221, 0.34);
  --negative-orange: #d96a34;
  --amber: #e8a54b;
  --fixer-teal: #2f6e6a;
  --grease-red: #c6402f;

  --edge: rgba(244, 236, 221, 0.14);
  --edge-strong: rgba(244, 236, 221, 0.26);

  --display: "Bricolage Grotesque", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --body: "Newsreader", "Songti SC", "Noto Serif SC", Georgia, serif;
  --mono: "Space Mono", "SFMono-Regular", ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 88px);
  --measure: min(1240px, 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 640px at 82% -6%, rgba(232, 165, 75, 0.16), transparent 70%),
    radial-gradient(900px 700px at -8% 12%, rgba(217, 106, 52, 0.12), transparent 70%),
    linear-gradient(180deg, #17110b 0%, var(--safelight-black) 44%, #0d0907 100%);
  background-attachment: fixed;
  color: var(--emulsion);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- grain + safelight atmosphere ---- */
.grain {
  position: fixed;
  inset: -60px;
  z-index: 60;
  pointer-events: none;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.safelight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    120% 90% at 50% -20%,
    transparent 55%,
    rgba(7, 4, 2, 0.55) 100%
  );
}

main {
  position: relative;
  z-index: 1;
}

/* ---- shared type ---- */
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

em {
  font-style: normal;
  font-weight: 700;
  color: var(--negative-orange);
}

/* 创作 emphasis in the big statement — make it a beat louder */
.statement em {
  font-family: var(--display);
  font-size: 1.12em;
}

.eyebrow,
.reel-tag,
.tc,
.tc-label,
.spark-kind,
.way-idx,
.flow-label,
.fc-state,
.fc-meta,
.cell-tc,
.kw li {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  background: linear-gradient(180deg, rgba(13, 9, 7, 0.9), transparent);
  backdrop-filter: blur(8px);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--emulsion-dim);
}

.mark-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--negative-orange);
}

.mark-dot::before,
.mark-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--negative-orange);
  animation: ping 2.8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

.mark-dot::after {
  animation-delay: 1.4s;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(4.2);
    opacity: 0;
  }
}

.tc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--emulsion-dim);
}

.tc-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--grease-red);
}

.tc-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grease-red);
  animation: blink 1.6s steps(1) infinite;
}

@keyframes blink {
  0%,
  60% {
    opacity: 1;
  }
  61%,
  100% {
    opacity: 0.15;
  }
}

/* ============================================================
   HERO · 负片显影
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  width: var(--measure);
  margin: 0 auto;
  padding: clamp(130px, 16vh, 200px) var(--gutter) clamp(70px, 10vh, 120px);
  min-height: 100vh;
}

.eyebrow {
  font-size: 12px;
  color: var(--amber);
}

.hero-title {
  margin: 20px 0 24px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(46px, 8.2vw, 116px);
  line-height: 0.96;
}

.ink {
  color: var(--emulsion);
}

.ink.orange {
  color: var(--negative-orange);
  position: relative;
}

.hero-sub {
  max-width: 40ch;
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--emulsion-dim);
}

/* prominent core-identity tags */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-badges span {
  padding: 12px 22px;
  border: 1.5px solid var(--negative-orange);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--negative-orange);
  background: rgba(217, 106, 52, 0.08);
}

.strip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.strip-tags li {
  padding: 8px 13px;
  border: 1px solid var(--edge);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--emulsion-dim);
  background: rgba(244, 236, 221, 0.03);
}

/* -- the develop plate -- */
.develop {
  margin: 0;
}

.develop-frame {
  position: relative;
  padding: 26px 20px;
  border: 1px solid var(--edge-strong);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(244, 236, 221, 0.05), transparent 40%),
    rgba(9, 6, 4, 0.5);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.perf-row {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 14px,
    rgba(244, 236, 221, 0.5) 14px 26px
  );
  -webkit-mask: repeating-linear-gradient(
    90deg,
    #000 0 14px,
    transparent 14px 26px
  );
  mask: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 26px);
  background: rgba(244, 236, 221, 0.42);
  border-radius: 3px;
}

.perf-row.top {
  top: 7px;
}

.perf-row.bottom {
  bottom: 7px;
}

.plate {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 5;
}

.plate-media {
  display: grid;
  place-items: center;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(232, 165, 75, 0.22), transparent 55%),
    linear-gradient(315deg, rgba(47, 110, 106, 0.35), transparent 55%),
    repeating-linear-gradient(
      45deg,
      rgba(244, 236, 221, 0.05) 0 22px,
      transparent 22px 44px
    ),
    #241a12;
}

.plate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plate-hint {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--emulsion-dim);
  padding: 10px 14px;
  border: 1px dashed var(--edge-strong);
  border-radius: 2px;
  background: rgba(9, 6, 4, 0.4);
}

/* negative look, resolved to positive via .is-developed / JS */
.plate[data-develop] {
  filter: invert(1) sepia(1) saturate(2.6) hue-rotate(150deg) contrast(0.92)
    brightness(1.08);
}

.plate.is-developed {
  filter: none;
  transition: filter 1600ms cubic-bezier(0.22, 1, 0.36, 1);
}

figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  font-size: 11px;
  color: var(--emulsion-faint);
}

.fc-state {
  color: var(--negative-orange);
}

/* ============================================================
   REELS (shared section frame)
   ============================================================ */
.reel {
  width: var(--measure);
  margin: 0 auto;
  padding: clamp(72px, 11vh, 150px) var(--gutter);
  border-top: 1px solid var(--edge);
}

.reel-tag {
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 22px;
}

.reel-head {
  max-width: 62ch;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.reel-head h2 {
  font-size: clamp(30px, 4.6vw, 62px);
}

.reel-note {
  margin-top: 18px;
  color: var(--emulsion-dim);
  max-width: 54ch;
}

/* ---- Reel 01 statement ---- */
.theme .statement {
  font-size: clamp(28px, 4.4vw, 60px);
  line-height: 1.14;
  max-width: 20ch;
}

.theme .statement-body {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--emulsion-dim);
}

.tool-shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: clamp(36px, 5vw, 60px) 0 0;
  padding: 0;
}

.tool-media {
  position: relative;
  margin: 0 0 10px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--edge);
  border-radius: 3px;
  overflow: hidden;
  background: #17110c;
  display: grid;
  place-items: center;
  transition: border-color 260ms ease, transform 260ms ease;
}

.tool:hover .tool-media {
  border-color: rgba(217, 106, 52, 0.45);
  transform: translateY(-3px);
}

.tool-media::before {
  content: attr(data-ph);
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--emulsion-faint);
}

.tool-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--emulsion-dim);
}

/* labelled placeholder for still-image craft cards */
.thumb.still::before {
  content: attr(data-ph);
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--emulsion-faint);
}

/* ============================================================
   Reel 02 · timeline (film cells)
   ============================================================ */
.cells {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.cell {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding: 30px 0;
  border-bottom: 1px solid var(--edge);
  position: relative;
}

.cell:first-child {
  border-top: 1px solid var(--edge);
}

.cell-tc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  font-size: 12px;
  color: var(--emulsion-dim);
}

.tc-year {
  font-size: 15px;
  color: var(--emulsion);
}

.tc-frame {
  color: var(--emulsion-faint);
}

.cell-body h3 {
  font-size: clamp(21px, 2.4vw, 30px);
  margin-bottom: 14px;
}

.kw {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.kw li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border: 1px solid var(--edge);
  border-radius: 2px;
  color: var(--emulsion-dim);
  text-transform: none;
}

.cell-body p {
  color: var(--emulsion-dim);
  max-width: 56ch;
}

.aside {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--amber);
  color: rgba(232, 165, 75, 0.82);
}

.cell.marked .cell-body h3 {
  color: var(--negative-orange);
}

.cell.now {
  background: linear-gradient(90deg, rgba(217, 106, 52, 0.08), transparent 60%);
}

.cell.now .tc-frame {
  color: var(--grease-red);
}

/* ============================================================
   Reel 05 · sparks (numbered frames)
   ============================================================ */
.spark-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.spark {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 172px;
  padding: 24px 26px;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: rgba(244, 236, 221, 0.02);
  transition: border-color 260ms ease, transform 260ms ease;
}

.spark:hover {
  border-color: rgba(217, 106, 52, 0.45);
  transform: translateY(-4px);
}

.spark-no {
  position: absolute;
  top: 2px;
  right: 14px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(52px, 7.5vw, 100px);
  line-height: 1;
  color: rgba(244, 236, 221, 0.055);
  pointer-events: none;
}

.spark-body {
  position: relative;
}

.spark-kind {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--fixer-teal);
}

.spark h3 {
  font-size: clamp(26px, 3.2vw, 42px);
  color: var(--negative-orange);
  line-height: 1.05;
}

/* ============================================================
   Reel 06 · process flows — timeline chain (no boxes)
   ============================================================ */
.flows {
  display: grid;
  gap: 46px;
}

.flow-label {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--amber);
}

.flow.now .flow-label {
  color: var(--negative-orange);
}

/* connected chain: a horizontal line with labelled nodes */
.chain {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chain li {
  position: relative;
  flex: 1 1 0;
  min-width: 84px;
  padding-top: 26px;
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
  color: var(--emulsion);
}

/* the connecting rail sits at the node row */
.chain li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--edge-strong);
}

.chain li:first-child::before {
  left: 50%;
}

.chain li:last-child::before {
  right: 50%;
}

/* the node dot */
.chain li::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--emulsion-faint);
  box-shadow: 0 0 0 4px var(--safelight-black);
}

.flow.now .chain li::after {
  background: var(--negative-orange);
}

.flow.now .chain li::before {
  background: rgba(217, 106, 52, 0.4);
}

/* the merged "AI 素材生成" node stands out */
.chain li.merged {
  color: var(--negative-orange);
}

.chain li.merged::after {
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--negative-orange);
  box-shadow: 0 0 0 4px var(--safelight-black), 0 0 14px rgba(217, 106, 52, 0.6);
}

/* before → after image pair */
.shift {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  margin-bottom: clamp(44px, 6vw, 76px);
}

.shift-card {
  margin: 0;
  border: 1px solid var(--edge);
  border-radius: 4px;
  overflow: hidden;
  background: #1c140e;
}

.shift-card.now {
  border-color: rgba(217, 106, 52, 0.4);
}

.shift-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shift-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--emulsion-dim);
}

.shift-kind {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--edge-strong);
  color: var(--amber);
}

.shift-card.now .shift-kind {
  color: var(--negative-orange);
  border-color: rgba(217, 106, 52, 0.5);
}

.shift-arrow {
  display: grid;
  place-items: center;
  color: var(--negative-orange);
}

.shift-arrow::before {
  content: "→";
  font-size: 34px;
  line-height: 1;
}

/* ============================================================
   Reel 05 · craft (LOG → GRADED hover)
   ============================================================ */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.craft-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--edge);
  border-radius: 4px;
  padding: 16px 16px 24px;
  background: rgba(244, 236, 221, 0.02);
  transition: border-color 260ms ease, transform 260ms ease;
}

.craft-card:hover,
.craft-card:focus-within {
  border-color: rgba(217, 106, 52, 0.45);
  transform: translateY(-4px);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(47, 110, 106, 0.32), transparent 60%),
    linear-gradient(315deg, rgba(217, 106, 52, 0.28), transparent 60%),
    repeating-linear-gradient(
      45deg,
      rgba(244, 236, 221, 0.05) 0 18px,
      transparent 18px 36px
    ),
    #211812;
}

.thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* multi-clip thumb: several videos share one frame */
.thumb.clips {
  display: grid;
  gap: 2px;
  padding: 0;
  background: #0d0906;
}

.thumb.clips[data-n="2"] {
  grid-template-columns: 1fr 1fr;
}

.thumb.clips[data-n="3"] {
  grid-template-columns: 1fr 1fr 1fr;
}

.thumb.clips .thumb-video {
  position: relative;
  inset: auto;
}

/* single-image (still) thumb */
figure.thumb.still {
  margin: 0 0 18px;
  padding: 0;
}

.thumb.still img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* diagrams should show in full, not cropped */
.thumb.still.light {
  background: #140e09;
}

.thumb.still.light img {
  object-fit: contain;
}

.thumb-hint {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--emulsion-dim);
  padding: 8px 12px;
  border: 1px dashed var(--edge-strong);
  border-radius: 2px;
  background: rgba(9, 6, 4, 0.45);
}

.craft-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.craft-card p {
  color: var(--emulsion-dim);
  font-size: 16px;
}

/* ============================================================
   Reel 06 · selected works (contact sheet)
   ============================================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.work {
  display: flex;
  flex-direction: column;
}

.work-media {
  position: relative;
  margin: 0 0 12px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--edge);
  border-radius: 3px;
  overflow: hidden;
  background: #1c140e;
  transition: border-color 260ms ease, transform 260ms ease;
}

.work-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 600ms ease, filter 400ms ease;
}

.work:hover .work-media,
.work:focus-within .work-media {
  border-color: rgba(217, 106, 52, 0.5);
  transform: translateY(-4px);
}

.work:hover .work-media img,
.work:focus-within .work-media img {
  transform: scale(1.05);
  filter: none;
}

.work-cap h3 {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.work-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--emulsion-dim);
}

/* ============================================================
   Reel 07 · two ways
   ============================================================ */
.two-ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.way {
  padding: 30px 28px 34px;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: rgba(244, 236, 221, 0.02);
}

.way-idx {
  font-size: 12px;
  color: var(--fixer-teal);
}

.way h3 {
  margin: 14px 0 20px;
  font-size: clamp(22px, 2.6vw, 34px);
}

.aiflow-summary {
  margin: 42px auto 0;
  max-width: 30ch;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 46px);
  line-height: 1.2;
}

/* ============================================================
   Reel 08 · film-history milestones (filmstrip)
   ============================================================ */
.milestones {
  border-bottom: 1px solid var(--edge);
}

.ms-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ms {
  display: flex;
  flex-direction: column;
}

.ms-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
  border-radius: 3px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--edge);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(244, 236, 221, 0.045) 0 16px,
      transparent 16px 32px
    ),
    #1c140e;
}

/* sprocket strip along the top of each milestone frame */
.ms-media::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  height: 8px;
  background: rgba(244, 236, 221, 0.4);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 16px);
  mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 16px);
}

.ms-media span {
  font-family: var(--mono);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--negative-orange);
}

.ms-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ms h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.ms p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--emulsion-dim);
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: var(--measure);
  margin: 0 auto;
  padding: 30px var(--gutter) 60px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--emulsion-faint);
}

.foot-mark {
  color: var(--negative-orange);
}

/* ============================================================
   REVEAL (scroll)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  body {
    font-size: 17px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: clamp(96px, 14vh, 130px);
    min-height: auto;
  }

  .develop {
    max-width: 420px;
  }

  .cell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cell-tc {
    flex-direction: row;
    gap: 12px;
    align-items: baseline;
  }

  .spark-grid {
    grid-template-columns: 1fr;
  }

  .craft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shift {
    grid-template-columns: 1fr;
  }

  .shift-arrow::before {
    content: "↓";
  }

  .two-ways {
    grid-template-columns: 1fr;
  }

  .ms-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mark-text {
    display: none;
  }
}

@media (max-width: 560px) {
  .craft-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ms-strip {
    grid-template-columns: 1fr;
  }

  .chain li {
    flex-basis: 33.333%;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .plate[data-develop] {
    filter: none;
  }
}
