/* Creator Lane Studios. Tokens come from Cradle's design system
   (~/cradle-web/styles.css), so the studio and its apps share one sky. */
:root {
  --dusk-1: #A697D6; --dusk-2: #BFB6E6; --dusk-3: #F1D2DC;
  --plum: #3B3068; --plum-soft: #5E5389; --accent: #7563C2; --accent-ink: #43317A;
  --glass: rgba(255,255,255,.40); --glass-strong: rgba(255,255,255,.82); --rim: rgba(255,255,255,.65);
  --sleep-night: #5E4DA8; --sleep-nap: #B6A9E0; --feed: #8480C9;
  --green: #3E9C7A; --green-ink: #317C61; --mint: #7ED6B2;
  --orchid: #8E4BA8;
  --night-top: #06081A; --night-mid: #10193A; --night-inner: #1A2754; --night-bottom: #1E3A5C;
  --moon: #F6E3AE; --star: #FFFCEC;
  --on-night: rgba(255,255,255,.76);
  --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --shadow-card: 0 3px 12px rgba(59,48,104,.12);
  --shadow-lift: 0 12px 40px rgba(59,48,104,.18);
  --shadow-deep: 0 28px 70px rgba(59,48,104,.30);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); color: var(--plum); background: var(--dusk-2);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible { outline-color: var(--moon); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 99; background: #fff; padding: 12px 18px; border-radius: var(--r-md); font-weight: 600; }
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; }

.sky { position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(1200px 700px at 12% -8%, rgba(255,255,255,.55), transparent 62%),
    radial-gradient(900px 600px at 88% 6%, rgba(255,255,255,.30), transparent 60%),
    linear-gradient(168deg, var(--dusk-1) 0%, var(--dusk-2) 46%, var(--dusk-3) 100%); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(233,227,248,.80);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.45); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18.5px; letter-spacing: -.03em; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 500; padding: 11px 13px; border-radius: var(--r-pill); transition: background .18s; }
.nav-links a:hover, .nav-links a[aria-current] { background: rgba(255,255,255,.6); }
.burger { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: var(--r-pill);
  min-height: 46px; padding: 11px 22px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .16s, box-shadow .18s, background .18s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-plum { background: var(--plum); color: #fff; box-shadow: 0 6px 20px rgba(59,48,104,.28); }
.btn-plum:hover { background: #2E2553; }
.btn-glass { background: rgba(255,255,255,.6); border: 1px solid var(--rim); }
.btn-glass:hover { background: rgba(255,255,255,.85); }
.btn-moon { background: var(--moon); color: #221B3C; box-shadow: 0 8px 30px rgba(246,227,174,.20); }
.btn-moon:hover { background: #FFF0C4; }
.btn-line { color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.07); }
.btn-line:hover { background: rgba(255,255,255,.14); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 16.5px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; background: var(--plum); color: #fff; border-radius: 14px; padding: 9px 18px;
  box-shadow: 0 6px 20px rgba(59,48,104,.26); transition: transform .16s, background .18s; }
.store:hover { transform: translateY(-1px); background: #2E2553; }
.store svg { width: 22px; height: 22px; flex: none; }
.store span { font-size: 11px; line-height: 1.2; opacity: .84; }
.store strong { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; opacity: 1; }
.night .store { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); box-shadow: none; }
.night .store:hover { background: rgba(255,255,255,.17); }

/* --------------------------------------------------------------- type */
h1 { font-size: clamp(42px, 5.3vw, 70px); line-height: 1.02; letter-spacing: -.038em; }
h1 .soft { display: block; color: #544878; }
h2 { font-size: clamp(32px, 4.3vw, 54px); line-height: 1.05; letter-spacing: -.035em; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 34em; text-wrap: pretty; }
.sub { font-size: 17.5px; line-height: 1.58; max-width: 36em; margin-top: 18px; text-wrap: pretty; }
.head { max-width: 780px; margin-bottom: 52px; }
.note { font-size: 14.5px; line-height: 1.55; }
section { padding: 92px 0; }

/* --------------------------------------------------------------- hero */
.hero { padding: 64px 0 88px; }
.hero-in { display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; }
a.from:hover { background: rgba(255,255,255,.9); }
.from { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; margin-bottom: 24px; padding: 8px 17px 8px 12px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--accent-ink);
  background: rgba(255,255,255,.62); border: 1px solid var(--rim); border-radius: var(--r-pill); opacity: 0; transition: opacity .6s; }
.from.on { opacity: 1; }
.from svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.hero h1 { margin-bottom: 22px; }
.hero .row { margin-top: 32px; }

.trio { position: relative; height: 640px; }
.phone { border-radius: 38px; padding: 8px; background: linear-gradient(160deg, #4A3F7A, #241C46);
  box-shadow: var(--shadow-deep), inset 0 0 0 1px rgba(255,255,255,.16); }
.phone img { width: 100%; border-radius: 30px; }
.trio .phone { position: absolute; }
.trio .p1 { width: 232px; left: 0; top: 78px; rotate: -7deg; }
.trio .p3 { width: 232px; right: 0; top: 78px; rotate: 7deg; }
.trio .p2 { width: 282px; left: 50%; margin-left: -141px; top: 6px; z-index: 2; }
.float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 16px;
  background: rgba(255,255,255,.93); border: 1px solid #fff; box-shadow: var(--shadow-lift);
  font-size: 13.5px; font-weight: 650; line-height: 1.3; animation: bob 7s ease-in-out infinite; }
.float small { display: block; font-size: 12px; font-weight: 500; color: var(--plum-soft); }
.float i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.f1 { left: -18px; bottom: 74px; } .f2 { right: 18px; top: 34px; animation-delay: -2.4s; } .f3 { right: -14px; bottom: 34px; animation-delay: -4.6s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ------------------------------------------------ the lane (3 stations) */
.lane-sec { padding-top: 40px; }
.lane { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-top: 106px; }
.lane-path { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 106px; overflow: visible; }
.lane-path .ghost { stroke: rgba(255,255,255,.72); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; fill: none; }
.stop { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-xl);
  background: var(--glass-strong); border: 1px solid var(--rim); box-shadow: var(--shadow-card); transition: transform .25s, box-shadow .25s; }
.stop:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.stop .when { font-size: 15px; font-weight: 600; color: var(--plum-soft); margin-bottom: 20px; }
.stop .app { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.stop .app h3 { font-size: 23px; }
.ico { width: 50px; height: 50px; border-radius: 13px; flex: none; box-shadow: 0 4px 12px rgba(59,48,104,.18); }
.stop p { font-size: 15.8px; line-height: 1.58; color: var(--plum-soft); margin-bottom: 20px; }
.stop .state { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; font-weight: 600; }
.dot { display: inline-flex; align-items: center; gap: 8px; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orchid); }
.dot.live::before { background: var(--green); box-shadow: 0 0 0 4px rgba(62,156,122,.2); }

/* ------------------------------------------------------------- Cradle */
.apphead { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; margin-bottom: 46px; }
.tag { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.rating { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.rating b { font-size: 54px; letter-spacing: -.05em; line-height: 1; }
.rating .stars5 { display: block; width: 130px; height: 25px; color: var(--accent); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.shots figure:nth-child(even) { margin-top: 44px; }
.shots .phone, .duo .phone, .fb .phone { transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.shots .phone:hover { transform: translateY(-7px); }
figcaption { margin-top: 16px; font-size: 15px; line-height: 1.5; }
figcaption b { display: block; font-size: 17px; letter-spacing: -.02em; }
.trio3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 64px; }
.trio3 h3 { margin-bottom: 9px; }
.trio3 p { font-size: 16px; line-height: 1.6; }

.card { background: var(--glass-strong); border: 1px solid var(--rim); border-radius: var(--r-xl); padding: 30px; box-shadow: var(--shadow-card); }
.card h3 + p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--plum-soft); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 68px; }
.b7 { grid-column: span 7; } .b5 { grid-column: span 5; } .b12 { grid-column: span 12; }
.ladder { display: grid; gap: 15px; margin-top: 28px; }
.lad { display: grid; grid-template-columns: 104px 1fr 122px; align-items: center; gap: 12px; font-size: 14px; }
.lad b { font-weight: 650; }
.lad span { text-align: right; color: var(--plum-soft); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lad i { display: block; height: 33px; border-radius: 8px; background: rgba(59,48,104,.08); position: relative; overflow: hidden; }
.lad i::after { content: ""; position: absolute; inset: 0 auto 0 var(--l); width: var(--w); border-radius: 8px; background: linear-gradient(90deg, var(--sleep-nap), var(--sleep-night)); }
.js .lad i::after { transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.7,.3,1) var(--d); }
.js .in .lad i::after { transform: none; }
.nightcard { position: relative; overflow: hidden; color: #fff; border: 0; padding: 30px 30px 0; min-height: 440px;
  background: linear-gradient(155deg, var(--night-mid), var(--night-inner) 55%, #4B3E8E); box-shadow: var(--shadow-deep); }
.nightcard h3 + p { color: rgba(255,255,255,.80); }
.nightcard .phone { width: 250px; margin: 28px auto -190px; }
.week { display: grid; grid-template-columns: .82fr 1.18fr; gap: 44px; align-items: center; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 14px; color: var(--plum-soft); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; }
.quote { margin: 92px auto 0; max-width: 900px; text-align: center; }
.quote blockquote { margin: 0; font-size: clamp(23px, 2.8vw, 34px); line-height: 1.26; letter-spacing: -.03em; font-weight: 650; text-wrap: balance; }
.quote p { margin-top: 20px; font-size: 16px; }

/* --------------------------------------------------- pregnancy + Tally */
.panel { border-radius: 36px; padding: 64px; overflow: hidden; position: relative; display: grid; gap: 56px; align-items: center; border: 1px solid var(--rim); box-shadow: var(--shadow-lift); }
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: clamp(30px, 3.6vw, 46px); }
.bloom { grid-template-columns: 1fr 1.02fr; background: linear-gradient(165deg, #CDB9E8, #E3CDEB 50%, #FBE6EE); }
.tally { background: linear-gradient(165deg, #FFF8FB, #FBE0EA 60%, #F6C9DA); }
.ticks { margin-top: 26px; display: grid; gap: 13px; }
.ticks li { display: flex; gap: 12px; font-size: 16.2px; line-height: 1.5; }
.ticks svg { width: 21px; height: 21px; flex: none; margin-top: 2px; color: var(--green-ink); }
.pillnote { display: inline-flex; margin-top: 30px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-pill); background: rgba(255,255,255,.72); font-size: 15px; font-weight: 600; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: -150px; align-self: end; }
.duo .phone:last-child { margin-top: 62px; }
.tally { grid-template-columns: 1.16fr 1fr; }
.tally .duo { margin-bottom: -136px; }
.seg { margin-top: 30px; padding: 22px; border-radius: var(--r-lg); background: rgba(255,255,255,.82); box-shadow: var(--shadow-card); }
.seg-top, .seg-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.seg-top { font-weight: 650; font-size: 16px; }
.seg-top span { font-size: 14.5px; font-weight: 500; color: var(--plum-soft); }
.seg-bar { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 5px; margin: 16px 0 10px; }
.seg-bar div { height: 46px; border-radius: 10px; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15.5px; background: var(--sleep-night); }
.seg-bar div:nth-child(2) { background: #7B6BBB; }
.seg-lab { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 5px; font-size: 13.5px; line-height: 1.4; color: var(--plum-soft); }
.seg-sum { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(59,48,104,.13); font-size: 15px; }
.seg-sum b { font-size: 27px; letter-spacing: -.035em; }

/* ------------------------------------------------------------- horizon */
.horizon { position: relative; height: 560px; margin-top: 30px; padding: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(134,116,190,0) 0%, #8674BE 24%, #5A4B96 46%, #2C2A63 68%, var(--night-mid) 88%); }
.horizon canvas, .stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.horizon .moon { position: absolute; left: 50%; top: 46%; width: 132px; margin-left: -66px; filter: drop-shadow(0 0 46px rgba(246,227,174,.5)); translate: 0 var(--rise, 0); }
.night { position: relative; color: #fff; background: linear-gradient(180deg, var(--night-mid), #0B1029 34%, var(--night-top) 78%); }
.night .sub, .night .lede { color: var(--on-night); }

/* --------------------------------------------------------------- story */
#story { padding-top: 24px; padding-bottom: 110px; }
.story-top { max-width: 820px; margin-bottom: 48px; }
.story-in { display: grid; grid-template-columns: 1.42fr 1fr; gap: 60px; align-items: center; }
.book { padding: 18px; border-radius: var(--r-xl); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); }
.book canvas { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; border-radius: 14px; background: #FFFDF6; }
.book.drawing canvas { touch-action: none; cursor: crosshair; box-shadow: 0 0 0 3px var(--moon); }
.frames { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin: 14px 0; }
.frames button { padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #FFFDF6; opacity: .62; transition: opacity .12s; }
.frames button:hover { opacity: .85; }
.frames button[aria-current] { opacity: 1; box-shadow: 0 0 0 3px var(--moon); }
.frames canvas { width: 100%; aspect-ratio: 1; border-radius: 0; box-shadow: none !important; pointer-events: none; }
.tools2 { display: flex; flex-wrap: wrap; gap: 10px; }
.book .note { margin-top: 14px; color: var(--on-night); }
.feats { display: grid; }
.feats div { padding: 26px 0; border-top: 1px solid rgba(255,255,255,.15); }
.feats div:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
.feats dt { font-size: clamp(27px, 2.9vw, 38px); font-weight: 700; line-height: 1.08; letter-spacing: -.038em; text-wrap: balance; }
.feats div:first-child dt { font-size: clamp(44px, 5vw, 66px); color: var(--moon); }
.feats dd { margin-top: 8px; font-size: 16.5px; line-height: 1.5; color: var(--on-night); }
.story-end { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; margin-top: 52px; }
.story-end p { max-width: 33em; font-size: 20px; line-height: 1.5; letter-spacing: -.015em; }
.fineprint { margin-top: 26px; font-size: 14px; color: rgba(255,255,255,.66); }
@media (max-width: 1000px) { .story-in { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 600px) { #story { padding-bottom: 72px; } .book { padding: 12px; } .frames { grid-template-columns: repeat(6, 1fr); } .story-end p { font-size: 18px; } }

/* -------------------------------------------------------------- custom */
.work { border-radius: 36px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.work + .work { margin-top: 24px; }
.work h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.08; }
.work .kind { font-size: 15.5px; color: rgba(255,255,255,.80); margin: 0 0 12px; }
.fb { display: grid; grid-template-columns: .84fr 1.16fr; gap: 40px; padding: 60px 48px 0 60px; background: linear-gradient(150deg, #1B3FA6, #2459DB 60%, #3D77F2); }
.fb .copy { padding-bottom: 60px; }
.fb .copy > p:not(.kind) { margin-top: 16px; font-size: 16.8px; line-height: 1.6; color: rgba(255,255,255,.92); }
.built { margin-top: 26px; border-top: 1px solid rgba(255,255,255,.24); }
.built div { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.24); font-size: 15.3px; line-height: 1.45; }
.built dt { color: rgba(255,255,255,.80); }
.work .row { margin-top: 28px; }
.fb-ph { position: relative; min-height: 620px; }
.fb-ph .phone { position: absolute; width: 226px; background: linear-gradient(160deg, #33415C, #0D1526); border-radius: 32px; padding: 7px; }
.fb-ph .phone img { border-radius: 25px; }
.fb-ph .phone:nth-child(1) { left: 0; top: 150px; rotate: -5deg; } .fb-ph .phone:nth-child(3) { right: 0; top: 112px; rotate: 5deg; }
.fb-ph .phone:nth-child(2) { width: 282px; left: 50%; margin-left: -141px; top: 22px; z-index: 2; }
.hgl { display: grid; grid-template-columns: 1.22fr 1fr; align-items: center; background: linear-gradient(160deg, #2A5552, #12302F 52%, #061110); }
.tvset { padding: 60px 0 78px 52px; }
.tv { position: relative; padding: 9px; border-radius: 14px; background: #05080A; box-shadow: 0 34px 70px rgba(0,0,0,.55), 0 0 90px rgba(31,232,132,.12), inset 0 0 0 1px rgba(255,255,255,.16); }
.tv img { width: 100%; border-radius: 6px; }
.tv::before, .tv::after { content: ""; position: absolute; bottom: -20px; width: 46px; height: 20px; border-bottom: 5px solid #05080A; }
.tv::before { left: 15%; border-left: 5px solid #05080A; transform: skewX(24deg); } .tv::after { right: 15%; border-right: 5px solid #05080A; transform: skewX(-24deg); }
.hgl .copy { padding: 56px 52px; }
.hgl-logo { width: 104px; height: 104px; border-radius: 24px; margin-bottom: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.14); }
.hgl .copy > p:not(.kind) { margin-top: 16px; font-size: 16.8px; line-height: 1.6; color: rgba(255,255,255,.88); }
.plats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; }
.plats li { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; min-height: 92px; padding: 18px 8px 12px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.plats svg { width: 46px; height: 30px; }
.plats span { font-size: 12.8px; font-weight: 550; line-height: 1.25; text-align: center; color: rgba(255,255,255,.86); }
.make { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; margin-top: 68px; }
.make svg { width: 30px; height: 30px; color: var(--moon); margin-bottom: 16px; }
.make p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--on-night); }

/* ---------------------------------------------------------- consulting */
.consult { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: start; }
.svc { margin-top: 34px; border-top: 1px solid rgba(255,255,255,.15); }
.svc li { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 17.5px; font-weight: 600; letter-spacing: -.02em; }
.svc span { display: block; margin-top: 3px; font-size: 15px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--on-night); }
.consult .row { margin-top: 32px; }
.sim { border-radius: var(--r-xl); padding: 30px; background: linear-gradient(160deg, rgba(117,99,194,.34), rgba(30,58,92,.42)); border: 1px solid rgba(255,255,255,.16); }
.sim > p { margin-top: 8px; font-size: 15.3px; line-height: 1.55; color: var(--on-night); }
.sim-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 14px; }
.sim-out dt { font-size: 13.8px; color: var(--on-night); }
.sim-out dd { font-size: clamp(22px, 2.5vw, 32px); font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin-top: 3px; white-space: nowrap; }
.sim-out .good { color: var(--mint); } .sim-out .bad { color: #F5A3B3; }
.sim svg { width: 100%; height: auto; overflow: visible; }
.sim svg text { font: 500 12.5px var(--font); fill: rgba(255,255,255,.78); }
.knobs { display: grid; gap: 6px; margin-top: 18px; }
.knobs label { display: grid; grid-template-columns: 128px 1fr 62px; gap: 14px; align-items: center; min-height: 36px; font-size: 14.8px; }
.knobs output { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 9px; background: linear-gradient(90deg, var(--moon) var(--p,50%), rgba(255,255,255,.2) var(--p,50%)); }
input[type=range]::-moz-range-track { height: 5px; border-radius: 9px; background: rgba(255,255,255,.2); }
input[type=range]::-moz-range-progress { height: 5px; border-radius: 9px; background: var(--moon); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8.5px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; }

/* ------------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.mail { display: inline-block; margin-top: 26px; padding: 8px 0; font-size: 18px; font-weight: 600; border-bottom: 2px solid var(--moon); }
.terms { margin-top: 34px; display: grid; gap: 12px; font-size: 16px; }
.terms div { display: flex; gap: 12px; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 12px; }
.terms dt { color: var(--on-night); } .terms dd { font-weight: 600; text-align: right; }
form { display: grid; gap: 20px; padding: 34px; border-radius: var(--r-xl); background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.15); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .f > label { display: block; padding: 0; margin-bottom: 9px; font-size: 15px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span { display: flex; align-items: center; min-height: 44px; padding: 9px 18px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.28); font-size: 15px; font-weight: 550; transition: background .15s; }
.chips label:hover span { background: rgba(255,255,255,.1); }
.chips input:checked + span { background: var(--moon); border-color: var(--moon); color: #221B3C; }
.chips input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f input, .f textarea { width: 100%; min-height: 50px; padding: 13px 15px; font-size: 16px; color: #fff; background: rgba(6,8,26,.5); border: 1px solid rgba(255,255,255,.28); border-radius: var(--r-md); }
.f textarea { min-height: 136px; resize: vertical; line-height: 1.5; }
.f :user-invalid { border-color: #F5A3B3; }
.hp { position: absolute; left: -9999px; }
.said { font-size: 15.5px; line-height: 1.5; min-height: 1.5em; }
.said a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.said.ok { color: var(--mint); } .said.no { color: #F9BCC8; }

/* -------------------------------------------------------------- footer */
footer { padding: 64px 0 44px; color: #fff; background: var(--night-top); border-top: 1px solid rgba(255,255,255,.1); position: relative; }
.foot { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 36px; }
.foot p { margin-top: 16px; max-width: 24em; font-size: 15.3px; line-height: 1.6; color: var(--on-night); }
.foot h2 { font-size: 15px; letter-spacing: -.01em; margin-bottom: 8px; line-height: 1.3; }
.foot li a { display: inline-block; padding: 7px 0; font-size: 15px; color: var(--on-night); }
.foot li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 14px; color: var(--on-night); }

/* ----------------------------------------------------------- sub-pages */
.night .nav, .nav.dark { background: rgba(16,25,58,.82); border-color: rgba(255,255,255,.1); color: #fff; }
.nav.dark .nav-links a:hover, .nav.dark .nav-links a[aria-current] { background: rgba(255,255,255,.12); }
.chero { position: relative; overflow: hidden; padding: 92px 0 100px; }
.chero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.chero h1 { font-size: clamp(40px, 4.7vw, 62px); }
.chero .sub { margin-top: 22px; } .chero .row { margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.15); }
.facts b { display: block; font-size: 25px; letter-spacing: -.035em; margin-bottom: 6px; }
.facts span { font-size: 15.3px; line-height: 1.55; color: var(--on-night); }
.six { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 60px; }
.six article { padding: 30px 0; border-top: 1px solid rgba(255,255,255,.15); }
.six p { margin-top: 10px; font-size: 16.4px; line-height: 1.62; color: var(--on-night); }
.tools { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 30px; font-size: clamp(19px, 2.1vw, 27px); font-weight: 650; letter-spacing: -.03em; color: rgba(255,255,255,.80); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.lines li { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 17px; }
.prose { max-width: 720px; padding: 72px 24px 110px; margin: 0 auto; }
.prose h1 { font-size: 46px; margin-bottom: 12px; } .prose h2 { font-size: 24px; margin: 38px 0 10px; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; } .prose a { text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------------- motion */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .lane-mask { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s ease .2s; }
.js .in .lane-mask { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1120px) {
  .hero-in { grid-template-columns: 1fr; gap: 56px; }
  .trio { max-width: 600px; width: 100%; margin: 0 auto; }
  .consult, .contact, .chero-in, .split { grid-template-columns: 1fr; gap: 52px; }
  .fb { grid-template-columns: 1fr; padding: 48px 40px 0; } .fb-ph { width: 100%; max-width: 560px; margin: 0 auto; } .fb .copy { padding-bottom: 8px; }
  .panel { padding: 48px 40px; gap: 36px; }
}
@media (max-width: 900px) {
  section { padding: 68px 0; }
  .burger { display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rim); background: rgba(255,255,255,.55); color: inherit; }
  .dark .burger { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
  .burger svg { width: 21px; height: 21px; }
  .nav-in > .btn { display: none; }
  .nav-links { display: none; position: absolute; right: 24px; top: 76px; min-width: 230px; padding: 9px; flex-direction: column; border-radius: var(--r-lg); background: #fff; color: var(--plum); box-shadow: var(--shadow-deep); }
  .nav-links.open { display: flex; } .nav-links a { padding: 13px 15px; font-size: 16.5px; border-radius: var(--r-md); }
  .nav-links a:hover, .nav.dark .nav-links a:hover, .nav-links a[aria-current], .nav.dark .nav-links a[aria-current] { background: #EEE9F8; }
  .lane { grid-template-columns: 1fr; padding-top: 0; } .lane-path { display: none; }
  .apphead, .bloom, .tally, .hgl, .week { grid-template-columns: 1fr; }
  .tvset { padding: 40px 32px 34px; }
  .apphead { gap: 30px; } .week { gap: 26px; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; margin: 0 -24px; padding: 6px 24px 22px; scrollbar-width: none; }
  .shots figure { flex: 0 0 min(250px, 70vw); scroll-snap-align: center; } .shots figure:nth-child(even) { margin-top: 0; }
  .trio3 { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
  .b7, .b5 { grid-column: span 12; } .bento { margin-top: 48px; }
  .tally .duo { order: 2; margin-bottom: -150px; }
  .hgl .copy { padding: 24px 32px 44px; }
  .make, .facts { grid-template-columns: 1fr 1fr; } .six { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; }
  .horizon { height: 400px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 38px 0 56px; }
  .trio { height: 460px; }
  .trio .p1, .trio .p3 { width: 158px; top: 70px; } .trio .p1 { left: -10px; } .trio .p3 { right: -10px; }
  .trio .p2 { width: 206px; margin-left: -103px; }
  .trio .phone { border-radius: 28px; padding: 6px; } .trio .phone img { border-radius: 22px; }
  .f1, .f2 { display: none; } .f3 { right: 0; bottom: -4px; }
  .panel, .fb { padding: 36px 22px; border-radius: 28px; } .fb { padding-bottom: 0; } .work { border-radius: 28px; }
  .duo, .tally .duo { gap: 12px; margin-bottom: -90px; } .duo .phone, .fb-ph .phone { border-radius: 24px; padding: 5px; } .duo .phone img, .fb-ph .phone img { border-radius: 19px; }
  .fb-ph { min-height: 400px; } .fb-ph .phone:nth-child(2) { width: 196px; margin-left: -98px; } .fb-ph .phone:nth-child(1), .fb-ph .phone:nth-child(3) { width: 148px; }
  .fb-ph .phone:nth-child(1) { left: -12px; } .fb-ph .phone:nth-child(3) { right: -12px; }
  .card, .sim, form { padding: 22px; } .nightcard { padding-bottom: 0; }
  .lad { grid-template-columns: 82px 1fr 108px; gap: 9px; font-size: 13px; }
  .knobs label { grid-template-columns: 1fr auto; gap: 0 12px; padding: 4px 0; } .knobs input { grid-column: 1 / -1; grid-row: 2; }
  .sim svg text { font-size: 19px; }
  .seg-bar, .seg-lab { grid-template-columns: 2fr 2fr minmax(64px, 1fr); }
  .sim-out dd { font-size: 21px; } .sim-out dt { font-size: 12.8px; }
  .make, .two, .facts { grid-template-columns: 1fr; }
  .tvset { padding: 26px 18px 30px; } .hgl .copy { padding: 20px 22px 34px; } .plats { grid-template-columns: 1fr 1fr; }
  .hero .row .btn { width: 100%; }
}
