/* Ave38 Digital — site styles (bright edition) */
:root {
  --bg: #F8FBFF;
  --paper: #FFFFFF;
  --ink: #0B1B3A;
  --ink-2: #12285A;
  --text: #0B1B3A;
  --muted: #55627C;
  --line: #E0E8F3;
  --on-ink: #EEF4FF;
  --on-ink-muted: #A8B8D6;
  --ink-line: rgba(238, 244, 255, 0.14);

  --violet: #2563EB;
  --violet-deep: #1D4ED8;
  --coral: #10B981;
  --amber: #FACC15;
  --magenta: #06B6D4;
  --lilac: #E6EFFF;
  --blush: #DDF7EC;
  --peach: #FFF6D1;
  --rose: #DDF6FB;

  /* channel colours (also used by build.py markup) */
  --email: var(--violet);
  --sms: var(--magenta);
  --push: var(--amber);
  --brand: var(--coral);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: 28px;
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: inherit; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* The murmuration canvas sits behind the page; solid sections cover it. */
.flock { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.flock--inline { position: relative; inset: auto; height: 100%; }
.flock--hero { position: absolute; }
main, .footer { position: relative; z-index: 1; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.98; letter-spacing: -0.05em; font-weight: 500;
}
.h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.04; letter-spacing: -0.04em; font-weight: 500;
}
.h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 33em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 500; color: var(--violet-deep); margin-bottom: 24px; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 14px 0 0 var(--amber); margin-right: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 500 1rem/1 var(--font); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--violet); color: #fff; box-shadow: 0 14px 30px -12px rgba(37, 99, 235, .7); }
.btn-gold:hover { background: var(--coral); box-shadow: 0 14px 30px -12px rgba(16, 185, 129, .7); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--violet); }
.btn-ghost { color: var(--ink); border-color: rgba(11, 27, 58, .2); background: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-line { color: var(--ink); border-color: var(--line); background: var(--paper); }
.btn-line:hover { border-color: var(--ink); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand-mark { width: 34px; height: 34px; overflow: visible; }
.brand-mark .planet, .brand-mark .orbit { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.brand-mark .planet { stroke: var(--violet); }
.brand-mark .dot { fill: var(--coral); }
.footer .brand-mark .planet { stroke: #7FB2FF; }
.brand-word { font-size: 1.2rem; letter-spacing: -0.035em; font-weight: 600; white-space: nowrap; }
.brand-word span { font-weight: 400; opacity: .6; margin-left: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .brand-mark .orbit { stroke-dasharray: 60; animation: orbit-in 1.6s var(--ease) both; }
  .brand-mark .orbit.front { animation-delay: .25s; }
  .brand-mark .dot { animation: dot-in .6s var(--ease) 1.1s both; transform-box: fill-box; transform-origin: center; }
  .brand:hover .dot { animation: dot-pulse 1.2s var(--ease); }
}
@keyframes orbit-in { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes dot-in { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes dot-pulse { 50% { transform: scale(1.7); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); color: var(--ink);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-solid {
  background: rgba(248, 251, 255, .8);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .72; transition: opacity .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--coral); }
.nav-links .btn { min-height: 44px; padding: 0 20px; font-size: .93rem; opacity: 1; }
.nav .nav-cta { background: var(--ink); color: #fff; }
.nav .nav-cta:hover { background: var(--violet); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: inherit; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .3s var(--ease), background-color .2s;
  }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav.is-open .nav-toggle span { background: transparent; }
  .nav.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--bg);
    box-shadow: 0 1px 0 var(--line), 0 24px 40px rgba(11,27,58,.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { background: var(--bg); }
  .nav.is-open .nav-links { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; opacity: 1; }
  .nav-links .btn { margin-top: 18px; min-height: 52px; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 960px);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 72px;
}
.hero-copy { position: relative; max-width: 600px; }
.hero .display { margin-bottom: 28px; }
.hero .lede { margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.flock-slot { display: none; }

/* sub-page heroes: soft colour wash */
.hero--wash {
  background:
    radial-gradient(60% 90% at 88% 10%, var(--blush) 0%, transparent 60%),
    radial-gradient(50% 80% at 62% 100%, var(--peach) 0%, transparent 62%),
    radial-gradient(70% 100% at 10% 0%, var(--lilac) 0%, transparent 65%),
    var(--bg);
  overflow: hidden;
}
.hero--compact { min-height: 0; padding: calc(var(--nav-h) + 84px) 0 92px; }
.hero--compact .hero-copy { max-width: 720px; }
.hero--stage { min-height: min(92svh, 860px); }
.hero--stage .wrap { position: relative; z-index: 1; }
.flock-label {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 34px;
  padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--line);
  font-weight: 500; font-size: .95rem;
}
.flock-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.flock-label small { color: var(--muted); font-size: inherit; font-weight: 400; }

@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: calc(var(--nav-h) + 36px) 0 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .flock-slot { display: block; height: 380px; margin-top: 12px; }
  .hero--compact { padding-bottom: 60px; }
  .hero--stage { min-height: 0; padding-bottom: 0; }
  .hero--stage .flock--hero { position: relative; height: 360px; margin-top: 8px; order: 2; }
}

/* ---------- Chapters (transparent: the flock shows beside the text) ---------- */
.chapter { min-height: 92svh; display: flex; align-items: center; padding: 72px 0; }
.chapter-copy { max-width: 500px; }
.chapter[data-side="left"] .chapter-copy { margin-left: auto; }
.chapter-copy .h2 { margin-bottom: 20px; }
.chapter-copy p { color: var(--muted); font-size: 1.1rem; }
.chapter-copy .strong { color: var(--text); font-weight: 500; font-size: 1.22rem; line-height: 1.45; margin-top: 24px; }
.chapter-tag { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 11px; border-radius: 999px; font-size: .9rem; font-weight: 500; margin-bottom: 22px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--ink); }
.chapter-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.ticks { margin-top: 24px; }
.ticks li { padding: 12px 0; border-top: 1px solid var(--line); line-height: 1.45; font-size: 1rem; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.services-head { padding: clamp(72px, 9vw, 120px) 0 0; }
.services-head .h2 { max-width: 15em; }

/* The journey ride */
.journey { padding: 12svh 0; }
.journey-head { max-width: 500px; margin-bottom: 8svh; }
.journey-steps { counter-reset: step; max-width: 460px; }
.journey-steps li { counter-increment: step; min-height: 46svh; }
.journey-steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 20px;
  background: var(--ink); color: #fff; font-weight: 500;
}
.journey-steps li:nth-child(2)::before { background: var(--violet); }
.journey-steps li:nth-child(3)::before { background: var(--coral); }
.journey-steps li:nth-child(4)::before { background: var(--amber); color: var(--ink); }
.journey-steps h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 10px; }
.journey-steps p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Solid sections ---------- */
.section { padding: clamp(84px, 11vw, 140px) 0; background: var(--bg); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--violet { background: var(--violet); color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 68px); }
.section-head .h2 { margin-bottom: 20px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 38em; }
.section--ink .section-head p { color: var(--on-ink-muted); }
.section--violet .section-head p { color: rgba(255,255,255,.8); }
.section--ink .kicker, .section--violet .kicker, .book .kicker { color: #fff; }

.statement { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 7vw, 120px); align-items: start; }
.statement p { font-size: 1.1rem; color: var(--muted); }

.reasons { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.reason { padding: 40px 44px 40px 0; border-bottom: 1px solid var(--line); }
.reason:nth-child(odd) { border-right: 1px solid var(--line); }
.reason:nth-child(even) { padding-left: 44px; padding-right: 0; }
.reason .h3 { margin-bottom: 12px; font-size: 1.55rem; letter-spacing: -0.03em; }
.reason p { color: var(--muted); margin: 0; max-width: 30em; }
.section--violet .reasons, .section--violet .reason { border-color: rgba(255,255,255,.22); }
.section--violet .reason p { color: rgba(255,255,255,.82); }
.section--ink .reasons, .section--ink .reason { border-color: var(--ink-line); }
.section--ink .reason p { color: var(--on-ink-muted); }

.audience { display: flex; flex-wrap: wrap; gap: 10px; }
.audience li { padding: 13px 22px; border-radius: 999px; font-weight: 500; background: var(--lilac); }
.audience li:nth-child(4n+2) { background: var(--blush); }
.audience li:nth-child(4n+3) { background: var(--peach); }
.audience li:nth-child(4n+4) { background: var(--rose); }

.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; counter-reset: step; }
.track::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, var(--violet), var(--coral), var(--amber)); }
.track li { position: relative; counter-increment: step; }
.track li::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 500; font-size: .95rem; margin-bottom: 24px; position: relative;
  box-shadow: 0 0 0 6px var(--bg);
}
.section--paper .track li::before { box-shadow: 0 0 0 6px var(--paper); }
.track h3 { font-size: 1.15rem; margin-bottom: 6px; }
.track p { color: var(--muted); margin: 0; font-size: .97rem; }

.deliverables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px, 4vw, 56px); }
.deliverable { padding: 32px 0; border-top: 1px solid var(--line); }
.deliverable .h3 { margin-bottom: 14px; }
.deliverable p { color: var(--muted); margin: 0; }
.deliverable li { color: var(--muted); padding: 4px 0 4px 20px; position: relative; }
.deliverable li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.deliverable:nth-child(3n+2) li::before { background: var(--violet); }
.deliverable:nth-child(3n+3) li::before { background: var(--amber); }

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.checks li { padding: 20px 0 20px 38px; border-top: 1px solid var(--ink-line); position: relative; font-size: 1.06rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 26px; width: 16px; height: 9px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
.checks .final { grid-column: 1 / -1; color: #fff; font-weight: 500; }

.faq { border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: 1.2rem; letter-spacing: -0.015em; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; color: var(--violet);
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; color: var(--muted); max-width: 44em; }
.faq .answer p:last-child { margin: 0; }

.teaser {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 30px 34px; border-radius: 28px; background: var(--lilac);
}
.teaser img { width: 72px; height: 72px; border-radius: 17px; }
.teaser-icons { display: flex; }
.teaser-icons img + img { margin-left: -18px; box-shadow: 0 0 0 3px var(--lilac); }
.teaser h3 { font-size: 1.2rem; margin-bottom: 4px; }
.teaser p { margin: 0; color: var(--muted); }

.book { background: var(--ink); color: var(--on-ink); padding: clamp(84px, 11vw, 136px) 0; position: relative; overflow: hidden; z-index: 1; }
.book::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37,99,235,.55), rgba(16,185,129,.18) 60%, transparent 100%);
  pointer-events: none;
}
.book-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; position: relative; }
.book .h2 { margin-bottom: 20px; }
.book p { color: var(--on-ink-muted); font-size: 1.1rem; }
.book a.mail { color: #fff; text-decoration-color: var(--coral); text-underline-offset: 6px; }
.calendar { background: var(--paper); border-radius: 24px; overflow: hidden; min-height: 700px; box-shadow: 0 50px 90px -40px rgba(0,0,0,.6); }
.calendly-inline-widget { min-width: 320px; height: 700px; }

.footer { background: #081530; color: var(--on-ink-muted); padding: 64px 0 40px; font-size: .95rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding-bottom: 40px; border-bottom: 1px solid var(--ink-line); }
.footer .brand { color: var(--on-ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.footer-links a { text-decoration: none; color: var(--on-ink); opacity: .78; }
.footer-links a:hover { opacity: 1; }
.footer-bottom { padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-bottom p { margin: 0; }

/* ---------- Apps page ---------- */
.app { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.apps-list .app + .app { margin-top: clamp(80px, 11vw, 140px); padding-top: clamp(80px, 11vw, 140px); border-top: 1px solid var(--line); }
@media (min-width: 961px) { .app--flip .app-stage { order: 2; } }
.app-stage {
  position: relative; border-radius: 36px; padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 22px); align-items: start;
}
.shot { border-radius: 22px; overflow: hidden; box-shadow: 0 30px 50px -24px rgba(11, 35, 90, .55), 0 0 0 1px rgba(11,27,58,.08); }
.shot img { width: 100%; height: auto; }
.shot--low { margin-top: clamp(32px, 5vw, 64px); }
.app-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.app-head img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 12px 26px -10px rgba(11,27,58,.45); }
.app-head h2 { font-size: 2.5rem; letter-spacing: -0.045em; line-height: 1.05; }
.app-head p { margin: 4px 0 0; color: var(--muted); }
.app-desc { font-size: 1.1rem; color: var(--muted); margin-bottom: 28px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.app-note { margin-top: 18px; font-size: .92rem; color: var(--muted); }

.squeeze, .keyshift { margin: 28px 0 8px; padding: 22px 24px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.squeeze-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.squeeze-size { font-size: 2rem; font-weight: 500; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.squeeze-from { color: var(--muted); font-variant-numeric: tabular-nums; }
.squeeze-bar { height: 8px; border-radius: 999px; background: var(--lilac); overflow: hidden; }
.squeeze-fill { height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #5C4FF2, #8B7BFF); transition: width 1.6s var(--ease); }
.squeeze.is-done .squeeze-fill { width: 11.4%; }
.keyshift-row { display: flex; gap: 6px; margin: 0 0 14px; }
.keyshift-row li {
  flex: 1; min-width: 0; text-align: center; padding: 8px 0; border-radius: 10px;
  font-size: .95rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.keyshift-row .from { color: var(--ink); border-color: #E7A35B; }
.keyshift.is-done .keyshift-row .from { background: var(--paper); color: var(--muted); border-color: var(--line); }
.keyshift.is-done .keyshift-row .to { background: linear-gradient(135deg, #F59A5B, #E93D7A); color: #fff; border-color: transparent; transform: translateY(-2px); }
.keyshift-text { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .95rem; color: var(--muted); }
.keyshift-text strong { color: var(--ink); font-weight: 600; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.features li { padding: 11px 0; border-top: 1px solid var(--line); font-size: .98rem; }
.more { margin-top: clamp(56px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- Insights ---------- */
.hero--article { min-height: 0; display: block; padding: calc(var(--nav-h) + 60px) 0 68px; }
.hero--article .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.hero--article .lede { margin-bottom: 26px; max-width: 38em; }
.article-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.05; margin: 22px 0 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--ink); text-decoration: none; opacity: .8; }
.crumbs a:hover { opacity: 1; }
.post-meta { margin: 0; font-size: .92rem; color: var(--muted); }
.post-meta span { margin: 0 6px; }

.prose { max-width: calc(760px + 2 * var(--gutter)); font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.2em; }
.prose li > p { margin: 0; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; margin-top: 2.2em; }
.prose h3 { font-size: 1.28rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { color: var(--violet-deep); text-decoration-color: color-mix(in srgb, var(--violet) 45%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--coral); }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--coral); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--violet); color: var(--muted); }
.prose code { font-size: .9em; background: var(--lilac); padding: 2px 6px; border-radius: 6px; }
.prose > p:first-child { font-size: 1.16rem; padding: 22px 26px; background: var(--lilac); border-radius: 18px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 16px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .96rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--bg); }
.prose tr:last-child td { border-bottom: 0; }

.article-cta { margin: 2.2em 0; padding: 28px 30px; border-radius: 22px; background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.article-cta::before { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(37,99,235,.7), rgba(16,185,129,.2) 65%, transparent); }
.article-cta > * { position: relative; }
.prose .article-cta p { margin: 0 0 18px; color: var(--on-ink-muted); font-size: 1rem; }
.prose .article-cta .article-cta-title { color: #fff; font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.prose .article-cta a.btn { color: var(--ink); text-decoration: none; }
.article-cta .btn-ink { background: var(--amber); color: var(--ink); }
.article-cta .btn-ink:hover { background: #fff; }

.article-faq, .sources { margin-top: 3em; }
.article-faq h2, .sources h2 { margin-bottom: .8em; }
.sources ul { list-style: none; padding: 0; font-size: .95rem; }
.sources li { padding: 8px 0; border-top: 1px solid var(--line); }

.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--line); }
.posts--3 { grid-template-columns: repeat(3, 1fr); }
.posts li { border-bottom: 1px solid var(--line); }
.post { display: flex; flex-direction: column; gap: 8px; padding: 30px 0; text-decoration: none; height: 100%; }
.post-cat { font-size: .86rem; color: var(--violet-deep); font-weight: 500; }
.post-cat span { margin: 0 4px; }
.post-cat time { color: var(--muted); font-weight: 400; }
.post-title { font-size: 1.35rem; letter-spacing: -0.025em; line-height: 1.25; font-weight: 500; transition: color .2s; }
.post-desc { color: var(--muted); font-size: .98rem; }
.post:hover .post-title { color: var(--violet-deep); }

.book--slim { padding: clamp(64px, 8vw, 96px) 0; }
.book-slim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; position: relative; }
.book-slim .h2 { margin: 0; max-width: 16em; }
.book .btn-gold { background: var(--amber); color: var(--ink); box-shadow: none; }
.book .btn-gold:hover { background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .deliverables { grid-template-columns: 1fr; }
  .statement, .book-grid, .app { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .track::before { display: none; }
}
@media (max-width: 900px) {
  .chapter { min-height: 0; padding: 64px 0; }
  .chapter-copy, .journey-head, .journey-steps { max-width: none; }
  .chapter[data-side="left"] .chapter-copy { margin-left: 0; }
  .journey { padding: 64px 0; }
  .journey-head { margin-bottom: 40px; }
  .journey-steps li { min-height: 0; padding-bottom: 40px; }
  .hero--article { padding: calc(var(--nav-h) + 40px) 0 52px; }
  .posts, .posts--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; --nav-h: 66px; }
  body { font-size: 16px; }
  .reasons, .checks, .features { grid-template-columns: 1fr; }
  .reason, .reason:nth-child(even), .reason:nth-child(odd) { padding: 30px 0; border-right: 0; }
  .track { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: auto 1fr; padding: 22px; }
  .teaser .btn { grid-column: 1 / -1; }
  .calendly-inline-widget { height: 760px; }
  .faq summary { font-size: 1.08rem; }
  .keyshift-row li:nth-child(-n+2), .keyshift-row li:nth-last-child(-n+2) { display: none; }
}

/* ---------- Epic home hero: a sunrise sky with the flock sweeping across it ---------- */
.dawn {
  position: absolute; top: 0; left: 0; right: 0; height: 122svh; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 80%, transparent 100%); mask-image: linear-gradient(#000 80%, transparent 100%);
  background:
    radial-gradient(120% 55% at 50% 84%, rgba(253, 224, 71, .95) 0%, rgba(52, 211, 153, .85) 28%, rgba(6, 182, 212, 0) 62%),
    linear-gradient(180deg, #04102B 0%, #0A2A6E 30%, #1D4ED8 50%, #0891B2 66%, #10B981 80%, #FDE047 91%, #F8FBFF 100%);
}
.hero--epic { min-height: 100svh; justify-content: center; text-align: center; color: #fff; padding-bottom: 12svh; }
.hero--epic .hero-copy { max-width: 980px; margin: 0 auto; }
.hero--epic .hero-copy::before {
  content: ""; position: absolute; inset: -18% -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(4, 16, 43, .62), rgba(4, 16, 43, .28) 60%, transparent 100%);
}
.hero--epic .display { font-size: clamp(3.1rem, 8.4vw, 7.6rem); line-height: .94; letter-spacing: -0.055em; margin-bottom: 30px; text-shadow: 0 2px 40px rgba(4, 16, 43, .45); }
.hero--epic .lede { color: rgba(255,255,255,.86); margin: 0 auto 40px; max-width: 36em; }
.hero--epic .kicker { color: #fff; }
.hero--epic .hero-actions { justify-content: center; }
.hero--epic .btn-gold { background: #fff; color: var(--ink); box-shadow: 0 18px 40px -14px rgba(4, 16, 43, .8); }
.hero--epic .btn-gold:hover { background: var(--blush); }
.hero--epic .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.hero--epic .btn-ghost:hover { border-color: #fff; }
body:has(.hero--epic) .nav:not(.is-solid):not(.is-open) { color: #fff; }
body:has(.hero--epic) .nav:not(.is-solid):not(.is-open) .brand-mark .planet { stroke: #fff; }
body:has(.hero--epic) .nav:not(.is-solid):not(.is-open) .nav-cta { background: #fff; color: var(--ink); }
body:has(.hero--epic) .nav.is-dim:not(.is-solid):not(.is-open) {
  background: rgba(4, 16, 43, .6);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
@media (max-width: 900px) {
  /* On phones the hero carries its own sky, so the animation always sits on it. */
  .dawn { display: none; }
  .hero--epic {
    background:
      linear-gradient(180deg, rgba(248,251,255,0) 91%, #F8FBFF 100%),
      radial-gradient(120% 20% at 50% 93%, rgba(253, 224, 71, .9) 0%, rgba(52, 211, 153, .8) 35%, rgba(6, 182, 212, 0) 75%),
      linear-gradient(180deg, #04102B 0%, #0A2A6E 34%, #1D4ED8 56%, #0891B2 74%, #10B981 87%, #FDE047 95%, #F8FBFF 100%);
  }
  .hero--epic { min-height: 100svh; justify-content: center; padding: calc(var(--nav-h) + 24px) 0 64px; }
  .hero--epic .wrap { position: relative; z-index: 1; }
  .hero--epic .flock-slot { position: absolute; inset: 0; height: auto; margin: 0; }
  .hero--epic .flock--inline { position: absolute; inset: 0; width: 100%; height: 100%; }
}

/* Decibelwerk meter demo */
.dbmeter { margin: 28px 0 8px; padding: 22px 24px; border-radius: 20px; background: #17181B; color: #FFB23F; overflow: hidden; }
.dbmeter-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.dbmeter-num { font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dbmeter-num small { font-size: .95rem; font-weight: 400; opacity: .8; }
.dbmeter-note { color: #A7A9AE; font-size: .95rem; }
.dbmeter-bar { position: relative; height: 10px; border-radius: 999px; background: #2C2E32; overflow: hidden; }
.dbmeter-fill { height: 100%; width: 0; border-radius: inherit; background: #FFB23F; transition: width 1.5s var(--ease); }
.dbmeter.is-done .dbmeter-fill { width: 44.4%; }               /* (70 - 30) / (120 - 30) */
.dbmeter-red { position: absolute; top: 0; bottom: 0; left: 61.1%; right: 0; background: rgba(240, 74, 58, .55); }   /* from 85 dB */
.dbmeter-scale { position: relative; height: 1.4em; margin-top: 8px; font-size: .82rem; color: #A7A9AE; font-variant-numeric: tabular-nums; }
.dbmeter-scale span { position: absolute; transform: translateX(-50%); }
.dbmeter-scale span:nth-child(1) { left: 0; transform: none; }
.dbmeter-scale span:nth-child(2) { left: 33.3%; }
.dbmeter-scale span:nth-child(3) { left: 61.1%; color: #F04A3A; }
.dbmeter-scale span:nth-child(4) { right: 0; left: auto; transform: none; }

/* Lunatide tide demo */
.tidedemo { margin: 28px 0 8px; padding: 20px 22px 18px; border-radius: 20px; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, #4A5698 0%, #9A7E9A 55%, #D98E74 100%); }
.tidedemo svg { width: 100%; height: 96px; overflow: visible; }
.tide-line { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tide-dot { fill: #FFE2A8; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.tide-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; font-size: .85rem; line-height: 1.35; }
.tide-row b { display: block; font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.tide-row i { display: block; font-style: normal; opacity: .85; }
@media (max-width: 640px) { .tide-row { grid-template-columns: repeat(2, 1fr); row-gap: 10px; } }


/* contact: who to email for what */
.contacts { display: grid; gap: 14px; margin-top: 30px; }
.contact { display: grid; gap: 2px; padding: 18px 22px; border: 1px solid var(--ink-line); border-radius: 18px; background: rgba(255,255,255,.04); }
.contact-for { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.contact-name { font-size: 1.15rem; color: #fff; font-weight: 500; }
.contact a.mail { font-size: 1rem; overflow-wrap: anywhere; }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 10px 48px; padding: 28px 0; border-bottom: 1px solid var(--ink-line); }
.footer-contacts p { margin: 0; color: var(--on-ink); }
.footer-contacts span { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 4px; }
.footer-contacts a { color: var(--on-ink); text-underline-offset: 4px; }

/* Ringtonius: Tone designer grid */
.tonegrid { max-width: 380px; margin: 28px 0 8px; padding: 22px 24px; border-radius: 20px; background: #141416; border: 1px solid #2a2a2e; overflow: hidden; }
.tonegrid-cells { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin-bottom: 14px; }
.tonegrid-cells i { aspect-ratio: 1; border-radius: 7px; background: #1C1C1F; border: 1px solid #2a2a2e; transition: background .2s, transform .2s, box-shadow .2s; }
.tonegrid-cells i.on { background: #C8A15A; border-color: #C8A15A; }
.tonegrid-cells i.hit { transform: scale(1.12); box-shadow: 0 0 18px rgba(200,161,90,.7); background: #E3C27E; }
.tonegrid-cells i.col { background: #26262a; }
.tonegrid-text { margin: 0; color: #A39D92; font-size: .95rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tonegrid-text strong { color: #EDE8DF; }
