/* The design layer of the Monoceros Tools website. Loaded after /assets/base.css,
   whose layout rules stay; every colour in both files comes from the tokens
   below, so this file themes all pages. Appearance follows the system by default and can be changed
   with the header button. */

/* ---------- tokens ---------- */
:root {
  --bg: #ececec;
  --surface: #e3e3e3;
  --ink: #121213;
  --muted: #5f5f63;
  --line: rgb(18 18 19 / 0.14);
  --line-strong: rgb(18 18 19 / 0.5);
  --magenta: #e52e77;
  --teal: #1c8d9d;
  --pink: #e52e77;
  --pink-action: #b4195a;
  --magenta-action: #b4195a;
  --white-text: #ffffff;
  --pink-tint: var(--surface);
  --soft: var(--surface);
  --focus: #1c8d9d;
  --night: #121213;
  --night-muted: #c9c9cc;
  --glass: var(--bg);
  --glass-menu: var(--bg);
  --caption-font: "Mark Pro", "Helvetica Neue", Arial, sans-serif;
  --line-inverse: rgb(236 236 236 / 0.24);
  --muted-inverse: #a9a9ad;
  --success: #1c7d55;
  --error: #b4195a;
  /* 3D scenes, read by stage.js and figure.js */
  --scene-model: #d8d8d8;
  --seating-seat: #93aea4;
  --seating-backrest: #527981;
  --seating-person: #d8bda6;
  --scene-model-roughness: 0.84;
  --scene-entropy-all: #ffffff;
  --scene-entropy-few: #000000;
  --scene-entropy-one: #1c9d68;
  --scene-connector: #1c8d9d;
  --scene-shadow: #000000;
  --scene-shadow-alpha: 0.32;
  --scene-sky: #ffffff;
  --scene-ground: #8f8f8f;
  --scene-hemi: 0.55;
  --scene-key: 2.1;
  --scene-fill: 0.35;
  --scene-env: 0.22;
  --scene-ao: 1;
  /* the Monoceros module palette, for figures on project pages */
  --palette-teal: #1c8d9d;
  --palette-magenta: #e52e77;
  --palette-dark: #3a3a3e;
  --palette-light: #f2f2f2;
  /* type and space */
  --title: clamp(40px, 6vw, 100px);
  --heading: clamp(30px, 3.5vw, 56px);
  --component: clamp(20px, 1.7vw, 26px);
  --gutter: clamp(16px, 2.4vw, 40px);
  --section: clamp(64px, 9vw, 140px);
  --gap: clamp(20px, 2.6vw, 40px);
  --max: 1680px;
  --masthead: 60px;
  --header-action-width: 104px;
  --header-action-height: 36px;
  --header-action-font: 14px;
  --header-control-width: 22px;
  --header-gap: 18px;
  --consent-space: 136px;
  --product-bar: 48px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #242426;
  --surface: #2e2e31;
  --ink: #e9e9ea;
  --muted: #a1a1a6;
  --line: rgb(233 233 234 / 0.14);
  --line-strong: rgb(233 233 234 / 0.5);
  --pink-action: #ff5c9a;
  --focus: #3cc3d4;
  --night: #242426;
  --night-muted: #a1a1a6;
  --scene-model: #bfbfbf;
  --seating-seat: #a1c0b4;
  --seating-backrest: #719ba3;
  --seating-person: #e2c9b2;
  --scene-model-roughness: 0.8;
  --scene-entropy-all: #f4f4f4;
  --scene-entropy-few: #4a4a4f;
  --scene-entropy-one: #2fbf82;
  --scene-connector: #3cc3d4;
  --scene-shadow: #000000;
  --scene-shadow-alpha: 0.5;
  --scene-sky: #b9bec7;
  --scene-ground: #242426;
  --scene-hemi: 0.65;
  --scene-key: 2.4;
  --scene-fill: 0.7;
  --scene-env: 0.4;
  --scene-ao: 0;
  --line-inverse: rgb(18 18 20 / 0.2);
  --muted-inverse: #55555a;
  --success: #2fbf82;
  --error: #ff5c9a;
  --palette-dark: #6b6b72;
  --palette-light: #d8d8dc;
  color-scheme: dark;
}

/* ---------- base ---------- */
html { background: var(--bg); scroll-padding-top: calc(var(--masthead) + 24px); }
html:has(body.product-page) { scroll-padding-top: calc(var(--masthead) + var(--product-bar) + 24px); }
body { background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.55; text-rendering: optimizeLegibility; }
h1, h2 { letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--title); }
h3 { letter-spacing: -0.015em; }
p { text-wrap: pretty; }
em { color: var(--muted); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
main { padding-top: var(--masthead); }
.home-page main, .product-page main { padding-top: 0; }
figcaption, .credit, .fine-print { color: var(--muted); font-size: 14px; }
img { background: var(--surface); }
.brand img, .live-fallback, .scene-fallback img, .foot-brand img { background: none; }
.eyebrow, .tag, .card-meta, .index-number, .page-intro .eyebrow { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--muted); }
.eyebrow { display: block; margin: 0 0 22px; }
.card-meta { font-size: 14px; }
.inline-link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-strong); transition: color .3s var(--ease), text-decoration-color .3s var(--ease); }
.inline-link:hover { color: var(--pink-action); text-decoration-color: currentColor; }

/* ---------- actions ---------- */
.button { min-height: 48px; padding: 13px 22px; gap: 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-size: 15px; letter-spacing: 0; transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.button:hover { background: var(--pink-action); border-color: var(--pink-action); color: var(--bg); }
.button-secondary, .button.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.text-link { position: relative; border-bottom: 0; padding: 8px 0 6px; min-height: 40px; font-size: 15px; color: var(--ink); }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; opacity: .35; transition: opacity .3s var(--ease); }
.text-link:hover { color: var(--pink-action); }
.text-link:hover::after { opacity: 1; }
.actions { gap: 14px 28px; }

/* ---------- masthead: fixed on every page ---------- */
.masthead { position: fixed; z-index: 30; inset: 0 0 auto; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .4s var(--ease); }
.masthead.is-scrolled, .product-page .masthead { border-bottom-color: var(--line); }
.masthead-inner { height: var(--masthead); display: flex; align-items: stretch; gap: var(--header-gap); padding-inline: var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.masthead .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: 0.01em; text-transform: none; margin-right: auto; white-space: nowrap; }
.masthead .brand img { width: 30px; height: 40px; }
.masthead #site-nav { display: flex; align-items: stretch; gap: 0; font-size: 15px; width: auto; padding: 0; min-height: 0; flex-wrap: nowrap; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item.is-wide { position: static; }
.nav-link { display: inline-flex; align-items: center; height: 100%; padding: 0 clamp(8px, 0.9vw, 14px); position: relative; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: clamp(8px, 0.9vw, 14px); right: clamp(8px, 0.9vw, 14px); bottom: 18px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-item:hover .nav-link::after, .nav-link[aria-current]::after, .nav-item.is-open .nav-link::after { transform: scaleX(1); transform-origin: left; }
.nav-open { width: 16px; margin-left: -6px; margin-right: 2px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; align-self: center; height: 28px; }
.nav-open::before { content: ""; display: block; width: 6px; height: 6px; margin: 0 auto; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.nav-item.is-open .nav-open::before { transform: translateY(1px) rotate(225deg); }
.nav-panel { position: absolute; top: 100%; left: 0; min-width: 260px; padding: 22px 26px 26px; background: var(--bg); border: 1px solid var(--line); border-top: 0; display: flex; gap: 48px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s linear .25s; }
.nav-item.is-wide .nav-panel { left: 0; right: 0; top: var(--masthead); border-inline: 0; padding: 28px max(var(--gutter), calc((100vw - var(--max)) / 2)) 32px; justify-content: flex-end; gap: clamp(32px, 5vw, 88px); }
@media (hover: hover) {
  .nav-item.has-panel:hover .nav-panel { opacity: 1; visibility: visible; transform: none; transition-delay: .06s, .06s, 0s; }
}
.nav-item.has-panel:focus-within .nav-panel, .nav-item.is-open .nav-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-group { display: flex; flex-direction: column; min-width: 180px; }
.nav-group-title { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.nav-group a { padding: 5px 0; font-size: 15px; white-space: nowrap; transition: color .2s var(--ease); }
.nav-group a:hover { color: var(--pink-action); }
.nav-cta { flex: none; align-self: center; display: inline-flex; align-items: center; justify-content: center; width: var(--header-action-width); height: var(--header-action-height); padding: 0; margin-left: 8px; background: var(--ink); color: var(--bg); font-size: var(--header-action-font); line-height: 1; white-space: nowrap; transition: background-color .3s var(--ease); }
.nav-cta:hover { background: var(--pink-action); }
.masthead .menu-toggle { display: none; }
.nav-theme { display: none; }
.theme-toggle { flex: none; align-self: center; width: 22px; height: 22px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.theme-toggle span { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* ---------- Monoceros product bar ---------- */
.product-bar { position: sticky; z-index: 25; top: var(--masthead); margin-top: var(--masthead); background: var(--bg); border-bottom: 1px solid var(--line); }
.product-bar-inner { height: var(--product-bar); display: flex; align-items: center; gap: 28px; padding-inline: var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.product-name { font-size: 16px; letter-spacing: -0.01em; flex: none; white-space: nowrap; }
.product-links { display: flex; gap: clamp(14px, 1.8vw, 26px); font-size: 14px; color: var(--muted); overflow-x: auto; scrollbar-width: none; flex: 1; }
.product-links::-webkit-scrollbar { display: none; }
.product-links a { white-space: nowrap; padding: 6px 0; position: relative; transition: color .2s var(--ease); }
.product-links a:hover, .product-links a[aria-current] { color: var(--ink); }
.product-links a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.product-get { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--header-action-width); height: var(--header-action-height); padding: 0; margin-right: calc(var(--header-control-width) + var(--header-gap)); background: var(--magenta-action); color: var(--white-text); font-size: var(--header-action-font); line-height: 1; transition: background-color .3s var(--ease); }
.product-get:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 760px) {
  :root { --product-bar: 92px; }
  .product-bar-inner { height: auto; flex-wrap: wrap; gap: 0 16px; padding-block: 10px 0; }
  .product-name { flex: 1; min-width: 0; font-size: 15px; white-space: normal; line-height: 1.2; }
  .product-links { order: 3; flex: 0 0 100%; padding: 6px 0 8px; }
}

/* ---------- mobile menu ---------- */
@media (max-width: 1180px) {
  :root { --header-control-width: 44px; --header-action-height: 44px; }
  .masthead .menu-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; align-self: center; width: var(--header-control-width); min-height: 44px; padding: 0; margin: 0; border: 0; background: none; color: var(--ink); font-size: 15px; gap: 10px; }
  .masthead .menu-toggle span, .masthead .menu-toggle[aria-expanded=true] span { transform: none; }
  .js .masthead #site-nav { display: none; }
  .js .masthead #site-nav.is-open { display: block; position: fixed; inset: var(--masthead) 0 0; height: calc(100dvh - var(--masthead)); max-height: none; padding: 20px var(--gutter) 48px; background: var(--bg); overflow-y: auto; }
  .js .masthead #site-nav.is-open .nav-item { display: block; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .js .masthead #site-nav.is-open .nav-link { height: auto; padding: 0; font-size: clamp(26px, 6vw, 36px); letter-spacing: -0.03em; }
  .js .masthead #site-nav.is-open .nav-link::after, .js .masthead #site-nav.is-open .nav-open { display: none; }
  .js .masthead #site-nav.is-open .nav-panel { display: none; }
  .js .masthead #site-nav.is-open .nav-theme { display: flex; align-items: center; gap: 12px; border-bottom: 0; color: var(--muted); font-size: 15px; }
  .masthead-inner > .theme-toggle { display: none; }
  .no-js .masthead-inner { height: auto; flex-wrap: wrap; padding-block: 12px; }
  .no-js .masthead #site-nav { flex-wrap: wrap; width: 100%; }
  .no-js .nav-panel { display: none; }
}
@media (max-width: 520px) {
  :root { --header-action-width: 90px; --header-action-font: 13px; --header-gap: 14px; }
  .nav-cta { margin-left: 0; }
  .masthead .brand { gap: 8px; }
  .masthead .brand span { font-size: 16px; }
  .masthead .brand img { width: 24px; height: 32px; }
  .masthead .menu-toggle { min-width: 44px; }
}
@media (min-width: 360px) and (max-width: 379px) {
  .masthead .brand span { font-size: 14px; }
}
@media (max-width: 359px) {
  .masthead .brand span { display: none; }
}
html.menu-open { overflow: hidden; }

/* ---------- page openings ---------- */
.page-intro { padding-top: clamp(56px, 9vw, 140px); padding-bottom: clamp(36px, 5vw, 72px); }
.page-intro h1 { max-width: 15em; }
.page-intro .lead, .lead { font-size: clamp(18px, 1.5vw, 23px); line-height: 1.45; letter-spacing: -0.01em; max-width: 34em; }
.breadcrumb { margin-top: 28px; font-size: 14px; }
.breadcrumb + .page-intro { padding-top: 28px; }
.jump-nav { gap: 6px 26px; }
.jump-nav a { border-bottom: 0; position: relative; }
.jump-nav a:hover { color: var(--pink-action); }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.soft-section { background: var(--surface); }
.section-heading h2, .text-split h2, .story-side h2, .next-links h2 { font-size: var(--heading); }
.service-card, .resource-grid article { border-top: 1px solid var(--line); }
.service-card h3, .resource-grid h3, .method-steps h3, .process-grid h3 { font-size: var(--component); }
.method-steps li > span, .process-grid li > span, ol.plain-list li::before, ul.plain-list li::before { color: var(--muted); }
.plain-list li { border-bottom: 0; padding-block: 7px; }
.service-detail, .bio-grid, .experience-section, .section-foot { border-top: 0; }
.note { background: var(--surface); border-left: 2px solid var(--teal); }
.price-card, .tool-card { border-color: var(--line); background: transparent; }
.price-featured { border-top: 2px solid var(--ink); }
.tailored-banner { background: var(--surface); }
.project-image { background: transparent; }
.study-image { background: var(--surface); }
.project-image img { aspect-ratio: 1; object-fit: cover; background: transparent; transition: transform 1.2s var(--ease); }
.project-card:hover .project-image img { transform: scale(1.02); }
.project-card h3 a:hover, .resource-list > a:hover h3, .resource-list > a:hover span { color: var(--pink-action); }
.filter-bar button[aria-pressed=true] { border-color: var(--ink); color: var(--ink); }
.contact-band { background: var(--surface); }
details > summary { cursor: pointer; }
textarea { background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); }
.block-label { font-size: 15px; letter-spacing: 0; color: var(--muted); margin-bottom: 24px; }
.earlier-grid { grid-template-columns: repeat(4, 1fr); gap: 48px var(--gap); }
.earlier-grid .project-card h3 { font-size: 19px; margin: 14px 0 4px; }
.card-line { margin: 0 0 6px; font-size: 14px; color: var(--muted); }

/* Service scopes are always open; their items rise in as the section arrives. */
.service-scope { margin: 22px 0 26px; }
.service-scope-title { margin: 14px 0 4px; font-size: 14px; color: var(--muted); }
.service-scope .plain-list { margin: 0; }
.js .service-scope li { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.js .service-scope.is-in li { opacity: 1; transform: none; }
.js .service-scope.is-in li:nth-child(2) { transition-delay: .12s; }
.js .service-scope.is-in li:nth-child(3) { transition-delay: .24s; }
.service-media { display: grid; gap: 28px; min-width: 0; }
.service-detail .service-screenshot { margin: 0; }
.service-detail .service-screenshot img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.service-screenshot .screenshot-link { display: block; border: 1px solid var(--line); background: var(--white-text); }
.service-screenshot figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.service-media-note { margin: 0; color: var(--muted); font-size: 16px; }
.tool-card > img { object-fit: contain; background: var(--white-text); }
/* The supplied Grasshopper canvas keeps its transparent background. */
img.grasshopper-definition,
figure:has(.grasshopper-definition),
.screenshot-link:has(.grasshopper-definition),
.tool-card:has(.grasshopper-definition) { background: transparent; border: 0; box-shadow: none; }
.tool-card > img.grasshopper-definition { aspect-ratio: auto; }


/* ---------- closing contact block ---------- */
.closing { padding-block: clamp(80px, 12vw, 180px); }
.closing-grid, .project-cta { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; padding-top: clamp(28px, 3.5vw, 48px); border-top: 2px solid var(--ink); }
.closing h2, .project-cta h2 { font-size: var(--heading); max-width: 12em; grid-column: 1 / 8; margin: 0; }
.closing-grid > div, .project-cta > div { grid-column: 8 / 13; }
.closing-grid > div > p:not(.closing-links), .project-cta > div > p:not(.closing-links) { color: var(--muted); max-width: 30em; margin: 0 0 26px; }
.closing-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 0; }
.closing-email { font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -0.02em; line-height: 1.1; transition: color .3s var(--ease); }
.closing-email:hover { color: var(--pink-action); }

/* ---------- footer: the site map ---------- */
.site-foot { padding-block: 64px 28px; font-size: 14px; position: relative; z-index: 4; background: var(--surface); }
.foot-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px var(--gap); align-items: baseline; margin-bottom: 48px; }
.foot-brand { grid-column: 1 / 5; display: inline-flex; align-items: center; gap: 10px; font-size: 18px; }
.foot-brand img { width: 30px; height: 40px; }
.foot-top p { grid-column: 5 / 10; margin: 0; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -0.015em; line-height: 1.3; }
.foot-email { grid-column: 10 / 13; justify-self: end; font-size: 16px; }
.foot-email:hover { color: var(--pink-action); }
.foot-grid { display: grid; gap: 32px var(--gap); }
.foot-grid > * { min-width: 0; }
.foot-col h2 { font-size: 15px; letter-spacing: 0; margin-bottom: 12px; }
.foot-col a:not(h2 a) { display: block; padding-block: 3px; color: var(--muted); width: max-content; max-width: 100%; transition: color .2s var(--ease); }
.foot-col a:hover, .foot-bottom a:hover { color: var(--pink-action); }
.foot-sub { margin: 14px 0 4px; font-size: 13px; color: var(--ink); }
.foot-group .foot-sub:first-child { margin-top: 0; }
.foot-grid { grid-template-columns: 3fr repeat(4, 1fr); }
.foot-software .foot-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.foot-bottom p { margin: 0; }
.foot-bottom div { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- live figures ---------- */
.live-figure { margin: 0; }
.live-figure-stage { position: relative; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; touch-action: pan-y; cursor: grab; }
.live-figure-stage:active { cursor: grabbing; }
.live-figure-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s var(--ease); }
.live-figure-stage.is-live canvas { opacity: 1; }
.live-figure-stage .live-fallback { width: 100%; height: 100%; object-fit: contain; transition: opacity .6s var(--ease); }
.live-figure-stage.is-live .live-fallback { opacity: 0; }
.live-figure-hint { position: absolute; left: 0; bottom: 8px; margin: 0; font-size: 13px; color: var(--muted); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.live-figure-stage.is-live .live-figure-hint { opacity: 1; }
.live-figure-stage.has-turned .live-figure-hint { opacity: 0; }
.live-figure figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 12px; font-size: 14px; }
.live-figure-title { color: var(--ink); }
.live-figure-readout { font-variant-numeric: tabular-nums; }
.live-figure-again { margin-left: auto; padding: 4px 0; border: 0; border-bottom: 1px solid var(--line-strong); background: none; color: var(--ink); font: inherit; cursor: pointer; }
.live-figure-again:hover { color: var(--pink-action); border-color: currentColor; }
.kit-picker { display: inline-flex; flex-wrap: wrap; gap: 0; margin-bottom: 14px; border: 1px solid var(--line-strong); }
.kit-picker button { padding: 9px 14px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.kit-picker button:last-child { border-right: 0; }
.kit-picker button:hover { color: var(--ink); }
.kit-picker button[aria-checked=true] { background: var(--ink); color: var(--bg); }
.live-description { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.live-online { max-width: calc(var(--max) + 2 * var(--gutter)); }
.live-online .live-figure-stage { aspect-ratio: 16 / 8; }
.live-online { padding-bottom: 32px; }
.project-live { max-width: calc(var(--max) + 2 * var(--gutter)); }
.project-live .live-figure-stage { aspect-ratio: 16 / 8; }

/* ---------- Software pages ---------- */
.product-actions-row { padding-bottom: clamp(24px, 4vw, 48px); }
.product-actions-row .actions { margin: 0; }
.software-actions { flex-direction: column; align-items: flex-start; }
.software-primary-actions { display: grid; gap: 12px; max-width: 100%; }
.software-resource-actions { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.product-overview { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.product-overview h2 { font-size: var(--heading); margin-bottom: 22px; }
.facts { margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.other-software { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px) var(--gap); }
.other-item { border-top: 1px solid var(--line); padding-top: 18px; }
.other-item h2 { font-size: var(--component); letter-spacing: -0.02em; margin-bottom: 14px; }
.other-item > p:not(.tag) { color: var(--muted); max-width: 36em; }
.other-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }

/* ---------- homepage scene ---------- */
.scene-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.scene-canvas.is-live { opacity: 1; }
.scene-canvas.is-away, .scene-canvas.is-switching { opacity: 0; }
.scene-fallback { position: fixed; inset: auto 0 0 auto; width: min(62vw, 980px); margin: 0; z-index: 0; pointer-events: none; transition: opacity .8s var(--ease); }
.scene-fallback img { width: 100%; height: auto; }
.js .scene-fallback { opacity: 0; }
.no-js .scene-fallback, .scene-failed .scene-fallback { opacity: 1; position: absolute; top: calc(var(--masthead) + 4vh); bottom: auto; right: var(--gutter); }
.home-page main > section, .home-page .closing { position: relative; z-index: 1; }
.scene-readout { position: fixed; z-index: 2; right: var(--gutter); bottom: 18px; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; max-width: 52ch; transition: opacity .6s var(--ease), transform .4s var(--ease); }
.scene-readout p { margin: 0; }
.scene-actions { display: flex; justify-content: flex-end; gap: 18px; margin-top: 6px; transition: opacity .4s var(--ease); }
.scene-actions button { padding: 4px 0; border: 0; border-bottom: 1px solid var(--line-strong); background: none; color: var(--ink); font: inherit; cursor: pointer; }
.scene-actions button { min-height: 44px; }
.scene-actions button:hover { color: var(--pink-action); border-color: currentColor; }
.scene-actions button[disabled] { opacity: .4; cursor: progress; }
.scene-readout:not(.is-hero) [data-scene-again] { display: none; }
.scene-readout.is-away, .no-js .scene-readout { opacity: 0; pointer-events: none; }

/* ---------- homepage stages: one window each; stage.js snaps the page to them ---------- */
.mobile-copy { display: none; }
.kit-select { display: none; }
.booking-details > summary { display: none; }
.stages { position: relative; z-index: 1; }
/* The browser owns wheel, trackpad and touch momentum; stage.js follows it. */
html.has-stages { scroll-behavior: auto; }
html.snap-stages { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
.has-stages .stage, .has-stages .home-rest { scroll-snap-align: start; scroll-snap-stop: always; scroll-margin-top: 0; }
.home-rest { position: relative; z-index: 1; }
.stage { position: relative; height: 100vh; height: 100svh; display: flex; align-items: center; padding: var(--masthead) var(--gutter) 0; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; pointer-events: none; }
.stage a, .stage button { pointer-events: auto; }
.stage-hero { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-bottom: clamp(56px, 9svh, 110px); }
.statement { font-size: clamp(34px, 4.6vw, 80px); font-weight: 400; line-height: 1.08; letter-spacing: -0.025em; }
.statement span { display: block; }
.statement-note { margin-top: 22px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: none; }
.stage-copy { width: min(34ch, 100%); }
.stage-hero .stage-copy { width: min(56vw, 970px); }
.demo-skip { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 80px; min-height: 54px; color: var(--muted); text-decoration: none; font-size: 12px; }
.demo-skip-label { opacity: 0; transition: opacity .2s; }
.consent-open .demo-skip { bottom: calc(12px + var(--consent-space, 0px)); }
.demo-skip:hover, .demo-skip:focus-visible { color: var(--ink); }
.demo-skip:hover .demo-skip-label, .demo-skip:focus-visible .demo-skip-label { opacity: 1; }
@media (hover: none) { .demo-skip-label { opacity: 1; } }
.stage-index { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 16px; }
.stage h2 { font-size: clamp(28px, 2.8vw, 46px); margin-bottom: 14px; }
.stage-text { color: var(--muted); font-size: 16px; max-width: 32ch; }
.js .stage-hero .stage-copy > * { animation: stage-rise 1.1s var(--ease) both; }
.js .stage-hero .statement-note { animation-delay: .12s; }
@keyframes stage-rise { from { opacity: 0; transform: translateY(0.5em); } }
/* The heading arrives with its stage; its text follows once the page rests there. */
.has-stages .stage-text { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.has-stages .stage.is-settled .stage-text { opacity: 1; transform: none; transition-delay: .1s; }

/* The offer: a full window of its own, shown while the page rests on it. */
.stage-offer { display: block; max-width: none; padding: 0; }
.offer-panel { min-height: 100%; display: flex; align-items: center; background: var(--ink); color: var(--bg); pointer-events: auto; }
.has-stages .offer-panel { position: fixed; z-index: 3; inset: 0; align-items: safe center; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.has-stages.offer-on .offer-panel, .has-stages .offer-panel:has(:focus-visible) { opacity: 1; }
/* .stage a enables links, so hide their hit targets explicitly with the panel. */
.has-stages .offer-panel a { pointer-events: none; }
.has-stages.offer-ready .offer-panel, .has-stages.offer-ready .offer-panel a,
.has-stages .offer-panel:has(:focus-visible), .has-stages .offer-panel:has(:focus-visible) a { pointer-events: auto; }
.offer-inner { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding: calc(var(--masthead) + 5vh) var(--gutter) 6vh; }
.offer-eyebrow { margin: 0 0 22px; font-size: 15px; color: var(--muted-inverse); }
.offer-panel h2 { font-size: var(--title); max-width: 13em; margin-bottom: clamp(36px, 7vh, 80px); }
.offer-items { list-style: none; margin: 0 0 clamp(36px, 6vh, 64px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.offer-items a { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-inverse); transition: color .3s var(--ease); }
.offer-items a:hover { color: var(--palette-magenta); }
.offer-index { font-size: 13px; color: var(--muted-inverse); font-variant-numeric: tabular-nums; }
.offer-name { font-size: var(--component); letter-spacing: -0.02em; line-height: 1.15; }
.offer-text { color: var(--muted-inverse); font-size: 15px; max-width: 28em; }
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.button-light { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.button-light:hover { background: var(--palette-magenta); border-color: var(--palette-magenta); color: var(--white-text); }
.offer-link { font-size: 15px; color: var(--bg); border-bottom: 1px solid var(--line-inverse); padding-block: 6px; }
.offer-link:hover { border-color: currentColor; }

/* ---------- homepage content blocks ---------- */
.home-block { padding-block: clamp(80px, 12vw, 180px); background: var(--bg); }
#monoceros.home-block { padding-top: clamp(120px, 16vh, 220px); background: linear-gradient(to bottom, transparent 0, var(--bg) clamp(110px, 20vh, 240px)); }
.block-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.block-head h2 { font-size: var(--heading); grid-column: 1 / 8; }
.block-head p { grid-column: 8 / 13; color: var(--muted); max-width: 30em; margin: 0; }
.block-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; margin-top: clamp(32px, 4vw, 56px); color: var(--muted); }
.product-block { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.product-copy { grid-column: 1 / 6; }
.product-block figure { grid-column: 7 / 13; margin: 0; }
.product-copy h2 { font-size: var(--title); margin-bottom: 20px; }
.product-copy > p:not(.block-lead):not(.eyebrow) { color: var(--muted); max-width: 34em; }
.product-block figure img { width: 100%; height: auto; }
.product-block .gh-definition { background: transparent; }
.work-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.work-card { display: block; min-width: 0; }
.work-card figure { margin: 0 0 14px; overflow: hidden; }
.work-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: transparent; transition: transform 1.4s var(--ease); }
.work-card:hover img { transform: scale(1.03); }
.work-title { font-size: clamp(17px, 1.3vw, 21px); letter-spacing: -0.015em; margin: 0; }
.work-meta, .work-credit { font-size: 14px; color: var(--muted); margin: 0; }
.work-credit { margin-top: 2px; }
.invite { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; margin-top: clamp(40px, 5vw, 72px); padding-block: clamp(22px, 3vw, 40px); border-bottom: 2px solid var(--ink); transition: color .3s var(--ease); }
.invite-title { grid-column: 1 / 8; font-size: clamp(26px, 3vw, 48px); letter-spacing: -0.035em; line-height: 1.05; }
.invite-text { grid-column: 8 / 12; color: var(--muted); font-size: 15px; }
.invite-arrow { grid-column: 12 / 13; justify-self: end; font-size: clamp(24px, 2.4vw, 36px); transition: transform .5s var(--ease); }
.invite:hover { color: var(--pink-action); }
.invite:hover .invite-arrow { transform: translateX(8px); }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 112px); align-items: center; }
.split h2 { font-size: var(--heading); margin-bottom: 22px; }
.split figure img { width: 100%; height: auto; }
.split-reverse { grid-template-columns: 1.15fr 1fr; }
.block-lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; letter-spacing: -0.01em; max-width: 30em; }
.link-list { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list .text-link { display: block; padding: 12px 0; }
.link-list .text-link::after { display: none; }
.role-list { list-style: none; padding: 0; margin: 26px 0 22px; border-top: 1px solid var(--line); }
.role-list li { display: grid; grid-template-columns: 7.5em 1fr; gap: 2px 18px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.role-list li span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; grid-row: span 2; }
.role-list li span:last-child { color: var(--muted); }
.people-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.people-grid figure { grid-column: span 3; margin: 0; }
.people-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; filter: grayscale(1); }
.people-grid figcaption { margin-top: 12px; }
.people-grid figcaption span { display: block; color: var(--ink); font-size: 16px; }
.people-text { grid-column: 8 / 13; color: var(--muted); }
.people-text p { margin-bottom: 18px; }


/* ---------- project pages ---------- */
.project-opening { align-items: start; }
.project-opening .project-hero { position: sticky; top: calc(var(--masthead) + 24px); }
.project-opening .project-hero img { object-fit: cover; }
.project-media img { object-fit: cover; }
.project-account h2 { font-size: var(--heading); margin-bottom: 18px; }
.project-account .lead { margin-bottom: 8px; }
.project-account h3 { font-size: var(--component); margin: 34px 0 10px; }
.project-account > p:not(.lead):not(.credit) { color: var(--muted); max-width: 38em; }
.project-account .credit { margin-top: 34px; max-width: 38em; }
.project-cta { margin-top: var(--section); }
.related-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-bottom: clamp(28px, 3vw, 44px); }
.related-head h2 { font-size: var(--heading); }
.related .related-grid { max-width: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.earlier-grid .project-image img, .related-grid .project-image img { aspect-ratio: 1; width: 100%; object-fit: cover; background: transparent; }

/* ---------- contact: the calendar and the form on the page ---------- */
.contact-options { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 112px); align-items: start; padding-bottom: var(--section); }
.contact-option h2 { font-size: var(--title); margin-bottom: 10px; }
.contact-sub { color: var(--muted); font-size: clamp(17px, 1.3vw, 20px); max-width: 30em; margin-bottom: 28px; }
.scheduler { min-height: 420px; border-top: 2px solid var(--ink); padding-top: 20px; }
.scheduler, .scheduler-theme {
  --sched-font: "Mark Pro", "Helvetica Neue", Arial, sans-serif; --sched-font-light: "Mark Pro", "Helvetica Neue", Arial, sans-serif;
  --sched-text: var(--ink); --sched-muted: var(--muted); --sched-bg: var(--bg); --sched-bg-subtle: var(--surface); --sched-bg-raised: var(--surface);
  --sched-border: var(--line-strong); --sched-border-soft: var(--line); --sched-accent: var(--ink); --sched-accent-hover: var(--pink-action);
  --sched-accent-soft: var(--surface); --sched-accent2: var(--ink); --sched-text-inverse: var(--bg); --sched-focus-ring: var(--focus); --sched-scroll-offset: 90px;
  --sched-radius: 0px; --sched-radius-sm: 0px; }
/* Host rules also override the widget's scoped button reset. */
.scheduler .mc-type-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 18px 20px; border: 1px solid var(--line); }
.scheduler .mc-type-card:hover { background: var(--surface); border-color: var(--ink); }
.scheduler .mc-type-name { margin: 0; text-transform: none; }
.scheduler .mc-type-duration { margin: 0; white-space: nowrap; }
.scheduler .mc-type-duration svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.scheduler .mc-type-desc { grid-column: 1 / -1; }
.scheduler .mc-step-title { text-transform: none; }
.scheduler .mc-btn, .scheduler .mc-slot-confirm { min-height: 44px; background: var(--ink); color: var(--bg); text-transform: none; letter-spacing: 0; }
.scheduler .mc-btn:hover, .scheduler .mc-slot-confirm:hover { background: var(--pink-action); color: var(--bg); }
.scheduler .mc-btn-outline { background: transparent; color: var(--ink); }
@media (min-width: 900px) { .scheduler .mc-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scheduler-fallback { border-top: 2px solid var(--ink); padding-top: 20px; font-size: clamp(17px, 1.3vw, 20px); }
.contact-form { display: grid; gap: 18px; border-top: 2px solid var(--ink); padding-top: 20px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.contact-form textarea { resize: vertical; min-height: 170px; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form-status { margin: 0; font-size: 15px; color: var(--muted); }
.form-status.is-sent { color: var(--success); }
.form-status.is-error { color: var(--error); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The host owns booking pages; the scheduler owns its API and widget. */
.booking-panel { padding-top: 0; }
.booking-panel > .scheduler, #manage-app { max-width: 1100px; }
.booking-list { list-style: none; padding: 0; margin: 0; max-width: 1000px; }
.booking-item { padding-block: 28px; border-top: 1px solid var(--line); }
.booking-name { font-size: var(--component); margin-bottom: 8px; }
.booking-meta, .booking-desc { color: var(--muted); margin-bottom: 12px; }
.booking-desc { max-width: 46ch; }
.booking-type-details > summary { display: none; }
.booking-url { display: block; margin-top: 18px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.booking-status { font-size: 14px; margin: 8px 0 0; }
.booking-copy-buffer { position: fixed; left: -10000px; }
.manage-card { border-top: 2px solid var(--ink); max-width: 700px; }
.manage-row { padding-block: 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.manage-row strong { font-weight: 400; color: var(--muted); }
.manage-row a { text-decoration: underline; text-underline-offset: 3px; }
.manage-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 24px; }
.manage-reason { max-width: 700px; margin-top: 24px; }
.manage-reason label { display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.manage-reason textarea { width: 100%; min-height: 100px; padding: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.manage-hidden { display: none; }
#reschedule-mount { margin-top: 32px; }
.mt12 { margin-top: 12px; }

/* ---------- teaching record and pages taken over from the main website ---------- */
.teaching-record { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.record-group h3 { font-size: 15px; letter-spacing: 0; color: var(--muted); margin: 0; }
.record-group .role-list { margin-top: 14px; }
.record-note { margin-top: clamp(32px, 4vw, 56px); max-width: 52em; color: var(--muted); }
.imported-page { max-width: calc(76ch + 2 * var(--gutter)); margin-inline: auto; }
.imported-page .imported > :first-child { margin-top: 0; }
.imported-page h2 { font-size: var(--component); letter-spacing: -0.02em; margin: 44px 0 14px; }
.imported-page h3 { font-size: 18px; letter-spacing: -0.01em; margin: 28px 0 8px; }
.imported-page p, .imported-page li { color: var(--muted); }
/* Long file paths in the policies wrap instead of widening the page. */
.imported code { overflow-wrap: anywhere; }
.imported-page .plain-list { margin: 8px 0 18px; }
.imported-page .cols-2 { gap: clamp(24px, 3vw, 48px); }
.imported-page .cols-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px var(--gap); }
.imported-page:has(.cols-2) { max-width: calc(var(--max) + 2 * var(--gutter)); }
.legal-text h2 { margin-top: 40px; }
/* The agreement writes addresses as plain text; they wrap on the narrowest phones. */
.legal-text { overflow-wrap: anywhere; }
.imported .docs-card { display: block; padding: 16px 0 18px; border-top: 1px solid var(--line); color: var(--ink); transition: color .2s var(--ease); }
.imported .docs-card:hover { color: var(--pink-action); }
.imported .pricing-card { border-top: 1px solid var(--line); padding-top: 14px; }
.imported .pricing-card h3 { margin-top: 0; }
.imported .table-scroll { overflow-x: auto; margin: 16px 0 28px; }
.imported table { width: 100%; border-collapse: collapse; font-size: 15px; }
.imported th, .imported td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.imported th { color: var(--muted); font-weight: 400; }

/* ---------- cookie consent: a small card that leaves the page usable ---------- */
.consent { position: fixed; z-index: 35; right: var(--gutter); bottom: 18px; width: min(380px, calc(100vw - 2 * var(--gutter))); padding: 16px 18px; background: var(--bg); border: 1px solid var(--line-strong); opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.consent.is-in { opacity: 1; transform: none; }
.consent p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.consent a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; white-space: nowrap; }
.consent a:hover { color: var(--pink-action); }
/* Accepting and declining are equally easy: the same two buttons. */
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-actions button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: inherit; font-size: 14px; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.consent-actions button:hover { background: var(--pink-action); border-color: var(--pink-action); }
/* While the card is open, the scene readout stands above it. */
.consent-open .scene-readout { transform: translateY(calc(-1 * var(--consent-space))); }
.foot-bottom button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transition: color .2s var(--ease); }
.foot-bottom button:hover { color: var(--pink-action); }
.no-js [data-consent-open] { display: none; }

/* ---------- reveal on scroll for content blocks ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .earlier-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .foot-software { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .split, .split-reverse, .product-overview { grid-template-columns: 1fr; }
  .split-reverse figure { order: 2; }
  .block-head h2, .block-head p, .closing h2, .closing-grid > div, .project-cta h2, .project-cta > div, .product-copy, .product-block figure, .invite-title, .invite-text { grid-column: 1 / -1; }
  .offer-items, .teaching-record, .contact-options { grid-template-columns: 1fr; }
  .related .related-grid { grid-template-columns: repeat(3, 72vw); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .related .related-grid::-webkit-scrollbar { display: none; }
  .related .project-card { scroll-snap-align: start; }
  .project-opening .project-hero { position: static; }
  .invite-arrow { display: none; }
  .work-row { grid-template-columns: repeat(4, 72vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .work-row::-webkit-scrollbar { display: none; }
  .work-card { scroll-snap-align: start; }
  .people-grid figure { grid-column: span 6; }
  .people-text { grid-column: 1 / -1; }
  .other-software { grid-template-columns: 1fr; }
  .foot-top p, .foot-brand, .foot-email { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  :root { --title: 40px; --heading: 32px; --component: 22px; --section: 64px; }
  .earlier-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-software .foot-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px var(--gap); }
  .stage:not(.stage-hero):not(.stage-offer) { align-items: flex-end; padding-bottom: 96px; }
  :root { --consent-space: calc(156px + env(safe-area-inset-bottom)); --product-bar: 112px; }
  .product-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .consent { left: 0; right: 0; bottom: 0; width: auto; padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-width: 1px 0 0; }
  .stage { transition: padding-bottom .3s var(--ease); }
  .consent-open .stage-hero { padding-bottom: calc(clamp(56px, 9svh, 110px) + var(--consent-space)); }
  .consent-open .stage:not(.stage-hero):not(.stage-offer) { padding-bottom: calc(96px + var(--consent-space)); }
  .offer-panel h2 { font-size: 34px; }
  .offer-items { gap: 18px; }
  .contact-option h2 { font-size: 44px; }
  .scene-readout { left: var(--gutter); right: auto; text-align: left; bottom: 14px; max-width: none; }
  .scene-actions { justify-content: flex-start; }
  .stage-hero .stage-copy { width: 100%; }
  .demo-skip { left: auto; right: var(--gutter); transform: none; min-width: 64px; }
  .statement { font-size: clamp(30px, 9vw, 44px); }
  .statement span { display: inline; }
  .live-figure-stage, .live-online .live-figure-stage { aspect-ratio: 4 / 3.4; }
  .live-figure-again { margin-left: 0; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 1180px) {
  .theme-toggle { width: 44px; height: 44px; }
}
@media (max-width: 960px), (pointer: coarse) {
  .text-link, .live-figure-again, .kit-picker button, .offer-link { min-height: 44px; }
  .foot-col a:not(h2 a), .foot-bottom a, .foot-bottom button { min-height: 44px; display: inline-flex; align-items: center; }
  .foot-col a:not(h2 a) { display: flex; }
}
/* A tall offer on touch devices scrolls with the document, not in an overlay. */
@media (max-width: 960px), (pointer: coarse), (max-height: 700px) {
  .stage-offer { height: auto; min-height: 100svh; }
  .has-stages .offer-panel { position: relative; inset: auto; min-height: 100svh; overflow: visible; opacity: 1; pointer-events: auto; }
  .has-stages .offer-panel a { pointer-events: auto; }
}
/* Phones give the model and copy separate regions of the current viewport.
   dvh follows the browser bars, so the next section cannot show through. */
@media (max-width: 760px) {
  .desktop-copy { display: none; }
  .mobile-copy { display: block; }
  .home-page { --demo-obstruction: 0px; --scene-height: max(80px, min(42dvh, calc(100dvh - var(--masthead) - 280px - var(--demo-obstruction)))); }
  .consent-open .home-page { --demo-obstruction: var(--consent-space); }
  .scene-canvas { inset: var(--masthead) 0 auto; height: var(--scene-height); }
  .scene-fallback, .no-js .scene-fallback, .scene-failed .scene-fallback { top: var(--masthead); right: 0; width: 100%; height: var(--scene-height); }
  .scene-fallback img { height: 100%; object-fit: contain; }
  .stage, .stage-hero, .stage:not(.stage-hero):not(.stage-offer),
  .consent-open .stage-hero, .consent-open .stage:not(.stage-hero):not(.stage-offer) {
    height: 100dvh; align-items: flex-start; justify-content: flex-start;
    padding: calc(var(--masthead) + var(--scene-height) + 16px) var(--gutter) 76px;
  }
  .stage-copy, .stage-hero .stage-copy { width: 100%; }
  .stage-copy p { margin-bottom: 0; }
  .statement { font-size: clamp(26px, 8vw, 36px); line-height: 1.08; }
  .statement-note { margin-top: 14px; font-size: 15px; line-height: 1.45; max-width: 34ch; }
  .stage-index { margin-bottom: 8px; font-size: 12px; }
  .stage h2 { margin-bottom: 10px; font-size: 30px; }
  .stage-text { font-size: 16px; line-height: 1.45; max-width: 34ch; }
  .scene-readout { right: var(--gutter); font-size: 12px; pointer-events: none; }
  .scene-readout:not(.is-away) button { pointer-events: auto; }
  .scene-actions { gap: 16px; margin-top: 0; padding-right: 68px; font-size: 13px; }
  .demo-skip { min-height: 44px; bottom: 14px; font-size: 11px; }
  .stage.stage-offer { height: auto; min-height: 100dvh; padding: 0; }
  .offer-panel, .has-stages .offer-panel { min-height: 100dvh; }
  .offer-inner { padding: calc(var(--masthead) + 24px) var(--gutter) 24px; }
  .offer-eyebrow { margin-bottom: 12px; font-size: 13px; }
  .offer-panel h2 { font-size: 36px; max-width: 12ch; margin-bottom: 24px; }
  .offer-items { gap: 0; margin-bottom: 24px; }
  .offer-items a { min-height: 52px; padding-block: 14px; }
  .offer-name { font-size: 20px; }
  .offer-index, .offer-text { display: none; }
  .offer-actions { gap: 12px 24px; }
  .offer-actions .desktop-copy { display: none; }
  .offer-actions .mobile-copy { display: inline-flex; }
  .page-intro:has(+ .contact-options) { padding-block: 24px; }
  .page-intro:has(+ .contact-options) .lead { display: none; }
  .page-intro:has(+ .contact-options) .eyebrow, .contact-options #call-title { display: none; }
  .page-intro:has(+ .contact-options) h1 { font-size: 34px; }
  .contact-option h2 { font-size: 32px; }
  .contact-sub { font-size: 16px; margin-bottom: 18px; }
  .scheduler { min-height: 0; padding-top: 12px; }
  .booking-details > summary { display: list-item; cursor: pointer; padding-block: 12px; font-size: 15px; }
  .booking-details:not([open]) > .mc-info { display: none; }
  .scheduler .booking-details { border-bottom: 1px solid var(--line); }
  .page-intro:has(+ .booking-panel) { padding-block: 24px; }
  .page-intro:has(+ .booking-panel) h1 { font-size: 34px; }
  .page-intro:has(+ .booking-panel) .eyebrow { display: none; }
  .page-intro:has(+ .booking-panel) .lead { font-size: 16px; }
  .booking-type-details > summary { display: list-item; min-height: 44px; padding-block: 10px; cursor: pointer; }
  .booking-panel .mc-type-desc { display: none; }
  .js .kit-picker { display: none; }
  .js .kit-select { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 12px; font-size: 15px; }
  .kit-select select { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 0; padding: 8px 12px; font: inherit; font-size: 16px; background: var(--bg); color: var(--ink); }
  .live-explainer:has(.has-picker) { padding-block: 32px; }
  .live-explainer:has(.has-picker) .eyebrow { display: none; }
  .live-explainer:has(.has-picker) h2 { font-size: 28px; margin-bottom: 10px; }
  .live-explainer:has(.has-picker) > div > p { font-size: 15px; margin-bottom: 8px; }
  .has-picker .live-figure-stage { aspect-ratio: 16 / 10; }
  .js .has-picker .live-figure-title { display: none; }
  .has-picker figcaption { gap: 8px 16px; }
  .has-picker figcaption > a { min-height: 44px; display: inline-flex; align-items: center; }
  .live-kit-details { width: 100%; border-top: 1px solid var(--line); }
  .live-kit-details summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-size: 14px; }
  .live-kit-details > span { display: block; margin-bottom: 8px; }
}
@media print {
  .js .reveal, .has-stages .stage-text { opacity: 1; transform: none; }
  .masthead, .product-bar, .consent, .scene-canvas, .scene-readout, .scene-fallback { display: none; }
  main { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html.snap-stages { scroll-snap-type: none; }
  .stage { transition: none; }
  .js .reveal, .js .service-scope li, .has-stages .stage-text { transition: none; transform: none; opacity: 1; }
  .js .stage-hero .stage-copy > * { animation: none; }
  .has-stages .offer-panel { transition: none; }
  .scene-canvas, .live-figure-stage canvas, .nav-panel, .consent, .scene-readout { transition: none; }
}

.other-software-image { margin: 0 0 24px; }
.other-software-image img { width: 100%; height: auto; background: transparent; }
