/* ============================================================================
   ROB ANDREWS — TECHNICAL MONO
   Site styles. You normally won't need to touch this file — words and images
   live in content.js, look & feel (accent / density / fonts) is set there too.
   ========================================================================== */

/* --- Design tokens -------------------------------------------------------- */
:root {
  --paper: #ece7dd;
  --ink:   #16140f;
  --ink2:  #2c2820;
  --muted: #5c564c;
  --fade:  #9d968a;
  --hair:  rgba(22,20,15,0.10);
  --hair2: rgba(22,20,15,0.20);
  --accent: #d97a4f;                       /* overridden from content.js */
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans: "Inter Tight", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --header-h: 56px;
  --footer-h: 38px;
}
[data-fonts="grotesque"] { --sans: "Inter Tight", "Inter", "Helvetica Neue", system-ui, sans-serif; }
[data-fonts="editorial"] { --sans: "Fraunces", "GT Sectra", "Times New Roman", Georgia, serif; }
[data-fonts="mono"]      { --sans: var(--mono); }

/* --- Base ----------------------------------------------------------------- */
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
}
#root { width: 100vw; height: 100vh; display: flex; flex-direction: column; }
.ms-sans { font-family: var(--sans); }
.ms-num  { font-variant-numeric: tabular-nums; }
a { color: inherit; }
img { display: block; }

/* --- Scroll area + custom scrollbar -------------------------------------- */
#ms-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(22,20,15,.18) transparent;
}
#ms-scroll::-webkit-scrollbar { width: 8px; }
#ms-scroll::-webkit-scrollbar-thumb { background: rgba(22,20,15,.18); border-radius: 4px; }

/* --- Header --------------------------------------------------------------- */
.ms-header {
  flex: 0 0 auto;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
  position: relative; z-index: 20;
}
.ms-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ms-diamond { display: inline-block; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); flex: 0 0 auto; }
.ms-brand-name { font-size: 13px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.ms-brand-sep  { font-size: 11px; color: var(--fade); }
.ms-brand-role { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-nav { display: flex; gap: 2px; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.ms-link {
  cursor: pointer; padding: 4px 8px;
  transition: background .12s, color .12s;
  user-select: none; display: inline-block;
  text-decoration: none;
}
.ms-link:hover { color: var(--ink); background: rgba(22,20,15,.06); }
.ms-link.is-active { color: var(--paper); background: var(--ink); }
.ms-link .ms-num { color: var(--fade); margin-right: 6px; }
.ms-link.is-active .ms-num { color: rgba(236,231,221,.5); }
.ms-nav-toggle { display: none; }

/* --- Footer --------------------------------------------------------------- */
.ms-footer {
  flex: 0 0 auto;
  height: var(--footer-h);
  border-top: 1px solid var(--ink);
  padding: 0 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
  font-size: 10.5px; color: var(--muted); letter-spacing: .06em;
  background: var(--paper);
}
.ms-footer span:last-child { text-align: right; }
.ms-social { display: flex; align-items: center; gap: 12px; }
.ms-soc {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none; transition: color .12s;
}
.ms-soc:hover { color: var(--ink); }
.ms-soc-svg { width: 15px; height: 15px; display: block; }
.ms-soc-imdb {
  font-size: 9px; font-weight: 700; letter-spacing: 0;
  border: 1px solid currentColor; padding: 1px 4px; line-height: 1.35;
}

/* --- Page frame ----------------------------------------------------------- */
.ms-page { animation: msFade .35s ease; padding-bottom: 80px; }
@keyframes msFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ms-pad { padding: 36px 32px 0; }

/* Tick scale — measurement marks along the top/bottom of the scroll area */
.ms-ticks {
  position: absolute; left: 0; right: 0; height: 5px; pointer-events: none;
  background-image: linear-gradient(to right, transparent calc(40px - .5px), var(--hair2) calc(40px - .5px), var(--hair2) 40px, transparent 40px);
  background-size: 80px 100%;
}
.ms-ticks.top { top: 0; }
.ms-ticks.bot { bottom: 0; transform: scaleY(-1); }

/* Rules */
.ms-hr-1 { height: 0; border: 0; border-top: 1.5px solid var(--ink); margin: 0; }
.ms-hr-2 { height: 0; border: 0; border-top: 1px solid var(--hair2); margin: 0; }
.ms-hr-3 { height: 0; border: 0; border-top: 1px solid var(--hair); margin: 0; }

/* Typography helpers */
.ms-h1 { font-size: 56px; font-weight: 500; letter-spacing: -.025em; line-height: 1.02; margin: 0; }
.ms-h2 { font-size: 22px; font-weight: 600; letter-spacing: .02em; margin: 0; }
.ms-kicker { font-size: 10.5px; color: var(--muted); letter-spacing: .16em; }
.ms-kicker-fade { color: var(--fade); }
.ms-accent { color: var(--accent); }

/* Shared page header */
.ms-page-head { margin-bottom: 0; }
.ms-page-head-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.ms-page-head-sub { font-size: 12px; color: var(--muted); margin-bottom: 16px; letter-spacing: .02em; }

/* --- Corner-bracketed media frame ---------------------------------------- */
.ms-frame { position: relative; }
.ms-bracket { position: absolute; width: 10px; height: 10px; pointer-events: none; z-index: 4; }
.ms-bracket.tl { top: -1px; left: -1px;  border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.ms-bracket.tr { top: -1px; right: -1px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); }
.ms-bracket.bl { bottom: -1px; left: -1px;  border-bottom: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.ms-bracket.br { bottom: -1px; right: -1px; border-bottom: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); }
.ms-bracket.white { border-color: rgba(255,255,255,.9); }
.ms-frame-badge {
  position: absolute; left: -1px; top: -1px; padding: 3px 8px;
  background: var(--ink); color: var(--paper); font-size: 10px; letter-spacing: .14em; z-index: 3;
}

/* --- Replaceable image ("r-img") ----------------------------------------- */
/* A filled image, or a placeholder when no image is set. The Edit mode adds
   Replace / Remove controls over the top of this. */
.r-img { position: absolute; inset: 0; overflow: hidden; background: var(--ink2); }
.r-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r-img.is-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 14px;
  background: linear-gradient(165deg, #3d3a2e 0%, #161312 100%);
  color: rgba(255,255,255,.55); font-size: 11px; letter-spacing: .04em;
}
.r-img.is-empty .r-img-ico { opacity: .5; }
.r-img.is-empty .r-img-cap { max-width: 90%; }

/* --- HOME ----------------------------------------------------------------- */
.ms-home-intro {
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: end;
  gap: 32px; margin-bottom: 26px;
}
.ms-home-bio { font-size: 14px; color: var(--ink2); margin-top: 14px; max-width: 600px; line-height: 1.55; }
.ms-stats { display: flex; justify-content: flex-end; align-items: flex-end; gap: 32px; }
.ms-stat { text-align: right; }
.ms-stat-num { font-size: 22px; font-weight: 500; letter-spacing: -.01em; margin-top: 2px; }

.ms-stage {
  display: grid; grid-template-columns: 220px 1fr 220px;
  align-items: stretch; gap: 32px; padding: 40px 0 28px;
}
.ms-stage-meta { display: flex; flex-direction: column; justify-content: space-between; }
.ms-stage-title { font-size: 22px; font-weight: 500; letter-spacing: -.01em; line-height: 1.15; margin-bottom: 14px; }
.ms-stage-status { font-size: 10px; color: var(--fade); letter-spacing: .14em; margin-top: 20px; }
.ms-kv {
  display: grid; grid-template-columns: 50px 1fr; gap: 8px;
  padding: 2px 0; border-bottom: 1px dotted var(--hair);
}
.ms-kv-k { color: var(--fade); font-size: 9.5px; letter-spacing: .14em; }
.ms-kv-v { color: var(--ink); font-size: 11px; }

.ms-stage-center { display: flex; flex-direction: column; align-items: center; gap: 18px; }
/* Poster scales by the smallest of: column width, 340px hard cap, or 36vh of
   the viewport (so on shorter screens the whole home page fits without scroll). */
.ms-poster-wrap { position: relative; width: min(100%, 340px, 36vh); aspect-ratio: 2 / 3; }
.ms-poster-stack { position: absolute; inset: 0; background: var(--ink2); }
.ms-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.ms-slide.is-on { opacity: 1; }
.ms-poster-mark {
  position: absolute; top: 10px; color: rgba(255,255,255,.85);
  font-size: 9px; letter-spacing: .18em; z-index: 5;
}
.ms-poster-mark.l { left: 10px; }
.ms-poster-mark.r { right: 10px; }
.ms-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; padding: 0; border: 1px solid var(--ink);
  background: var(--paper); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font: inherit; font-size: 16px; transition: background .12s, color .12s; z-index: 6;
}
.ms-arrow:hover { background: var(--ink); color: var(--paper); }
.ms-arrow.l { left: -56px; }
.ms-arrow.r { right: -56px; }
.ms-dots { display: flex; gap: 8px; align-items: center; }
.ms-dot {
  border: none; cursor: pointer; padding: 0;
  width: 6px; height: 6px; background: var(--hair2);
  transition: width .25s, background .25s;
}
.ms-dot.is-on { width: 22px; background: var(--accent); }

.ms-queue-list { display: flex; flex-direction: column; max-height: 460px; overflow-y: auto; }
.ms-queue-item {
  display: grid; grid-template-columns: 24px 1fr 38px; align-items: baseline; gap: 6px;
  padding: 6px 4px; text-align: left; border: none; background: transparent;
  border-left: 2px solid transparent; font: inherit; cursor: pointer;
  font-size: 11.5px; color: var(--muted);
}
.ms-queue-item.is-on { background: rgba(22,20,15,.06); border-left-color: var(--accent); color: var(--ink); }
.ms-queue-item .qn { color: var(--fade); font-size: 10px; }
.ms-queue-item .qt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-queue-item .qy { color: var(--fade); font-size: 10px; text-align: right; }

.ms-threeup { padding-top: 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ms-row {
  display: grid; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--hair); align-items: baseline;
  transition: background .12s;
}
.ms-row:hover { background: rgba(22,20,15,.04); }
.ms-row.recent { grid-template-columns: 50px 1.6fr 1fr; font-size: 12.5px; }
.ms-row .ms-row-id { color: var(--fade); }
.ms-row:hover .ms-row-id { color: var(--accent); }
.ms-list-tight { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.ms-list-tight .row { display: flex; gap: 8px; }
.ms-list-tight .dot { color: var(--fade); }
.ms-touch-block { margin-top: 12px; font-size: 12.5px; line-height: 1.7; }
.ms-touch-block .note { margin-bottom: 14px; color: var(--muted); }
.ms-touch-block a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ms-touch-block .lbl { color: var(--fade); }

/* --- PRODUCTIONS ---------------------------------------------------------- */
.ms-prod-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-top: 28px; align-items: start;
}
[data-density="compact"]  .ms-prod-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
[data-density="spacious"] .ms-prod-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ms-tile { cursor: default; display: flex; flex-direction: column; position: relative; transition: transform .18s; }
.ms-tile:hover { transform: translate(-2px, -2px); }
.ms-tile .ms-frame { position: relative; aspect-ratio: 2 / 3; flex-shrink: 0; }
.ms-tile-mark { position: absolute; top: 6px; color: #fff; font-size: 9px; letter-spacing: .16em; z-index: 5; }
.ms-tile-mark.l { left: 6px; }
.ms-tile-mark.r { right: 6px; letter-spacing: .14em; }
.ms-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.92) 70%);
  color: #fff; opacity: 0; transition: opacity .18s ease;
  display: flex; align-items: flex-end; pointer-events: none; z-index: 3;
}
.ms-tile:hover .ms-tile-overlay { opacity: 1; }
.ms-tile-overlay-inner { padding: 14px 14px 16px; width: 100%; max-height: 100%; overflow: auto; scrollbar-width: none; }
.ms-tile-overlay-inner::-webkit-scrollbar { display: none; }
.ms-tile-overlay .lbl { font-size: 10px; letter-spacing: .14em; color: rgba(255,255,255,.65); text-transform: uppercase; margin-bottom: 4px; }
.ms-tile-overlay .ttl { font-size: 15px; font-weight: 600; letter-spacing: -.005em; line-height: 1.15; margin-bottom: 10px; }
.ms-tile-overlay .val { font-size: 12px; line-height: 1.4; margin-bottom: 10px; }
.ms-tile-overlay .kick { color: rgba(255,255,255,.65); margin-bottom: 8px; }
.ms-tile-cap { padding: 8px 2px 0; min-height: 54px; }
.ms-tile-cap .t { font-size: 12.5px; font-weight: 600; letter-spacing: -.005em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-tile-cap .r { font-size: 10px; color: var(--muted); margin-top: 2px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-tile-cap .s { font-size: 9.5px; color: var(--fade); margin-top: 1px; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- REEL ----------------------------------------------------------------- */
.ms-reel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }
.ms-reel .ms-frame { aspect-ratio: 16 / 9; position: relative; }
.ms-reel-player { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.ms-reel-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.65);
  cursor: pointer; font: inherit; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px); z-index: 4; text-decoration: none;
}
.ms-reel-play .tri {
  width: 0; height: 0; border-left: 14px solid #fff;
  border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px;
}
.ms-reel-meta-bl, .ms-reel-meta-br {
  position: absolute; bottom: 12px; color: rgba(255,255,255,.85);
  font-size: 10px; letter-spacing: .14em; z-index: 4;
}
.ms-reel-meta-bl { left: 12px; }
.ms-reel-meta-br { right: 12px; }
.ms-reel-info { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--hair2); }
.ms-reel-title-row { margin-top: 14px; display: flex; align-items: baseline; justify-content: space-between; }
.ms-reel-info .ms-reel-title-row { margin-top: 0; }
.ms-reel-title { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.ms-reel-run { font-size: 10.5px; color: var(--muted); letter-spacing: .14em; }
.ms-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.ms-tag { padding: 2px 8px; border: 1px solid var(--hair2); letter-spacing: .04em; }
.ms-reel-desc { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.65; }
.ms-reel-video { display: none; margin-top: 10px; font-size: 11px; color: var(--fade); letter-spacing: .03em; }
body.ed-on .ms-reel-video { display: block; }
.ms-note {
  margin-top: 40px; padding: 16px 18px; border: 1px solid var(--hair2);
  font-size: 11px; color: var(--muted); line-height: 1.7;
}
.ms-note .h { color: var(--ink); font-weight: 600; letter-spacing: .04em; margin-bottom: 4px; }
.ms-note b { color: var(--ink); font-weight: 600; }

/* --- ABOUT ---------------------------------------------------------------- */
.ms-about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; margin-top: 32px; }
.ms-portrait { aspect-ratio: 4 / 5; position: relative; }
.ms-about-grid .ms-portrait { max-width: 90%; }   /* About portrait — 10% smaller than its column */
.ms-prose-grid .ms-portrait { width: min(100%, 300px, 34vh); }   /* On-set photo — caps by column width, 300 px, or 34vh of viewport */
.ms-about-head {
  font-size: 36px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: 0;
}
.ms-about-body {
  margin-top: 24px; font-size: 14.5px; color: var(--ink2); line-height: 1.7;
  max-width: 640px; display: flex; flex-direction: column; gap: 14px;
}
.ms-about-body p { margin: 0; }
.ms-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ms-stack-sm { font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.ms-interests { font-size: 12px; color: var(--ink2); line-height: 1.7; }
.ms-what-head { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-top: 24px; }
.ms-what-list { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.ms-what-list .item { display: grid; grid-template-columns: 16px 1fr; font-size: 13px; line-height: 1.6; color: var(--ink2); }
.ms-what-list .item .b { color: var(--accent); }

/* --- CV ------------------------------------------------------------------- */
.ms-cv-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-top: 28px; }
.ms-row.history { grid-template-columns: 160px 1fr; padding: 10px 0; font-size: 12.5px; }
.ms-row.history .when { color: var(--muted); letter-spacing: .04em; }
.ms-row.history .what b { font-weight: 500; }
.ms-row.history .what .co { color: var(--muted); margin-left: 8px; }
.ms-credit-grid { margin-top: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 11.5px; }
.ms-credit { padding: 4px 0; border-bottom: 1px solid var(--hair); }
.ms-credit .y { color: var(--fade); margin-right: 6px; }
.ms-skill-grid { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12px; }
.ms-edu-line { padding: 4px 0; border-bottom: 1px solid var(--hair); font-size: 12.5px; }
.ms-chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }
.ms-chip { padding: 3px 10px; border: 1px solid var(--hair2); }
.ms-refs { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.ms-refs a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ms-refs .ms-soc,
.ms-enquire .ms-soc { margin-left: 2px; vertical-align: middle; text-decoration: none; }
.ms-refs .ms-soc .ms-soc-svg,
.ms-enquire .ms-soc .ms-soc-svg { width: 14px; height: 14px; }

/* --- ON-SET / BIDDING (shared two-column prose layout) ------------------- */
.ms-prose-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-top: 32px; }
.ms-prose-head { font-size: 32px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin: 0; max-width: 640px; }
.ms-prose-body {
  margin-top: 22px; font-size: 14px; color: var(--ink2); line-height: 1.7;
  max-width: 640px; display: flex; flex-direction: column; gap: 14px;
}
.ms-prose-body p { margin: 0; }

/* Consultancy page — stacked headed sections */
.ms-cons-sections { display: flex; flex-direction: column; gap: 28px; max-width: 640px; }
.ms-cons-head { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.ms-cons-body { font-size: 14px; color: var(--ink2); line-height: 1.7; margin: 8px 0 0; white-space: pre-line; }
.ms-checklist { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: 12.5px; }
.ms-checklist .item { padding: 4px 0; border-bottom: 1px dotted var(--hair2); }
.ms-credits-list { margin-top: 10px; font-size: 12px; }
.ms-row.credit { grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 0; }
.ms-row.credit .t { font-weight: 500; }
.ms-row.credit .s { color: var(--muted); font-size: 11px; }

/* On-set — Kit (collapsible, collapsed by default) */
.ms-kit { margin-top: 12px; border: 1px solid var(--ink); background: rgba(22,20,15,.02); }
.ms-kit-summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); user-select: none;
}
.ms-kit-summary::-webkit-details-marker { display: none; }
.ms-kit-summary:hover { background: rgba(22,20,15,.05); }
.ms-kit-chev { position: relative; width: 12px; height: 12px; flex: 0 0 auto; }
.ms-kit-chev::before, .ms-kit-chev::after { content: ""; position: absolute; background: var(--ink); transition: opacity .18s, transform .18s; }
.ms-kit-chev::before { top: 5px; left: 0; width: 12px; height: 2px; }
.ms-kit-chev::after  { top: 0; left: 5px; width: 2px; height: 12px; }
.ms-kit[open] .ms-kit-chev::after { opacity: 0; transform: scaleY(0); }
.ms-kit-body { padding: 4px 14px 16px; border-top: 1px solid var(--hair2); }
.ms-kit-group { margin-top: 20px; }
.ms-kit-group:first-child { margin-top: 14px; }
.ms-kit-head { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; }
.ms-kit-prose { font-size: 13px; color: var(--ink2); line-height: 1.7; display: flex; flex-direction: column; gap: 10px; }
.ms-kit-prose p { margin: 0; }
.ms-kit-items { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; font-size: 12.5px; }
.ms-kit-item { display: flex; gap: 8px; padding: 3px 0; color: var(--ink2); }
.ms-kit-item .b { color: var(--accent); flex: 0 0 auto; }

.ms-panel { padding: 20px; border: 1px solid var(--ink); background: rgba(22,20,15,.03); }
.ms-panel-intro { font-size: 13px; line-height: 1.7; color: var(--ink2); }
.ms-tiers { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.ms-tier-head { display: flex; align-items: baseline; gap: 10px; }
.ms-tier-badge { background: var(--ink); color: var(--paper); font-size: 10px; letter-spacing: .18em; padding: 2px 7px; white-space: nowrap; }
.ms-tier-label { font-size: 13.5px; font-weight: 600; }
.ms-tier-v { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.ms-tier-note { margin-top: 14px; padding-top: 12px; border-top: 1px dotted var(--hair2); font-size: 12px; font-style: italic; color: var(--muted); }
.ms-enquire { margin-top: 20px; padding: 16px; border: 1px solid var(--hair2); font-size: 12.5px; line-height: 1.7; }
.ms-enquire a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ms-enquire .sub { margin-top: 4px; color: var(--muted); }

/* utility spacing */
.mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mb-10 { margin-bottom: 10px; }
.gap-arrows { } /* placeholder */

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
  .ms-prod-grid,
  [data-density="compact"] .ms-prod-grid { grid-template-columns: repeat(4, 1fr); }
  [data-density="spacious"] .ms-prod-grid { grid-template-columns: repeat(3, 1fr); }
  .ms-stage { grid-template-columns: 1fr; gap: 28px; }
  .ms-stage-meta { order: 2; }
  .ms-stage-center { order: 1; }
  .ms-queue { order: 3; }
  .ms-queue-list { max-height: 220px; }
  .ms-arrow.l { left: -10px; } .ms-arrow.r { right: -10px; }
}

/* Below this width the site becomes a normal scrolling page */
@media (max-width: 960px) {
  html, body { height: auto; overflow: visible; }
  #root { width: 100%; height: auto; min-height: 100vh; display: block; }
  #ms-scroll { overflow: visible; height: auto; }
  .ms-header { position: sticky; top: 0; }
  .ms-ticks { display: none; }
  .ms-pad { padding: 28px 22px 0; }
  .ms-h1 { font-size: 44px; }
  .ms-home-intro { grid-template-columns: 1fr; gap: 20px; }
  .ms-stats { justify-content: flex-start; flex-wrap: wrap; gap: 24px; }
  .ms-threeup { grid-template-columns: 1fr; gap: 28px; }
  .ms-reel-grid { grid-template-columns: 1fr; }
  .ms-about-grid,
  .ms-cv-grid,
  .ms-prose-grid { grid-template-columns: 1fr; gap: 28px; }
  .ms-credit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .ms-brand-role { display: none; }
  .ms-header { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px 0; }
  .ms-nav { width: 100%; flex-wrap: wrap; gap: 2px; }
  .ms-pad { padding: 22px 16px 0; }
  .ms-h1 { font-size: 34px; }
  .ms-about-head { font-size: 27px; }
  .ms-prose-head { font-size: 24px; }
  .ms-prod-grid,
  [data-density="compact"] .ms-prod-grid,
  [data-density="spacious"] .ms-prod-grid { grid-template-columns: repeat(2, 1fr); }
  .ms-checklist,
  .ms-cols-2,
  .ms-kit-items,
  .ms-skill-grid { grid-template-columns: 1fr; }
  .ms-credit-grid { grid-template-columns: 1fr; }
  .ms-footer { grid-template-columns: 1fr 1fr; height: auto; padding: 10px 16px; gap: 4px 0; }
  .ms-footer span:last-child { text-align: left; }
  .ms-row.recent { grid-template-columns: 40px 1fr; }
  .ms-row.recent .role { display: none; }
}
