/* MosPing · Design 1 · Forward
   Palette: exactly MosPing's own tokens. Light is the default (html[data-theme=light]); dark is html[data-theme=dark],
   with one light chapter (Products). Type: Space Grotesk, Geist, Geist Mono.
   Modes: html.fx = the live pixel layout (motion allowed, JS running); without it the page is a calm still page.
   "Narrow" = portrait under 900 px: the pixel stage sits in the top of the screen and the copy scrolls beneath it. */

:root {
  /* light (MosPing's :root[data-theme=light]) */
  --background: #f6f4fb; --surface: #fff; --surface-2: #efeaf7; --foreground: #161320; --muted: #161320a8;
  --faint: #16132075; --line: #2e16501f; --line-strong: #2e165033; --accent: #be2486; --accent-bright: #c92e92;
  --accent-2: #6d4aff; --shadow-card: 0 20px 44px -26px #46185a52; --shadow-accent: 0 16px 40px -14px #d6469e66;
  /* roles that differ per theme */
  --hdr-glass: rgba(246, 244, 251, .8); --hdr-glass-strong: rgba(246, 244, 251, .92); --pill-fill: #fff;
  --aurora: radial-gradient(52% 46% at 50% -4%, #d6469e1f, transparent 64%), radial-gradient(38% 40% at 88% 8%, #6d4aff1a, transparent 60%);
  color-scheme: light;
  --signature: linear-gradient(105deg, #6d4aff 0%, #b23ca6 52%, #d6469e 100%);
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gut: clamp(20px, 4.6vw, 72px);
  --maxw: 1360px;
  --hdr: 76px;
  --stage: clamp(250px, 41svh, 470px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
:root[data-theme="dark"] {
  /* dark (MosPing's :root[data-theme=dark]): the design as first built */
  --background: #0c0b12; --surface: #141220; --surface-2: #1b1828; --foreground: #f2f0f8; --muted: #f2f0f8a3;
  --faint: #f2f0f86b; --line: #b09ede21; --line-strong: #b09ede38; --accent: #d6469e; --accent-bright: #e85cb0;
  --accent-2: #6d4aff; --shadow-card: 0 22px 60px -28px #78246e8c; --shadow-accent: 0 16px 44px -12px #d6469e80;
  --hdr-glass: rgba(12, 11, 18, .8); --hdr-glass-strong: rgba(12, 11, 18, .92); --pill-fill: rgba(12, 11, 18, .72);
  --aurora: linear-gradient(transparent, transparent);
  color-scheme: dark;
}
/* switching themes: colours ease for 300 ms (nothing moves, nothing re-measures) */
@media (prefers-reduced-motion: no-preference) {
  html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, fill .3s ease, stroke .3s ease, box-shadow .3s ease !important;
  }
  html.theme-anim .theme-btn svg { transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .3s ease !important; }
}

/* without JavaScript there is no switching: hide the toggles */
:root:not(.can-theme) [data-theme-toggle] { display: none !important; }

/* logos: dark wordmark on light, light wordmark on dark */
:root[data-theme="dark"] .logo-on-light, :root:not([data-theme="dark"]) .logo-on-dark { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 0; text-rendering: optimizeLegibility;
}
::selection { background: #6d4aff; color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #6d4aff; outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--foreground); color: var(--background); font-weight: 500; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* the motif: one diamond pixel in the signature gradient */
.dia { display: inline-block; flex: none; width: 7px; height: 7px; background: var(--signature); transform: rotate(45deg); }
.dia--live { animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .35; } }

.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow__rule { flex: 1; height: 1px; background: var(--line-strong); transform-origin: 0 50%; }
.sig { background: var(--signature); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; padding-bottom: .06em; }

.sec-head { display: grid; gap: 28px; }
.sec-head > * { min-width: 0; }
.sec-h { font: 500 clamp(2.6rem, 5.4vw, 5.6rem)/.95 var(--display); letter-spacing: -.042em; text-wrap: balance; max-width: 14em; }
.lead { font-size: clamp(17px, 1.3vw, 19.5px); line-height: 1.55; color: var(--muted); max-width: 40ch; text-wrap: pretty; }

/* links and buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 16px/1 var(--text); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .35s var(--ease), background-position .6s var(--ease);
}
.btn--sig { background: linear-gradient(105deg, #6d4aff 0%, #b23ca6 52%, #d6469e 100%) 0 0 / 150% 100%; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn--sig:hover { background-position: 100% 0; box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn:active { transform: translateY(1px); }
.btn__arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn__arr { transform: translateX(4px); }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 17px; }

.tlink, .xlink {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; white-space: nowrap;
  text-decoration: none; font-weight: 500;
}
.tlink::after, .xlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); opacity: .7;
}
.tlink:hover::after, .xlink:hover::after, .tlink:focus-visible::after, .xlink:focus-visible::after { transform: scaleX(1); }
.xlink__arr { display: inline-block; font-size: .9em; transition: transform .3s var(--ease); }
.xlink:hover .xlink__arr, .xlink:focus-visible .xlink__arr { transform: translate(2px, -2px); }

/* ---------------- header ---------------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hdr); border-bottom: 1px solid transparent; transition: background-color .4s, border-color .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s; }
.hdr.is-solid { background: var(--hdr-glass); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); }
:root[data-theme="dark"] .hdr.is-solid.on-light { background: rgba(12, 11, 18, .96); }
.hdr__in { height: 100%; width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; display: flex; align-items: center; gap: 12px; }
.hdr__logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; border-radius: 6px; }
.hdr__logo img { width: 104px; height: auto; }
.hdr__nav { display: flex; align-items: center; gap: 2px; margin-right: 14px; }
.hdr__nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .25s; }
.hdr__nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 11px; height: 1px; background: var(--foreground); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.hdr__nav a:hover, .hdr__nav a.is-here { color: var(--foreground); }
.hdr__nav a:hover::after, .hdr__nav a.is-here::after { transform: scaleX(1); }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent; text-decoration: none; font-size: 14.5px; font-weight: 500;
  background: linear-gradient(var(--pill-fill), var(--pill-fill)) padding-box, var(--signature) border-box;
  transition: box-shadow .35s var(--ease), background .35s;
}
.pill:hover { box-shadow: var(--shadow-accent); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--signature) border-box; }
.theme-btn {
  position: relative; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; color: var(--foreground); cursor: pointer;
  transition: border-color .3s, background-color .3s, box-shadow .35s var(--ease), transform .18s var(--ease);
}
.theme-btn::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; }
.theme-btn:hover { border-color: var(--faint); background: var(--surface); box-shadow: 0 6px 18px -10px #6d4aff66; }
.theme-btn:active { transform: scale(.94); }
.theme-btn svg { position: absolute; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease), opacity .3s ease; }
/* light: the moon offers dark; dark: the sun offers light */
.theme-btn__sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-btn__sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-btn__moon { opacity: 0; transform: rotate(90deg) scale(.5); }
.hdr__theme { margin-right: 2px; }
.pill__short { display: none; }
.hdr__menu { display: none; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 4px 0 12px; background: none; border: 0; cursor: pointer; font-size: 14.5px; font-weight: 500; }
.hdr__menu-icon { position: relative; width: 22px; height: 12px; }
.hdr__menu-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.hdr__menu-icon i:first-child { top: 1px; }
.hdr__menu-icon i:last-child { top: 9px; }
.hdr__menu[aria-expanded="true"] .hdr__menu-icon i:first-child { top: 5px; transform: rotate(45deg); }
.hdr__menu[aria-expanded="true"] .hdr__menu-icon i:last-child { top: 5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: flex-start; gap: 36px;
  padding: calc(var(--hdr) + 28px) var(--gut) calc(28px + env(safe-area-inset-bottom)); background: var(--background);
  opacity: 0; transition: opacity .3s;
}
.menu.is-open { opacity: 1; }
.menu__list { display: grid; gap: 2px; counter-reset: m; }
.menu__list a { display: flex; align-items: baseline; gap: 16px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 clamp(2.2rem, 10vw, 3rem)/1.05 var(--display); letter-spacing: -.035em; transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.menu.is-open .menu__list a { transform: none; opacity: 1; }
.menu.is-open li:nth-child(2) a { transition-delay: .04s; }
.menu.is-open li:nth-child(3) a { transition-delay: .08s; }
.menu.is-open li:nth-child(4) a { transition-delay: .12s; }
.menu__i { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--faint); transform: translateY(-.9em); }
.menu__foot { display: flex; align-items: center; gap: 14px; }
.menu__cta { flex: 1; }
.menu__theme { width: 50px; height: 50px; }
.menu__theme svg { width: 20px; height: 20px; }

/* ---------------- chapter one: hero + ping ---------------- */
.chapter { position: relative; }
.field { position: absolute; left: 0; right: 0; top: 0; height: 100vh; height: 100svh; z-index: 0; pointer-events: none; }
.field__stage { position: relative; height: 100%; background: var(--aurora); }
.field__cv { display: block; width: 100%; height: 100%; }
html.fx .field { bottom: 0; height: auto; }
html.fx .field__stage { position: sticky; top: 0; height: 100vh; }

.hero { position: relative; z-index: 2; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--hdr) + 32px) 0 104px; }
.hero__in { width: min(100% - 2 * var(--gut), var(--maxw)); }
.hero__h { margin: 26px 0 30px; font: 500 clamp(3rem, 6.9vw, 9.5rem)/.9 var(--display); letter-spacing: -.048em; }
.hero__l { display: block; }
.hero__lead { max-width: 31em; font-size: clamp(17px, 1.32vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 40px; }
.hero__cta .tlink { color: var(--foreground); font-size: 16px; }
.hero__cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 40px; background: var(--line-strong); overflow: visible; }
.hero__cue span { position: absolute; left: -3.5px; top: 0; width: 8px; height: 8px; background: var(--signature); transform: rotate(45deg); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { top: -4px; opacity: 0; } 20% { opacity: 1; } 75% { top: 34px; opacity: 1; } 100% { top: 34px; opacity: 0; } }

/* the hero settles in under rt-js (the headline is readable from the first frame; the lead and actions follow) */
@media (prefers-reduced-motion: no-preference) {
  .rt-js .hero__eyebrow, .rt-js .hero__lead, .rt-js .hero__cta, .rt-js .hdr__in { opacity: 0; }
}

.ping { position: relative; z-index: 2; }
.ping__rail { display: none; }
.ping__copy { padding: 120px 0 80px; }
.ping__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.stat__fig { display: block; width: 100%; aspect-ratio: 1; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.stat__idx { display: flex; gap: 14px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat__idx span { color: var(--foreground); }
.stat__num { display: flex; align-items: flex-start; margin: 20px 0 18px; font: 500 clamp(4.5rem, 8vw, 7rem)/.84 var(--display); letter-spacing: -.055em; }
.stat__u { margin: .1em 0 0 .16em; font: 500 .3em/1 var(--mono); letter-spacing: 0; background: var(--signature); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { max-width: 21ch; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.45; color: var(--muted); text-wrap: balance; }

/* live, wide: the ping is pinned (CSS sticky) and scrubbed */
html.fx .ping { height: 401vh; }
/* the light chapter rises over the pinned stage like a curtain while the chevron shoots off */
html.fx .products { margin-top: -75vh; }
html.fx .ping__panel { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
html.fx .ping__copy { padding: 0; }
html.fx .ping__eyebrow { position: absolute; top: calc(var(--hdr) + 36px); }
html.fx .ping__list { display: block; position: relative; margin: 0; height: min(60vh, 520px); }
html.fx .stat { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
html.fx .stat__fig { display: none; }
html.fx .stat__num { margin: 26px 0 26px; font-size: clamp(6rem, 13vw, 13.5rem); }
html.fx .stat__label { max-width: 17ch; }
html.fx .ping__rail { display: block; position: absolute; left: calc(var(--gut) * .42); top: 50%; height: min(44vh, 400px); width: 1px; transform: translateY(-50%); background: var(--line-strong); }
.ping__fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: linear-gradient(#6d4aff, #b23ca6 52%, #d6469e); transform-origin: 50% 0; transform: scaleY(0); }
.ping__rail i { position: absolute; left: -4px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--background); border: 1px solid var(--line-strong); transition: background .4s, border-color .4s, box-shadow .4s; }
.ping__rail i:nth-of-type(1) { top: -4px; }
.ping__rail i:nth-of-type(2) { top: calc(50% - 4px); }
.ping__rail i:nth-of-type(3) { top: calc(100% - 4px); }
.ping__rail i.is-on { background: #b23ca6; border-color: #b23ca6; box-shadow: 0 0 14px #d6469e80; }

/* ---------------- products: the light chapter ---------------- */
.products {
  --background: #efeaf7; --surface: #fff; --surface-2: #efeaf7; --foreground: #161320; --muted: #161320a8; --faint: #16132075;
  --line: #2e16501f; --line-strong: #2e165033; --accent: #be2486; --shadow-card: 0 20px 44px -26px #46185a52;
  --shadow-accent: 0 16px 40px -14px #d6469e66; --rt-stack-shade: #161320;
  position: relative; z-index: 3; overflow-x: clip; background: var(--background); color: var(--foreground);
  padding: clamp(96px, 13vh, 150px) 0 clamp(110px, 15vh, 170px);
}
:root[data-theme="dark"] .products { --background: #f6f4fb; }
/* chapter edges: a row of diamonds dissolving, in the colour of the section they belong to */
.products::before, .services::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 88px; pointer-events: none;
  background-color: var(--background);
  -webkit-mask: url(edge-light.svg) repeat-x 0 100% / 960px 88px; mask: url(edge-light.svg) repeat-x 0 100% / 960px 88px;
}
.services::before { -webkit-mask-image: url(edge-dark.svg); mask-image: url(edge-dark.svg); }
/* MosPing's light surface: white to the faintest lilac, a hairline and an inner highlight */
:root:not([data-theme="dark"]) .pcard, :root:not([data-theme="dark"]) .mos__tile, :root:not([data-theme="dark"]) .form {
  background: linear-gradient(#fff, #fbf9fe); border-color: var(--line);
}
:root:not([data-theme="dark"]) .pcard { box-shadow: 0 -26px 60px -44px rgba(22, 19, 32, .36), 0 1px 2px #1e0e380a, inset 0 1px #ffffffb3, var(--shadow-card); }
:root:not([data-theme="dark"]) .mos__tile { box-shadow: 0 1px 2px #1e0e380a, inset 0 1px #ffffffb3, var(--shadow-card); }
:root:not([data-theme="dark"]) .form { box-shadow: 0 1px 2px #1e0e380a, inset 0 1px #ffffffb3, var(--shadow-card); }
.products ::selection { background: #6d4aff; color: #fff; }

.pstack { gap: clamp(56px, 9vh, 110px); margin-top: clamp(56px, 8vh, 88px); }
.pcard {
  position: relative; display: grid; grid-template-rows: 54px minmax(0, 1fr);
  height: clamp(500px, calc(100vh - 230px), 700px); overflow: hidden; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 -26px 60px -44px rgba(22, 19, 32, .42), var(--shadow-card);
}
.pcard__tab { display: flex; align-items: center; gap: 18px; padding: 0 28px; border-bottom: 1px solid var(--line); font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pcard__i { color: var(--muted); }
.pcard__flag { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: var(--accent); }
.pcard__body { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 7.6fr); gap: clamp(28px, 3.6vw, 60px); padding: clamp(24px, 2.6vw, 44px) clamp(24px, 2.6vw, 44px) clamp(24px, 2.6vw, 44px) clamp(28px, 3.2vw, 52px); min-height: 0; }
.pcard__copy { display: flex; flex-direction: column; align-items: flex-start; min-height: 0; padding-top: 6px; }
.pcard__cat { font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pcard__name { margin: 20px 0 22px; font: 500 clamp(2.6rem, 4.3vw, 4.6rem)/.92 var(--display); letter-spacing: -.045em; }
.pcard__desc { max-width: 30ch; font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.pcard__note { display: flex; gap: 12px; align-items: baseline; margin-top: 22px; max-width: 30ch; font: 500 15px/1.45 var(--text); color: var(--foreground); }
.pcard__note::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--signature); transform: rotate(45deg) translateY(-1px); }
.pcard__copy .xlink { margin-top: 22px; font: 500 13px/1 var(--mono); letter-spacing: .06em; color: var(--accent); }
.pcard__media { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; container-type: size; }
.browser { position: relative; width: min(100cqw, (100cqh - 34px) * 1.6); overflow: hidden; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 40px 70px -46px rgba(22, 19, 32, .5); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser__bar i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser__url { margin: 0 auto; padding: 5px 16px; border-radius: 999px; background: var(--surface); font: 500 11px/1 var(--mono); letter-spacing: .02em; color: var(--muted); transform: translateX(-16px); }
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; }
.pcard__app { position: absolute; right: 1.5%; bottom: 3%; width: 44%; overflow: hidden; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 34px 60px -26px rgba(22, 19, 32, .55); transform: rotate(-3deg); }
.pcard__app img { width: 100%; height: auto; aspect-ratio: 16 / 7.4; object-fit: cover; object-position: 50% 12%; }
.pcard__app--expo img { aspect-ratio: 16 / 9; object-position: 30% 22%; }

.mos { margin-top: clamp(96px, 15vh, 180px); }
.mos__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.mos__h { font: 500 clamp(1.9rem, 3vw, 3rem)/1.02 var(--display); letter-spacing: -.035em; max-width: 14em; text-wrap: balance; }
.mos__sub { max-width: 40ch; color: var(--muted); justify-self: end; text-wrap: pretty; }
.mos__row { display: grid; grid-template-columns: minmax(0, 1fr) clamp(96px, 9vw, 132px) minmax(0, 1fr) minmax(0, 1fr); margin-top: 32px; }
.mos__tile { position: relative; display: flex; flex-direction: column; padding: 24px 24px 32px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.mos__tile + .mos__tile { margin-left: 22px; }
.mos__tile:hover { transform: translateY(-3px); }
.mos__plate {
  position: relative; display: grid; place-items: center; height: 172px; margin: -12px -12px 26px; border-radius: 14px; overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath fill='%232e165024' d='M8 6.6 9.4 8 8 9.4 6.6 8Z'/%3E%3C/svg%3E") 0 0 / 16px 16px, var(--surface-2);
}
.mos__icon { display: block; width: 118px; height: 118px; }
.mos__cat { font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.mos__name { margin: 12px 0 12px; font: 500 clamp(1.7rem, 2.2vw, 2.15rem)/1 var(--display); letter-spacing: -.035em; }
.mos__desc { color: var(--muted); font-size: 16.5px; line-height: 1.55; text-wrap: pretty; }
.mos__wire { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; padding: 92px 10px 0; }
.mos__wire-line {
  width: 100%; height: 10px; background: var(--signature);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M5 1.6 8.4 5 5 8.4 1.6 5Z'/%3E%3C/svg%3E") 0 50% / 10px 10px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M5 1.6 8.4 5 5 8.4 1.6 5Z'/%3E%3C/svg%3E") 0 50% / 10px 10px repeat-x;
  animation: wire 1.6s linear infinite;
}
@keyframes wire { to { -webkit-mask-position: 10px 50%; mask-position: 10px 50%; } }
.mos__wire-note { font: 500 10.5px/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-align: center; color: var(--muted); max-width: 13ch; }

/* ---------------- services: the index ---------------- */
.services { position: relative; z-index: 3; background: var(--background); padding: clamp(110px, 14vh, 160px) 0 clamp(96px, 12vh, 140px); }
.sec-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: 48px; }
.sec-head--split .eyebrow { grid-column: 1 / -1; }
.sec-head--split .lead { justify-self: end; }
.svc { margin-top: clamp(56px, 8vh, 88px); border-top: 1px solid var(--line); counter-reset: s; }
.svc__row {
  position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) 88px 148px; align-items: center; gap: 28px;
  padding: 30px 0; border-bottom: 1px solid var(--line); transition: transform .45s var(--ease);
}
.svc__row::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -.5); border-radius: 18px; background: var(--surface); opacity: 0; transition: opacity .45s var(--ease); z-index: -1; }
.svc__i { align-self: start; padding-top: .9em; font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--faint); }
.svc__name {
  font: 500 clamp(2rem, 3.7vw, 3.8rem)/1.02 var(--display); letter-spacing: -.04em; text-wrap: balance;
  background: linear-gradient(90deg, #6d4aff 0%, #b23ca6 26%, #d6469e 50%, var(--foreground) 50%) 100% 0 / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position .7s var(--ease);
}
.svc__desc { margin-top: 12px; max-width: 54ch; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.svc__icon { display: block; width: 76px; height: 76px; justify-self: center; }
.svc__go { justify-self: end; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; white-space: nowrap; text-decoration: none; font: 500 15px/1 var(--text); color: var(--foreground); }
.svc__go::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc__arr { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background .35s, border-color .35s, transform .35s var(--ease); }
.svc__row:hover, .svc__row:focus-within { transform: translateY(-2px); }
.svc__row:hover::before, .svc__row:focus-within::before { opacity: .55; }
.svc__row:hover .svc__name, .svc__row:focus-within .svc__name { background-position: 0 0; }
.svc__row:hover .svc__arr, .svc__row:focus-within .svc__arr { background: var(--signature); border-color: transparent; transform: translateX(3px); }
.svc__go:focus-visible { outline: none; }
.svc__go:focus-visible .svc__arr { outline: 2px solid #6d4aff; outline-offset: 3px; }
.svc__go:focus-visible { box-shadow: 0 0 0 2px #6d4aff; border-radius: 8px; }

/* ---------------- first call to production: the ruler ---------------- */
.ruler { position: relative; z-index: 3; background: var(--background); }
.ruler__panel { padding: clamp(96px, 12vh, 140px) 0; }
html.fx .ruler { height: 180vh; }
html.fx .ruler__panel { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: var(--hdr) 0 0; }
html.fx .ruler__panel > .wrap { width: min(100% - 2 * var(--gut), var(--maxw)); }
.sec-head--tight { gap: 24px; }
.ruler__body { position: relative; margin-top: clamp(64px, 11vh, 120px); --p: 1; }
html.fx .ruler__body { --p: 0; }
.ruler__track { position: relative; height: 84px; }
.ruler__ticks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ruler__ticks line { stroke: var(--line-strong); stroke-width: 1; shape-rendering: crispEdges; }
.ruler__ticks line.maj { stroke: var(--faint); }
.ruler__lbl { position: absolute; top: 0; transform: translateX(-50%); font: 500 10.5px/1 var(--mono); letter-spacing: .1em; color: var(--faint); }
.ruler__lbl.is-first { transform: none; }
.ruler__lbl.is-last { transform: translateX(-100%); }
.ruler__track::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-strong); }
.ruler__fill { position: absolute; left: 0; bottom: 0; z-index: 1; width: 100%; height: 2px; background: var(--signature); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.ruler__ping { position: absolute; bottom: -9px; left: calc(var(--p) * 100%); z-index: 2; width: 18px; height: 18px; margin-left: -9px; background: var(--signature); transform: rotate(45deg); box-shadow: 0 0 0 6px var(--background), 0 0 34px 6px #d6469e66; }
.ruler__marks { position: relative; height: 210px; margin-top: 0; }
.mark { position: absolute; top: 0; left: calc(var(--at) * 100%); width: 24ch; padding: 40px 0 0 24px; }
.mark::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: linear-gradient(var(--line-strong), transparent); }
.mark::after { content: ""; position: absolute; left: -4px; top: -5px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--background); border: 1px solid var(--line-strong); transition: background .4s, border-color .4s, box-shadow .4s; }
.mark--end { left: auto; right: 0; padding: 34px 22px 0 0; text-align: right; }
.mark--end::before { left: auto; right: 0; }
.mark--end::after { left: auto; right: -4px; }
.mark__when { font: 500 clamp(1.6rem, 2.5vw, 2.6rem)/1.02 var(--display); letter-spacing: -.035em; color: var(--faint); transition: color .5s; }
.mark__what { margin-top: 12px; font-size: 16.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.mark.is-on .mark__when { color: var(--foreground); }
.mark.is-on::after { background: #b23ca6; border-color: #b23ca6; box-shadow: 0 0 16px #d6469e99; }
.ruler__scale { display: flex; justify-content: flex-end; margin-top: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------------- how we work ---------------- */
.how { position: relative; z-index: 3; background: var(--background); padding: clamp(100px, 13vh, 150px) 0 clamp(110px, 14vh, 160px); }
.how__list { margin-top: clamp(40px, 6vh, 64px); }
.how__row { display: grid; grid-template-columns: 72px minmax(0, 7fr) minmax(0, 4fr); gap: 28px 40px; align-items: baseline; padding: clamp(36px, 5vh, 56px) 0; border-top: 1px solid var(--line); }
.how__row:last-child { border-bottom: 1px solid var(--line); }
.how__i { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--faint); }
.how__st { font: 500 clamp(2.3rem, 4.9vw, 5.1rem)/.98 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.how__dia { display: inline-block; width: .44em; height: .44em; margin: 0 .26em .06em 0; vertical-align: baseline; overflow: visible; }
.how__dia path { fill: url(#sig-grad); fill-opacity: 1; stroke: url(#sig-grad); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .rt-js .how__dia path, .rt-failsafe .how__row:not(.is-in) .how__dia path { transition: stroke-dashoffset .7s var(--ease), fill-opacity .5s .45s; }
  html.fx .how__row:not(.is-in) .how__dia path { stroke-dashoffset: 1; fill-opacity: 0; }
}
.how__p { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--muted); max-width: 34ch; text-wrap: pretty; }

/* ---------------- Sydney ---------------- */
.city {
  --background: #0c0b12; --foreground: #f2f0f8; --muted: #f2f0f8a3; --line-strong: #b09ede38;
  position: relative; z-index: 3; height: clamp(600px, 92vh, 980px); overflow: clip; background: var(--background); color: var(--foreground);
}
.city__media { position: absolute; left: 0; right: 0; top: -9%; bottom: -9%; }
.city__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.city__px { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.city::before, .city::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.city::before { top: 0; height: 30%; background: linear-gradient(#0c0b12, rgba(12, 11, 18, .6) 40%, rgba(12, 11, 18, 0)); }
.city::after { bottom: 0; height: 50%; background: linear-gradient(rgba(12, 11, 18, 0), rgba(12, 11, 18, .55) 45%, #0c0b12); }
/* light: no ink fade (it would read as a dark band); the light ground breaks into the photo as diamond pixels, top
   and bottom, and a soft scrim behind the words keeps them legible on the water */
:root:not([data-theme="dark"]) .city::before {
  top: -1px; height: 88px; background: #f6f4fb; transform: scaleY(-1);
  -webkit-mask: url(edge-dark.svg) repeat-x 0 100% / 960px 88px; mask: url(edge-dark.svg) repeat-x 0 100% / 960px 88px;
}
:root:not([data-theme="dark"]) .city::after { height: 56%; background: linear-gradient(rgba(12, 11, 18, 0), rgba(12, 11, 18, .5) 55%, rgba(12, 11, 18, .66)); }
:root:not([data-theme="dark"]) .contact::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 88px; pointer-events: none; background-color: var(--background);
  -webkit-mask: url(edge-light.svg) repeat-x 0 100% / 960px 88px; mask: url(edge-light.svg) repeat-x 0 100% / 960px 88px;
}
:root:not([data-theme="dark"]) .city__copy { bottom: calc(clamp(56px, 10vh, 120px) + 36px); }
.city__copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(56px, 10vh, 120px); }
.city__h { font: 500 clamp(2.8rem, 6.2vw, 6.6rem)/.94 var(--display); letter-spacing: -.045em; max-width: 9.5em; text-wrap: balance; }
.city__line { margin-top: 26px; font: 500 12px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.city__clock { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(12, 11, 18, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--foreground); }
.city__time { font-variant-numeric: tabular-nums; }

/* ---------------- contact ---------------- */
.contact { position: relative; z-index: 3; background: var(--background); padding: clamp(96px, 12vh, 140px) 0 clamp(110px, 15vh, 170px); }
.sec-head--contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; column-gap: clamp(32px, 5vw, 88px); }
.sec-head--contact .eyebrow { grid-column: 1 / -1; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 88px); align-items: start; margin-top: clamp(48px, 7vh, 72px); }
.form { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 3.2vw, 46px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); }
.form::before { content: ""; position: absolute; z-index: -1; top: -42%; right: -26%; width: 78%; height: 92%; background: radial-gradient(closest-side, rgba(214, 70, 158, .17), rgba(109, 74, 255, .09) 55%, rgba(109, 74, 255, 0)); pointer-events: none; }
.form__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 26px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.form__h { display: flex; align-items: center; gap: 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--foreground); }
.form__tag { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 32px; }
.fld { display: grid; gap: 4px; min-width: 0; }
.fld--wide { grid-column: 1 / -1; }
.fld label { font: 500 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.opt { margin-left: 6px; color: var(--muted); letter-spacing: .1em; text-transform: none; opacity: .8; }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 48px; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; color: var(--foreground); font: 400 18px/1.4 var(--text);
  transition: border-color .3s, box-shadow .3s;
}
.fld textarea { resize: vertical; min-height: 112px; }
.fld ::placeholder { color: var(--faint); }
.fld select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath fill='%236d4aff' d='M6 1.5 10.5 6 6 10.5 1.5 6Z'/%3E%3C/svg%3E") right 4px center / 12px 12px no-repeat; }
.fld select:invalid { color: var(--faint); }
.fld option { background: var(--surface); color: var(--foreground); }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-bottom-color: var(--faint); }
.fld input:focus, .fld select:focus, .fld textarea:focus, .fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: none; border-bottom-color: #6d4aff; box-shadow: 0 2px 0 #6d4aff, 0 12px 24px -18px #6d4aff; }
.fld:focus-within label { color: var(--foreground); }
.fld.is-picked select { animation: picked 1.1s var(--ease); }
@keyframes picked { 0%, 40% { box-shadow: 0 2px 0 #d6469e; border-bottom-color: #d6469e; } 100% { box-shadow: 0 1px 0 transparent; } }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 38px; }
.form__fine { font: 500 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form__msg { margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 15.5px; line-height: 1.5; }

.get { padding-top: 8px; }
.get__h { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.get__list li { position: relative; padding: 18px 0 18px 30px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.get__list li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 7px; height: 7px; background: var(--signature); transform: rotate(45deg); }
.get__mail { margin-top: 44px; }
.get__k { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.get__email { position: relative; display: inline-flex; align-items: center; min-height: 48px; margin-top: 8px; font: 500 clamp(1.5rem, 2.1vw, 2rem)/1.1 var(--display); letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.get__email::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--signature); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.get__email:hover::after { transform: scaleX(.3); transform-origin: 100% 50%; }
.get__where { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--muted); }
.get__mail--zoom { margin-top: 32px; }
.get__zoom { margin-top: 4px; font-size: 17px; }

/* ---------------- footer ---------------- */
.foot { position: relative; z-index: 3; overflow: clip; background: var(--background); border-top: 1px solid var(--line); padding: clamp(80px, 11vh, 120px) 0 36px; }
.foot__art { position: absolute; right: 0; bottom: 104px; width: min(52%, 860px); height: clamp(380px, 52vh, 540px); }
.foot__px { display: block; width: 100%; height: 100%; }
.foot__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; pointer-events: none; }
.foot__in a, .foot__in li, .foot__in p { pointer-events: auto; }
.foot__brand { max-width: 25rem; padding-bottom: 44px; }
.foot__logo { width: 156px; height: auto; }
.foot__line { margin-top: 26px; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; max-width: min(54%, 720px); padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot__h { margin-bottom: 14px; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot__col a { display: inline-flex; align-items: center; min-height: 38px; text-decoration: none; color: var(--muted); transition: color .25s; }
.foot__col a:hover { color: var(--foreground); }
.foot__plain { padding: 9px 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.xlink--quiet { font-weight: 400; }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line); font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.foot__legal a, .foot__top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); text-decoration: none; }
.foot__legal a:hover, .foot__top:hover { color: var(--foreground); }

/* ======================= responsive ======================= */
@media (max-width: 1180px) {
  .hdr__nav a { padding: 0 10px; }
  .svc__row { grid-template-columns: 56px minmax(0, 1fr) 72px 132px; gap: 20px; }
}

@media (max-width: 899px) {
  :root { --hdr: 62px; }
  .hdr__nav { display: none; }
  .hdr__menu { display: inline-flex; }
  .hdr__logo img { width: 86px; }
  .pill { min-height: 44px; padding: 0 18px; font-size: 14px; }
  .pill__long { display: none; }
  .pill__short { display: inline; }
  .hdr__theme { display: none; }

  .sec-h { font-size: clamp(2.45rem, 9.6vw, 4.4rem); }
  .sec-head--split, .sec-head--contact { grid-template-columns: minmax(0, 1fr); }
  .sec-head--split .lead { justify-self: start; }

  .pcard { height: auto; grid-template-rows: auto; }
  .pcard__tab { display: none; }
  .pcard__body { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 14px 14px 24px; }
  .pcard__media { order: -1; container-type: normal; display: block; }
  .browser { width: 100%; border-radius: 12px; }
  .browser__bar { height: 28px; }
  .browser__url { font-size: 10px; padding: 4px 12px; }
  .pcard__app { width: 46%; right: 2%; bottom: -6%; border-radius: 9px; }
  .pcard__copy { padding: 6px 8px 0; }
  .pcard__name { margin: 14px 0 12px; font-size: clamp(2.3rem, 10vw, 3rem); }
  .pcard__note { margin-top: 14px; font-size: 14.5px; }
  .pcard__copy .xlink { margin-top: 10px; }
  .pstack { gap: 28px; }

  .mos { margin-top: 72px; }
  .mos__head { grid-template-columns: minmax(0, 1fr); }
  .mos__sub { justify-self: start; }
  .mos__row { grid-template-columns: minmax(0, 1fr); }
  .mos__tile + .mos__tile { margin-left: 0; margin-top: 16px; }
  .mos__tile { padding: 18px 18px 26px; }
  .mos__plate { height: 148px; margin: -6px -6px 22px; }
  .mos__icon { width: 104px; height: 104px; }
  .mos__wire { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; height: 76px; padding: 0 0 0 34px; }
  .mos__wire-line { width: 10px; height: 100%; -webkit-mask-repeat: repeat-y; mask-repeat: repeat-y; -webkit-mask-position: 50% 0; mask-position: 50% 0; animation-name: wire-v; }
  .mos__wire-note { text-align: left; max-width: none; }
  @keyframes wire-v { to { -webkit-mask-position: 50% 10px; mask-position: 50% 10px; } }

  .svc__row { grid-template-columns: 34px minmax(0, 1fr) 56px; grid-template-areas: "i main icon" ". go go"; gap: 14px 14px; padding: 26px 0 20px; align-items: start; }
  .svc__i { grid-area: i; padding-top: .7em; }
  .svc__main { grid-area: main; }
  .svc__icon { grid-area: icon; width: 56px; height: 56px; }
  .svc__go { grid-area: go; justify-self: start; }
  .svc__name { font-size: clamp(1.75rem, 7.6vw, 2.6rem); }
  .svc__desc { font-size: 16px; }
  .svc__row::before { display: none; }
  .svc__row:hover, .svc__row:focus-within { transform: none; }

  html.fx .ruler { height: auto; }
  html.fx .ruler__panel { position: relative; height: auto; display: block; padding: clamp(90px, 12vh, 130px) 0 40px; }
  .ruler__panel { padding-bottom: 40px; }
  .how { padding-top: 72px; }
  .ruler__body { margin-top: 48px; padding-left: 34px; }
  .ruler__track { position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .ruler__track::after { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .ruler__ticks { display: none; }
  .ruler__fill { left: 0; top: 0; bottom: auto; width: 2px; height: 100%; transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .ruler__ping { left: -8px; bottom: auto; top: calc(var(--p) * 100%); margin: -9px 0 0 0; }
  .ruler__marks { height: auto; display: grid; gap: 40px; }
  .mark, .mark--end { position: relative; left: auto; right: auto; width: auto; padding: 0; text-align: left; }
  .mark::before, .mark--end::before { display: none; }
  .mark::after, .mark--end::after { left: -32px; right: auto; top: .55em; }
  .ruler__scale { display: none; }

  .how__row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .how__st { font-size: clamp(2.1rem, 9.4vw, 3.4rem); }

  .city { height: clamp(580px, 94svh, 880px); }
  .city__img { object-position: 64% 50%; }
  .city__copy { bottom: clamp(40px, 8svh, 72px); }
  .city__h { font-size: clamp(2.5rem, 11.2vw, 4.4rem); }
  .ruler__lbl { display: none; }

  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .form__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .form__top { flex-wrap: wrap; }
  .form__foot .btn { width: 100%; }

  .foot { padding-top: 0; }
  .foot__art { position: relative; bottom: auto; width: 100%; height: clamp(230px, 34svh, 300px); }
  .foot__cols { max-width: none; }
  .foot__brand { min-height: 0; padding: 4px 0 32px; }
  .foot__brand { padding-top: 18px; }
  .foot__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__cols .foot__col:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .foot__cols .foot__col:nth-child(2) ul { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
  .foot__col a { font-size: 15.5px; }
  .foot__plain { font-size: 14.5px; white-space: nowrap; }
}

/* narrow portrait: the pixel stage sits at the top of the screen; copy scrolls beneath it */
@media (max-width: 899px) and (orientation: portrait) {
  .field { height: var(--stage); }
  html.fx .field { height: auto; z-index: 4; }
  .products { z-index: 5; }
  html.fx .field__stage { height: var(--stage); background: var(--aurora), var(--background); pointer-events: auto; }
  html.fx .field__stage::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 44px; background: linear-gradient(var(--background), transparent); pointer-events: none; }
  .hdr { background: var(--hdr-glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
  .hero { display: block; min-height: 0; padding: calc(var(--stage) + 22px) 0 56px; }
  .hero__h { margin: 14px 0 16px; font-size: clamp(2.7rem, 13.1vw, 5.4rem); }
  .hero__lead { font-size: 16px; max-width: 34em; }
  .hero__cta { margin-top: 22px; gap: 4px 22px; }
  .hero__cue { display: none; }
  .ping__list { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .stat__fig { width: min(100%, 300px); }
  html.fx .ping { height: auto; }
  html.fx .products { margin-top: 0; }
  html.fx .ping__panel { position: relative; height: auto; display: block; }
  html.fx .ping__copy { padding: 48px 0 12vh; }
  html.fx .ping__eyebrow { position: static; }
  html.fx .ping__list { height: auto; display: grid; gap: 0; margin-top: 0; }
  html.fx .stat { position: relative; top: auto; transform: none; min-height: 62svh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
  html.fx .stat__num { font-size: clamp(5.4rem, 29vw, 8rem); margin: 18px 0 16px; }
  html.fx .ping__rail { display: none; }
}

@media (max-width: 560px) {
  .hero__lead { font-size: 15.5px; }
  .btn { min-height: 50px; padding: 0 22px; font-size: 15.5px; }
  .lead { font-size: 16.5px; }
  .eyebrow { font-size: 11px; gap: 12px; }
  .foot__base { flex-direction: column; align-items: flex-start; }
}

/* short phones: a slimmer stage keeps both actions on the first screen */
@media (max-width: 899px) and (orientation: portrait) and (max-height: 760px) {
  :root { --stage: clamp(240px, 37svh, 300px); }
  .hero { padding-top: calc(var(--stage) + 14px); }
  .hero__h { margin: 12px 0 14px; font-size: clamp(2.6rem, 12.4vw, 3.4rem); }
  .hero__lead { line-height: 1.5; }
  .hero__cta { margin-top: 18px; }
}

/* short landscape screens (phones turned sideways): two-line headline, the action on screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-top: calc(var(--hdr) + 12px); padding-bottom: 40px; }
  .hero__h { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 10px 0 12px; max-width: 12em; }
  .hero__l { display: inline; }
  .hero__l:nth-child(2)::after { content: "\A"; white-space: pre; }
  .hero__lead { font-size: 15px; max-width: 28em; }
  .hero__cta { margin-top: 18px; }
  .hero__cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__cue { display: none; }
}
