/* Single-arm page layout, promoted from the preserved v2 design. */
/* MakerMods landing page — page-level glue. Loads after tokens.css and bundle.css.
   Components live in design-system/components/bundle.css (hr-); this file only holds
   what belongs to this page (mm-) and the start states for the GSAP motion (js-). */

/* Company font: when the licensed webfont arrives, declare it here and put it first in
   --font-brand (design-system/tokens.css). Everything set in .hr-wordmark follows.
@font-face { font-family: "MakerMods Brand"; src: url("../assets/fonts/brand.woff2") format("woff2"); font-weight: 600; font-display: swap; }
*/

html { scroll-behavior: smooth; scroll-padding-top: var(--space-9); }
body { overflow-x: clip; }
a.hr-ticker { text-decoration: none; }
figure { margin: 0; }

/* ---------- Section rhythm ---------- */
.mm-section { margin-top: var(--space-10); }
.mm-demo-gap { margin-top: var(--space-9); }

/* ---------- Sticky nav ---------- */

/* ---------- Hero ---------- */
/* VideoHero, centred, as on the station pages: eyebrow, name, one line, CTA, then the frame. */
.mm-hero .hr-display-xl { font-size: clamp(48px, 6.8vw, 96px); white-space: nowrap; }
.mm-hero-line { max-width: var(--measure); margin: var(--space-5) auto 0; color: var(--ink-2); }
.mm-hero-cta { margin-top: var(--space-6); }
.mm-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-5); }
.mm-hero .hr-media { margin-top: var(--space-7); }
.mm-hero .hr-media-caption { text-align: left; }
.js-hero-title .mm-word { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; padding-bottom: 0.12em; margin-bottom: -0.12em; vertical-align: top; }
.js-hero-title .mm-word > span { display: inline-block; }

/* ---------- Dark band ---------- */
/* The Cue scene brings its own vertical room. */
.hr-band:has(.mm-cue-track) { padding: 0; }

/* ---------- Ask: the Cue scene ----------
   With JS and motion allowed, the scene sticks for a tall track and site.js steps the
   detail level from the scroll position. Otherwise it is an ordinary section and the
   arrows (or, with no JS at all, the full sentence) carry it. Native scroll throughout. */
/* A section head whose one-line headline needs more room than measure; the paragraph keeps it. */
.mm-cue-head, .mm-head-flush { max-width: 960px; }
.mm-cue-head { margin-bottom: var(--space-7); }
.mm-cue-head .hr-body-lg, .mm-head-flush .hr-body-lg { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.mm-cue-scene { padding: var(--space-9) 0 var(--space-6); }
html:not(.js):not(.js-lite) .mm-js-only { display: none; }
.mm-head-flush { margin-bottom: 0; }
.mm-lineup-more { margin-top: var(--space-6); text-align: center; }
/* Hold only when the viewport can contain the whole scene (site.js uses the same query). */
@media (prefers-reduced-motion: no-preference) and (min-height: 720px) {
  .js .mm-cue-track { height: 300vh; }
  .js .mm-cue-scene { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; box-sizing: border-box; }
}
/* Shorter screens: tighten the scene so the arrows stay inside it. */
@media (max-height: 900px) {
  .mm-cue-scene { padding: var(--space-9) 0 var(--space-5); }
  .mm-cue-head { margin-bottom: var(--space-5); }
  .mm-cue-scene .hr-cue-bubble { margin-top: var(--space-5); }
  .mm-cue-scene .hr-cue-level { margin-top: var(--space-6); }
  .mm-cue-scene .hr-cue-chips { margin-top: var(--space-6); }
}

/* ---------- Split sections (Specs, FAQ): title left, rows right ---------- */
.mm-cols { display: grid; grid-template-columns: 1fr minmax(0, var(--measure)); gap: var(--space-7); align-items: start; }
.mm-cols .hr-faq { width: 100%; }
.mm-cols > header { position: sticky; top: calc(var(--nav-height) + var(--space-7)); }
.mm-newsletter-line { margin-top: var(--space-3); max-width: var(--measure-narrow); }

/* ---------- Footer wordmark ---------- */
.hr-footer-mark { display: flex; gap: 0.2em; font-size: clamp(64px, 8.4vw, 120px); }
.js-mark-text .mm-split { display: inline-flex; overflow: clip; overflow-clip-margin: 0.1em; }
.js-mark-text .mm-split > span { display: inline-block; }

/* Readable copy of text that site.js splits for animation. */
.mm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* GSAP owns entrance start states, so a failed animation script cannot hide assets. */
.js .js-media { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .mm-section { margin-top: var(--space-9); }
  .mm-demo-gap { margin-top: var(--space-8); }
  .mm-cols { grid-template-columns: 1fr; gap: var(--space-6); }
  .mm-cols > header { position: static; }
  .mm-hero .hr-display-xl { white-space: normal; }
}
@media (max-width: 720px) {
  .mm-section { margin-top: var(--space-8); }
  .mm-demo-gap { margin-top: var(--space-7); }
  .mm-hero .hr-display-xl, .hr-footer-mark { font-size: clamp(44px, 13vw, 64px); }
  .mm-ticker-more { display: none; }
  .mm-cue-scene { padding: var(--space-9) 0 var(--space-5); }
  .mm-cue-head { margin-bottom: var(--space-5); }
  .mm-cue-scene .hr-cue-level { margin-top: var(--space-6); }
  .mm-cue-scene .hr-cue-chips { margin-top: var(--space-6); }
}

/* Single-arm demos and customer stories use the Station's existing components. */
.mm-arm-wam .hr-eyebrow { margin-bottom: var(--space-4); }
.mm-arm-wam .hr-section-head .hr-body-lg { margin-top: var(--space-4); color: var(--ink-2); }
.mm-arm-wam-demo { max-width: none; }
.mm-arm-wam .hr-story-card { background: var(--ground-raised); }
.mm-arm-wam .mm-arm-wam-media { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--ground-sunken); }
.mm-arm-wam .mm-arm-shot { display: flex; }
.mm-arm-wam-duo { margin: var(--space-3) var(--space-3) 0; }
.mm-arm-wam-duo .hr-media { border-radius: var(--radius-sm); }
.mm-arm-wam-duo > .hr-duo + .hr-prompt { top: var(--space-4); left: var(--space-4); bottom: auto; transform: none; width: auto; max-width: calc(78% - var(--space-6)); align-items: flex-start; text-align: left; pointer-events: none; }
.mm-arm-wam-duo .hr-prompt-ask { padding: var(--space-3) var(--space-4); font-size: 17px; }
.mm-arm-wam .hr-story-copy { min-height: 0; text-align: left; }
.mm-arm-wam .hr-story-copy > p { margin-top: var(--space-2); }
/* Shared rows keep quotes aligned even when names and roles wrap differently. */
.mm-arm-community .hr-story-author { min-height: var(--space-9); align-items: flex-start; }
@supports (grid-template-rows: subgrid) {
  .mm-arm-community .hr-story-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .mm-arm-community .hr-story-copy { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .mm-arm-community .hr-story-author { min-height: 0; }
  .mm-arm-community .mm-arm-story-source { align-self: start; justify-self: start; }
}
/* Fill the square story frame; favor the upper part of the portrait to keep faces and the arm visible. */
.mm-arm-community .mm-arm-user-photo { object-fit: cover; object-position: center 35%; background: var(--media-ink); }
.mm-arm-community .hr-story-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.mm-arm-community .mm-arm-tushar-avatar { overflow: hidden; }
.mm-arm-community .mm-arm-tushar-avatar img { object-position: 30% 50%; transform: scale(1.11); }
.mm-arm-community .hr-story-avatar:focus-visible { outline: 2px solid var(--focus); outline-offset: var(--space-1); }
.mm-arm-story-source { display: inline-block; margin-top: var(--space-4); }
.mm-arm-community .hr-story-author .hr-title a { color: inherit; text-decoration: none; }
.mm-arm-community .hr-story-author .hr-title a:hover { text-decoration: underline; text-underline-offset: var(--space-1); }
.mm-arm-community .hr-story-author .hr-title a:focus-visible { outline: 2px solid var(--focus); outline-offset: var(--space-1); }

.mm-arm-user-handle { display: block; margin-block: var(--space-1); }
.mm-arm-user-handle, .mm-arm-user-company { color: inherit; text-decoration: underline; text-underline-offset: var(--space-1); }
.mm-arm-user-handle:hover, .mm-arm-user-company:hover { color: var(--ink); }
.mm-arm-user-handle:focus-visible, .mm-arm-user-company:focus-visible { outline: 2px solid var(--focus); outline-offset: var(--space-1); }


.mm-arm-wide-head { max-width: none; }
.mm-arm-actuator-photo { aspect-ratio: 4 / 3; }
.mm-arm-actuator-specs { margin-block: var(--space-5); }
.mm-arm-actuator-specs > div { grid-template-columns: 1fr 1.4fr; }
.mm-arm-icon { display: inline-block; width: 1.2em; height: 1.2em; flex-shrink: 0; vertical-align: middle; }
.mm-arm-icon-link { display: inline-flex; align-items: center; gap: var(--space-2); }
#sdk .hr-link .mm-arm-icon { margin-right: var(--space-2); }
.mm-arm-sim-drag { pointer-events: none; }
.mm-arm-setup .hr-lineup-card { display: flex; flex-direction: column; gap: var(--space-5); }
.mm-arm-setup .hr-benefits { margin-top: 0; }
.mm-arm-setup .hr-text-link { align-self: flex-start; margin-top: auto; }
#lineup { scroll-margin-top: var(--space-9); }
#lineup .hr-lineup-media { margin-block: var(--space-5); }
.mm-arm-kit-photo { aspect-ratio: 4 / 3; }
.mm-arm-support { align-items: center; }
@media (max-width: 720px) {
  .mm-arm-wam-duo > .hr-duo + .hr-prompt { max-width: none; }
  .mm-arm-wam .hr-story-copy { padding: var(--space-5); }
  .mm-arm-modes { gap: var(--space-5); }
  .mm-arm-support { align-items: start; }
}

/* A direct play action stays available when the browser blocks autoplay. */
.mm-arm-story-media { position: relative; aspect-ratio: 1; background: var(--media-ink); }
.mm-arm-story-media video { height: 100%; }
.mm-arm-story-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.mm-arm-story-play[hidden] { display: none; }

/* Same fixed-layout, masked hero reveal as Maker Arm Station. */
.mm-arm-product-hero { padding-top: var(--space-6); }
.mm-arm-product-hero > .hr-page, .mm-arm-product-hero .hr-media-caption { box-sizing: border-box; width: 100%; max-width: 1328px; }
.mm-arm-product-hero .hr-media { margin: 0 var(--gutter); }
.mm-arm-product-hero .mm-hero-frame.is-bleed { margin: 0; border-radius: 0; }
.mm-arm-product-hero .is-bleed .hr-chip-bl { left: calc(var(--mm-bleed, 0px) + var(--space-4)); }
@media (min-width: 1488px) { .mm-arm-product-hero .hr-media { margin-inline: calc(50% - 640px); } }
@media (max-width: 720px) { .mm-arm-product-hero .hr-media { margin-inline: var(--space-4); } }
.mm-arm-hero-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title actions" "subtitle price"; align-items: end; gap: var(--space-4) var(--space-6); text-align: left; }
.mm-arm-product-hero .hr-display-xl { grid-area: title; font-size: clamp(2.5rem, 6.1vw, 6rem); line-height: 1.05; white-space: nowrap; }
.mm-arm-product-hero .mm-hero-cta { grid-area: actions; margin: 0; text-align: right; }
.mm-arm-product-hero .mm-hero-actions { justify-content: flex-end; flex-wrap: nowrap; }
.mm-arm-product-hero .mm-hero-line { grid-area: subtitle; max-width: none; margin: 0; }
.mm-arm-hero-price { grid-area: price; margin: 0; text-align: right; color: var(--ink-2); white-space: nowrap; }
.mm-arm-product-hero .mm-figure { margin-top: var(--space-6); }
.mm-arm-product-hero .hr-media { margin-top: 0; }
@media (max-width: 800px) {
  .mm-arm-product-hero { width: 100%; }
  .mm-arm-hero-head { grid-template-columns: 1fr; grid-template-areas: "title" "subtitle" "actions" "price"; text-align: center; }
  .mm-arm-product-hero .hr-display-xl { font-size: clamp(1.75rem, 8.5vw, 4.5rem); }
  .mm-arm-product-hero .mm-hero-cta { margin-top: var(--space-2); }
  .mm-arm-product-hero .mm-hero-actions { justify-content: center; }
  .mm-arm-hero-price { text-align: center; }
}

/* Buyer-guide additions share one desktop height. Existing sections keep their
   original dimensions and layouts; only these new rows opt into this rhythm. */
.mm-arm-guide {
  --arm-guide-height: max(calc(var(--space-11) * 3), calc((min(100vw - var(--gutter) * 2, var(--container)) - var(--measure-narrow) - var(--space-7)) * 9 / 16 + var(--space-8)));
}
.mm-arm-guide-row { min-height: var(--arm-guide-height); grid-template-columns: minmax(0, 1fr) var(--measure-narrow); }
.mm-arm-guide-row > * { min-width: 0; }
.mm-arm-guide-reverse { grid-template-columns: var(--measure-narrow) minmax(0, 1fr); }
.mm-arm-guide-reverse > :first-child { grid-column: 2; grid-row: 1; }
.mm-arm-guide-reverse > .mm-arm-guide-copy { grid-column: 1; grid-row: 1; }
.mm-arm-guide-copy .hr-eyebrow { margin-bottom: var(--space-4); }
.mm-arm-guide-note { margin-top: var(--space-5); }
.mm-arm-follow { margin-top: var(--space-5); }
.mm-arm-follow-stage { aspect-ratio: 4 / 3; background: transparent; border-radius: 0; }
.mm-arm-follow-stage > .mm-arm-follow-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; opacity: 0; }
.mm-arm-follow.is-ready .mm-arm-follow-canvas { opacity: 1; }
.mm-arm-follow.is-ready .mm-arm-follow-poster { opacity: 0; }
.mm-arm-follow-canvas:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; border-radius: inherit; }
.mm-arm-follow-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-3); }
.mm-arm-follow-actions { display: flex; gap: var(--space-2); }
@media (min-width: 961px) {
  #workspace .hr-workspace-stage { height: calc(var(--arm-guide-height) - var(--space-8) - var(--space-4)); aspect-ratio: auto; }
  #specs > header { top: calc(var(--nav-height) + var(--space-5)); }
}
.mm-arm-guide-media video { object-fit: contain; }
.mm-arm-media-placeholder { box-sizing: border-box; aspect-ratio: 16 / 9; padding: var(--space-6); border-radius: var(--radius-lg); }
.mm-arm-media-placeholder .hr-eyebrow { margin: 0; }
.mm-arm-media-placeholder .hr-title { color: var(--ink); }
.mm-arm-guide-panel { box-sizing: border-box; padding: var(--space-6); border: 0; border-radius: var(--radius-lg); background: var(--ground-sunken); }
.mm-arm-guide-panel.hr-specs > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.mm-arm-guide-panel.hr-specs > div:first-child { padding-top: 0; }
.mm-arm-guide-panel.hr-specs > div:last-child { padding-bottom: 0; border-bottom: 0; }
.mm-arm-guide .hr-link:focus-visible { outline: 2px solid var(--focus); outline-offset: var(--space-1); }
@media (max-width: 960px) {
  .mm-arm-guide-row { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .mm-arm-guide-reverse > :first-child, .mm-arm-guide-reverse > .mm-arm-guide-copy { grid-column: auto; grid-row: auto; }
  .mm-arm-guide-copy { max-width: var(--measure); }
  .mm-arm-guide-row:has(.mm-arm-guide-panel) > .mm-arm-guide-copy { order: -1; }
}
@media (max-width: 720px) {
  .mm-arm-guide-panel { padding: var(--space-5); }
  .mm-arm-guide-panel.hr-specs > div { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* First-use drag cue and live simulation status. */
#simulation .mm-arm-sim-intro {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: auto; max-width: calc(100% - var(--space-6));
  padding: var(--space-4) var(--space-5); text-align: center;
  background: var(--scrim); opacity: 0; pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}
#simulation .is-drag-intro .mm-arm-sim-intro { opacity: 1; }
#simulation .hr-sim.is-ready .hr-sim-status::before {
  content: ''; width: var(--space-2); height: var(--space-2); border-radius: 50%;
  background: #64d98b; opacity: .9;
  animation: mm-arm-live-pulse 2.4s ease-in-out infinite;
  animation-play-state: paused;
}
#simulation .hr-sim.is-ready.is-in-view:not(.is-page-hidden) .hr-sim-status::before { animation-play-state: running; }
@keyframes mm-arm-live-pulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #simulation .hr-sim.is-ready .hr-sim-status::before { animation: none; }
  #simulation .mm-arm-sim-intro { transition: none; }
}

/* Computer requirements: connections and local model workflows. */
.mm-arm-platforms { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.mm-arm-platforms > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.mm-arm-platforms img { width: var(--space-5); height: var(--space-5); object-fit: contain; }
.mm-arm-compute-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); }
.mm-arm-compute-list li { display: flex; align-items: flex-start; gap: var(--space-3); }
.mm-arm-compute-list svg { flex: 0 0 var(--space-5); width: var(--space-5); height: var(--space-5); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mm-arm-compute-list strong, .mm-arm-compute-list span { display: block; }
.mm-arm-compute-list strong { font-weight: 600; }
.mm-arm-compute-list span { color: var(--ink-2); margin-top: var(--space-1); }
.mm-arm-compute-links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); margin-top: auto; }

.mm-arm-first-session-video { aspect-ratio: 16 / 9; }

.mm-arm-assembled-photo { overflow: hidden; }
.mm-arm-assembled-photo img { transform: scale(1.4); transform-origin: 50% 65%; }

/* The X embed sizes itself; the blockquote remains readable without its script. */
.mm-arm-community-post { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.mm-arm-community-post > blockquote { box-sizing: border-box; width: 100%; max-width: var(--measure); margin: 0; padding: var(--space-7); border-radius: var(--radius-lg); background: var(--ground-raised); color: var(--ink); }
.mm-arm-community-post > blockquote p { margin: 0 0 var(--space-5); }
.mm-arm-community-post > blockquote a { color: inherit; }
.mm-arm-community-post .twitter-tweet { max-width: 100%; }

.mm-arm-community-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
