/* Meridian Studio homepage. House style = css/meridian.css (copied by tools/build.py from
   Active/quality-track/design-system/meridian.css). This file is page layout only. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--on-sun); padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.ms-eyebrow .n { color: var(--sun-2); margin-right: 12px; font-variant-numeric: tabular-nums; }

/* ===== NAV ===== */
.nav { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 24px 28px 0 var(--gut); pointer-events: none; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.nav > * { pointer-events: auto; }
.nav.hide { transform: translateY(-130%); }
.wordmark { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font-family: var(--serif); font-size: 25px; line-height: 1; letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.mark { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .5)); }
.mark .arc { stroke: var(--sun); }
.nav-links { display: flex; gap: 2px; padding: 5px; border-radius: 999px; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .7); }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--tint-2); color: var(--ink); }
.nav-cta svg { width: 16px; height: 16px; }
.menu-btn { display: none; flex-direction: column; gap: 5px; place-items: center; justify-content: center; }
.menu-btn span { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 39; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 90px 24px 40px; background: var(--glass-strong); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); animation: ms-fade .45s var(--ease); }
.menu[hidden] { display: none; }
.menu a { font-family: var(--serif); font-size: 38px; line-height: 1.2; text-decoration: none; }

/* ===== LAND: full-bleed stage ===== */
.land { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0; background: var(--bg); }
.sky { position: absolute; inset: 0; background: radial-gradient(90% 60% at 62% 0%, var(--sky-glow, #3a2c22) 0%, transparent 70%), linear-gradient(180deg, var(--sky-top, #0b0e13) 0%, var(--sky-mid, #121821) 45%, var(--bg) 100%); }
.poster { position: absolute; inset: 0; background: url(../assets/poster-d.jpg) center / cover no-repeat; transition: opacity 1.2s var(--ease); }
.stage.ready .poster { opacity: 0; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); touch-action: pan-y; cursor: grab; outline: none; }
#gl:active { cursor: grabbing; }
.stage.ready #gl { opacity: 1; }
.stage .ms-vignette { z-index: 1; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(5, 6, 8, .62) 0%, rgba(5, 6, 8, .3) 32%, transparent 52%); transition: opacity 1s var(--ease); }
body.touring .stage::after { opacity: .7; }
.stage .grade { z-index: 1; }
body.mode-slope .grade { opacity: .5; background: linear-gradient(160deg, #2a3550, #7a6a58); }
body.mode-sun .grade { opacity: .35; background: radial-gradient(80% 60% at 70% 20%, #ffb36b, transparent 70%); }
body.mode-water .grade { opacity: .65; background: linear-gradient(180deg, #0d3a66, #0a2440); }
body.mode-spots .grade { opacity: .4; background: radial-gradient(70% 60% at 50% 55%, #ffcf7a, #3a2350 90%); }
body.mode-water { --accent: var(--water); }
body.mode-slope { --accent: #e8c79a; }
body.mode-spots { --accent: #ffd27a; }
.stage-scrim { display: none; }
.loader { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 12px; font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); opacity: 0; transition: opacity .6s; pointer-events: none; }
.loader svg { width: 72px; fill: none; stroke: var(--sun); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 120; animation: ms-draw 2.4s var(--ease) infinite; filter: drop-shadow(0 0 10px rgba(245, 185, 106, .5)); }
.loader.on { opacity: 1; }
.stage.ready .loader, .stage.no3d .loader { opacity: 0; }
.stage.no3d .poster { opacity: 1; }

/* spot pins (land-map style) */
.labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.pin { position: absolute; left: 0; top: 0; transform: translate3d(var(--x), var(--y), 0); opacity: 0; transition: opacity .6s var(--ease); will-change: transform; }
.pin.on { opacity: 1; }
.pin .stack { position: absolute; left: 0; bottom: 0; translate: -50% 0; display: flex; flex-direction: column; align-items: center; }
.pin .ms-spot-dot { width: 30px; height: 30px; font-size: 16px; }
.pin .stem { width: 2px; height: 22px; background: linear-gradient(#ffd27a, transparent); }
.pin .ms-lbl { position: absolute; left: 22px; top: 4px; font-size: 9.5px; }

/* ===== HERO ===== */
.hero { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; height: 100vh; height: 100svh; min-height: 600px; pointer-events: none; }
.hero-copy { position: absolute; left: var(--gut); top: 116px; max-width: 640px; pointer-events: auto; }
.hero-copy .ms-hero-title { margin: 18px 0 18px; text-wrap: balance; }
.hero-copy .lede { margin: 0; max-width: 470px; font-size: 15px; line-height: 1.6; color: var(--ink-2); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-ctas .ms-btn span { transition: transform .3s var(--ease); }
.hero-ctas .ms-btn:hover span { transform: translateX(3px); }

/* split headline reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + 150ms); }
.split.in .w > span { transform: none; }
.hero .ms-badge, .hero .lede, .hero-ctas { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero.in .ms-badge { opacity: 1; transform: none; transition-delay: .05s; }
.hero.in .lede { opacity: 1; transform: none; transition-delay: .55s; }
.hero.in .hero-ctas { opacity: 1; transform: none; transition-delay: .7s; }

/* ===== HUD: side card + bottom mode bar ===== */
.hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: 0; transition: opacity .7s var(--ease), visibility .7s; }
body.hud-on .hud { opacity: 1; }
body:not(.in-land) .hud { opacity: 0; visibility: hidden; }
.hud.off .side, .hud.off .ms-modes { display: none; }
.side { position: absolute; right: 24px; bottom: 24px; width: var(--side-w); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.side .ms-card { pointer-events: auto; }
body:not(.at-hero) .side { opacity: 0; transform: translateY(16px); }
body:not(.at-hero) .side .ms-card { pointer-events: none; }
.mc-head { padding: 18px 20px 0; }
.mc-head .ms-h3 { margin-top: 4px; }
.mc-body { padding: 12px 20px 18px; }
.legend-block { display: none; margin-bottom: 14px; animation: ms-fade .5s var(--ease); }
body.mode-ground .legend-block[data-for="ground"], body.mode-slope .legend-block[data-for="slope"], body.mode-water .legend-block[data-for="water"], body.mode-spots .legend-block[data-for="spots"] { display: block; }
.ramp { height: 10px; border-radius: 6px; margin: 4px 0 6px; }
.ramp-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); }
.sun-panel { padding-top: 14px; border-top: 1px solid var(--line); }
.tl-head { display: flex; align-items: center; gap: 14px; }
.play { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--on-sun); box-shadow: var(--glow); transition: transform .2s var(--ease); }
.play:active { transform: scale(.92); }
.play svg { width: 18px; height: 18px; fill: currentColor; }
.play .i-pause, .play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.tl-time { flex: 1; min-width: 0; }
.tl-clock { font-size: 34px; line-height: 1; }
.tl-date { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.sun-state { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; padding: 6px 10px; border-radius: 999px; background: var(--tint-2); border: 1px solid var(--line); white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.sun-state i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px var(--sun); }
.sun-state.is-shade i { background: var(--shade); box-shadow: 0 0 10px var(--shade); }
.sun-state.is-night i { background: #5a6070; box-shadow: none; }
.tl-track-wrap { position: relative; height: 34px; margin-top: 12px; }
.tl-track { position: absolute; left: 11px; right: 11px; top: 13px; height: 8px; border-radius: 8px; }
#time { position: absolute; inset: 0; width: 100%; height: 34px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: grab; touch-action: none; }
#time::-webkit-slider-runnable-track { height: 34px; background: transparent; }
#time::-moz-range-track { height: 34px; background: transparent; }
#time::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: 6px; border-radius: 50%; background: #fff; border: 4px solid var(--sun); box-shadow: 0 0 0 6px rgba(245, 185, 106, .18), 0 4px 14px rgba(0, 0, 0, .5); }
#time::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--sun); }
.tl-ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); letter-spacing: .06em; margin-top: 2px; }
.presets { margin-top: 12px; }

.bar { position: absolute; left: 50%; bottom: 22px; translate: calc(-50% - var(--side-w) / 2 - 12px) 0; width: min(720px, calc(100vw - var(--side-w) - 96px)); text-align: center; }
.bar .ms-modes { pointer-events: auto; }
.bar .ms-narration { transition: opacity .6s var(--ease); }
.bar .ms-narration b { font-weight: 400; color: var(--sun-2); }
body:not(.at-hero) .bar .ms-narration { opacity: 0; }
.source { margin: 12px 0 0; }
.source span { display: block; }

/* tour progress rail */
.tour-progress { position: fixed; z-index: 21; left: 32px; top: 50%; translate: 0 -50%; width: 2px; height: 180px; border-radius: 2px; background: rgba(255, 255, 255, .14); opacity: 0; transition: opacity .7s var(--ease); pointer-events: none; }
.tour-progress i { display: block; width: 100%; height: 0; border-radius: 2px; background: var(--sun); box-shadow: 0 0 12px var(--sun); }
body.touring.in-land .tour-progress { opacity: 1; }

/* ===== CHAPTERS ===== */
.chapters { position: relative; z-index: 2; pointer-events: none; }
.ch-intro { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; max-width: 760px; padding: 120px var(--gut) 60px 72px; text-shadow: 0 2px 24px rgba(0, 0, 0, .8); }
.ch-intro .ms-h2 { margin: 18px 0 18px; }
.ch-intro > p:last-child { max-width: 460px; font-size: 15px; color: var(--ink-2); margin: 0; }
.ms-h2.big { font-size: clamp(40px, 5vw, 72px); line-height: .98; text-wrap: balance; }
.chapter { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 0 0 0 72px; }
.chapter-tall { min-height: 220vh; align-items: flex-start; }
.chapter-tall .ch-card { position: sticky; top: calc(50vh - 150px); }
.ch-card { pointer-events: auto; width: min(430px, calc(100vw - 40px)); padding: 26px 28px 24px; border-radius: 26px; background: var(--glass-strong); border: 1px solid var(--line); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); opacity: .25; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.chapter.active .ch-card { opacity: 1; transform: none; }
.ch-card h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.02; margin: 8px 0 12px; letter-spacing: -.01em; }
.ch-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 10px; }
.ch-card p:last-child { margin-bottom: 0; }
.ch-card .legend { margin-top: 14px; }
.ch-live { font-size: 30px !important; color: var(--sun-2) !important; margin-top: 6px !important; }
.spot-facts { margin: 14px 0 0; }
.spot-facts dt { font-size: 10.5px; color: var(--ink-3); }
.spot-facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: 23px; line-height: 1.1; }
.ask { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; gap: 6px; }
.ask li { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.ask b { font-weight: 600; color: var(--ink); }
.seller { font-family: var(--serif); font-style: italic; font-size: 19px !important; color: var(--ink) !important; }
.seller strong { font-weight: 400; color: var(--sun-2); }

/* ===== LOWER PAGE ===== */
.lower { position: relative; z-index: 3; background:
  radial-gradient(60% 40% at 85% 6%, rgba(245, 185, 106, .07), transparent 70%),
  radial-gradient(50% 30% at 10% 40%, rgba(143, 163, 255, .05), transparent 70%),
  radial-gradient(60% 30% at 80% 75%, rgba(245, 185, 106, .05), transparent 70%),
  var(--bg); }
.lower::before { content: ""; position: absolute; left: 0; right: 0; top: -160px; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.sec { padding: 130px 0; position: relative; }
.sec + .sec::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); max-width: 1176px; margin: 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.sec-head { max-width: 860px; margin-bottom: 56px; }
.sec-head .ms-h2 { margin-top: 18px; }
.sec-lede { margin: 18px 0 0; max-width: 520px; font-size: 15px; color: var(--ink-2); }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease), background .25s, border-color .25s; transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* demos */
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.demo { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; }
.demo:hover { border-color: var(--line-2); }
.demo-img { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.demo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.demo:hover .demo-img img { transform: scale(1.04); }
.demo-body { padding: 16px 20px 22px; }
.demo-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.demo h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; margin: 14px 0 8px; }
.demo .arrow { display: inline-block; color: var(--sun-2); font-family: var(--sans); font-size: 18px; transition: transform .3s var(--ease); }
.demo:hover .arrow { transform: translate(3px, -3px); }
.demo p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.demo-img-soon { display: grid; place-content: center; justify-items: center; gap: 8px; background: radial-gradient(70% 70% at 50% 60%, rgba(245, 185, 106, .14), transparent 70%), var(--bg-2); }
.demo-img-soon svg { width: 72px; fill: none; stroke: var(--sun); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 120; animation: ms-draw 3.2s var(--ease) infinite; filter: drop-shadow(0 0 10px rgba(245, 185, 106, .5)); }
.demo-img-soon span { font-family: var(--serif); font-size: 26px; }
.demo-img-soon em { font-size: 10.5px; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 26px 26px 24px; display: flex; flex-direction: column; align-items: flex-start; }
.step-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: var(--sun-2); border: 1px solid var(--accent-line); background: var(--accent-soft); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; margin: 20px 0 8px; }
.steps p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.step-t { margin-top: auto; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { padding: 28px 28px 26px; display: flex; flex-direction: column; align-items: flex-start; }
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; margin: 0; }
.plan .ms-badge { margin-bottom: 14px; }
.price { margin: 14px 0 6px; font-size: 13px; color: var(--ink-3); }
.price span { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
.plan-sub { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; width: 100%; border-top: 1px solid var(--line); }
.plan li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 2px; border-radius: 2px; background: var(--sun); }
.plan .ms-btn { margin-top: auto; }
.plan-feature { background: radial-gradient(90% 60% at 80% 0%, rgba(245, 185, 106, .16), transparent 70%), var(--glass-strong); border-color: var(--accent-line); box-shadow: var(--shadow), 0 0 80px -30px rgba(245, 185, 106, .45); }
.fine { margin: 22px 0 0; font-size: 12px; color: var(--ink-3); }

/* data */
.data-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
.sources { padding: 10px 24px; }
.sources table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sources thead th { text-align: left; padding: 12px 12px 10px 0; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.sources tbody th { text-align: left; font-weight: 600; color: var(--ink); padding: 12px 14px 12px 0; vertical-align: top; width: 38%; border-top: 1px solid var(--line); }
.sources td { color: var(--ink-2); padding: 12px 0; vertical-align: top; line-height: 1.5; border-top: 1px solid var(--line); }
.method { padding: 26px 26px 24px; }
.method h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 14px; }
.method ol { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: m; display: grid; gap: 10px; }
.method li { counter-increment: m; position: relative; padding-left: 38px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.method li::before { content: counter(m); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 14px; color: var(--sun-2); border: 1px solid var(--accent-line); }
.method li b { color: var(--ink); }
.accuracy p { margin: 0; }
.accuracy .acc-h { font-size: 13px; margin-bottom: 6px; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.faq .sec-head { position: sticky; top: 110px; margin: 0; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--serif); font-size: 25px; line-height: 1.15; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-size: 18px; color: var(--ink-2); background: var(--glass); border: 1px solid var(--line); transition: transform .4s var(--ease), color .3s; }
.qa details[open] summary::after { transform: rotate(45deg); color: var(--sun-2); }
.qa details p { margin: 0 0 22px; max-width: 600px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); animation: ms-fade .5s var(--ease); }

/* about */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: center; }
.about-mark svg { width: 100%; fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.about-mark .arc { stroke: var(--sun); stroke-width: 1.6; filter: drop-shadow(0 0 8px rgba(245, 185, 106, .5)); }
.about-mark .sun { fill: var(--sun); stroke: none; filter: drop-shadow(0 0 10px var(--sun)); }
.about .ms-h2 { margin: 18px 0 20px; }
.about-p { max-width: 600px; margin: 0 0 14px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.about-p.muted { color: var(--ink-3); font-size: 14px; }

/* contact */
.contact { position: relative; overflow: hidden; padding: 170px 0 170px; isolation: isolate; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 100%, rgba(245, 185, 106, .16), transparent 70%); }
.contours { position: absolute; inset: -10% -5%; z-index: -1; opacity: 0; transition: opacity 2s; background-position: center; background-size: cover; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 80%); }
.contours.on { opacity: .28; background-image: url(../assets/contours.svg); }
.contact-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .ms-h2 { margin: 18px 0 16px; }
.contact-p { margin: 0 0 30px; max-width: 460px; font-size: 15.5px; color: var(--ink-2); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 15px; }
.contact-mail { margin: 18px 0 0; font-size: 13px; }
.contact-mail a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact-mail a:hover { color: var(--sun-2); }

/* footer */
.foot { position: relative; z-index: 3; background: var(--bg); border-top: 1px solid var(--line); padding: 36px 0 48px; }
.foot-in { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; }
.foot-brand .mark { width: 24px; height: 24px; }
.foot-cols { display: grid; grid-template-columns: 1fr 2fr auto; gap: 24px; font-size: 12.5px; color: var(--ink-3); }
.foot-cols p { margin: 0; }
.foot-cols a { color: var(--ink-2); text-decoration: none; }
.foot-credit { text-shadow: none; }
.foot-credit .ms-disclaimer { margin-top: 6px; }


/* what we make */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.offer { padding: 26px 26px 24px; display: flex; flex-direction: column; align-items: flex-start; }
.offer-art { width: 100%; height: 92px; margin: -4px 0 18px; border-radius: var(--radius-sm); background: radial-gradient(80% 90% at 50% 100%, rgba(245, 185, 106, .1), transparent 70%), var(--tint); border: 1px solid var(--line); display: grid; place-items: center; }
.offer-art svg { width: 120px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.offer-art .soft { stroke: var(--line-2); }
.offer-art .hot, .offer:first-child .offer-art path { stroke: var(--sun); filter: drop-shadow(0 0 6px rgba(245, 185, 106, .45)); }
.offer-art .dot { fill: var(--sun); stroke: none; filter: drop-shadow(0 0 8px var(--sun)); }
.offer h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; margin: 14px 0 8px; }
.offer-p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.from { margin: 0 0 16px; font-size: 13px; color: var(--ink-3); }
.from b { font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--ink); margin: 0 4px; font-variant-numeric: tabular-nums; }
.offer ul { list-style: none; margin: auto 0 0; padding: 0; width: 100%; border-top: 1px solid var(--line); }
.offer li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.offer li:last-child { border-bottom: 0; padding-bottom: 0; }
.offer li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 2px; border-radius: 2px; background: var(--sun); }
.offer-feature { background: radial-gradient(90% 60% at 80% 0%, rgba(245, 185, 106, .16), transparent 70%), var(--glass-strong); border-color: var(--accent-line); box-shadow: var(--shadow), 0 0 80px -30px rgba(245, 185, 106, .45); }
.personal { margin-top: 16px; display: flex; align-items: center; gap: 18px; padding: 18px 22px; text-decoration: none; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.personal:hover { border-color: var(--accent-line); }
.personal b { color: var(--ink); font-weight: 600; }
.personal strong { color: var(--sun-2); font-weight: 600; }
.personal-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent-line); background: var(--accent-soft); }
.personal-ico svg { width: 22px; fill: none; stroke: var(--sun-2); stroke-width: 1.5; stroke-linejoin: round; }
.personal-go { flex: none; margin-left: auto; color: var(--sun-2); font-size: 20px; transition: transform .3s var(--ease); }
.personal:hover .personal-go { transform: translateX(4px); }

/* pricing rates */
.rates { margin: 0 0 22px; width: 100%; border-top: 1px solid var(--line); }
.rates > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rates > div.hl dt { color: var(--sun-2); }
.rates dt { font-size: 14px; font-weight: 600; color: var(--ink); }
.rates dt small, .rates dd small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); margin-top: 3px; }
.rates dd { margin: 0; text-align: right; flex: none; }
.rates dd b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.rates dd b i { font-family: var(--sans); font-style: normal; font-size: 11px; color: var(--ink-3); margin-right: 4px; }
.plan-note { margin: -8px 0 22px; font-size: 13px; line-height: 1.55; color: var(--ink-3); }

/* inquiry form */
.inquiry { width: 100%; max-width: 620px; margin: 0 auto; padding: 26px 26px 22px; text-align: left; display: grid; gap: 14px; }
.want { border: 0; margin: 0; padding: 0; min-width: 0; }
.want legend { padding: 0; margin-bottom: 10px; font-family: var(--serif); font-size: 24px; color: var(--ink); }
.want-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 4px; border-radius: var(--pill); background: var(--tint); border: 1px solid var(--line); }
.want-opts label { position: relative; cursor: pointer; }
.want-opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.want-opts span { display: grid; place-items: center; height: 40px; padding: 0 8px; border-radius: var(--pill); font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: center; line-height: 1.15; transition: background var(--t-ui), color var(--t-ui); }
.want-opts input:checked + span { background: var(--sun); color: var(--on-sun); box-shadow: var(--glow); }
.want-opts input:focus-visible + span { outline: 2px solid var(--sun-2); outline-offset: 2px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f { display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.f i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.f input, .f textarea, .f select { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--tint); border: 1px solid var(--line-2); border-radius: var(--radius-xs); padding: 11px 13px; resize: vertical; }
.f input::placeholder, .f textarea::placeholder { color: var(--ink-3); }
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.inquiry .btn-lg { justify-self: start; margin-top: 4px; }
.f-note { margin: 0; font-size: 12px; color: var(--ink-3); }
.f-note a { color: inherit; }
.f-note.ok { color: var(--mint); font-size: 13.5px; }
.f-note.err { color: #ffb3b9; font-size: 13px; }
.f select { appearance: none; -webkit-appearance: none; min-height: 46px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.f select option { color: #111; }
.f input[aria-invalid="true"] { border-color: rgba(240,112,122,.7); }
.inquiry .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry { position: relative; }
.foot-links a { color: inherit; }
.inq-done h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0 0 8px; line-height: 1.05; }
.inq-done p { margin: 0 0 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

/* ===== mid widths ===== */
@media (max-width: 1180px) {
  :root { --side-w: 330px; }
  .nav-links a { padding: 8px 10px; font-size: 12.5px; }
}
@media (max-width: 1020px) and (min-width: 721px) {
  .nav-links { display: none; }
  .ms-mode span { display: none; }
  .ms-mode { padding: 10px 12px; }
  .demo-grid, .steps, .plans { grid-template-columns: 1fr 1fr; }
  .offers { grid-template-columns: 1fr; }
  .faq-wrap, .data-grid { grid-template-columns: 1fr; }
  .faq .sec-head { position: static; }
}

/* ===== phone ===== */
@media (max-width: 720px) {
  .nav { padding: calc(12px + env(safe-area-inset-top)) 12px 0 16px; }
  .wordmark { font-size: 22px; }
  .mark { width: 24px; height: 24px; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: flex; width: 40px; height: 40px; }
  .poster { background-image: url(../assets/poster-m.jpg); }
  .stage::after { background: linear-gradient(180deg, rgba(5, 6, 8, .55) 0%, rgba(5, 6, 8, .2) 40%, transparent 55%); }

  .hero-copy { left: 16px; right: 16px; top: calc(70px + env(safe-area-inset-top)); }
  .hero-copy .ms-badge { font-size: 9px; padding: 4px 9px 4px 8px; letter-spacing: .12em; }
  .hero-copy .ms-hero-title { font-size: clamp(38px, 11vw, 46px); margin: 12px 0 10px; }
  .hero-copy .lede { font-size: 13.5px; line-height: 1.5; }
  .hero-ctas { margin-top: 16px; gap: 8px; }
  .hero-ctas .ms-btn { padding: 0 16px; font-size: 13.5px; }

  .bar { left: 0; right: 0; bottom: 0; translate: none; width: auto; padding: 0 12px calc(8px + env(safe-area-inset-bottom)); }
  .source { margin-top: 7px; }
  .source span { display: none; }
  .side { left: 8px; right: 8px; width: auto; bottom: calc(var(--bar-h, 120px) + 4px); }
  body:not(.mode-sun) .side { opacity: 0; transform: translateY(16px); }
  body:not(.mode-sun) .side .ms-card { pointer-events: none; }
  .mc-head, .legend-block { display: none !important; }
  .mc-body { padding: 14px 16px 14px; }
  .sun-panel { border: 0; padding: 0; }
  .tl-clock { font-size: 28px; }
  body.mode-sun.at-hero .bar .ms-narration { opacity: 0; }

  .tour-progress { display: none; }
  .ch-intro { padding: 0 16px; justify-content: flex-end; padding-bottom: calc(var(--bar-h, 120px) + 40px); }
  .ch-intro > p:last-child { font-size: 14px; }
  .chapter { align-items: flex-end; padding: 0 12px calc(var(--bar-h, 120px) + 10px); }
  .chapter-tall { align-items: flex-end; }
  .chapter-tall .ch-card { position: sticky; top: auto; bottom: calc(var(--bar-h, 120px) + 10px); }
  .ch-card { width: 100%; padding: 18px 18px 16px; border-radius: 22px; }
  .ch-card h3 { font-size: 29px; margin: 6px 0 8px; }
  .ch-card p { font-size: 13.5px; line-height: 1.55; }
  .ask li { grid-template-columns: 92px 1fr; padding: 7px 10px; font-size: 12px; }
  .ask { gap: 4px; }
  .seller { font-size: 17px !important; }
  .ch-live { font-size: 26px !important; }

  .sec { padding: 88px 0; }
  .sec-head { margin-bottom: 32px; }
  .ms-h2.big { font-size: clamp(36px, 10vw, 46px); }
  .demo-grid, .steps, .plans, .data-grid, .faq-wrap, .about-grid, .offers, .f-row { grid-template-columns: 1fr; }
  .want-opts { grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .inquiry { padding: 20px 16px 18px; }
  .inquiry .btn-lg { justify-self: stretch; justify-content: center; }
  .personal { align-items: flex-start; padding: 16px; gap: 14px; font-size: 14px; }
  .personal-go { display: none; }
  .offer { padding: 22px 20px 20px; }
  .plan { padding: 24px 20px 22px; }
  .faq-wrap { gap: 28px; }
  .faq .sec-head { position: static; }
  .qa summary { font-size: 21px; padding: 17px 0; }
  .about-grid { gap: 32px; }
  .about-mark { width: 160px; }
  .sources { padding: 6px 16px; }
  .sources tbody th { width: 42%; }
  .price span { font-size: 48px; }
  .contact { padding: 110px 0; }
  .foot-in, .foot-cols { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 720px) and (max-height: 700px) {
  .hero-copy .lede { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .split .w > span, [data-reveal], .hero .lede, .hero-ctas, .hero .ms-badge, .ch-card { transform: none !important; opacity: 1 !important; }
}

/* ===== What we make: three lines x tiers (Oct 29 decision). Every card shows a real deliverable from our samples. ===== */
.five { margin: 22px 0 0; max-width: 640px; padding: 4px 0 4px 18px; border-left: 2px solid var(--sun); font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--ink); }
.line { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.sec-head + .line { border-top: 0; padding-top: 8px; }
.line-head { align-self: start; position: sticky; top: 110px; }
.line-title { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.02; margin: 12px 0 10px; letter-spacing: -.01em; }
.line-p { margin: 0 0 18px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.line-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--sun-2); font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--accent-line); padding-bottom: 3px; transition: gap var(--t-fast) var(--ease), color var(--t-fast); }
.line-cta:hover { gap: 12px; color: var(--ink); }
.line-fine { grid-column: 2; margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.55; }
.tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.tcards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tcard { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; padding: 0; transition: transform var(--t-ui) var(--ease), border-color var(--t-ui), box-shadow var(--t-ui); }
.tcard:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tcard:active { transform: translateY(-1px) scale(.99); }
.tcard:focus-visible { outline: 2px solid var(--sun-2); outline-offset: 3px; }
.tcard.pick { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow); }
.pick-tag { position: absolute; z-index: 2; top: 12px; left: 12px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-sun); background: var(--sun); padding: 4px 10px; border-radius: 999px; box-shadow: var(--glow); }
.tc-media { position: relative; background: #101318; overflow: hidden; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; }
.tc-media img, .tc-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.tcard:hover .tc-media img, .tcard:hover .tc-media video { transform: scale(1.04); }
.tc-media.phone { display: grid; place-items: center; background: radial-gradient(80% 70% at 50% 40%, #1a1f29, #0b0d10); }
.tc-media.phone img, .tc-media.phone video { position: absolute; inset: 6% 0; margin: auto; width: auto; height: 88%; aspect-ratio: 9 / 16; border-radius: 16px; border: 3px solid #23272f; box-shadow: 0 20px 40px -12px rgba(0,0,0,.8); }
.tc-media.poster { display: grid; place-items: center; background: radial-gradient(80% 70% at 50% 40%, #1d2029, #0b0d10); }
.tc-media.poster img { position: absolute; inset: 5% 0; margin: auto; width: auto; height: 90%; aspect-ratio: 3 / 4; border-radius: 3px; box-shadow: 0 24px 50px -14px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06); }
.tc-badge { position: absolute; right: 10px; bottom: 10px; z-index: 2; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; padding: 4px 8px; border-radius: 8px; background: rgba(11,13,16,.78); color: var(--ink); backdrop-filter: blur(8px); }
.tc-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 18px; }
.tc-body h4 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.05; margin: 0; }
.tc-price { margin: 8px 0 0; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--sun-2); font-variant-numeric: tabular-nums; }
.tc-price small { font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
.tc-line { margin: 10px 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.tc-go { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: color var(--t-fast); }
.tcard:hover .tc-go { color: var(--sun-2); }
.pick-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.contact-p a { color: var(--sun-2); }
@media (max-width: 1020px) {
  .line { grid-template-columns: 1fr; gap: 18px; }
  .line-head { position: static; }
  .line-fine { grid-column: 1; }
}
@media (max-width: 720px) {
  .five { font-size: 19px; padding-left: 14px; }
  .line { padding: 30px 0; }
  .line-title { font-size: 32px; }
  /* phones: swipe through the tiers sideways, each card most of the screen wide, the next one peeking */
  .tcards, .tcards.two { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 10px var(--gut) 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tcards::-webkit-scrollbar { display: none; }
  .tcard { flex: 0 0 80%; scroll-snap-align: center; }
  .tcard:hover { transform: none; }
  .tc-body h4 { font-size: 23px; }
  .tc-price { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .tcard, .tc-media img, .tc-media video { transition: none; } }
