/* ============================================================
   ORBIT TRANSFORMATION
   Editorial / technical system. Real brand colours, restrained.
   League Spartan (display) · Source Sans 3 (text) · JetBrains Mono (meta)
   ============================================================ */

:root {
  --paper:   #FDEFD9;          /* warm cream canvas */
  --ink:     #1A1712;          /* near-black */
  --muted:   #7C6F5C;          /* warm taupe */
  --rule:    color-mix(in srgb, var(--ink) 13%, transparent);
  --field:   color-mix(in srgb, var(--ink) 4%, transparent);

  --cyan:      #12A1DB;        /* brand orbit-dot */
  --gold:      #E9AE2F;        /* brand gold */
  --gold-deep: #C68A12;

  /* dark "panel" sections (kept dark in both themes) */
  --panel:       #1A160F;
  --panel-ink:   #F4E9D6;
  --panel-muted: #A4947B;
  --panel-rule:  rgba(244,233,214,0.15);

  --btn-bg: var(--ink);
  --btn-fg: var(--paper);

  --serif: "League Spartan", system-ui, sans-serif;   /* display */
  --sans:  "Source Sans 3", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1280px;
  --gut: clamp(16px, 2.2vw, 26px);
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --paper:   #15120C;
  --ink:     #ECE2D2;
  --muted:   #9A8C76;
  --rule:    color-mix(in srgb, var(--ink) 15%, transparent);
  --field:   color-mix(in srgb, var(--ink) 6%, transparent);
  --cyan:    #38B4E8;
  --panel:       #0E0B06;
  --panel-ink:   #ECE2D2;
  --panel-muted: #948774;
  --panel-rule:  rgba(236,226,210,0.13);
}

html { color-scheme: light dark; }
[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
svg { display: block; } img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { margin: 0; font-weight: 600; }
p { margin: 0; } ul,ol,dl { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--cyan); color: #fff; }

/* ---------- grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut);
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
}

/* ---------- type primitives ---------- */
.mono {
  font-family: var(--mono); font-size: .72rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.display { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; line-height: 0.92; color: var(--ink); }
.display--md { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 0.98; font-weight: 600; letter-spacing: -0.015em; }
.display--sm { font-size: clamp(1.45rem, 2.7vw, 2.15rem); line-height: 1.16; font-weight: 500; letter-spacing: -0.01em; }
.display--xs { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1; font-weight: 600; letter-spacing: -0.01em; }
.prose { font-size: 1.075rem; line-height: 1.62; color: color-mix(in srgb, var(--ink) 86%, var(--paper)); max-width: 60ch; }
.prose + .prose { margin-top: 1.1rem; }
.prose em { font-style: italic; color: var(--ink); }

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: 1em 1.7em; border-radius: 2px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bg);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: transparent; color: var(--btn-bg); }
.btn--full { width: 100%; }
.btn--text {
  background: none; border: none; color: var(--ink); padding: 1em 0;
  position: relative;
}
.btn--text span { transition: transform .25s var(--ease); display: inline-block; }
.btn--text:hover span { transform: translateY(3px); }
.link-cta {
  font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--rule);
  padding-bottom: 3px; transition: border-color .25s var(--ease), gap .25s; display: inline-flex; gap: .4em;
}
.link-cta:hover { border-color: var(--cyan); }
.link-cta span { color: var(--cyan); }

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .4s var(--ease);
}
.masthead--scrolled { border-bottom-color: var(--rule); }
.masthead__inner { align-items: center; min-height: 68px; }
.wordmark {
  grid-column: span 4; display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--serif); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; color: var(--ink);
}
.wordmark__mark { width: 22px; height: 22px; color: var(--ink); }
.wordmark__sub { font-weight: 400; color: var(--muted); }
.masthead__nav { grid-column: span 5; display: flex; gap: 1.8rem; justify-content: center; }
.masthead__nav a {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); transition: color .2s; display: inline-flex; align-items: baseline; gap: .4em;
}
.masthead__nav a .idx { color: var(--cyan); opacity: .7; }
.masthead__nav a:hover { color: var(--ink); }
.masthead__end { grid-column: span 3; display: flex; align-items: center; justify-content: flex-end; gap: 1.2rem; }

.theme { background: none; border: none; cursor: pointer; color: var(--ink); padding: 4px; display: inline-flex; }
.theme svg { width: 18px; height: 18px; }
.theme__sun { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.theme__moon { fill: var(--ink); display: none; }
[data-theme="dark"] .theme__sun { display: none; }
[data-theme="dark"] .theme__moon { display: block; }
.theme:hover { color: var(--cyan); }
[data-theme="dark"] .theme:hover .theme__moon { fill: var(--cyan); }

.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px 0; }
.burger span { width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(40px, 7vw, 90px) 0 0; }
.hero__inner { align-items: center; row-gap: 40px; }
.hero__copy { grid-column: 1 / span 7; }
.eyebrow { display: inline-block; margin-bottom: 1.6rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule); }
.hero .display { font-size: clamp(3.2rem, 9.5vw, 7rem); }
.hero__lede { margin-top: 1.8rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: color-mix(in srgb, var(--ink) 84%, var(--paper)); max-width: 46ch; }
.hero__lede em { font-style: normal; color: var(--cyan); font-weight: 600; }
.hero__actions { margin-top: 2.4rem; display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }

.hero__plot { grid-column: 8 / span 5; margin: 0; position: relative; aspect-ratio: 1; }
.hero__plate {
  position: absolute; inset: 0; overflow: hidden; border-radius: 5px;
  background: #060910; border: 1px solid rgba(244,233,214,0.12);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.55);
}
.hero__plot figcaption { position: absolute; bottom: -2rem; right: 0; text-align: right; }
.plate-note { color: var(--cyan); }
.globe { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.plot--overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.plot { width: 100%; height: auto; overflow: visible; }
/* overlay sits on the dark space field in BOTH themes → fixed light strokes */
.plot--overlay .plot__ring  { fill: none; stroke: rgba(244,233,214,0.12); stroke-width: 1; }
.plot--overlay .plot__ticks { fill: none; stroke: rgba(244,233,214,0.42); stroke-width: 7; stroke-dasharray: 1 12.4; }
.plot--overlay .plot__cross { stroke: rgba(244,233,214,0.5); stroke-width: 1; }
.plot--overlay .plot__label line { stroke: rgba(244,233,214,0.45); stroke-width: 1; }
.plot--overlay text { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; fill: rgba(244,233,214,0.85); }
.plot--overlay .plot__r { fill: rgba(244,233,214,0.5); }

.hero__meta { margin-top: clamp(50px, 7vw, 96px); padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; gap: clamp(20px, 4vw, 60px); }
.hero__meta-end { margin-left: auto; }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section { padding: clamp(72px, 10vw, 150px) 0; border-top: 1px solid var(--rule); }
.section--dark {
  --ink: var(--panel-ink); --muted: var(--panel-muted); --rule: var(--panel-rule);
  --btn-bg: var(--panel-ink); --btn-fg: var(--panel);
  background: var(--panel); color: var(--panel-ink); border-top: none;
}
.section--dark .prose { color: color-mix(in srgb, var(--panel-ink) 80%, var(--panel)); }
.section--dark .eyebrow, .section--dark .hero__lede { color: var(--panel-ink); }

.sec-head { grid-column: 1 / -1; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head__label { display: inline-block; }
.sec-head--split { display: grid; grid-template-columns: 1fr; gap: 1rem; }

/* ============================================================
   APPROACH
   ============================================================ */
.approach__lead { grid-column: 1 / span 7; }
.approach__lead .prose { margin-top: 1.6rem; }
.ledger { grid-column: 9 / span 4; margin-top: .4rem; border-top: 1px solid var(--rule); }
.ledger__row {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .35rem;
  padding: 1.3rem 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.ledger__idx { grid-row: span 2; color: var(--cyan); }
.ledger__title { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }
.ledger__note { font-size: .96rem; color: var(--muted); line-height: 1.45; }

/* ============================================================
   SERVICES (accordion ledger)
   ============================================================ */
.sec-head--split { grid-template-columns: 1fr; }
@media (min-width: 760px) { .sec-head--split { grid-template-columns: auto 1fr; align-items: end; gap: 3rem; } .sec-head__aside { max-width: 38ch; justify-self: end; } }
.svc { grid-column: 1 / -1; border-top: 1px solid var(--rule); }
.svc__row { border-bottom: 1px solid var(--rule); }
.svc__head {
  width: 100%; background: none; border: none; cursor: pointer; color: inherit; text-align: left;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.4rem;
  padding: clamp(1.3rem, 2.6vw, 2rem) 0;
}
.svc__idx { color: var(--cyan); }
.svc__name { transition: transform .35s var(--ease); }
.svc__tag { justify-self: end; }
.svc__toggle { position: relative; width: 16px; height: 16px; }
.svc__toggle::before, .svc__toggle::after { content: ""; position: absolute; background: var(--ink); transition: transform .35s var(--ease), opacity .35s; }
.svc__toggle::before { top: 7.25px; left: 0; width: 16px; height: 1.5px; }
.svc__toggle::after { left: 7.25px; top: 0; width: 1.5px; height: 16px; }
.svc__row.is-open .svc__toggle::after { transform: scaleY(0); }
.svc__row.is-open .svc__name { transform: translateX(8px); }
.svc__head:hover .svc__name { transform: translateX(8px); }
.svc__body { overflow: hidden; max-height: 0; transition: max-height .45s var(--ease); }
.svc__row.is-open .svc__body { max-height: 32rem; }
.svc__body .prose { padding: 0 0 .4rem; max-width: 56ch; margin-left: calc(2ch + 1.4rem); }
.svc__list { display: flex; flex-wrap: wrap; gap: 1.4rem; padding: 1rem 0 1.3rem; margin-left: calc(2ch + 1.4rem); }
.svc__list li { color: var(--muted); }
.svc__list li::before { content: "— "; color: var(--cyan); }
.svc__foot {
  margin-left: calc(2ch + 1.4rem); padding: 0 0 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--rule); padding-top: 1.1rem;
}
.svc__out { color: var(--muted); }
.svc__out::before { content: ""; }

/* ---- funnel (the path to Erin) ---- */
.funnel { grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 88px); }
.funnel__label { color: var(--cyan); margin-bottom: 1.8rem; }
.funnel__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.funnel__step { background: var(--panel); padding: clamp(1.4rem, 2.4vw, 2rem); position: relative; }
.funnel__num { color: var(--cyan); }
.funnel__h { margin: .9rem 0 .6rem; }
.funnel__p { color: var(--muted); font-size: .98rem; line-height: 1.5; }
.funnel__step:not(:last-child)::after {
  content: "→"; position: absolute; top: 50%; right: -0.75em; transform: translateY(-50%);
  font-family: var(--mono); color: var(--cyan); z-index: 2; background: var(--panel); padding: .2em 0;
}
.funnel__cta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 2rem; }
.funnel__note { color: var(--muted); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { row-gap: 48px; }
.about__meta { grid-column: 1 / span 4; }
.factsheet { margin-top: 2rem; border-top: 1px solid var(--rule); }
.factsheet > div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.factsheet dt { color: var(--muted); }
.factsheet dd { color: var(--ink); text-align: right; }
.portrait {
  margin-top: 2rem; aspect-ratio: 4/5; border: 1px solid var(--rule); border-radius: 3px;
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 4%, transparent) 0 2px, transparent 2px 9px),
    color-mix(in srgb, var(--ink) 3%, transparent);
  position: relative; display: flex; align-items: flex-end; padding: 1.3rem;
}
.portrait__id {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-55%);
  font-family: var(--serif); font-weight: 700; font-size: clamp(3rem, 8vw, 5rem); color: color-mix(in srgb, var(--ink) 18%, transparent);
  letter-spacing: .04em;
}
.portrait__cap { position: relative; }
.about__body { grid-column: 6 / span 7; }
.about__body .prose { margin-top: 1.6rem; }
.pull { margin: 2.2rem 0; padding-left: 1.6rem; border-left: 2px solid var(--gold); }
.pull p { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; letter-spacing: -0.01em; }
.about__body .link-cta { margin-top: .4rem; }

/* ============================================================
   SIGNAL / metrics + testimonial
   ============================================================ */
.metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.metric { padding: clamp(1.6rem, 3vw, 2.6rem) 1.4rem clamp(1.6rem,3vw,2.6rem) 0; border-right: 1px solid var(--rule); }
.metric:last-child { border-right: none; }
.metric__num { display: block; font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.metric__label { display: block; margin-top: .9rem; padding-right: 1rem; }
.testimonial { grid-column: 1 / span 9; margin-top: clamp(44px, 5vw, 72px); }
.testimonial p { font-size: clamp(1.3rem, 1.9vw, 1.85rem); line-height: 1.32; letter-spacing: -0.01em; max-width: 40rem; }
.testimonial footer { margin-top: 1.5rem; }
.testimonial__ph { opacity: .55; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { row-gap: 44px; align-items: start; }
.contact__lead { grid-column: 1 / span 5; }
.contact__lead .display { margin-top: 1.4rem; }
.contact__lead .prose { margin-top: 1.4rem; }
.contact__direct { margin-top: 2rem; }
.contact__direct a { color: var(--cyan); border-bottom: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent); padding-bottom: 2px; }
.contact__steps { margin: 1.9rem 0; display: grid; gap: .75rem; }
.contact__steps li { display: flex; gap: .85em; align-items: baseline; color: var(--muted); }
.contact__steps li span { color: var(--cyan); }
.form-wrap { grid-column: 7 / span 6; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { margin-bottom: 1.6rem; }
.field label { display: block; margin-bottom: .5rem; }
.field input, .field textarea, .select select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--rule);
  border-radius: 0; padding: .55em 0; font-family: var(--sans); font-size: 1.08rem; color: var(--ink);
  transition: border-color .25s; resize: vertical;
}
.field input:focus, .field textarea:focus, .select select:focus { outline: none; border-bottom-color: var(--cyan); }
.field input.invalid, .field textarea.invalid { border-bottom-color: #d2553b; }
.field__err { display: block; margin-top: .4rem; color: #d2553b; letter-spacing: .04em; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 1.4em; }
.select::after {
  content: ""; position: absolute; right: 2px; top: 46%; width: 7px; height: 7px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-50%) rotate(45deg); pointer-events: none;
}
/* when enhanced into a custom dropdown, drop the native pseudo-chevron —
   the .cselect__chev is the only arrow */
.cselect::after { content: none; }
.form .btn { margin-top: .6rem; }
.form__note { margin-top: 1.2rem; letter-spacing: .03em; }
.form__note.ok { color: #2c8a5b; } .form__note.err { color: #d2553b; }

/* booking step (revealed after a valid intake) */
.booking { border: 1px solid var(--rule); border-radius: 5px; padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--field); }
.booking__eyebrow { color: var(--cyan); }
.booking__h { margin: .9rem 0 .5rem; }
.booking__p { color: var(--muted); max-width: 42ch; margin-bottom: 1.6rem; }
.booking__back { display: block; margin-top: 1.2rem; background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; letter-spacing: .06em; }
.booking__back:hover { color: var(--ink); }

/* ---- self-owned slot-picker ---- */
.scheduler { border: 1px solid var(--rule); border-radius: 5px; padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--field); }
.sched__msg { color: var(--muted); }
.sched__eyebrow { color: var(--cyan); margin-bottom: 1.3rem; }
.sched__days { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.sched__day { background: none; border: 1px solid var(--rule); border-radius: 100px; padding: .5em 1.05em; cursor: pointer; color: var(--muted); font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.sched__day:hover { color: var(--ink); border-color: var(--ink); }
.sched__day.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sched__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .55rem; }
.sched__time { background: none; border: 1px solid var(--rule); border-radius: 4px; padding: .75em .4em; cursor: pointer; color: var(--ink); font-family: var(--mono); font-size: .82rem; transition: color .15s, border-color .15s, background .15s; }
.sched__time:hover { border-color: var(--cyan); color: var(--cyan); }
.sched__time.is-sel { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.sched__tz { color: var(--muted); margin-top: 1.2rem; font-size: .72rem; }
.sched__confirm { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.sched__chosen { color: var(--ink); letter-spacing: .03em; }
.sched__err { color: #d2553b; margin-top: 1rem; letter-spacing: .03em; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--panel); color: var(--panel-ink); --rule: var(--panel-rule); --muted: var(--panel-muted); }
.footer__inner { padding-top: clamp(50px, 7vw, 90px); padding-bottom: 48px; row-gap: 36px; }
.footer__brand { grid-column: 1 / span 6; }
.footer__brand .wordmark { color: var(--panel-ink); margin-bottom: 1.2rem; }
.footer__brand .wordmark__mark { color: var(--panel-ink); }
.footer__brand .wordmark__sub { color: var(--panel-muted); }
.footer__tag { color: var(--panel-muted); max-width: 34ch; line-height: 1.7; text-transform: none; letter-spacing: .02em; }
.footer__col { grid-column: span 3; display: flex; flex-direction: column; gap: .9rem; }
.footer__h { color: var(--panel-ink); opacity: .55; margin-bottom: .3rem; }
.footer__col a { color: var(--panel-muted); transition: color .2s; text-transform: none; letter-spacing: .02em; }
.footer__col a:hover { color: var(--cyan); }
.footer__base { padding: 22px 0; border-top: 1px solid var(--panel-rule); display: flex; justify-content: space-between; color: var(--panel-muted); }

/* ============================================================
   REVEAL
   ============================================================ */
.js [data-reveal] { opacity: 0; transform: translateY(16px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .masthead__nav { display: none; }
  .masthead__end .link-cta { display: none; }
  .wordmark { grid-column: 1 / span 8; }
  .masthead__end { grid-column: 9 / span 4; }
  .burger { display: flex; }
  .drawer { display: flex; }

  .hero__copy { grid-column: 1 / span 12; }
  .hero__plot { grid-column: 1 / span 12; max-width: 440px; margin: 8px auto 0; }
  .hero__plot figcaption { text-align: left; }

  .approach__lead, .ledger { grid-column: 1 / span 12; }
  .ledger { margin-top: 2.4rem; }
  .about__meta, .about__body { grid-column: 1 / span 12; }
  .contact__lead, .form-wrap { grid-column: 1 / span 12; }
  .footer__brand { grid-column: 1 / span 12; }
  .footer__col { grid-column: span 6; }

  .funnel__steps { grid-template-columns: 1fr; }
  .funnel__step:not(:last-child)::after { content: "↓"; right: auto; left: clamp(1.4rem,2.4vw,2rem); top: auto; bottom: -0.85em; transform: none; }
}
@media (max-width: 560px) {
  .svc__head { grid-template-columns: auto 1fr auto; }
  .svc__tag { display: none; }
  .svc__body .prose, .svc__list, .svc__foot { margin-left: 0; }
  .svc__foot { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .hero__meta { flex-wrap: wrap; gap: 10px 24px; }
  .hero__meta-end { display: none; }
  .footer__base { flex-direction: column; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   GEN VII — MISSION-CONTROL HUD (single dark cinematic)
   Layers: sky image · scroll-scrubbed planet film · faint life ·
   the HUD shell (top bar + left status rail + instrument panels).
   ============================================================ */

/* ---- force the deep-space dark system ---- */
:root {
  --space: #05070d;
  --ink: #eef1f6;
  --muted: rgba(224,232,244,0.6);
  --dim: rgba(224,232,244,0.4);
  --cyan: #38b4e8;
  --cyan-deep: #12a1db;
  --gold: #e9ae2f;
  --line: rgba(150,180,220,0.16);
  --line-bright: rgba(150,190,230,0.32);
  --panel: rgba(9,13,22,0.72);
  --panel-solid: rgba(7,10,18,0.88);
  --field: rgba(255,255,255,0.05);
  --bar-h: 60px;
}
html { background: var(--space); color-scheme: dark; scroll-behavior: smooth; }
body.cosmos {
  background: var(--space); color: var(--ink);
  overflow-x: hidden; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body.cosmos ::selection { background: var(--cyan); color: #04060d; }

/* ---- layer stack ---- */
.cosmos-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.cosmos-sky__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cosmos-sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(130% 100% at 50% 64%, transparent 42%, rgba(4,6,13,0.66) 100%);
}
.planet-film { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%;
  mix-blend-mode: screen; pointer-events: none; }
.stars { position: fixed; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

/* everything interactive rides above the cosmos */
.topbar, .drawer, main, .footer, .skip { position: relative; z-index: 10; }

/* ---- skip link ---- */
.skip { position: fixed; top: -60px; left: 16px; z-index: 400; background: var(--cyan);
  color: #04060d; font-weight: 600; padding: .7em 1.2em; border-radius: 6px; transition: top .2s var(--ease); }
.skip:focus-visible { top: 12px; }
body.cosmos a:focus-visible, body.cosmos button:focus-visible,
body.cosmos input:focus-visible, body.cosmos textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}

/* ============================================================
   TOP BAR — instrument bar
   ============================================================ */
.topbar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 200;
  width: min(94%, 1180px); display: flex; align-items: center; border-radius: 100px;
  background: rgba(9,13,22,0.55);
  backdrop-filter: blur(22px) saturate(1.35); -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid var(--line);
  box-shadow: 0 22px 54px -30px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: background .4s var(--ease), width .4s var(--ease), box-shadow .4s var(--ease); }
.topbar--scrolled { width: min(90%, 1060px); background: rgba(7,10,18,0.82);
  box-shadow: 0 18px 44px -28px rgba(0,0,0,0.92), inset 0 1px 0 rgba(255,255,255,0.05); }
.topbar__inner { width: 100%; max-width: none; margin: 0; padding: .62rem 1.5rem .62rem 1.65rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  transition: padding .4s var(--ease); }
.topbar--scrolled .topbar__inner { padding-top: .46rem; padding-bottom: .46rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink);
  font-family: var(--serif); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.wordmark__mark { width: 21px; height: 21px; color: var(--ink); }
.wordmark__sub { font-weight: 400; color: var(--muted); }
.topbar__nav { display: flex; gap: clamp(1.5rem, 2.5vw, 2.6rem); }
.topbar__nav a { position: relative; font-size: .94rem; letter-spacing: .005em; color: var(--muted);
  transition: color .22s var(--ease); }
.topbar__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1.5px;
  background: var(--cyan); transition: right .3s var(--ease); }
.topbar__nav a:hover { color: var(--ink); }
.topbar__nav a:hover::after { right: 0; }
.topbar__end { display: flex; align-items: center; gap: 1.1rem; }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.drawer { position: fixed; top: calc(var(--bar-h) + 24px); left: 50%; width: min(92%, 460px); z-index: 199;
  display: flex; flex-direction: column; padding: 8px 20px 14px; border-radius: 16px;
  background: rgba(8,11,20,0.94); border: 1px solid var(--line);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 40px 90px -44px rgba(0,0,0,0.85);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s .28s; }
.drawer--open { opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0); transition: opacity .28s var(--ease), transform .28s var(--ease); }
.drawer a { display: flex; align-items: center; justify-content: space-between; padding: 17px 2px; color: var(--ink);
  font-size: 1.06rem; font-weight: 500; letter-spacing: 0; border-bottom: 1px solid var(--line); transition: color .2s; }
.drawer a:hover, .drawer a:active { color: var(--cyan); }
.drawer a.drawer__cta { justify-content: center; gap: .5em; margin-top: 14px; padding: 15px 20px;
  background: var(--cyan); color: #04121a; border-radius: 100px; font-weight: 600; border-bottom: none; }
.drawer a.drawer__cta:hover, .drawer a.drawer__cta:active { color: #04121a; }
.drawer a.drawer__cta span { color: #04121a; }
.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px 0; }
.burger span { width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ============================================================
   HERO — over open sky, planet below
   ============================================================ */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--bar-h) + 6vh) clamp(20px,5vw,72px) 8vh; }
.hero__inner { max-width: 640px; }
.hero__eyebrow { display: flex; align-items: center; gap: .7em; flex-wrap: wrap; font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.hero__code { color: #04060d; background: var(--cyan); padding: .2em .5em; border-radius: 3px; font-weight: 600; }
.hero__stat { color: var(--dim); }
.hero__title { font-size: clamp(3rem, 8.5vw, 6.4rem); line-height: .92; letter-spacing: -.02em; color: var(--ink); }
.hero__lede { font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.6; color: rgba(238,241,246,0.82);
  max-width: 46ch; margin-top: 1.5rem; }
.hero__lede em { color: var(--ink); font-style: italic; }
.hero__actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero__meta { display: flex; gap: clamp(14px,2vw,30px); flex-wrap: wrap; margin-top: 2.4rem; padding-top: 16px;
  border-top: 1px solid var(--line); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }

/* ============================================================
   INSTRUMENT PANELS — the shell the copy sits on
   ============================================================ */
.sec { padding: clamp(64px,10vh,130px) clamp(20px,4vw,56px); }
.panel { position: relative; max-width: 1080px; margin: 0 auto; padding: clamp(26px,3.4vw,52px);
  background: var(--panel);
  backdrop-filter: blur(30px) saturate(1.2); -webkit-backdrop-filter: blur(30px) saturate(1.2);
  border: 1px solid var(--line); }
.panel__frame { position: absolute; inset: 0; pointer-events: none; }
.panel__frame::before, .panel__frame::after { content: ""; position: absolute; width: 16px; height: 16px; }
.panel__frame::before { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.panel__frame::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.panel__head { display: flex; align-items: center; gap: .7em; font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); padding-bottom: 18px; margin-bottom: clamp(24px,3vw,40px);
  border-bottom: 1px solid var(--line); }
.panel__code { color: #04060d; background: var(--cyan); padding: .2em .5em; border-radius: 3px; font-weight: 600; }
.panel__status { margin-left: auto; color: var(--dim); letter-spacing: .12em; }
.panel__body { }

/* ---- type primitives in dark ---- */
body.cosmos .display { color: var(--ink); }
body.cosmos .prose { color: rgba(238,241,246,0.78); max-width: 62ch; }
body.cosmos .prose em { color: var(--ink); }
body.cosmos .mono { color: var(--muted); }
.sec__aside { max-width: 52ch; margin-bottom: clamp(30px,4vw,52px); color: rgba(238,241,246,0.72); }

/* ---- buttons (cyan instrument pills) ---- */
body.cosmos .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: 1.02em 2em; border-radius: 100px; cursor: pointer; border: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cyan) 92%, white), var(--cyan)); color: #04121a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 14px 34px -14px color-mix(in srgb, var(--cyan) 80%, transparent);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease); }
body.cosmos .btn:hover { transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 20px 46px -14px color-mix(in srgb, var(--cyan) 92%, transparent); }
body.cosmos .btn:active { transform: translateY(0); }
body.cosmos .btn--full { width: 100%; }
body.cosmos .btn--text { background: none; box-shadow: none; color: var(--ink); padding: 1em .2em; }
body.cosmos .btn--text:hover { transform: none; color: var(--cyan); }
body.cosmos .btn--text span { display: inline-block; transition: transform .25s var(--ease); }
body.cosmos .btn--text:hover span { transform: translateY(3px); }

/* nav Book-a-call pill */
body.cosmos .topbar .link-cta { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; font-weight: 600; font-size: .82rem;
  color: #04121a; background: var(--cyan); padding: .56em 1.15em; border-radius: 100px;
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--cyan) 75%, transparent);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
body.cosmos .topbar .link-cta span { color: #04121a; transition: transform .25s var(--ease); }
body.cosmos .topbar .link-cta:hover { transform: translateY(-1px); box-shadow: 0 13px 30px -8px color-mix(in srgb, var(--cyan) 85%, transparent); }
body.cosmos .topbar .link-cta:hover span { transform: translateX(3px); }
/* inline link-cta (in copy) */
body.cosmos .link-cta { color: var(--cyan); font-weight: 600; display: inline-flex; gap: .4em; align-items: baseline;
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .2s, gap .2s; }
body.cosmos .link-cta:hover { border-bottom-color: var(--cyan); }
body.cosmos .panel .link-cta span, body.cosmos .about .link-cta span { color: var(--cyan); }

/* ---- ledger (approach) ---- */
body.cosmos .approach__lead { margin-bottom: clamp(40px,5vw,72px); }
body.cosmos .approach__lead .display { margin-bottom: 1.4rem; }
body.cosmos .approach__lead .prose + .prose { margin-top: 1.1rem; }
body.cosmos .ledger { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); }
body.cosmos .ledger__row { background: rgba(8,11,20,0.5); padding: clamp(20px,2.4vw,32px);
  display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; align-items: baseline;
  transition: background .25s var(--ease); }
body.cosmos .ledger__row:hover { background: rgba(18,161,219,0.06); }
body.cosmos .ledger__idx { color: var(--cyan); font-size: .8rem; grid-row: span 2; }
body.cosmos .ledger__title { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
body.cosmos .ledger__note { color: var(--muted); font-size: .95rem; grid-column: 2; }

/* ---- services accordion ---- */
body.cosmos .svc { border-top: 1px solid var(--line); }
body.cosmos .svc__row { border-bottom: 1px solid var(--line); }
body.cosmos .svc__head { width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1.2rem;
  padding: clamp(20px,2.4vw,30px) 4px; color: var(--ink); transition: color .2s; }
body.cosmos .svc__head:hover { color: var(--cyan); }
body.cosmos .svc__idx { color: var(--cyan); font-size: .78rem; }
body.cosmos .svc__name { color: inherit; }
body.cosmos .svc__tag { color: var(--dim); letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; }
body.cosmos .svc__toggle { width: 12px; height: 12px; position: relative; }
body.cosmos .svc__toggle::before, body.cosmos .svc__toggle::after { content: ""; position: absolute; background: var(--cyan); transition: transform .3s var(--ease); }
body.cosmos .svc__toggle::before { top: 5px; left: 0; width: 12px; height: 2px; }
body.cosmos .svc__toggle::after { top: 0; left: 5px; width: 2px; height: 12px; }
body.cosmos .svc__row.is-open .svc__toggle::after { transform: scaleY(0); }
body.cosmos .svc__body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
body.cosmos .svc__row.is-open .svc__body { max-height: 34rem; }
body.cosmos .svc__body > * { margin-left: calc(.78rem + 1.2rem); }
body.cosmos .svc__body .prose { padding-top: .4rem; }
body.cosmos .svc__list { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; color: var(--muted);
  letter-spacing: .04em; font-size: .72rem; }
body.cosmos .svc__list li { position: relative; padding-left: 14px; }
body.cosmos .svc__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; border: 1px solid var(--cyan); }
body.cosmos .svc__foot { display: flex; justify-content: space-between; align-items: center; gap: 1.4rem;
  flex-wrap: wrap; margin-top: 1.4rem; padding-bottom: .4rem; }
body.cosmos .svc__out { color: var(--dim); font-size: .68rem; letter-spacing: .06em; }

/* ---- funnel ---- */
body.cosmos .funnel { margin-top: clamp(40px,5vw,72px); padding: clamp(24px,3vw,44px); border: 1px solid var(--line);
  background: rgba(8,11,20,0.4); position: relative; }
body.cosmos .funnel__label { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; margin-bottom: 1.8rem; }
body.cosmos .funnel__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px,3vw,44px); }
body.cosmos .funnel__num { color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; font-size: .64rem; }
body.cosmos .funnel__h { margin: .6rem 0 .5rem; color: var(--ink); }
body.cosmos .funnel__p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
body.cosmos .funnel__cta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 2.2rem; }
body.cosmos .funnel__note { color: var(--dim); font-size: .66rem; letter-spacing: .06em; }

/* ---- metrics + testimonial ---- */
body.cosmos .metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
body.cosmos .metric { background: rgba(8,11,20,0.5); padding: clamp(24px,3vw,40px); display: flex; flex-direction: column; gap: .5rem; }
body.cosmos .metric__num { font-size: clamp(2.4rem,4vw,3.4rem); line-height: 1; color: var(--ink); }
body.cosmos .metric__label { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: .64rem; }
body.cosmos .testimonial { margin-top: clamp(40px,5vw,64px); padding: clamp(28px,4vw,56px); border: 1px solid var(--line);
  background: rgba(8,11,20,0.4); position: relative; }
body.cosmos .testimonial p { color: var(--ink); }
body.cosmos .testimonial footer { margin-top: 1.6rem; color: var(--muted); letter-spacing: .06em; }
body.cosmos .testimonial__ph { color: var(--dim); }

/* ---- about ---- */
body.cosmos .about { display: grid; grid-template-columns: 340px 1fr; gap: clamp(30px,4vw,64px); align-items: start; }
body.cosmos .factsheet { display: flex; flex-direction: column; gap: .1rem; border: 1px solid var(--line); }
body.cosmos .factsheet > div { display: flex; justify-content: space-between; gap: 1rem; padding: 12px 16px; border-bottom: 1px solid var(--line); }
body.cosmos .factsheet > div:last-child { border-bottom: none; }
body.cosmos .factsheet dt { color: var(--dim); letter-spacing: .08em; text-transform: uppercase; font-size: .64rem; }
body.cosmos .factsheet dd { color: var(--ink); font-size: .8rem; }
body.cosmos .portrait--art { margin-top: 1.4rem; border: 1px solid var(--line); overflow: hidden; }
body.cosmos .portrait--art img { width: 100%; height: auto; display: block; }
body.cosmos .portrait__cap { display: block; padding: .7rem 0 0; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; font-size: .62rem; }
body.cosmos .about__body .display { margin-bottom: 1.4rem; }
body.cosmos .about__body .prose + .prose { margin-top: 1.1rem; }
body.cosmos .pull { margin: 1.8rem 0; padding-left: 1.4rem; border-left: 2px solid var(--cyan); }
body.cosmos .pull p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; color: var(--ink); font-weight: 500; }

/* ---- contact / form ---- */
body.cosmos .contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px,4vw,64px); align-items: start; }
body.cosmos .contact__lead .display { margin: 0 0 1.2rem; }
body.cosmos .contact__steps { margin: 1.6rem 0; display: flex; flex-direction: column; gap: .7rem; }
body.cosmos .contact__steps li { display: flex; gap: .8em; color: var(--muted); letter-spacing: .04em; font-size: .78rem; }
body.cosmos .contact__steps span { color: var(--cyan); }
body.cosmos .contact__direct { color: var(--muted); font-size: .74rem; letter-spacing: .04em; }
body.cosmos .contact__direct a { color: var(--cyan); }
body.cosmos .form-wrap { padding: clamp(24px,3vw,40px); border: 1px solid var(--line); background: rgba(8,11,20,0.55); }
body.cosmos .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
body.cosmos .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1.2rem; }
body.cosmos .field label { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: .6rem; }
body.cosmos .field input, body.cosmos .field textarea, body.cosmos .cselect__btn {
  font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 6px; padding: .7em .8em; outline: none; width: 100%;
  transition: border-color .2s, background .2s; }
body.cosmos .field input:focus, body.cosmos .field textarea:focus { border-color: var(--cyan); background: rgba(255,255,255,0.07); }
body.cosmos .field input.invalid { border-color: #e0654a; }
body.cosmos .field textarea { resize: vertical; }
body.cosmos .field__err { color: #e88a72; font-size: .64rem; letter-spacing: .04em; }
body.cosmos .form__note { margin-top: 1rem; font-size: .68rem; letter-spacing: .04em; }
body.cosmos .form__note.ok { color: #4fd08a; } body.cosmos .form__note.err { color: #e88a72; }

/* custom dropdown */
body.cosmos .select { position: relative; }
body.cosmos .select select { position: absolute; opacity: 0; pointer-events: none; }
body.cosmos .cselect__btn { display: flex; align-items: center; justify-content: space-between; cursor: pointer; text-align: left; }
body.cosmos .cselect__chev { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; flex: none; }
body.cosmos .cselect.is-open .cselect__chev { transform: rotate(180deg); stroke: var(--cyan); }
body.cosmos .cselect__list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: rgba(9,13,22,0.98); border: 1px solid var(--line); border-radius: 8px; padding: 5px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .18s, max-height .22s var(--ease); }
body.cosmos .cselect.is-open .cselect__list { max-height: 340px; opacity: 1; pointer-events: auto; }
body.cosmos .cselect__opt { display: flex; align-items: center; width: 100%; background: none; border: none; cursor: pointer;
  color: var(--muted); font-family: var(--sans); font-size: .9rem; text-align: left; padding: .55em .7em; border-radius: 5px; transition: background .15s, color .15s; }
body.cosmos .cselect__opt:hover { background: rgba(18,161,219,0.12); color: var(--ink); }
body.cosmos .cselect__opt.is-sel { color: var(--cyan); }
body.cosmos .cselect__opt.is-sel::after { content: "✓"; margin-left: auto; font-size: .85em; }

/* scheduler / booking */
body.cosmos .sched__eyebrow, body.cosmos .booking__eyebrow { color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; margin-bottom: 1rem; }
body.cosmos .sched__days { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
body.cosmos .sched__day, body.cosmos .sched__time { background: var(--field); border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: .5em .8em; cursor: pointer; font-size: .8rem; transition: border-color .2s, background .2s; }
body.cosmos .sched__day.is-active, body.cosmos .sched__time.is-sel { border-color: var(--cyan); background: rgba(18,161,219,0.14); }
body.cosmos .sched__times { display: flex; flex-wrap: wrap; gap: 8px; }
body.cosmos .sched__tz, body.cosmos .sched__msg { color: var(--dim); font-size: .66rem; margin-top: 12px; }
body.cosmos .sched__confirm { margin-top: 16px; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
body.cosmos .sched__chosen { color: var(--ink); font-size: .74rem; }
body.cosmos .sched__err { color: #e88a72; font-size: .68rem; margin-top: 10px; }
body.cosmos .sched__skel { display: inline-block; width: 92px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.06);
  border: 1px solid var(--line); animation: skelPulse 1.2s ease-in-out infinite; }
body.cosmos .sched__skel--t { width: 74px; height: 30px; }
@keyframes skelPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
body.cosmos .booking--confirmed { text-align: left; }
body.cosmos .booking__check { width: 44px; height: 44px; margin-bottom: 14px; stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
body.cosmos .booking__check circle { stroke-dasharray: 132; stroke-dashoffset: 132; animation: checkRing .5s var(--ease) forwards; opacity: .55; }
body.cosmos .booking__check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: checkTick .35s .4s var(--ease) forwards; }
@keyframes checkRing { to { stroke-dashoffset: 0; } }
@keyframes checkTick { to { stroke-dashoffset: 0; } }
body.cosmos .booking__h { color: var(--ink); margin: .3rem 0 .6rem; }
body.cosmos .booking__p { color: var(--muted); font-size: .9rem; }
body.cosmos .booking__ics { margin-top: .6rem; display: inline-flex; }
body.cosmos .btn.is-busy { opacity: .75; pointer-events: none; }

/* ---- account (profile) menu ---- */
.profile-wrap { position: relative; display: inline-flex; }
.profile { background: none; border: none; cursor: pointer; color: var(--ink); padding: 4px; display: inline-flex; position: relative; }
.profile svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.profile:hover svg { stroke: var(--cyan); }
.profile__dot { position: absolute; right: 0; bottom: 1px; width: 7px; height: 7px; border-radius: 50%; background: transparent; box-shadow: 0 0 0 2px var(--space); opacity: 0; transition: opacity .2s; }
.profile__dot.is-on { background: var(--cyan); opacity: 1; } .profile__dot.is-warn { background: var(--gold); opacity: 1; }
.profile-menu { position: absolute; top: calc(100% + 14px); right: 0; z-index: 210; width: min(320px, 86vw); padding: 18px; border-radius: 14px;
  background: rgba(9,13,22,0.98); border: 1px solid var(--line); box-shadow: 0 40px 90px -44px rgba(0,0,0,0.85);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); display: flex; flex-direction: column; gap: 12px; }
.profile-menu[hidden] { display: none; }
.pm-title { letter-spacing: .14em; text-transform: uppercase; font-size: .64rem; color: var(--muted); }
.pm-field { display: flex; flex-direction: column; gap: 5px; }
.pm-field span { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.pm-field input { font-family: var(--sans); font-size: .92rem; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: .6em .7em; outline: none; }
.pm-field input:focus { border-color: var(--cyan); }
.profile-menu .btn { margin-top: 2px; }
.pm-note { font-size: .62rem; min-height: 1em; margin: 0; } .pm-note.ok { color: #4fd08a; } .pm-note.bad { color: #e88a72; }
.pm-account { display: flex; flex-direction: column; gap: 10px; }
.pm-signin[hidden], .pm-account[hidden] { display: none; }
.pm-who { font-size: .88rem; color: var(--ink); word-break: break-all; }
.pm-link { display: inline-flex; align-items: center; justify-content: space-between; gap: .4em; font-family: var(--sans); font-size: .85rem; color: var(--ink); background: none; border: none; border-top: 1px solid var(--line); padding: 11px 0 2px; cursor: pointer; text-align: left; transition: color .2s; }
.pm-link:hover { color: var(--cyan); } .pm-link span { color: var(--cyan); } .pm-signout { color: var(--muted); } .pm-signout:hover { color: #e88a72; }

/* ---- footer ---- */
body.cosmos .footer { position: relative; z-index: 10; margin-top: 6vh; padding: clamp(40px,6vw,80px) clamp(20px,4vw,56px) 0;
  background: linear-gradient(180deg, transparent, rgba(4,6,13,0.9) 30%); border-top: 1px solid var(--line); }
body.cosmos .footer__inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 40px; }
body.cosmos .footer__tag { color: var(--muted); margin-top: 1rem; max-width: 30ch; letter-spacing: .04em; line-height: 1.6; }
body.cosmos .footer__col { display: flex; flex-direction: column; gap: .7rem; }
body.cosmos .footer__h { color: var(--dim); letter-spacing: .12em; text-transform: uppercase; font-size: .62rem; margin-bottom: .3rem; }
body.cosmos .footer__col a { color: var(--muted); font-size: .8rem; transition: color .2s; }
body.cosmos .footer__col a:hover { color: var(--cyan); }
body.cosmos .footer__base { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem;
  padding: 18px 0 30px; border-top: 1px solid var(--line); color: var(--dim); font-size: .64rem; letter-spacing: .08em; }

/* ============================================================
   SLIDE WIPES — sections reveal, alternating directions.
   Fail-safe: visible unless JS arms below-fold sections.
   ============================================================ */
.js body.cosmos [data-wipe] { transition: clip-path .65s cubic-bezier(.2,.7,.2,1), -webkit-clip-path .65s cubic-bezier(.2,.7,.2,1); }
.js body.cosmos [data-wipe="bottom"].wipe-armed:not(.is-wiped) { -webkit-clip-path: inset(100% 0 0 0); clip-path: inset(100% 0 0 0); }
.js body.cosmos [data-wipe="top"].wipe-armed:not(.is-wiped)    { -webkit-clip-path: inset(0 0 100% 0); clip-path: inset(0 0 100% 0); }
.js body.cosmos [data-wipe="right"].wipe-armed:not(.is-wiped)  { -webkit-clip-path: inset(0 0 0 100%); clip-path: inset(0 0 0 100%); }
.js body.cosmos [data-wipe="left"].wipe-armed:not(.is-wiped)   { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); }
.js body.cosmos [data-wipe].is-wiped { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .js body.cosmos [data-wipe] { clip-path: none !important; -webkit-clip-path: none !important; transition: none !important; } }

/* ---- reveal (staggered content) ---- */
.js body.cosmos [data-reveal] { opacity: 0; transform: translateY(16px); }
.js body.cosmos [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ---- tablet & down: primary nav folds into the menu, sections stack ---- */
@media (max-width: 1024px) {
  .topbar__nav { display: none; }
  .burger { display: flex; }
  .hero { padding: calc(var(--bar-h) + 5vh) clamp(22px,4vw,48px) 7vh; }
  .hero__inner { max-width: 560px; }
  .sec { padding: clamp(56px,8vh,104px) clamp(22px,4vw,48px); }
  .panel { padding: clamp(24px,3.2vw,44px); }
  /* single-column stack — reset the 12-col spans so no empty tracks remain */
  body.cosmos .about, body.cosmos .contact { grid-template-columns: 1fr; gap: clamp(28px,4vw,44px); }
  body.cosmos .about > *, body.cosmos .contact > * { grid-column: 1 / -1; }
  body.cosmos .about__meta { max-width: 460px; }
  body.cosmos .funnel__steps { grid-template-columns: 1fr; gap: 22px; }
  body.cosmos .metrics { grid-template-columns: repeat(2, 1fr); }
}
/* ---- phone ---- */
@media (max-width: 620px) {
  body.cosmos .topbar .link-cta { display: none !important; }
  .topbar__inner { padding: .5rem .95rem .5rem 1.1rem; }
  .topbar__end { gap: .9rem; }
  .wordmark { font-size: 1.05rem; gap: .5rem; }
  .wordmark__sub { display: none; }              /* compact to "Orbit" on phones */
  .hero { padding: calc(var(--bar-h) + 4.5vh) 22px 7vh; }
  .hero__eyebrow { font-size: .58rem; letter-spacing: .1em; gap: .6em; margin-bottom: 1.25rem; }
  .hero__stat { display: none; }                  /* drop "// SYSTEMS: 3" on phones */
  .hero__title { font-size: clamp(2.5rem, 12.5vw, 3.7rem); }
  .hero__lede { font-size: 1rem; margin-top: 1.25rem; max-width: none; }
  .hero__actions { gap: 1rem 1.1rem; margin-top: 1.9rem; }
  .hero__meta { gap: 9px 18px; margin-top: 2rem; font-size: .6rem; }
  body.cosmos .ledger { grid-template-columns: 1fr; }
  body.cosmos .form__row { grid-template-columns: 1fr; gap: 0; }
  body.cosmos .svc__head { grid-template-columns: auto 1fr auto; }
  body.cosmos .svc__tag { display: none; }
  body.cosmos .footer__inner { grid-template-columns: 1fr 1fr; }
  .panel__head { flex-wrap: wrap; gap: .5em; }
}
@media (max-width: 374px) {
  body.cosmos .metrics { grid-template-columns: 1fr; }
  body.cosmos .footer__inner { grid-template-columns: 1fr; }
}
