/* =========================================================
   Alherin Solutions — motion layer.
   Ownership: scroll/entrance/pointer motion is driven by scripts/motion.js (GSAP + ScrollTrigger + SplitText);
   this file holds the layouts those animations need, the pre-reveal states, and pure-CSS micro-interactions
   (hover/press/focus), which stay in CSS because the browser does them best.
   Pre-reveal states apply only under html.js-motion (set by motion-boot.js, removed again if motion.js fails),
   so without JavaScript — or with reduced motion — every element is simply visible.
   ========================================================= */

/* ---------- Pre-reveal states (motion.js reveals these with autoAlpha) ---------- */
.js-motion [data-hero-eyebrow], .js-motion [data-hero-title], .js-motion [data-hero-desc], .js-motion [data-hero-actions],
.js-motion [data-hero-meta], .js-motion [data-hero-stage], .js-motion .hero-home .hero-glow, .js-motion .hero-home .hero-grid,
.js-motion [data-ph-eyebrow], .js-motion [data-ph-title], .js-motion [data-ph-desc], .js-motion [data-ph-actions],
.js-motion [data-section-head], .js-motion [data-card], .js-motion [data-project-card], .js-motion [data-reveal],
.js-motion [data-cta-band], .js-motion [data-why-item], .js-motion [data-demo-card]{
  visibility: hidden;
}
.js-motion .nav{ visibility: hidden; }
/* SplitText line masks: each line clips its own words, so text rises out of an invisible slot */
.split-line{ display:block; overflow:clip; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word{ display:inline-block; will-change: auto; }
/* the gradient accent word keeps its gradient after splitting (each word carries it) */
.hero-title .accent .split-word, .hero-title .accent .split-line{
  background: linear-gradient(95deg, var(--orange-500) 10%, var(--orange-300) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Typography hierarchy: tighter display tracking, calmer supporting copy ---------- */
.section-head h2{ letter-spacing: -.03em; line-height: 1.02; }
.section-head p{ color: var(--text-secondary); font-size: var(--fs-body-lg); line-height: var(--lh-normal); }
.hero-title{ font-weight: 500; letter-spacing: -.04em; line-height: .98; }
.page-header h1{ letter-spacing: -.03em; line-height: 1.02; }

/* ---------- Scroll progress: a 2px brand hairline ---------- */
.scroll-progress{ position: fixed; inset: 0 0 auto 0; height: 2px; z-index: calc(var(--z-nav) + 1); pointer-events: none; }
.scroll-progress span{
  display:block; height:100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--orange-600), var(--primary) 60%, var(--orange-300));
  box-shadow: 0 0 12px rgba(255,92,0,.5);
}
html:not(.js-motion) .scroll-progress{ display:none; }

/* ---------- Navigation: hides on the way down, returns on the way up, adapts over paper sections ---------- */
.nav{ transition: color var(--dur-fast); }
.nav .nav-inner{ transition: padding var(--dur-standard) var(--ease-out); }
.nav.is-scrolled .nav-inner{ padding-block: .75rem; }
/* scrolling down: the bar's surface, links and button slide away — the full logo stays, on its own small pill;
   scrolling up (or tabbing into the bar) brings everything back */
.nav .nav-links, .nav .nav-cta{ transition: transform var(--dur-standard) var(--ease-out), opacity var(--dur-fast) var(--ease-out-soft); }
.nav.is-hidden{ pointer-events: none; } /* the empty strip must not block the page underneath */
.nav.is-hidden .brand{ pointer-events: auto; }
.nav.is-hidden::before, .nav.is-hidden::after{ transform: translateY(-105%); }
.nav.is-hidden .nav-links, .nav.is-hidden .nav-cta{ transform: translateY(-180%); opacity: 0; }
.nav .brand{ position: relative; transform-origin: 0 50%; transition: transform var(--dur-standard) var(--ease-out); }
.nav .brand::before{
  content:''; position:absolute; inset: -.5rem -.9rem -.5rem -.6rem; z-index:-1; border-radius: var(--radius-pill);
  background: var(--nav-surface); backdrop-filter: blur(12px) saturate(140%); border: 1px solid var(--divider);
  box-shadow: var(--nav-shadow); opacity: 0; transform: scale(.9);
  transition: opacity var(--dur-fast) var(--ease-out-soft), transform var(--dur-standard) var(--ease-out);
}
.nav.is-hidden .brand{ transform: scale(.9); }
.nav.is-hidden .brand::before{ opacity: 1; transform: none; }
.nav .brand-sub{ transition: color var(--dur-fast); }
/* one indicator glides between links (motion.js); it replaces the per-link underline on desktop */
.nav-links{ position: relative; }
.nav-indicator{ position:absolute; left:0; bottom: -6px; width: 0; height: 2px; border-radius: 2px; background: var(--primary);
  opacity: 0; visibility: hidden; pointer-events:none; }
.nav-links.has-indicator a::after{ display:none; }
.nav-links a{ transition: color var(--dur-fast) var(--ease-out-soft); }
.nav .brand-mark{ transition: transform var(--dur-standard) var(--ease-out); }
.nav.is-scrolled .brand-mark svg{ transform: scale(.92); transition: transform var(--dur-standard) var(--ease-out); }
.nav.on-light{
  --text-heading: var(--ink-950); --text-secondary: #45423D; --text-accent: var(--orange-700); --brand-mark-ink: var(--ink-950);
  --border-strong: var(--sand-300); --surface: #FFFFFF; --divider: rgba(17,17,20,.08); --sand-400: var(--sand-500);
  color: var(--ink-950);
}
.nav.on-light{ --nav-surface: rgba(245,240,233,.88); --nav-shadow: 0 10px 30px -20px rgba(40,28,16,.35); }
.nav.on-light .nav-toggle{ color: var(--ink-950); }

/* ---------- Buttons: one language (CSS owns hover/press; motion.js adds the magnetic pull) ---------- */
.btn{ transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out-soft),
  border-color var(--dur-fast) var(--ease-out-soft), box-shadow var(--dur-fast) var(--ease-out-soft), color var(--dur-fast); }
.btn:active{ transform: scale(.97); transition-duration: var(--dur-micro); transition-timing-function: var(--ease-press); }
.btn .btn-icon{ transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn-icon, .btn:focus-visible .btn-icon{ transform: translateX(5px); }
.btn:hover .btn-icon[class*="Up"], .project-view-cta .btn-icon{ transition: transform var(--dur-fast) var(--ease-out); }
.btn-primary{ overflow: hidden; isolation: isolate; }
.btn-primary::before{ /* a single light sweep across the button on hover */
  content:''; position:absolute; inset: 0; z-index: -1; pointer-events:none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-110%); transition: transform var(--dur-cinematic) var(--ease-out);
}
.btn-primary:hover::before, .btn-primary:focus-visible::before{ transform: translateX(110%); }
.btn .btn-icon{ translate: var(--mx, 0px) var(--my, 0px); }
/* text links: an underline that draws from the left */
.footer-links a, .breadcrumb a, .to-top, .hero-scroll-cue span:last-child{
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur-standard) var(--ease-out), color var(--dur-fast);
}
.footer-links a:hover, .breadcrumb a:hover, .to-top:hover, .footer-links a:focus-visible, .to-top:focus-visible,
.hero-scroll-cue:hover span:last-child{ background-size: 100% 1px; }

/* ---------- Custom cursor (desktop fine pointers only; never intercepts anything) ----------
   The ring wrapper is moved by motion.js; its circle only ever scales (transform), never resizes. */
.cursor{ position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; }
.cursor-dot, .cursor-ring{ position: fixed; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out-soft); }
.cursor.is-visible .cursor-dot, .cursor.is-visible .cursor-ring{ opacity: 1; }
.cursor-dot{ width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--primary);
  transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.cursor-ring{ width: 0; height: 0; }
.cursor-circle{
  position:absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(247,245,242,.32); background: transparent;
  transition: transform var(--dur-standard) var(--ease-out), background-color var(--dur-fast), border-color var(--dur-fast);
}
.cursor-label{ position:absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6); opacity: 0; white-space: nowrap;
  font-family: var(--font-display); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-primary);
  transition: opacity var(--dur-fast), transform var(--dur-standard) var(--ease-out); }
.cursor.is-link .cursor-circle{ transform: scale(1.35); border-color: rgba(255,122,46,.65); background: rgba(255,92,0,.07); }
.cursor.is-link .cursor-dot{ transform: scale(0); }
.cursor.has-label .cursor-circle{ transform: scale(2.2); background: var(--primary); border-color: var(--primary); }
.cursor.has-label .cursor-label{ opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.has-label .cursor-dot{ transform: scale(0); }
.cursor.is-down .cursor-circle{ transform: scale(.85); }
.cursor.is-down.is-link .cursor-circle{ transform: scale(1.15); }
.cursor.is-down.has-label .cursor-circle{ transform: scale(1.95); }
.cursor.on-light .cursor-circle{ border-color: rgba(17,17,20,.3); }
.cursor.on-light.is-link .cursor-circle{ border-color: rgba(184,63,0,.55); background: rgba(255,92,0,.06); }
.cursor.is-text .cursor-dot, .cursor.is-text .cursor-ring{ opacity: 0 !important; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [role="button"], html.has-cursor label, html.has-cursor summary{ cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select, html.has-cursor iframe, html.has-cursor [contenteditable]{ cursor: auto; }

/* ---------- Home hero: the stage of demo windows ---------- */
.hero-home{ padding-bottom: 0; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-home .hero-desc{ margin-bottom: var(--space-lg); }
.hero-home .hero-meta{ margin-top: var(--space-xl); }
.hero-home .hero-content{ will-change: auto; }
.hero-stage-wrap{ position: relative; z-index: 2; margin-top: clamp(2rem, 4vw, 3.5rem); perspective: 1600px; }
.hero-stage{
  position: relative; display:block; height: clamp(260px, 42vw, 560px); color: inherit; text-decoration: none;
  transform-style: preserve-3d; border-radius: var(--radius-lg);
}
.hero-stage:focus-visible{ outline: 2px solid var(--primary); outline-offset: 6px; }
.hero-stage-frames{ position:absolute; inset:0; transform-style: preserve-3d; }
.hero-frame{ position:absolute; bottom: 0; border-radius: var(--radius-md); will-change: transform; }
.hero-frame-inner{
  height:100%; border-radius: inherit; overflow:hidden; border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.03), var(--highlight);
  background: var(--surface-2);
}
.hero-frame-inner .browser{ border-radius: inherit; }
.hero-frame.is-center{ left: 50%; width: min(72%, 900px); height: 100%; margin-left: calc(min(72%, 900px) / -2); z-index: 3; }
.hero-frame.is-left, .hero-frame.is-right{ width: 38%; height: 72%; z-index: 2; bottom: 8%; }
.hero-frame.is-left{ left: 0; }
.hero-frame.is-right{ right: 0; }
.hero-frame.is-left .hero-frame-inner, .hero-frame.is-right .hero-frame-inner{ filter: saturate(.85) brightness(.85); }
.hero-stage-glow{
  position:absolute; left: 10%; right: 10%; bottom: -10%; height: 70%; border-radius: 50%; pointer-events:none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,92,0,.35), transparent 70%); filter: blur(30px); z-index: 1;
}
.hero-stage-tag{
  position:absolute; z-index: 4; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  display:inline-flex; align-items:center; gap:.5rem; padding:.55rem .6rem .55rem 1rem; border-radius: var(--radius-pill);
  background: rgba(11,11,13,.78); backdrop-filter: blur(10px); border: 1px solid var(--border-strong);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small); color: var(--on-dark); white-space: nowrap;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.hero-stage-tag-arrow{ width: 28px; height: 28px; border-radius: 50%; display:grid; place-items:center; background: var(--primary); color: var(--on-primary);
  transition: transform var(--dur-fast) var(--ease-out); }
.hero-stage-tag-arrow .btn-icon{ width: 14px; height: 14px; }
.hero-stage:hover .hero-stage-tag, .hero-stage:focus-visible .hero-stage-tag{ border-color: var(--border-accent); }
.hero-stage:hover .hero-stage-tag-arrow{ transform: rotate(45deg); }
/* the stage runs into the marquee, so the hero hands over to the next section instead of ending */
.hero-home + .marquee{ position: relative; z-index: 3; margin-top: -1px; }
@media (max-width: 899px){
  .hero-stage{ height: clamp(210px, 58vw, 380px); }
  .hero-frame.is-center{ width: 86%; margin-left: -43%; }
  .hero-frame.is-left, .hero-frame.is-right{ display:none; }
  .hero-stage-tag{ bottom: .75rem; font-size: var(--fs-micro); }
}

/* the accent phrase gets an underline that draws once the headline has landed */
.hero-title .accent{ position: relative; display: inline-block; }
.hero-title .accent::after{
  content:''; position:absolute; left: .02em; right: .02em; bottom: .02em; height: .06em; border-radius: .06em;
  background: linear-gradient(90deg, var(--orange-600), var(--orange-300)); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--dur-hero) var(--ease-out);
}
.hero-title .accent.is-drawn::after, html:not(.js-motion) .hero-title .accent::after{ transform: scaleX(1); }
.hero-scroll-cue{
  display:inline-flex; align-items:center; gap:.75rem; margin-top: var(--space-lg);
  font-family: var(--font-display); font-size: var(--fs-micro); font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-warm); transition: color var(--dur-fast);
}
.hero-scroll-cue:hover{ color: var(--text-heading); }
.hero-scroll-line{ position: relative; width: 44px; height: 1px; background: var(--border-strong); overflow: hidden; }
.hero-scroll-line::after{ content:''; position:absolute; inset:0; background: var(--primary); transform: translateX(-100%);
  animation: cue-run 2.4s var(--ease-in-out) infinite; }
@keyframes cue-run{ 0%{ transform: translateX(-100%); } 55%, 100%{ transform: translateX(100%); } }
.js-motion [data-hero-cue]{ visibility: hidden; }
@media (max-width: 899px){ .hero-scroll-cue{ display:none; } }

/* ambient: the hero light drifts, almost imperceptibly (paused for reduced motion below) */
.hero-glow{ animation: glow-drift 22s var(--ease-in-out) infinite alternate; }
@keyframes glow-drift{ from{ transform: translate3d(0,0,0) scale(1); } to{ transform: translate3d(4%, 3%, 0) scale(1.08); } }

/* ---------- Selected work: horizontal story (desktop), grid everywhere else ---------- */
.work-head-side{ display:flex; align-items:center; gap: var(--space-md); }
.work-counter{ display:none; font-family: var(--font-display); font-size: var(--fs-small); color: var(--text-muted); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.work-counter b{ color: var(--text-heading); font-weight: 700; }
.work-progress{ display:none; }
.work-section.is-horizontal{ overflow: clip; padding-block: clamp(4rem, 9vh, 6rem); min-height: 100vh; display:flex; align-items:center; }
.work-section.is-horizontal > .container{ width: 100%; }
.work-section.is-horizontal .section-head-row{ margin-bottom: var(--space-xl); }
.work-section.is-horizontal .project-media{ aspect-ratio: 16/10; }
.work-section.is-horizontal .work-counter{ display:inline; }
.work-section.is-horizontal .work-rail{ overflow: visible; }
.work-section.is-horizontal .work-track{
  display:flex; gap: var(--space-lg); width: max-content; will-change: transform;
}
.work-section.is-horizontal .work-track > .project-card{ width: min(40vw, 560px, 78vh); flex: none; }
.work-section.is-horizontal .work-progress{
  display:block; height: 2px; margin-top: var(--space-xl); background: var(--border); border-radius: 2px; overflow:hidden;
}
.work-section.is-horizontal .work-progress span{ display:block; height:100%; background: var(--primary); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Project cards: media reveal + pointer response ---------- */
.project-card{ transform-style: preserve-3d; }
.project-media{ isolation: isolate; }
.project-media-inner{ position:absolute; inset: -6%; will-change: transform; }
.project-media-inner > img{ width:100%; height:100%; object-fit: cover; }
.project-media-inner .placeholder-mark{ position:absolute; inset:0; }
.project-card .project-title{ transition: transform var(--dur-standard) var(--ease-out), color var(--dur-fast); }
.project-card .project-cat{ display:inline-block; transition: letter-spacing var(--dur-standard) var(--ease-out), color var(--dur-fast); }
.project-card:hover .project-title, .project-card:focus-visible .project-title{ transform: translateX(6px); }
.project-card:hover .project-cat, .project-card:focus-visible .project-cat{ letter-spacing: .14em; }
.project-card:focus-visible .project-overlay{ opacity: 1; }
.project-hero-media{ aspect-ratio: 21/9; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.project-media::after{ /* light sweep across the picture on hover */
  content:''; position:absolute; inset:0; z-index: 2; pointer-events:none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.09) 48%, transparent 62%);
  transform: translateX(-100%); transition: transform 1.1s var(--ease-out);
}
.project-card:hover .project-media::after, .project-card:focus-visible .project-media::after{ transform: translateX(100%); }
.project-card:active{ transition-duration: var(--dur-micro); }
.work-section.is-horizontal .project-card{ opacity: calc(.5 + var(--focus, 1) * .5); }
.work-section.is-horizontal .project-card .project-overlay{ opacity: calc(var(--focus, 0) - .35); }
@media (hover: none){ .project-card:active .project-media-inner{ transform: scale(.985); transition: transform var(--dur-micro); } }

/* ---------- Service, pricing and value cards: pointer spotlight (desktop), press feedback (touch) ---------- */
.service-card, .pricing-card, .perk-card{ position: relative; isolation: isolate; }
.service-card::after, .pricing-card::after, .perk-card::after{
  content:''; position:absolute; inset:0; border-radius: inherit; z-index: -1; pointer-events:none; opacity: 0;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 0%), var(--tint-strong), transparent 70%);
  transition: opacity var(--dur-standard) var(--ease-out-soft);
}
.service-card:hover::after, .pricing-card:hover::after, .perk-card:hover::after{ opacity: 1; }

@media (hover: none){
  .service-card:active, .pricing-card:active{ transform: scale(.985); border-color: var(--border-accent); transition-duration: var(--dur-micro); }
  .service-card:active .service-icon{ background: var(--primary); color: var(--on-primary); }
}

/* ---------- Services: the paper sheet rises over the dark section ---------- */
.sheet-section{ position: relative; z-index: 2; border-radius: 28px 28px 0 0; }
.sheet-section.sheet-live{ border-radius: 0; }
.sheet-section.sheet-live{ background: transparent; }
.sheet-bg{ position:absolute; inset: 0; z-index: -1; background: var(--bg); border-radius: 36px 36px 0 0; transform-origin: 50% 0; will-change: transform; }

/* ---------- Why us: the heading stays while the reasons advance ---------- */
.why-index{ display:none; }
@media (min-width: 981px){
  .why-sticky{ position: sticky; top: 7rem; }
  .why-index{ display:flex; align-items:center; gap:.9rem; margin-top: var(--space-lg); font-family: var(--font-display); font-weight:700;
    color: var(--text-muted); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
  .why-index span:first-child{ color: var(--accent); font-size: 1.5rem; min-width: 2ch; }
  .why-index i{ position:relative; width: 120px; height: 2px; background: var(--border-strong); border-radius: 2px; overflow:hidden; }
  .why-index b{ position:absolute; inset:0; background: var(--primary); transform-origin: 0 50%; transform: scaleX(0); }
  .why-list .feature{ padding-block: var(--space-xl); }
}
.feature{ transition: opacity var(--dur-standard) var(--ease-out-soft); }
.why-section.is-live .feature{ opacity: .38; }
.why-section.is-live .feature.is-active{ opacity: 1; }
.why-section.is-live .feature.is-active .feature-num{ color: var(--primary); }
.why-section.is-live .feature{ position: relative; }
.why-section.is-live .feature::before{ content:''; position:absolute; left: -1.25rem; top: var(--space-xl); bottom: var(--space-xl); width: 2px;
  border-radius: 2px; background: var(--primary); transform: scaleY(0); transform-origin: 50% 0; transition: transform var(--dur-cinematic) var(--ease-out); }
.why-section.is-live .feature.is-active::before{ transform: scaleY(1); }
.why-section.is-live .feature h4{ transition: transform var(--dur-standard) var(--ease-out); }
.why-section.is-live .feature.is-active h4{ transform: translateX(4px); }

/* ---------- Footer motif: the name, set huge, drifting past ---------- */
.footer-mark{
  overflow: clip; margin: var(--space-xl) 0 var(--space-md); pointer-events: none; user-select: none;
}
.footer-mark-line{
  position: relative; display:block; width: max-content; white-space: nowrap; font-family: var(--font-display); font-weight: 700;
  line-height: .95; letter-spacing: -.04em; font-size: clamp(2rem, 8.2vw, 8.4rem); /* sized so the whole name fits the container */
  color: transparent; -webkit-text-stroke: 1px rgba(255,92,0,.28); will-change: transform;
}
.footer-mark-fill{
  position:absolute; inset: 0; -webkit-text-stroke: 0; color: transparent;
  background: linear-gradient(90deg, var(--orange-600), var(--primary) 45%, var(--orange-300));
  -webkit-background-clip: text; background-clip: text; clip-path: inset(0 100% 0 0);
}
html:not(.js-motion) .footer-mark-fill{ clip-path: none; opacity: .18; }
.footer-bottom-end{ display:inline-flex; align-items:center; gap: var(--space-md); flex-wrap: wrap; }
.to-top{ display:inline-flex; align-items:center; gap:.45rem; color: var(--text-secondary); font-weight: 600; }
.to-top-icon{ width: 26px; height: 26px; border-radius: 50%; display:grid; place-items:center; border: 1px solid var(--border-strong);
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.to-top-icon .btn-icon{ width: 13px; height: 13px; transform: rotate(-45deg); transition: transform var(--dur-standard) var(--ease-out); }
.to-top:hover{ color: var(--text-heading); }
.to-top:hover .to-top-icon{ background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.to-top:hover .to-top-icon .btn-icon{ transform: rotate(-45deg) translate(2px, -2px); }

/* ---------- Final CTA: a larger statement with a light that breathes slowly ---------- */
.cta-band h2{ font-size: clamp(2.1rem, 3.4vw + 1rem, 4.25rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; max-width: 16ch; }
.cta-band::before{ animation: cta-breathe 9s var(--ease-in-out) infinite alternate; transform-origin: 50% 100%; }
@keyframes cta-breathe{ from{ transform: scale(1); opacity: .85; } to{ transform: scale(1.12); opacity: 1; } }
.cta-actions .btn{ padding: .9rem 1.6rem; }

/* ---------- Demo bar: the full wordmark, compact ---------- */
.demo-bar-brand .brand-name{ font-size: 1.05rem; }
.demo-bar-brand .brand-sub{ font-size: .48rem; margin-top: .22rem; }
.demo-bar-brand .brand-word{ padding-left: .55rem; }
.demo-bar-brand{ gap: .55rem; }
@media (max-width: 430px){
  .demo-mode-text{ position:absolute; width:1px; height:1px; overflow:hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .demo-bar-inner{ gap: var(--space-xs); }
}

/* ---------- Mobile menu: links arrive in sequence ---------- */
.mobile-menu-links a{ opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur-standard) var(--ease-out), transform var(--dur-cinematic) var(--ease-out), color var(--dur-fast); }
.mobile-menu.is-open .mobile-menu-links a{ opacity: 1; transform: none; transition-delay: calc(120ms + var(--i, 0) * 45ms); }
.mobile-menu-links a{ display:flex; align-items:center; justify-content: space-between; padding-block: .15rem; border-bottom: 1px solid var(--divider); }
.mobile-menu-links a::after{ content:'\2192'; font-size: 1.1rem; color: var(--text-muted); transform: translateX(-6px); opacity: 0;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast), color var(--dur-fast); }
.mobile-menu-links a:active::after, .mobile-menu-links a:hover::after, .mobile-menu-links a[aria-current="page"]::after{ transform: none; opacity: 1; color: var(--primary); }
.mobile-menu-links a:active{ color: var(--text-heading); }
.mobile-menu > .btn{ opacity: 0; transform: translateY(14px); transition: opacity var(--dur-standard) var(--ease-out), transform var(--dur-cinematic) var(--ease-out); }
.mobile-menu.is-open > .btn{ opacity: 1; transform: none; transition-delay: 420ms; }
.mobile-menu-top{ opacity: 0; transition: opacity var(--dur-standard) var(--ease-out); }
.mobile-menu.is-open .mobile-menu-top{ opacity: 1; transition-delay: 80ms; }
.mobile-menu{ transition: transform var(--dur-cinematic) var(--ease-in-out), visibility 0s linear var(--dur-cinematic); }

/* ---------- Demo filter: one pill slides to the active category (showroom.js) ---------- */
.demo-filter.has-pill{ position: sticky; }
.filter-pill{ position:absolute; left:0; top:0; height: 0; border-radius: var(--radius-pill); background: var(--primary);
  box-shadow: var(--shadow-cta); pointer-events:none; z-index: 0; opacity: 0;
  transition: transform var(--dur-standard) var(--ease-out), width var(--dur-standard) var(--ease-out), opacity var(--dur-fast); }
.demo-filter.has-pill .filter-chip{ position: relative; z-index: 1; }
.demo-filter.has-pill .filter-chip[aria-pressed="true"]{ background: transparent; border-color: transparent; box-shadow: none; }

/* ---------- Page transitions: cross-document View Transitions (progressive: other browsers just navigate) ---------- */
@view-transition{ navigation: auto; }
::view-transition-old(root){ animation: vt-out var(--dur-fast) var(--ease-in-out) both; }
::view-transition-new(root){ animation: vt-in var(--dur-standard) var(--ease-out) both; }
::view-transition-group(*){ animation-duration: var(--dur-standard); animation-timing-function: var(--ease-out); }
@keyframes vt-out{ to{ opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in{ from{ opacity: 0; transform: translateY(16px); } }
.nav{ view-transition-name: site-nav; }
::view-transition-group(site-nav){ animation: none; }

/* ---------- Reduced motion: everything still, everything visible ---------- */
@media (prefers-reduced-motion: reduce){
  .hero-glow{ animation: none; }
  html:not(.motion-lite) .marquee-track, html:not(.motion-lite) .logo-strip-track{ animation: none !important; }
  /* motion-lite (desktop, e.g. Windows "Animation effects: off"): the services marquee and the client logos keep
     sliding — beat base.css */
  html.motion-lite .marquee-track{
    animation-duration: calc(var(--marquee-items, 6) * 5.3s) !important; animation-iteration-count: infinite !important;
  }
  html.motion-lite .logo-strip-track{
    animation-duration: calc(var(--strip-items, 10) * 3.2s) !important; animation-iteration-count: infinite !important;
  }
  /* motion-lite (desktop): the navbar still slides — beat base.css's reduced-motion transition kill switch */
  html.motion-lite .nav::before, html.motion-lite .nav::after, html.motion-lite .nav .nav-links, html.motion-lite .nav .nav-cta,
  html.motion-lite .nav .brand, html.motion-lite .nav .brand::before{ transition-duration: var(--dur-standard) !important; }
  .hero-scroll-line::after, .cta-band::before{ animation: none; }
  .hero-title .accent::after{ transform: scaleX(1); transition: none; }
  .btn-primary::before, .project-media::after{ display: none; }
  .mobile-menu > .btn, .mobile-menu-top{ opacity: 1; transform: none; }
  .filter-pill{ transition: none; }
  .mobile-menu-links a{ opacity: 1; transform: none; transition: color var(--dur-fast); }
  .btn:active{ transform: none; }
  .btn:hover .btn-icon{ transform: none; }
  .project-card:hover .project-title{ transform: none; }
  @view-transition{ navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root), ::view-transition-group(*){ animation: none; }
}
