/* ScrollCraft Moon/City refinement. Approved world; shared Impeccable role system. */
/* The cinematic document retains wheel/keyboard navigation without browser
   scrollbar chrome. Conversation fit is separately solved with bounded paging. */
html:has(body.moon-city) { scrollbar-width: none; }
html:has(body.moon-city)::-webkit-scrollbar { width: 0; height: 0; }
.moon-city {
  --mc-brand-accent: #00ee7a;
  --sc-accent: var(--mc-brand-accent);
  --mc-display: Archivo, sans-serif;
  --mc-text: Geist, sans-serif;
  --mc-emphasis: var(--sc-accent);
  --mc-accent: var(--sc-accent);
  --mc-reading-ink: #faf7fc;
  --mc-reading-soft: #e6dfec;
  --mc-glass-fill: #18203380;
  /* Quiet neutral edges leave the accent to content and primary actions. */
  --mc-glass-edge: #ffffff14;
  --mc-glass-radius: 26px;
  --mc-story-gap: 40px;
  --mc-story-title-density: #101329bf;
  --mc-content-gutter: clamp(24px, 5.5vw, 112px);
}
.moon-city .mc-accent { color: var(--mc-emphasis); }
.moon-city .mc-identity { display: flex; align-items: center; gap: 8px; min-width: 0; height: clamp(48px, 3.6vw, 74px); }
.moon-city .mc-identity .mc-avatar { flex-shrink: 0; }
.moon-city .mc-brand-logo { display: block; width: clamp(156px, 12.2vw, 224px); height: auto; min-width: 0; }
/* Share the primary CTA's natural height at every existing breakpoint. */
.moon-city .mc-intro > .mc-actions { align-items: stretch; }
.moon-city .mc-intro > .mc-actions .mc-secondary { padding-block: 0; }
@media (max-width: 700px) {
  .moon-city .mc-brand-logo { width: 128px; }
  .moon-city .mc-identity { height: 46px; }
  .moon-city.mc-motion-on .mc-identity { height: 44px; }
}
.moon-city .mc-button:active { transform: none; }
/* An opacity will-change hint makes a backdrop root and prevents nested glass
   from sampling the cafe. Keep actual ScrollCraft opacity/transform unchanged. */
.moon-city #conversation.mc-bounded { will-change: auto; }
.moon-city .mc-conversation-scene { display: contents; }
.moon-city:not(.mc-motion-on) .mc-conversation-scene {
  display: grid;
  align-items: center;
  min-height: 100svh;
  background: url(media/cafe-atlas-v2-r2.webp) center/cover no-repeat;
}
@media (max-width: 700px) {
  .moon-city:not(.mc-motion-on) .mc-conversation-scene { background-position: 24% center; }
}
.moon-city .mc-introduction h1,
.moon-city .mc-card h2,
.moon-city .mc-work-title h2 { letter-spacing: -.04em; }
.moon-city .mc-work-title h2,
.moon-city .mc-promise { text-wrap: balance; }
.moon-city .mc-intro-description,
.moon-city .mc-beat > p { text-wrap: pretty; color: var(--mc-reading-soft); }
.moon-city .mc-intro-description { font-size: clamp(16px, 1.1vw, 21px); }
.moon-city .glass {
  background: linear-gradient(135deg, #00ee7a1f, #b9c8e708), var(--mc-glass-fill);
  box-shadow: inset 0 1px 0 #ffffff0f, 0 12px 28px #05091638;
}
.moon-city.mc-motion-on #cinematic-home > [data-sc-world],
.moon-city.mc-motion-on [data-sc-world-copy] { inset: 0; border-radius: 0; }
.moon-city .mc-card {
  /* A clear navy glass material protects against moving white fog. Remove the
     milky highlight wash; retain blur, edge and depth. Portraits stay in front. */
  --mc-glass-fill: #182033cc;
  background: var(--mc-glass-fill);
  --mc-card-pad-x: 20px;
  --mc-card-pad-bottom: 22px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: clamp(196px, 14vw, 288px);
  height: clamp(300px, 36vh, 420px);
  border-radius: var(--mc-glass-radius);
  padding: 22px 20px;
}
.moon-city .mc-card h2 { font-size: clamp(36px, 2.8vw, 58px); }
.moon-city .mc-card h2 .mc-metric {
  display: inline;
  color: var(--mc-emphasis);
  font: inherit;
  letter-spacing: inherit;
  font-variant-numeric: lining-nums tabular-nums;
}
.moon-city .mc-card h2 > .mc-unit {
  font-size: .55em;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.moon-city .mc-card > p { color: #fff; font-size: clamp(13px, .88vw, 17px); line-height: 1.45; max-width: none; }
.moon-city .mc-card img {
  grid-row: 3;
  position: relative;
  inset: auto;
  align-self: stretch;
  width: calc(100% + var(--mc-card-pad-x) * 2);
  max-width: none;
  height: calc(100% + var(--mc-card-pad-bottom) - 12px);
  min-height: 0;
  margin: 12px calc(var(--mc-card-pad-x) * -1) calc(var(--mc-card-pad-bottom) * -1);
  object-position: 74% 40%;
  mask-image: linear-gradient(to bottom, transparent, #000 18%), linear-gradient(to right, transparent, #000 24%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%), linear-gradient(to right, transparent, #000 24%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.moon-city .mc-motion { right: 24px; bottom: 14px; }
.moon-city .mc-eyebrow { color: var(--mc-reading-soft); }
.moon-city .mc-work-title h2 { font-size: clamp(34px, 3.2vw, 54px); line-height: 1.08; max-width: 20ch; }
.moon-city .mc-beat { display: grid; gap: 24px; }
.moon-city .mc-beat h3 { margin: 0; font: 800 clamp(48px, 4.8vw, 76px)/1 Archivo, sans-serif; letter-spacing: -.035em; text-wrap: balance; }
.moon-city .mc-beat-prefix { display: block; color: var(--mc-reading-ink); font-size: .34em; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; margin-bottom: 4px; }
.moon-city .mc-beat-verb { color: var(--mc-brand-accent); }
.moon-city .mc-beat-detail > p { margin: 0; color: var(--mc-reading-ink); font-size: clamp(18px, 1.4vw, 23px); line-height: 1.6; max-width: 55ch; text-wrap: pretty; }
.moon-city .mc-beat-detail .mc-discipline { color: var(--mc-reading-soft); font-size: 13px; font-weight: 500; line-height: 1.5; margin-top: 24px!important; }
.moon-city .mc-beat .mc-story-close { color: var(--sc-ink); font: 600 clamp(21px, 1.8vw, 30px)/1.45 Geist, sans-serif; letter-spacing: -.02em; max-width: 28ch!important; margin: 0!important; }
.moon-city.mc-motion-on .mc-work-title {
  left: var(--mc-content-gutter);
  top: clamp(100px, 18vh, 230px);
  width: min(39vw, 620px);
  max-width: none;
}
.moon-city.mc-motion-on .mc-beat {
  left: var(--mc-content-gutter);
  top: var(--mc-story-beat-top, calc(18vh + 240px));
  width: calc(100% - var(--mc-content-gutter) * 2);
  max-width: none;
}
.moon-city.mc-motion-on .mc-beat-started {
  left: auto;
  right: var(--mc-content-gutter);
  top: clamp(260px, 33vh, 420px);
  width: min(42vw, 660px);
}
.moon-city.mc-motion-on .mc-beat-expanded {
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.3fr);
  gap: 64px;
  width: min(78vw, 1160px);
  align-items: start;
}
.moon-city.mc-motion-on .mc-evolved {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12%;
  row-gap: 24px;
}
.moon-city.mc-motion-on .mc-evolved h3 { grid-column: 2; }
.moon-city.mc-motion-on .mc-evolved .mc-beat-detail { grid-column: 2; }
.moon-city.mc-motion-on .mc-evolved .mc-story-close { grid-column: 1; grid-row: 1 / 3; align-self: end; }
.moon-city.mc-motion-on .mc-copy-shade { width: 100%; background: none; }
/* City story ground and captions: see "City story finish" at the end of this file. */
/* The opening has one local reading veil. Story radiance bands must not
   cover the Moon while its source-derived city activity is the focal point. */
.moon-city.mc-motion-on [data-sc-world-copy]:has(.mc-intro:not([inert])) .mc-copy-shade {
  width: 52%;
  background: linear-gradient(90deg, #101329e0, #101329bf 72%, #10132900);
}
.moon-city:not(.mc-motion-on) .mc-work-group {
  background-image: linear-gradient(90deg, #101629b8, #10162970 54%, #10162918), url(media/city-selected-317961b1-r2.webp);
}
@media (min-width: 701px) and (max-width: 1100px) {
  .moon-city .mc-card { --mc-card-pad-x: 16px; --mc-card-pad-bottom: 18px; width: 172px; height: 280px; padding: 18px 16px; }
  .moon-city .mc-card h2 { font-size: 36px; }
  .moon-city .mc-experience { gap: 12px; }
}
@media (max-width: 700px) {
  .moon-city { --mc-content-gutter: 24px; --mc-story-gap: 28px; --mc-glass-radius: 24px; }
  .moon-city .mc-card { --mc-card-pad-x: 16px; --mc-card-pad-bottom: 18px; width: 100%; height: 254px; padding: 18px 16px; }
  .moon-city .mc-card h2 { font-size: 36px; }
  .moon-city .mc-card > p { font-size: 12px; max-width: none; line-height: 1.4; }
  .moon-city.mc-motion-on .mc-intro {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    align-content: start;
    gap: 20px;
    padding: max(24px, env(safe-area-inset-top)) 24px max(76px, env(safe-area-inset-bottom));
    overflow: visible;
    overscroll-behavior: auto;
  }
  .moon-city.mc-motion-on .mc-intro .mc-header,
  .moon-city.mc-motion-on .mc-introduction,
  .moon-city.mc-motion-on .mc-intro > .mc-actions,
  .moon-city.mc-motion-on .mc-experience { position: relative; inset: auto; width: 100%; margin: 0; }
  .moon-city.mc-motion-on .mc-intro .mc-header { min-height: 44px; }
  .moon-city.mc-motion-on .mc-intro .mc-avatar { width: 44px; height: 44px; }
  .moon-city.mc-motion-on .mc-intro .mc-blog { min-height: 44px; }
  .moon-city.mc-motion-on .mc-introduction { max-width: 480px; }
  .moon-city.mc-motion-on .mc-eyebrow { max-width: none; font-size: 10px; line-height: 1.4; margin-bottom: 12px!important; }
  .moon-city.mc-motion-on .mc-services { font-size: clamp(36px, 9.5vw, 60px); }
  .moon-city.mc-motion-on .mc-promise { font-size: 19px; line-height: 1.18; margin-top: 16px; }
  .moon-city.mc-motion-on .mc-intro-description { font-size: 15px; line-height: 1.5; margin-top: 14px!important; max-width: 42ch; }
  .moon-city.mc-motion-on .mc-intro > .mc-actions { gap: 8px; }
  .moon-city.mc-motion-on .mc-experience { align-self: end; gap: 12px; }
  .moon-city.mc-motion-on .mc-card { height: clamp(232px, 30vh, 280px); }
  .moon-city.mc-motion-on .mc-work-title { top: max(76px, 12vh); left: var(--mc-content-gutter); right: var(--mc-content-gutter); width: auto; }
  .moon-city .mc-work-title h2 { font-size: clamp(29px, 7.9vw, 42px); line-height: 1.08; }
  .moon-city.mc-motion-on .mc-beat { top: var(--mc-story-beat-top, calc(12vh + 190px)); left: var(--mc-content-gutter); right: var(--mc-content-gutter); width: auto; }
  .moon-city .mc-beat { gap: 20px; }
  .moon-city .mc-beat h3 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; font-size: clamp(36px, 10.5vw, 48px); }
  .moon-city .mc-beat-prefix { display: inline; font-size: 18px; line-height: 1.3; margin: 0; }
  .moon-city.mc-motion-on .mc-beat-started,
  .moon-city.mc-motion-on .mc-beat-expanded,
  .moon-city.mc-motion-on .mc-evolved { display: grid; grid-template-columns: minmax(0, 1fr); top: var(--mc-story-beat-top); left: var(--mc-content-gutter); right: var(--mc-content-gutter); width: auto; gap: 20px; }
  .moon-city.mc-motion-on .mc-evolved h3,
  .moon-city.mc-motion-on .mc-evolved .mc-beat-detail,
  .moon-city.mc-motion-on .mc-evolved .mc-story-close { grid-column: 1; grid-row: auto; }
  .moon-city.mc-motion-on .mc-beat-detail > p { font-size: 16px; line-height: 1.55; }
  .moon-city.mc-motion-on .mc-beat-detail .mc-discipline { font-size: 13px; line-height: 1.45; margin-top: 20px!important; }
  .moon-city.mc-motion-on .mc-beat .mc-story-close { font-size: 17px!important; line-height: 1.5; margin-top: 24px!important; }
  .moon-city.mc-motion-on [data-sc-world-copy]:has(.mc-intro:not([inert])) .mc-copy-shade {
    width: 100%; height: 68%; bottom: auto;
    background: linear-gradient(180deg, #101329e6, #101329bf 68%, #10132900);
  }
  .moon-city:not(.mc-motion-on) .mc-work-group { background-image: linear-gradient(90deg, #101629b8, #10162988), url(media/city-selected-317961b1-r2.webp); }
}
@media (max-width: 700px) and (max-height: 720px) {
  .moon-city.mc-motion-on .mc-intro { padding: 16px 20px 64px; gap: 8px; }
  .moon-city.mc-motion-on .mc-eyebrow { font-size: 10px; margin-bottom: 8px!important; }
  .moon-city.mc-motion-on .mc-services { font-size: clamp(30px, 8.8vw, 42px); line-height: 1; }
  .moon-city.mc-motion-on .mc-promise { font-size: 17px; line-height: 1.15; margin-top: 10px; }
  .moon-city.mc-motion-on .mc-intro-description { font-size: 14px; line-height: 1.4; margin-top: 10px!important; }
  .moon-city.mc-motion-on .mc-card { --mc-card-pad-x: 12px; --mc-card-pad-bottom: 14px; height: 210px; padding: 14px 12px; }
  .moon-city .mc-card h2 { font-size: 30px; }
  .moon-city .mc-card > p { font-size: 12px; line-height: 1.4; margin-top: 6px; }
  .moon-city.mc-motion-on .mc-experience { gap: 10px; }
  .moon-city.mc-motion-on .mc-work-title { top: 58px; }
  .moon-city.mc-motion-on .mc-beat { top: var(--mc-story-beat-top, 240px); }
  .moon-city.mc-motion-on .mc-beat h3 { font-size: 36px; }
  .moon-city.mc-motion-on .mc-beat .mc-story-close { font-size: 16px!important; margin-top: 20px!important; }
}
@media (hover: hover) and (pointer: fine) {
  .moon-city .mc-card:hover {
    border-color: #ffffff24;
    box-shadow: inset 0 1px 0 #ffffff1a, 0 16px 32px #0509164a;
  }
  .moon-city .mc-blog:hover,
  .moon-city .mc-secondary:hover { background-color: #30344d99; }
}
@media (prefers-reduced-motion: reduce) {
  .moon-city .mc-card:hover, .moon-city .mc-button:active { transform: none; }
}
@supports not (backdrop-filter: blur(1px)) {
  .moon-city .glass { background: #243047ee; }
}
/* Responsive crop of the supplied ATLAS portrait keeps the cafe behind the whole
   phone viewport; the film settles to the same crop rather than a 420px plate. */
@media (max-width: 700px) {
  .moon-city.mc-motion-on .mc-landing img {
    width: 100%; height: calc(100% + 150px);
    position: absolute; top: -150px; bottom: auto;
    object-position: 24% center;
  }
  .moon-city.mc-motion-on .mc-landing::after,
  .moon-city.mc-motion-on .mc-descent::after { display: none; }
}

/* Pause, reduced motion, short viewport and enlarged-text reading share a
   semantic document layout. Only the cinematic mode uses absolute copy anchors. */
.moon-city:not(.mc-motion-on) .mc-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "header" "intro" "actions" "portraits";
  align-content: center;
  align-items: start;
  gap: 32px clamp(28px, 4vw, 80px);
  min-height: 100svh;
  height: auto;
  padding: clamp(32px, 5vw, 80px) var(--mc-content-gutter) 64px;
  overflow: visible;
}
.moon-city:not(.mc-motion-on) .mc-intro .mc-header,
.moon-city:not(.mc-motion-on) .mc-introduction,
.moon-city:not(.mc-motion-on) .mc-intro > .mc-actions,
.moon-city:not(.mc-motion-on) .mc-experience {
  position: relative;
  inset: auto;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.moon-city:not(.mc-motion-on) .mc-intro .mc-header { grid-area: header; }
/* Reading mode gives the complete enlarged message a quiet native canvas.
   The retained moon photograph occupies the portrait row, with no text veil. */
.moon-city:not(.mc-motion-on) .mc-hero-bg {
  position: relative;
  grid-area: portraits;
  inset: auto;
  align-self: end;
  height: 290px;
  width: calc(100% + var(--mc-content-gutter) * 2);
  margin: 0 calc(var(--mc-content-gutter) * -1) -64px;
}
.moon-city:not(.mc-motion-on) .mc-hero-bg::after { display: none; }
.moon-city:not(.mc-motion-on) .mc-introduction { grid-area: intro; max-width: none; }
.moon-city:not(.mc-motion-on) .mc-intro > .mc-actions {
  grid-area: actions;
  flex-wrap: wrap;
  align-self: end;
  gap: 12px;
}
.moon-city:not(.mc-motion-on) .mc-experience {
  grid-area: portraits;
  justify-self: end;
  width: min(100%, 640px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 16px;
  align-self: end;
}
.moon-city:not(.mc-motion-on) .mc-card {
  --mc-card-pad-x: 20px;
  --mc-card-pad-bottom: 0px;
  grid-template-rows: auto auto minmax(290px, 1fr);
  width: 100%;
  height: auto;
  min-height: 300px;
  padding: 24px 20px 0;
}
.moon-city:not(.mc-motion-on) .mc-card > p { max-width: 17ch; }
.moon-city:not(.mc-motion-on) .mc-services,
.moon-city:not(.mc-motion-on) .mc-promise,
.moon-city:not(.mc-motion-on) .mc-card h2,
.moon-city:not(.mc-motion-on) .mc-work-title h2 { overflow-wrap: anywhere; }
.moon-city:not(.mc-motion-on) .mc-intro .mc-button {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}
.moon-city:not(.mc-motion-on) .mc-work-group {
  display: grid;
  gap: 48px;
  padding: clamp(64px, 8vw, 128px) var(--mc-content-gutter);
  background-image: linear-gradient(90deg, #101629d1, #101629b8 68%, #10162933), url(media/city-selected-317961b1-r2.webp);
}
.moon-city:not(.mc-motion-on) .mc-work-title,
.moon-city:not(.mc-motion-on) .mc-beat {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 70rem;
  min-width: 0;
  padding: 0;
  overflow: visible;
}
.moon-city:not(.mc-motion-on) .mc-work-title h2 { max-width: 22ch; }
.moon-city:not(.mc-motion-on) .mc-beat > p { max-width: 52ch; }
.moon-city:not(.mc-motion-on) .mc-beat h3 { overflow-wrap: anywhere; }
@media (min-width: 901px) {
  .moon-city:not(.mc-motion-on) .mc-beat-started { width: min(54%, 660px); justify-self: end; }
  .moon-city:not(.mc-motion-on) .mc-beat-expanded { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.3fr); gap: 64px; }
  .moon-city:not(.mc-motion-on) .mc-evolved { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12%; }
  .moon-city:not(.mc-motion-on) .mc-evolved h3,
  .moon-city:not(.mc-motion-on) .mc-evolved .mc-beat-detail { grid-column: 2; }
  .moon-city:not(.mc-motion-on) .mc-evolved .mc-story-close { grid-column: 1; grid-row: 1 / 3; align-self: end; }
}
@media (max-width: 900px) {
  .moon-city:not(.mc-motion-on) .mc-intro {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "header" "intro" "actions" "portraits";
    align-content: start;
    gap: 28px;
    padding: 32px var(--mc-content-gutter) 64px;
  }
  .moon-city:not(.mc-motion-on) .mc-introduction { max-width: none; }
  .moon-city:not(.mc-motion-on) .mc-work-group {
    gap: 40px;
    /* Keep green story headings readable at the bright right edge in the
       existing phone reading fallback. Geometry and cinematic mode unchanged. */
    background-image: linear-gradient(90deg, #101629d1, #101629b8 68%, #10162999), url(media/city-selected-317961b1-r2.webp);
  }
}

/* Keyboard/focus exposure is immediate; only automatic first arrival fades. */
.moon-city #cinematic-home.mc-greet-immediate .mc-intro :is(.mc-header,.mc-introduction,.mc-actions,.mc-experience) { transition: none; }
@media (min-width: 701px) and (max-width: 1400px) {
  .moon-city { --mc-story-title-density: #101329c9; }
}

/* Jamie's fixed story anchor: all three beats share one position, now the centred caption (City story finish). */

/* Distinct destinations for portrait and brand, preserving the identity row. */
.moon-city .mc-identity > a{display:block;min-width:0}
.moon-city .mc-portrait-link{flex-shrink:0;border-radius:50%}
.moon-city .mc-logo-link .mc-brand-logo{max-width:100%}

.moon-city .mc-portrait-link .mc-avatar{display:block}

/* The homepage header reserves the far-right action for contact. */
.moon-city .mc-header-nav{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}
.moon-city .mc-header-nav .mc-blog{justify-content:center;gap:14px;height:48px;min-height:48px;padding-block:0}
.moon-city .mc-nav-talk{background:#101016;border:1px solid var(--mc-glass-edge);box-shadow:inset 0 1px 0 #ffffff08,0 8px 25px #03050b66}
.moon-city .mc-nav-talk svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform 150ms var(--mc-ease)}
@media(hover:hover) and (pointer:fine){.moon-city .mc-header-nav .mc-nav-talk:hover{background:#1b1c25}.moon-city .mc-nav-talk:hover svg{transform:translateX(2px)}}
@media(max-width:700px){
 .moon-city .mc-header{flex-wrap:wrap;row-gap:16px}
 .moon-city .mc-header-nav{gap:8px}
 .moon-city .mc-header-nav .mc-blog{height:44px;min-height:44px;padding-inline:18px}
 .moon-city .mc-nav-talk svg{width:18px;height:18px}
}
@media(prefers-reduced-motion:reduce){.moon-city .mc-nav-talk:hover svg{transform:none}}

/* Insights shares the lower hero row's natural button height. */
.moon-city .mc-intro > .mc-actions .mc-insights{padding-block:0}
@media(hover:hover) and (pointer:fine){.moon-city .mc-insights:hover{background-color:#30344d99}}
@media(max-width:700px){
 .moon-city .mc-header{column-gap:12px}
 .moon-city .mc-header-nav .mc-nav-talk{padding-inline:14px;gap:10px}
}

/* City story finish (2026-11-14, Gate A: C · Film captions). The story plays as the film's own captions:
   centred low over a letterbox, an outline chapter numeral behind each headline (never over the text),
   and the three teams along the bottom joined by a line that fills to the current chapter. Copy unchanged. */
.moon-city .mc-work-title .mc-accent { display: block; }
.moon-city .mc-work-title .mc-eyebrow,
.moon-city.mc-motion-on .mc-work-title .mc-eyebrow { font-size: 13px; line-height: 1.4; letter-spacing: .01em; }
.moon-city .mc-work-title h2 { font-size: clamp(36px, 3.3vw, 54px); line-height: 1.06; }
.moon-city .mc-beat h3 { display: block; min-height: 0; font-size: clamp(36px, 3.2vw, 52px); line-height: 1.05; position: relative; z-index: 0; isolation: isolate; }
.moon-city .mc-beat-prefix { display: inline; font-size: 1em; font-weight: 800; color: var(--mc-reading-ink); letter-spacing: -.035em; line-height: inherit; margin: 0; }
/* The ink prefix and the green verb each wrap as one unit ("Proven across / teams."), never split. */
.moon-city .mc-beat-prefix,
.moon-city .mc-beat-verb { white-space: nowrap; }
.moon-city .mc-beat-detail > p:not(.mc-discipline) { color: var(--mc-reading-soft); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; text-wrap: pretty; }
.moon-city .mc-beat-detail,
.moon-city .mc-beat .mc-story-close { position: relative; z-index: 1; }
.moon-city .mc-beat .mc-story-close { color: var(--mc-brand-accent); font: 700 clamp(18px, 1.45vw, 23px)/1.35 Archivo, sans-serif; letter-spacing: -.015em; max-width: none!important; }
.moon-city .mc-story-close-tail { display: block; }
.moon-city:not(.mc-motion-on) .mc-beat-expanded { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.mc-story-line { display: none; }
@media (min-width: 701px) {
  .moon-city .mc-work-title .mc-accent { white-space: nowrap; }
}
/* Motion on: the ground, the captions, the numerals and the connector. */
.moon-city.mc-motion-on [data-sc-world-copy]:has(.mc-work-title:not([inert]), .mc-beat-started:not([inert]), .mc-beat-expanded:not([inert]), .mc-evolved:not([inert])) .mc-copy-shade {
  width: 100%;
  background: linear-gradient(0deg, #080b12f2 0%, #080b12c4 30%, #080b1200 60%), linear-gradient(160deg, #080b12eb 0%, #080b12b3 26%, #080b1200 46%);
}
.moon-city.mc-motion-on :is(.mc-work-title h2, .mc-work-title .mc-eyebrow, .mc-beat h3, .mc-beat-detail, .mc-story-close) { text-shadow: 0 2px 10px #080b12b3; }
.moon-city.mc-motion-on .mc-beat {
  left: calc(50% - min(410px, 40vw)); right: auto; top: auto; bottom: calc(7vh + 92px);
  width: min(820px, 80vw); grid-template-columns: minmax(0, 1fr); gap: 16px;
  text-align: center; justify-items: center;
}
.moon-city.mc-motion-on .mc-beat:is(.mc-beat-started, .mc-beat-expanded, .mc-evolved) h3,
.moon-city.mc-motion-on .mc-beat .mc-beat-detail,
.moon-city.mc-motion-on .mc-evolved .mc-story-close { grid-column: 1; grid-row: auto; align-self: auto; }
.moon-city.mc-motion-on .mc-beat-detail > p:not(.mc-discipline) { max-width: 56ch; margin-inline: auto; }
.moon-city.mc-motion-on .mc-beat-detail .mc-discipline { position: absolute!important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0!important; }
.moon-city.mc-motion-on .mc-beat .mc-story-close { position: relative; margin: 10px auto 0!important; }
.moon-city.mc-motion-on .mc-beat h3::before {
  position: absolute; z-index: -1; left: 50%; top: 50%; transform: translate(-50%, -56%);
  white-space: nowrap; font: 900 clamp(120px, min(15vw, 22vh), 240px)/1 Archivo, sans-serif; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px #00ee7a5c; pointer-events: none;
}
.moon-city.mc-motion-on .mc-beat-started h3::before { content: "01"; }
.moon-city.mc-motion-on .mc-beat-expanded h3::before { content: "02"; }
.moon-city.mc-motion-on .mc-evolved h3::before { content: "03"; }
.moon-city.mc-motion-on .mc-story-line {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: absolute; z-index: 30;
  left: calc(50% - min(380px, 39vw)); width: min(760px, 78vw); top: auto; bottom: calc(3.7vh + 34px);
  pointer-events: none;
}
.mc-story-line::before,
.mc-story-line::after { content: ""; position: absolute; left: 16.66%; right: 16.66%; top: 5px; height: 2px; border-radius: 2px; background: #e6dfec2e; }
/* --fill is written by home.js as the reader scrolls (already smoothed by the engine), so no transition. */
.mc-story-line::after { background: var(--mc-brand-accent); box-shadow: 0 0 10px #00ee7a99; transform: scaleX(var(--fill, 0)); transform-origin: left; }
.mc-story-line > span { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; font: 500 13px/1.3 Geist, sans-serif; color: #e6dfecb8; text-align: center; transition: color .45s; }
.mc-story-line > span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #080b12; box-shadow: inset 0 0 0 2px #e6dfec59; transition: box-shadow .45s, background .45s; }
.mc-story-line > span.is-done { color: #e6dfecbf; }
.mc-story-line > span.is-done::before { background: var(--mc-brand-accent); box-shadow: none; }
.mc-story-line > span.is-on { color: var(--mc-reading-ink); }
.mc-story-line > span.is-on::before { background: var(--mc-brand-accent); box-shadow: 0 0 0 5px #00ee7a33, 0 0 16px var(--mc-brand-accent); }
@media (max-width: 700px) {
  .moon-city .mc-beat h3 { display: block; }
  .moon-city.mc-motion-on [data-sc-world-copy]:has(.mc-work-title:not([inert]), .mc-beat-started:not([inert]), .mc-beat-expanded:not([inert]), .mc-evolved:not([inert])) .mc-copy-shade {
    height: 100%; background: linear-gradient(0deg, #080b12f2 0%, #080b12d6 48%, #080b1200 78%), linear-gradient(180deg, #080b12c7 0%, #080b1200 34%);
  }
  .moon-city.mc-motion-on .mc-beat { left: var(--mc-content-gutter); right: var(--mc-content-gutter); width: auto; top: auto; bottom: calc(3.7vh + 96px); }
  .moon-city.mc-motion-on .mc-beat h3 { font-size: clamp(32px, 9vw, 40px); }
  .moon-city.mc-motion-on .mc-beat h3::before { font-size: 150px; }
  .moon-city.mc-motion-on .mc-beat .mc-story-close { font-size: 18px!important; line-height: 1.4; }
  .moon-city.mc-motion-on .mc-story-line { left: var(--mc-content-gutter); width: calc(100% - var(--mc-content-gutter) * 2); bottom: calc(3.7vh + 22px); }
  .mc-story-line > span > em { display: none; white-space: nowrap; }
  .mc-story-line > span.is-on > em { display: block; }
  .mc-story-line > span:first-child > em { justify-self: start; }
  .mc-story-line > span:last-child > em { justify-self: end; }
}
.mc-story-line > span > em { font-style: normal; }

