/* Sunrise Shore design tokens and components, shared by every page. */
:root {
  --page:#F7EFDF; --card:#FFFFFF; --band:#EADBBF; --ink:#12313F; --muted:#4B6068; --line:#E2D6BC;
  --blue:#0E5F7C; --blue-dark:#0A4D66; --blue-light:#0C6283; --mark:rgba(14,95,124,.16); --sun:#F0A030;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--page); color:var(--ink); font:17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3 { font-family:"Roboto Slab", Georgia, serif; font-weight:700; line-height:1.12; margin:0; letter-spacing:-.01em; }
h1 { font-size:clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size:clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size:1.2rem; line-height:1.25; }
p { margin:0 0 1em; }
a { color:var(--blue); }
.eyebrow { font:500 .8rem/1 "JetBrains Mono", ui-monospace, Menlo, monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--blue); margin:0 0 18px; }
.mark { background:linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 92%, transparent 92%); padding:0 .12em; }
section { padding:clamp(48px, 8vw, 96px) clamp(20px, 6vw, 80px); }
.band { background:var(--band); }
.grid3 { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:20px; margin-top:32px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:24px; }
.card p { color:var(--muted); margin:10px 0 0; }
.btn { display:inline-block; background:linear-gradient(90deg, var(--blue-dark), var(--blue-light)); color:#fff; text-decoration:none; font-weight:600; padding:14px 24px; border-radius:10px; }
.btn:hover { filter:brightness(1.08); }
.link { font-weight:600; text-decoration:none; }
.link:hover { text-decoration:underline; }
.nw { white-space:nowrap; }

nav { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px clamp(20px, 6vw, 80px); background:var(--page); }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); font:700 1.45rem/1 "Roboto Slab", Georgia, serif; letter-spacing:-.02em; }
nav .links { display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
nav .links a:not(.btn) { color:var(--muted); text-decoration:none; font-size:.95rem; }
nav .links a:not(.btn):hover { color:var(--ink); }
nav .btn { padding:10px 18px; }
.rule { height:4px; background:linear-gradient(90deg, var(--blue-dark), var(--sun), var(--blue)); }

.hero { overflow-x:clip; display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:clamp(28px, 5vw, 64px); align-items:center; padding-top:clamp(40px, 7vw, 80px); background:radial-gradient(60% 70% at 85% 10%, rgba(240,160,48,.16), transparent 70%); }
.hero .sub { font-size:1.15rem; color:var(--muted); margin:22px 0 28px; }
.hero .cta { display:flex; align-items:center; gap:22px; flex-wrap:wrap; }

.sunwrap { position:relative; }
.sunwrap::before { content:""; position:absolute; width:min(240px, 62%); aspect-ratio:1; border-radius:50%; background:var(--sun); opacity:.9; right:-36px; top:-36px; }
.brain { position:relative; background:var(--card); border:1px solid var(--line); border-radius:18px; padding:22px; box-shadow:0 18px 50px rgba(14,95,124,.16); }
.brain .head { display:flex; justify-content:space-between; align-items:center; font:500 .75rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); padding-bottom:14px; border-bottom:1px solid var(--line); }
.brain .head b { color:var(--ink); }
.layer { display:grid; grid-template-columns:34px 1fr auto; gap:12px; align-items:start; padding:14px 0; border-bottom:1px solid var(--line); }
.layer:last-of-type { border-bottom:0; }
.layer .n { width:30px; height:30px; border-radius:50%; background:var(--mark); color:var(--blue-dark); font:600 .85rem/30px Inter, sans-serif; text-align:center; }
.layer .t { font-weight:600; }
.layer .d { color:var(--muted); font-size:.92rem; }
.layer .s { font:500 .7rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.1em; text-transform:uppercase; color:var(--blue); padding-top:6px; }
.lesson { background:var(--band); border-radius:10px; padding:12px 14px; margin-top:6px; font-size:.9rem; }
.lesson .k { font:500 .7rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--blue); display:block; margin-bottom:6px; }
.lesson em { color:var(--muted); font-style:normal; }

.facts { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:16px; }
.fact .k { font:500 .72rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
.fact .v { font:700 1.15rem/1.3 "Roboto Slab", Georgia, serif; }

.steps { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:20px; margin-top:32px; }
.step .no { font:500 .8rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.14em; color:var(--blue); text-transform:uppercase; margin-bottom:12px; }

.split { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:clamp(28px, 5vw, 64px); align-items:start; }
.agenda { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:8px 22px; }
.agenda .row { display:grid; grid-template-columns:70px 1fr; gap:14px; padding:12px 0; border-bottom:1px solid var(--line); }
.agenda .row:last-child { border-bottom:0; }
.agenda .time { font:500 .85rem/1.6 "JetBrains Mono", ui-monospace, monospace; color:var(--blue); white-space:nowrap; }
.agenda .what b { display:block; }
.agenda .what span { color:var(--muted); font-size:.92rem; }
.agenda .brk .what { color:var(--muted); }

ul.tick { list-style:none; padding:0; margin:18px 0 0; }
ul.tick li { padding:10px 0 10px 32px; position:relative; border-bottom:1px solid var(--line); }
ul.tick li:last-child { border-bottom:0; }
ul.tick li::before { content:""; position:absolute; left:2px; top:17px; width:14px; height:8px; border-left:3px solid var(--blue); border-bottom:3px solid var(--blue); transform:rotate(-45deg); }

.two { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:20px; margin-top:28px; }
.two h3 { margin-bottom:12px; }
.two ul { margin:0; padding-left:20px; color:var(--muted); }
.two li { margin-bottom:8px; }

.book { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:20px; margin-top:32px; }
.next { background:var(--card); border:2px solid var(--blue); border-radius:16px; padding:26px; }
.next .price { font:700 2.2rem/1 "Roboto Slab", Georgia, serif; margin:14px 0; }
.next dl { margin:0 0 20px; }
.next dt { font:500 .72rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-top:12px; }
.next dd { margin:4px 0 0; }
.after { padding:26px; }

details { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px 20px; margin-bottom:12px; }
summary { cursor:pointer; font-weight:600; }
details p { margin:12px 0 0; color:var(--muted); }

.final { text-align:center; background:linear-gradient(180deg, var(--band), var(--page)); }
.final p { color:var(--muted); font-size:1.1rem; margin:16px 0 28px; }
footer { padding:28px clamp(20px, 6vw, 80px); border-top:1px solid var(--line); color:var(--muted); font-size:.9rem; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.wave { display:block; width:100%; height:42px; }
.ph { background:#FFF3C4; padding:0 .2em; border-radius:3px; color:#5b4600; }
:focus-visible { outline:3px solid var(--blue-light); outline-offset:3px; border-radius:4px; }

/* Services and software cards (Forebrite home) */
.svc { display:flex; flex-direction:column; }
.svc .k { font:500 .72rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--blue); margin-bottom:12px; }
.svc .good { font-size:.92rem; margin-top:14px; }
.svc .good b { font-weight:600; }
.svc .more { margin-top:auto; padding-top:18px; }
.sw { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:20px; margin-top:32px; }
.sw .card { border-top:4px solid var(--sun); }
.proof { margin-top:28px; border:2px dashed var(--line); border-radius:14px; padding:26px; background:var(--card); }
.proof p:last-child { margin:0; }
.ask { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:20px; margin-top:32px; text-align:left; }
.ask .card p { margin-bottom:18px; }

/* Five service cards: three across, then two wider, collapsing to two and one */
.svc-grid { display:grid; grid-template-columns:repeat(6, 1fr); gap:20px; margin-top:32px; }
.svc-grid .card { grid-column:span 2; }
.svc-grid .card:nth-child(n+4) { grid-column:span 3; }
@media (max-width:960px) { .svc-grid { grid-template-columns:repeat(2, 1fr); } .svc-grid .card, .svc-grid .card:nth-child(n+4) { grid-column:span 1; } .svc-grid .card:last-child { grid-column:span 2; } }
@media (max-width:620px) { .svc-grid { grid-template-columns:1fr; } .svc-grid .card:last-child { grid-column:span 1; } }

/* Phone: brand and the call to action only, the page is one scroll */


.svc .ico{margin-bottom:10px;line-height:0}
.svc .more{display:inline-block;margin-top:auto;padding-top:6px;font-weight:600}

.card.tile { padding:0; overflow:hidden; }
.card.tile .pic { line-height:0; }
.card.tile .pic svg { width:100%; height:auto; display:block; }
.card.tile h3 { padding:18px 22px 0; }
.card.tile p { padding:0 22px 22px; }
.reg { display:grid; gap:14px; align-content:start; }
.reg label { display:grid; gap:6px; font-weight:600; font-size:.92rem; }
.reg input { font:inherit; border:1px solid #cdbf9f; border-radius:8px; padding:11px 12px; background:#fff; }
.reg .note { margin:0; font-size:.85rem; }

/* Scene hero, tiles, maturity model (homepage rollout) */
.scenehero { position:relative; padding:0; overflow:hidden; background:linear-gradient(#FBE6B9 0%, #F7EFDF 55%, #BFE0E6 55%, #7FBFCB 100%); min-height:420px; }
.scenehero .bg { position:absolute; inset:0; width:100%; height:100%; }
.scenehero .over { position:relative; padding:clamp(40px,7vw,88px) clamp(20px,6vw,80px) clamp(150px,22vw,220px); max-width:760px; }
.scenehero .sub { font-size:1.15rem; color:var(--ink); margin:22px 0 28px; max-width:34em; }
.scenehero .cta { display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.scenehero .btn { border:2px solid var(--ink); box-shadow:0 4px 0 var(--ink); }
.scenehero .link { background:rgba(247,239,223,.85); padding:6px 10px; border-radius:8px; }
.scenehero .st { transform-box:fill-box; transform-origin:center; fill:#12313F; animation:tw 3.4s ease-in-out infinite; }
.scenehero .s2{animation-delay:.7s} .scenehero .s3{animation-delay:1.4s} .scenehero .s4{animation-delay:2.1s} .scenehero .s5{animation-delay:2.7s}
@keyframes tw { 0%,100%{opacity:.25; transform:scale(.7)} 50%{opacity:1; transform:scale(1.1)} }
.scenehero .sun { transform-box:fill-box; transform-origin:center; animation:sunb 7s ease-in-out infinite; }
@keyframes sunb { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.scenehero .w { animation:drift 9s ease-in-out infinite alternate; }
.scenehero .w2 { animation-duration:12s; animation-direction:alternate-reverse; }
.scenehero .w3 { animation-duration:15s; }
@keyframes drift { from{transform:translateX(0)} to{transform:translateX(-80px)} }
@media (prefers-reduced-motion:reduce){ .scenehero .st,.scenehero .sun,.scenehero .w{animation:none} }
@media (max-width:620px){ .scenehero .over{padding-bottom:190px} }

.mgrid { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-top:28px; }
.st5 { border:1px solid var(--line); border-radius:14px; padding:16px; background:var(--card); display:flex; flex-direction:column; gap:6px; text-decoration:none; color:var(--ink); }
.st5:hover { border-color:var(--blue); }
.st5 .n { font:700 1.5rem/1 "Roboto Slab",serif; color:var(--blue); }
.st5 p { margin:0; font-size:.9rem; color:var(--muted); }
.st5 .go { margin-top:auto; padding-top:6px; font-weight:600; font-size:.9rem; color:var(--blue-dark); }
@media (max-width:960px){ .mgrid{grid-template-columns:1fr 1fr} }
@media (max-width:620px){ .mgrid{grid-template-columns:1fr} }

/* Tiles: centred rows, so a short last row sits in the middle */
.tiles { display:flex; flex-wrap:wrap; justify-content:center; gap:20px; margin-top:32px; }
.tile { flex:0 1 calc((100% - 40px) / 3); min-width:260px; background:var(--card); border:1px solid var(--line); border-radius:20px; overflow:hidden; display:flex; flex-direction:column; text-decoration:none; color:var(--ink); transition:transform .15s, box-shadow .15s; }
a.tile:hover { transform:translateY(-4px); box-shadow:0 16px 36px rgba(14,95,124,.16); }
.tile .pic { line-height:0; }
.tile .pic svg { width:100%; height:auto; display:block; }
.tile .tx { padding:18px 22px 22px; display:flex; flex-direction:column; gap:8px; flex:1; }
.tile .tx .k { font:500 .72rem/1.4 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--blue); }
.tile .tx p { margin:0; color:var(--muted); font-size:.95rem; }
.tile .tx .arrow { margin-top:auto; padding-top:10px; font-weight:600; color:var(--blue); }
.tile .tx .acts { margin-top:auto; padding-top:12px; }
.tiles.two .tile { flex-basis:calc((100% - 20px) / 2); }
@media (max-width:620px){ .tile, .tiles.two .tile { flex-basis:100%; min-width:0; } }
.card.tile { padding:0; overflow:hidden; }
.card.step.tile .no { padding:18px 22px 0; margin-bottom:0; }

/* ---- Round 3: sticky nav, hover zoom, waves, stairs, proof, service pages ---- */
nav { position:sticky; top:0; z-index:40; box-shadow:0 1px 0 var(--line); }
section[id] { scroll-margin-top:84px; }
.lede { color:var(--muted); margin:14px 0 0; }
.btn, .link, nav .links a, .tile, .stage, .go { transition:transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.btn:hover, .link:hover { transform:scale(1.06); }
.link, nav .links a:not(.btn) { display:inline-block; }
nav .links a:not(.btn):hover { transform:scale(1.08); }
a.tile:hover, .tile:hover, .stage:hover { transform:translateY(-4px) scale(1.02); }
.tile:hover { box-shadow:0 16px 36px rgba(14,95,124,.16); }
.tile .pic svg { transition:transform .35s ease; }
.tile:hover .pic svg { transform:scale(1.06); }
.tile .pic, .stage .pic { overflow:hidden; }
@media (prefers-reduced-motion:reduce){ .btn:hover,.link:hover,.tile:hover,.stage:hover,nav .links a:hover,.tile:hover .pic svg{ transform:none } }

/* Whole tile goes to the service page, the button inside goes to the enquiry */
.tile { position:relative; }
.stretch { color:inherit; text-decoration:none; }
.stretch::after { content:""; position:absolute; inset:0; z-index:1; }
.tile .acts .btn, .tile .acts a { position:relative; z-index:2; }
.tile.static { cursor:default; }
.tile .tx h3 { padding:0; }
.tiles.small .tile { flex-basis:calc((100% - 40px) / 3); }

/* Hero waves: seamless loops, each layer a different speed, opposite directions */
.scenehero .w { animation:none; }
.scenehero .w3 { animation:wv720 26s linear infinite; }
.scenehero .w2 { animation:wv800r 20s linear infinite; }
.scenehero .w1 { animation:wv920 15s linear infinite; }
@keyframes wv720 { to { transform:translateX(-720px); } }
@keyframes wv800r { from { transform:translateX(-800px); } to { transform:translateX(0); } }
@keyframes wv920 { to { transform:translateX(-920px); } }
@media (prefers-reduced-motion:reduce){ .scenehero .w{animation:none} }
/* Southern Cross sits top right and stays faint behind the text on a phone */
.scenehero .stars { fill:#12313F; }
@media (max-width:620px){ .scenehero .stars { opacity:.55; } }

/* Maturity model: a staircase of five stages */
.stairs5 { display:grid; grid-template-columns:repeat(5, 1fr); gap:16px; align-items:end; margin-top:36px; padding-top:92px; }
.stage { transform:translateY(calc(var(--i) * -22px)); position:relative; }
.stage:hover { transform:translateY(calc(var(--i) * -22px - 4px)) scale(1.02); }
.stagebox { background:var(--card); border:1px solid var(--line); border-radius:18px; overflow:hidden; display:flex; flex-direction:column; height:100%; }
.stage .pic { line-height:0; }
.stage .pic svg { width:100%; height:auto; display:block; }
.stage .tx { padding:14px 16px 18px; display:flex; flex-direction:column; gap:6px; flex:1; }
.stage .n { font:500 .7rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--blue); }
.stage h3 { font-size:1.15rem; padding:0; }
.stage p { margin:0; font-size:.88rem; color:var(--muted); }
.stage .go { margin-top:auto; padding-top:8px; font-weight:600; font-size:.9rem; color:var(--blue-dark); white-space:nowrap; }
@media (max-width:1100px){ .stairs5{grid-template-columns:repeat(2,1fr); padding-top:0; align-items:stretch} .stage, .stage:hover{transform:none} .stage:hover{transform:translateY(-4px)} .stage:last-child{grid-column:1 / -1; max-width:calc(50% - 8px); justify-self:center} }
@media (max-width:620px){ .stairs5{grid-template-columns:1fr} .stage:last-child{max-width:none} }

/* Past work: logo band and quotes, as on forebrite.com */
#proof .prooflabel { font:500 .72rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin:0 0 18px; }
.logoband { position:relative; margin:0 calc(-1 * clamp(20px,6vw,80px)); overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.logotrack { display:flex; gap:12px; width:max-content; align-items:center; animation:logoroll 40s linear infinite; }
.logoband:hover .logotrack { animation-play-state:paused; }
@keyframes logoroll { to { transform:translateX(-50%); } }
.lslot { flex:0 0 auto; width:190px; height:52px; display:flex; align-items:center; justify-content:center; }
.lslot img { max-width:150px; max-height:34px; width:auto; height:auto; object-fit:contain; opacity:.82; }
@media (prefers-reduced-motion:reduce){ .logotrack{animation:none} }
.slides { display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory; padding:28px 2px 18px; }
.slide { scroll-snap-align:center; flex:0 0 min(520px, 86%); display:flex; flex-direction:column; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:26px 28px; }
.slide .qmark { font:700 3rem/.6 "Roboto Slab", serif; color:var(--sun); }
.slide blockquote { margin:6px 0 0; font:600 1.15rem/1.45 "Roboto Slab", serif; }
.slide blockquote em { font-style:normal; background:linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 92%, transparent 92%); padding:0 3px; }
.slide footer { margin-top:auto; padding:20px 0 0; border:0; display:flex; align-items:center; gap:12px; justify-content:flex-start; flex-wrap:nowrap; min-height:88px; }
.avatar { width:46px; height:46px; border-radius:50%; overflow:hidden; background:var(--band); flex:0 0 auto; }
.avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.who { font-size:.88rem; color:var(--muted); line-height:1.35; }
.who b { display:block; color:var(--ink); font-size:.95rem; }

/* Service and software pages */
.pagehero { overflow-x:clip; display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:clamp(24px,5vw,64px); align-items:center; padding-top:clamp(40px,7vw,80px); }
.pagehero .sub { font-size:1.15rem; color:var(--muted); margin:20px 0 26px; }
.pagehero .cta { display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.heroimg { flex:none; box-shadow:0 18px 50px rgba(14,95,124,.16); }
.heroimg:hover { transform:none; }
.card .k { font:500 .72rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--blue); display:block; margin-bottom:10px; }
.enq { max-width:560px; margin:28px auto 0; text-align:left; }
.enq select, .enq textarea { font:inherit; border:1px solid #cdbf9f; border-radius:8px; padding:11px 12px; background:#fff; }
.final .reg label { font-weight:600; }

/* Banner to /contact, and parallax on illustrations */
.bannersec { padding-top:clamp(40px,6vw,72px); }
.ctab { background:linear-gradient(90deg, var(--blue-dark), var(--blue)); color:#fff; border-radius:22px; padding:clamp(26px,5vw,52px); display:flex; justify-content:space-between; gap:24px; align-items:center; flex-wrap:wrap; border:2px solid var(--ink); }
.ctab h2 { color:#fff; font-size:clamp(1.5rem,3vw,2.2rem); }
.ctab p { color:#d6ecf2; margin:10px 0 0; max-width:36em; }
.ctab .btn { background:#fff; color:var(--blue-dark); background-image:none; border:2px solid var(--ink); box-shadow:0 4px 0 var(--ink); }
.pic svg, .stage .pic svg { transform:translateY(var(--py,0px)) scale(1.14); transition:transform .12s linear; }
.tile:hover .pic svg { transform:translateY(var(--py,0px)) scale(1.2); }
@media (prefers-reduced-motion:reduce){ .pic svg, .tile:hover .pic svg { transform:none; } }

/* Hamburger nav and mobile card tuning */
.menu { display:none; width:46px; height:46px; border:1px solid var(--line); border-radius:12px; background:var(--card); cursor:pointer; padding:0; position:relative; }
.menu span, .menu span::before, .menu span::after { position:absolute; left:12px; width:20px; height:2px; background:var(--ink); border-radius:2px; content:""; transition:transform .2s ease, opacity .2s ease; }
.menu span { top:22px; } .menu span::before { left:0; top:-7px; } .menu span::after { left:0; top:7px; }
.menu[aria-expanded="true"] span { background:transparent; }
.menu[aria-expanded="true"] span::before { transform:translateY(7px) rotate(45deg); }
.menu[aria-expanded="true"] span::after { transform:translateY(-7px) rotate(-45deg); }
@media (max-width:760px) {
  nav { flex-wrap:nowrap; }
  .menu { display:block; }
  nav .links { display:none; position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:stretch; gap:4px; background:var(--page); padding:10px clamp(20px,6vw,80px) 20px; border-bottom:2px solid var(--ink); box-shadow:0 18px 30px rgba(18,49,63,.14); }
  nav .links.open { display:flex; }
  nav .links a:not(.btn) { display:block; padding:14px 4px; font-size:1.05rem; border-bottom:1px solid var(--line); }
  nav .links .btn { text-align:center; padding:14px 18px; margin-top:8px; }
}
@media (max-width:620px) {
  section { padding-left:20px; padding-right:20px; }
  .logoband { margin-left:-20px; margin-right:-20px; }
  .tiles { gap:16px; margin-top:24px; }
  .tile { border-radius:16px; }
  .pic { height:118px; }
  .pic svg, .tile .pic svg, .stage .pic svg { width:100%; height:100%; }
  .tile .tx { padding:16px 18px 18px; gap:6px; }
  .tile .tx h3 { font-size:1.1rem; }
  .tile .tx p { font-size:.92rem; }
  .tile .tx .k { font-size:.66rem; }
  .tile .acts .btn { display:block; text-align:center; padding:13px 18px; }
  .card, .reg { padding:18px; }
  .card.tile { padding:0; }
  .slide { flex-basis:88%; padding:20px 20px; }
  .slide blockquote { font-size:1.02rem; }
  .ctab { padding:24px 20px; border-radius:18px; }
  .ctab .btn { width:100%; text-align:center; }
  .pagehero .cta .btn, .scenehero .cta .btn { text-align:center; }
  .pagehero .cta { gap:14px; }
  .heroimg .pic { height:150px; }
  footer { flex-direction:column; gap:8px; }
  details { padding:14px 16px; }
}

/* Round 5: phone fixes. How-we-work cards were three narrow columns, and the stars sat behind the headline. */
@media (max-width:900px) { .tiles.small .tile { flex-basis:calc((100% - 20px) / 2); } }
@media (max-width:620px) {
  .tiles .tile, .tiles.small .tile, .tiles.two .tile { flex:0 0 100%; min-width:0; }
  .scenehero .over { padding-top:150px; }
  .scenehero .cluster { transform-box:view-box; transform-origin:100% 0; transform:scale(.55); }
  .scenehero .stars { opacity:.6; }
}

/* Legal pages and form status */
.legal { max-width:46rem; }
.legal h1 { margin-bottom:18px; }
.legal h2 { font-size:1.2rem; margin:28px 0 8px; }
.legal p, .legal li { color:var(--muted); }
.status { margin:0; }

/* Home v3: forecasting led. Centred hero with a dashboard placeholder, feature and step cards. */
.v3hero { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:clamp(28px,5vw,64px); align-items:center; background:radial-gradient(60% 50% at 50% 0%, rgba(240,160,48,.16), transparent 70%); }
.v3hero h1 { font-size:clamp(2.2rem,4.4vw,3.4rem); }
.v3hero .sub { max-width:36em; margin:22px 0 24px; color:var(--muted); font-size:1.15rem; }
.v3hero .cta { display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.shot { background:#D9DCDD; border:2px dashed #9AA3A6; border-radius:14px; color:#4A5457; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; text-align:center; padding:20px; aspect-ratio:16/9; }
.shot b { font:500 .75rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.12em; text-transform:uppercase; }
.shot span { font-size:.9rem; max-width:36em; }
.feat, .steps3 { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:20px; margin-top:32px; }
.feat .shot { margin-bottom:18px; }
.feat .card p { margin:10px 0 0; }
.steps3 .card { display:flex; flex-direction:column; }
.steps3 .k, .feat .k { font:500 .72rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--blue); margin-bottom:12px; }
.steps3 ul.tick { margin-bottom:18px; }
.cost { margin-top:auto; padding-top:14px; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.cost span { font:500 .72rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.cost b { font:700 1.15rem/1.3 "Roboto Slab", Georgia, serif; }
p.cost { border-top:0; margin:14px 0 0; padding-top:0; }
.eduline { padding-top:0; text-align:center; color:var(--muted); }
.v3hero .hook { font:700 1.35rem/1.2 "Roboto Slab", Georgia, serif; color:var(--blue-dark); margin:0 0 24px; }
.quickwin { text-align:center; padding-bottom:0; }
.quickwin h2 { max-width:20em; margin:0 auto; }
.quickwin .lede { max-width:40em; margin:18px auto 0; font-size:1.1rem; }
/* Problem and solve: four full width bands, background alternating page and sand. Text left, picture right. */
.pband { padding:0 clamp(20px,6vw,80px); }
#features { padding-bottom:clamp(8px,1.5vw,16px); }
.pb-page, .pb-sand { background:var(--band); }
.pband-in { max-width:1200px; margin:0 auto; padding:clamp(30px,4.5vw,62px) 0; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); gap:clamp(28px,6vw,80px); align-items:center; }
.pband .problem { font-size:1.38rem; line-height:1.4; color:var(--ink); margin:0 0 14px; }
.pband .problem b { font-weight:600; }
.pband .solve { font:700 clamp(1.15rem,1.8vw,1.45rem)/1.3 "Roboto Slab", Georgia, serif; margin:0; }
.pband .solve span { color:var(--blue); }
.pband .frame { background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:0 18px 44px rgba(14,95,124,.16); }
.pband .frame .bar { display:flex; gap:6px; padding:9px 14px; background:#EFE6D2; border-bottom:1px solid var(--line); }
.pband .frame .bar i { width:10px; height:10px; border-radius:50%; background:#C9BC9C; display:block; }
.pband .frame .screen { background:#D9DCDD; height:clamp(166px,21.8vw,269px); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; text-align:center; padding:20px; color:#4A5457; }
.pband .frame .screen b { font:500 .72rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.12em; text-transform:uppercase; }
.pband .frame .screen span { font-size:.9rem; max-width:34em; }
.pb-sand .pband-in { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }
.pb-sand .frame { order:-1; }
@media (max-width:820px) { .pband-in, .pb-sand .pband-in { grid-template-columns:1fr; } .pb-sand .frame { order:0; } }
.shot-quick { position:relative; overflow:hidden; max-width:900px; margin:clamp(24px,4vw,40px) auto 0; aspect-ratio:16/9; }
.shot-quick .quickvid { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#12313F; }
.quickwin { padding-bottom:clamp(48px,8vw,96px); }
.pband + .pband .pband-in { border-top:1px solid #C9B88F; }
#problem-4 { padding-bottom:clamp(16px,3vw,40px); }
#features > .eyebrow, #features > h2 { max-width:1200px; margin-left:auto; margin-right:auto; }

/* Marketing pages that carry bodyClass: lock keep their content in a 1200px column. Backgrounds still run edge to edge. Not for dashboards or app screens. */
.lock { --gx:max(clamp(20px,6vw,80px), calc((100% - 1200px) / 2)); }
.lock section, .lock nav, .lock footer { padding-left:var(--gx); padding-right:var(--gx); }

/* Home on a phone: roomier eyebrows, left aligned reading text, a smaller video box. */
@media (max-width:620px) {
  .lock .eyebrow { line-height:1.5; }
  .quickwin { text-align:left; }
  .quickwin h2 { margin:0; max-width:none; }
  .quickwin .lede { margin:14px 0 0; max-width:none; font-size:1rem; }
  .shot-quick { margin-top:24px; }
  .v3hero { padding-top:28px; }
  .v3hero .sub { font-size:1.05rem; margin:18px 0 18px; }
  .v3hero .hook { margin-bottom:20px; }
  .pband .problem { font-size:1.265rem; }
}

/* Step cards: result footer. Add-ons: sideways scroller with an illustration on each card. */
.steps3 .result { margin:14px -24px -24px; padding:14px 24px; background:var(--band); border-top:1px solid var(--line); border-radius:0 0 14px 14px; font-weight:600; }
.steps3 .result span { display:block; font:500 .72rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--blue); margin-bottom:6px; }
.addons { display:flex; gap:20px; margin-top:32px; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 2px 18px; -webkit-overflow-scrolling:touch; }
.addon { flex:0 0 min(300px, 78%); scroll-snap-align:start; background:var(--card); border:1px solid var(--line); border-radius:20px; overflow:hidden; display:flex; flex-direction:column; }
.addon .pic { line-height:0; }
.addon .pic svg { width:100%; height:auto; display:block; }
.addon .tx { padding:18px 22px 22px; }
.addon h3 { margin-bottom:8px; }
.addon p { margin:0; color:var(--muted); font-size:.95rem; }

/* Founder quote, straight after the hero. */
.founder { padding-top:clamp(8px,2vw,24px); padding-bottom:clamp(40px,6vw,72px); }
.founder-in { display:flex; justify-content:center; align-items:center; gap:clamp(24px,5vw,56px); text-align:left; }
.founder .photo { aspect-ratio:4/5; height:auto; object-fit:cover; border-radius:18px; display:block; }
.founder figure { margin:0; max-width:34em; }
.founder .photo { flex:none; width:200px; }
@media (max-width:620px) { .founder-in { flex-direction:column; align-items:flex-start; } .founder .photo { width:150px; } }
.founder blockquote { margin:0; font:700 clamp(1.3rem,2.6vw,2rem)/1.3 "Roboto Slab", Georgia, serif; }
.founder blockquote::before { content:"\201C"; color:var(--sun); font-size:1.8em; line-height:0; vertical-align:-.28em; margin-right:.08em; }
.founder blockquote::after { content:"\201D"; color:var(--sun); font-size:1.8em; line-height:0; vertical-align:-.28em; margin-left:.04em; }
.founder figcaption { margin-top:18px; color:var(--muted); font-size:.95rem; line-height:1.35; }
.founder figcaption b { display:block; color:var(--ink); font-size:1.05rem; }


/* Problem 1 demo: a small animated dashboard in the frame. Laid out at 672 by 269px and scaled down by demo-charts.js on narrow screens. Sample data. */
.dmo { position:relative; overflow:hidden; background:#F7F1E3; height:269px; }
.dm { --ok:#2F7D55; --bad:#B7432F; --amb:#9A6A0C; position:relative; width:672px; height:269px; transform-origin:0 0; padding:10px 14px; font:12px/1.35 Inter, sans-serif; color:var(--ink); display:flex; flex-direction:column; gap:8px; pointer-events:none; user-select:none; }
.dm * { box-sizing:border-box; }
.dm .mono { font:500 9px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.dm .ok { color:var(--ok); } .dm .bad { color:var(--bad); } .dm .amb { color:var(--amb); }
.dm .chart { background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px 12px 7px; }
.dm .chart .top { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:5px; }
.dm .chart .top b { font:700 11.5px/1 "Roboto Slab", Georgia, serif; color:var(--bad); }
.dm .wk { display:flex; gap:4px; height:60px; position:relative; }
.dm .wk::after { content:""; position:absolute; left:0; right:0; top:50%; border-top:1px solid #D9CFB6; }
.dm .wk i { flex:1; display:block; position:relative; }
.dm .wk i b { position:absolute; left:0; right:0; display:block; border-radius:2px; transition:background .3s; }
.dm .wk i.p b { bottom:50%; background:#9CC4AE; } .dm .wk i.n b { top:50%; background:#D9A094; }
.dm .wk i.last b { background:var(--bad); outline:2px solid #12313F; outline-offset:1px; }
.dm .three { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; flex:1; min-height:0; }
.dm .m { position:relative; display:flex; flex-direction:column; border:1px solid; border-radius:12px; padding:8px 10px; transition:background .4s, border-color .4s, opacity .35s, transform .55s cubic-bezier(.5,0,.2,1); }
.dm .m.g { background:#E6F2EA; border-color:#BFDCC9; } .dm .m.a { background:#FBF0D6; border-color:#EBD398; } .dm .m.r { background:#FBE3DD; border-color:#E7B5A9; }
.dm .m.fade { opacity:0; }
.dm .m .hd { display:flex; justify-content:space-between; align-items:flex-start; gap:6px; }
.dm .m svg { display:block; flex:none; margin-top:-1px; }
.dm .m .v { display:block; font:700 22px/1.15 "Roboto Slab", Georgia, serif; margin:4px 0 6px; }
.dm .m .d { display:flex; justify-content:space-between; font-size:10.5px; padding:3px 0; border-top:1px solid rgba(18,49,63,.12); color:var(--muted); } .dm .m .d b { font-weight:600; }
.dm .m .flag { margin-top:auto; align-self:flex-start; font:600 10px/1 Inter, sans-serif; padding:5px 8px; border-radius:999px; background:#fff; color:var(--bad); opacity:0; transform:translateY(4px); transition:opacity .3s, transform .3s; }
.dm .m .flag.on { opacity:1; transform:none; }
.dm .deep { display:none; grid-column:2 / 4; background:#fff; border:1px solid var(--line); border-radius:12px; padding:6px 12px; grid-template-columns:1.5fr 1fr; gap:14px; align-items:center; }
.dm .deep.on { display:grid; animation:dm-rise .45s ease both; }
.dm .gp { display:grid; grid-template-columns:70px 1fr 58px; gap:8px; align-items:center; margin:3px 0; font-size:10.5px; }
.dm .gp .tr { display:block; height:9px; background:#EFE7D4; border-radius:3px; } .dm .gp .f { display:block; height:100%; width:0; border-radius:3px; background:var(--bad); transition:width .8s cubic-bezier(.3,.7,.2,1); } .dm .gp b { text-align:right; font-weight:600; }
.dm .why { display:block; font-size:11px; color:var(--muted); } .dm .why b { display:block; color:var(--ink); font:700 12.5px/1.2 "Roboto Slab", Georgia, serif; margin-bottom:3px; }
.dm .cur { position:absolute; left:92%; top:88%; width:18px; height:18px; z-index:5; transition:left .8s cubic-bezier(.45,0,.2,1), top .8s cubic-bezier(.45,0,.2,1), transform .12s; filter:drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.dm .cur.tap { transform:scale(.82); }
.dm .rip { position:absolute; width:26px; height:26px; margin:-13px 0 0 -13px; border-radius:50%; background:rgba(18,49,63,.25); z-index:4; animation:dm-rip .55s ease-out forwards; }
@keyframes dm-rise { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@keyframes dm-rip { from { transform:scale(.2); opacity:1; } to { transform:scale(1.8); opacity:0; } }
@media (prefers-reduced-motion:reduce) { .dm .deep.on { animation:none; } }

/* Problem 2 demo: ChartBot. Chat on the left, the chart it made on the right. Laid out at 672 by 269px, scaled by demo-chatbot.js. Sample data. */
.dm.cb { flex-direction:row; gap:10px; }
.dm .cb-chat { flex:none; width:min(292px,45%); display:flex; flex-direction:column; gap:8px; min-height:0; }
.dm .cb-me { align-self:flex-end; max-width:96%; background:var(--blue); color:#fff; font-size:12px; font-weight:500; line-height:1.35; padding:8px 11px; border-radius:12px 12px 3px 12px; transition:opacity .4s, transform .4s; }
.dm .cb-bw { display:flex; gap:7px; align-items:flex-start; transition:opacity .4s; }
.dm .cb-bot { flex:none; width:22px; height:22px; border-radius:7px; background:var(--blue); display:grid; place-items:center; margin-top:2px; }
.dm .cb-bub { background:#fff; border:1px solid var(--line); border-radius:3px 12px 12px 12px; padding:9px 11px; display:flex; flex-direction:column; gap:6px; min-width:0; }
.dm .cb-bub h4 { margin:0; font:700 12.5px/1.25 "Roboto Slab", Georgia, serif; }
.dm .cb-bub ul { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:5px; }
.dm .cb-bub li { font-size:11px; line-height:1.35; color:var(--muted); padding-left:12px; position:relative; }
.dm .cb-bub li::before { content:""; position:absolute; left:0; top:5px; width:5px; height:5px; border-radius:50%; background:var(--bad); }
.dm .cb-bub li b { color:var(--ink); font-weight:600; }
.dm .cb-dots { display:none; gap:4px; padding:5px 4px; }
.dm .cb-dots i { width:6px; height:6px; border-radius:50%; background:#9AA9AE; animation:dm-dot 1s ease-in-out infinite; }
.dm .cb-dots i:nth-child(2) { animation-delay:.15s; } .dm .cb-dots i:nth-child(3) { animation-delay:.3s; }
.dm .cb-bub.think .cb-dots { display:flex; } .dm .cb-bub.think .rv { display:none; }
.dm .cb-in { margin-top:auto; display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:999px; height:30px; padding:0 4px 0 12px; font-size:11px; color:#8A979C; }
.dm .cb-in .pl, .dm .cb-in .ty { flex:1; white-space:nowrap; overflow:hidden; }
.dm .cb-in .ty { display:none; color:var(--ink); font-weight:500; }
.dm .cb-in.typing { border-color:var(--blue); box-shadow:0 0 0 3px rgba(14,95,124,.1); }
.dm .cb-in.typing .pl { display:none; } .dm .cb-in.typing .ty { display:block; }
.dm .cb-in.typing .ty::after { content:""; display:inline-block; width:1px; height:12px; background:var(--ink); margin-left:1px; vertical-align:-2px; animation:dm-caret 1s steps(1) infinite; }
.dm .cb-go { flex:none; width:22px; height:22px; border-radius:50%; background:var(--blue); display:grid; place-items:center; transition:transform .12s; }
.dm .cb-go.tap { transform:scale(.8); }
.dm .cb-card { flex:1; min-width:0; background:#fff; border:1px solid var(--line); border-radius:12px; padding:9px 12px; display:flex; flex-direction:column; }
.dm .cb-card svg { flex:1; min-height:0; width:100%; display:block; margin-top:6px; }
.dm .cb-card rect.b { transform-box:fill-box; transform-origin:50% 100%; transition:transform .6s cubic-bezier(.3,.7,.2,1); }
.dm .cb-card .lb { transition:opacity .3s; }
.dm.anim .cb-me { opacity:0; transform:translateY(8px); } .dm.anim .cb-me.on { opacity:1; transform:none; }
.dm.anim .cb-bw { opacity:0; } .dm.anim .cb-bw.on { opacity:1; }
.dm.anim .cb-bub .rv { opacity:0; transform:translateY(5px); transition:opacity .4s, transform .4s; } .dm.anim .cb-bub.read .rv { opacity:1; transform:none; }
.dm.anim .cb-bub.read li:nth-child(2) { transition-delay:.35s; } .dm.anim .cb-bub.read ul .rv:nth-child(2) { transition-delay:.7s; }
.dm.anim .cb-card rect.b { transform:scaleY(0); } .dm.anim .cb-card .grp.on rect.b { transform:none; } .dm.anim .cb-card .grp.on rect.b.ab { transition-delay:.12s; }
.dm.anim .cb-card .lb { opacity:0; } .dm.anim .cb-card .grp.on .lb { opacity:1; transition-delay:.55s; }
.dm .cb-card { transition:opacity .5s; } .dm.anim .cb-card { opacity:0; } .dm.anim .cb-card.on { opacity:1; }
/* narrow screens: one finding, so the chat fits */
.dm.cb.nar .cb-bub li:nth-child(2) { display:none; }
@keyframes dm-dot { 0%,100% { opacity:.3; transform:translateY(0); } 50% { opacity:1; transform:translateY(-2px); } }
@keyframes dm-caret { 50% { opacity:0; } }

/* Problem 3 demo: the Forecasting Tool. A static forecast comes alive against actuals. Laid out at 672 by 269px, scaled by demo-forecast.js. Sample data. */
.dm.fc { gap:8px; }
.dm .fc-h { display:flex; justify-content:space-between; align-items:center; flex:none; }
.dm .fc-h b { font:700 12.5px/1 "Roboto Slab", Georgia, serif; } .dm .fc-h b span { font:400 11px/1 Inter, sans-serif; color:var(--muted); }
.dm .fc-st { display:flex; align-items:center; gap:6px; font:600 10px/1 Inter, sans-serif; padding:5px 9px; border-radius:999px; background:#EFE6D2; color:#6F6246; transition:background .4s, color .4s; }
.dm .fc-st i { width:6px; height:6px; border-radius:50%; background:#B3A682; }
.dm .fc-st .s2 { display:none; } .dm .fc-st.live { background:#E2F0E7; color:var(--ok); } .dm .fc-st.live .s1 { display:none; } .dm .fc-st.live .s2 { display:inline; }
.dm .fc-st.live i { background:var(--ok); animation:dm-live 1.4s ease-in-out infinite; }
.dm .fc-b { flex:1; min-height:0; display:flex; gap:10px; transition:opacity .5s; }
.dm .fc-t { flex:1.15; min-width:0; background:#fff; border:1px solid var(--line); border-radius:12px; padding:6px 10px; display:flex; flex-direction:column; justify-content:space-between; }
.dm .fc-t .r { display:grid; grid-template-columns:1.25fr 1fr 1fr 1fr; align-items:center; gap:4px; flex:1; border-bottom:1px solid #EFE7D4; padding:0 4px; margin:0 -4px; font-size:11px; border-radius:6px; transition:background .4s; }
.dm .fc-t .r:last-child { border-bottom:0; }
.dm .fc-t .r.h { flex:none; padding-bottom:4px; } .dm .fc-t .r.h span { font:500 9px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.dm .fc-t .r span:not(:first-child), .dm .fc-t .r b { text-align:right; }
.dm .fc-t .r .n { font-weight:600; }
.dm .fc-t .r .df { display:flex; justify-content:flex-end; }
.dm .fc-t .r .df b { font:600 10.5px/1 Inter, sans-serif; padding:3px 6px; border-radius:999px; }
.dm .fc-t .r .df b.ok { background:#E2F0E7; color:var(--ok); } .dm .fc-t .r .df b.bad { background:#F8E0DA; color:var(--bad); }
.dm .fc-t .r.tot { font-weight:600; }
.dm .fc-t .r.hot.flag { background:#FFF1EE; }
.dm .fc-c { flex:1; min-width:0; background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px 12px; display:flex; flex-direction:column; }
.dm .fc-c svg { flex:1; min-height:0; width:100%; display:block; margin-top:4px; }
.dm .fc-line { fill:none; stroke:var(--blue); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.dm .fc-gap { fill:#B7432F; opacity:.16; } .dm .fc-end { transition:opacity .4s; }
.dm .fc-n { flex:none; display:flex; align-items:center; gap:8px; background:#fff; border:1px solid #E7B5A9; border-radius:10px; padding:7px 12px; font-size:11.5px; color:var(--muted); transition:opacity .5s, transform .5s; }
.dm .fc-n i { flex:none; width:7px; height:7px; border-radius:50%; background:var(--bad); } .dm .fc-n b { color:var(--ink); font-weight:600; }
.dm.anim .fc .a, .dm.anim .fc .df { opacity:0; transform:translateX(-6px); transition:opacity .4s, transform .4s; } .dm.anim .fc .r.on .a, .dm.anim .fc .r.on .df { opacity:1; transform:none; } .dm.anim .fc .r.on .df { transition-delay:.25s; }
.dm.anim .fc-line { stroke-dasharray:1; stroke-dashoffset:1; } .dm.anim .fc-c.on .fc-line { stroke-dashoffset:0; transition:stroke-dashoffset 1.7s ease-in-out; }
.dm.anim .fc-gap, .dm.anim .fc-end { opacity:0; } .dm.anim .fc-c.on .fc-gap { opacity:.16; transition:opacity .6s 1.5s; } .dm.anim .fc-c.on .fc-end { opacity:1; transition-delay:1.7s; }
.dm.anim .fc-n { opacity:0; transform:translateY(8px); } .dm.anim .fc-n.on { opacity:1; transform:none; }
.dm.fc.nar .fc-t .r { font-size:10px; grid-template-columns:1.3fr 1fr 1fr 1.1fr; } .dm.fc.nar .fc-t .r .df b { padding:3px 4px; font-size:9.5px; }
@keyframes dm-live { 0%,100% { opacity:1; } 50% { opacity:.35; } }

/* Problem 4 demo: Custom ETL and Warehouse. Five separate systems connect into one warehouse and the numbers land in one place. Laid out at 672 by 269px, scaled by demo-warehouse.js. Sample data. */
.dm.ob { flex-direction:row; gap:6px; }
.dm .ob-src { flex:none; width:150px; display:flex; flex-direction:column; justify-content:space-between; }
.dm .ob-t { height:40px; display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:0 9px; }
.dm .ob-t .ic { flex:none; width:22px; height:22px; border-radius:6px; display:grid; place-items:center; }
.dm .ob-t .tx { display:flex; flex-direction:column; gap:2px; min-width:0; } .dm .ob-t b { font-size:11.5px; font-weight:600; line-height:1.1; white-space:nowrap; }
.dm .ob-t .sb { font-size:9.5px; line-height:1; color:#8A979C; display:flex; align-items:center; gap:3px; white-space:nowrap; } .dm .ob-t .sb .s2 { display:none; }
.dm .ob-t.ok { border-color:#BFDCC9; } .dm .ob-t.ok .sb { color:var(--ok); font-weight:600; } .dm .ob-t.ok .sb .s1 { display:none; } .dm .ob-t.ok .sb .s2 { display:inline; }
.dm .ob-mid { flex:none; width:150px; height:249px; display:block; }
.dm .ob-mid .pp { fill:none; stroke:#CDBF9F; stroke-width:1.5; stroke-dasharray:3 3; transition:stroke .4s; } .dm .ob-mid .pp.ok { stroke:#0E5F7C; stroke-dasharray:none; opacity:.55; }
.dm .ob-mid .wf { transform-box:fill-box; transform-origin:50% 100%; transform:scaleY(var(--lv, 1)); transition:transform .8s cubic-bezier(.3,.7,.2,1); }
.dm .ob-c { flex:1; min-width:0; background:#fff; border:1px solid var(--line); border-radius:12px; padding:9px 12px; display:flex; flex-direction:column; gap:8px; transition:opacity .6s, filter .6s; }
.dm .ob-c .top { display:flex; justify-content:space-between; align-items:center; }
.dm .ob-c .top b { font:700 12.5px/1 "Roboto Slab", Georgia, serif; }
.dm .ob-c .cnt { font:600 10px/1 Inter, sans-serif; padding:5px 8px; border-radius:999px; background:#E2F0E7; color:var(--ok); white-space:nowrap; }
.dm .ob-c .grid { flex:1; min-height:0; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:7px; }
.dm .ob-c .mm { border:1px solid var(--line); border-radius:10px; padding:7px 9px; display:flex; flex-direction:column; justify-content:center; gap:3px; background:#FBF8F0; }
.dm .ob-c .mm b { font:700 19px/1.1 "Roboto Slab", Georgia, serif; } .dm .ob-c .mm em { font-style:normal; font-size:10px; color:var(--ok); font-weight:600; }
.dm .ob-c .upd { font:500 9px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.dm .pk { fill:#0E5F7C; }
.dm.anim .ob-c { opacity:.35; filter:grayscale(1); } .dm.anim .ob-c.on { opacity:1; filter:none; }
.dm.anim .ob-c .mm { opacity:0; transform:translateY(5px); transition:opacity .4s, transform .4s; } .dm.anim .ob-c.on .mm { opacity:1; transform:none; }
.dm.anim .ob-c.on .mm:nth-child(2) { transition-delay:.12s; } .dm.anim .ob-c.on .mm:nth-child(3) { transition-delay:.24s; } .dm.anim .ob-c.on .mm:nth-child(4) { transition-delay:.36s; }
.dm.ob.nar .ob-src { width:112px; } .dm.ob.nar .ob-mid { width:150px; } .dm.ob.nar .ob-t { padding:0 7px; gap:6px; } .dm.ob.nar .ob-t b { font-size:10.5px; } .dm.ob.nar .ob-c .mm b { font-size:16px; } .dm.ob.nar .ob-c { padding:8px 9px; } .dm.ob.nar .ob-c .top b { font-size:11px; white-space:nowrap; } .dm.ob.nar .cnt .lg { display:none; } .dm.ob.nar .ob-c .upd { font-size:8px; letter-spacing:.04em; white-space:nowrap; }

/* No one word last lines: balance short headings and quotes, tidy the ends of paragraphs. */
h1, h2, h3, .founder blockquote, .pband .problem { text-wrap:balance; }
p, li { text-wrap:pretty; }
.slide blockquote { text-wrap:pretty; }
.addon p, .ctab p { text-wrap:balance; }


/* Hero demo: the dashboard and ChartBot. Laid out at 672 by 380px, scaled by demo-hero.js. Sample data. */
.dm.hero .mono {font:500 8.5px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.1em; text-transform:uppercase; color:var(--muted);}
.dm.hero .ok {color:var(--ok);}
.dm.hero .bad {color:var(--bad);}
.dm.hero .amb {color:var(--amb);}
.dm.hero .p {background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px 10px; min-width:0; min-height:0; display:flex; flex-direction:column; position:relative;}
.dm.hero .p.bare {background:none; border:0; padding:0;}
.dm.hero .p h4 {margin:0; font:700 15px/1.1 "Roboto Slab", Georgia, serif;}
.dm.hero .p .sb {color:var(--muted); font-size:10.5px;}
.dm.hero .hdr {flex-direction:row; align-items:center; justify-content:space-between; gap:10px;}
.dm.hero .hdr .l {display:flex; align-items:baseline; gap:10px; min-width:0;}
.dm.hero .hdr .l b {font:700 16px/1 "Roboto Slab", Georgia, serif; white-space:nowrap;}
.dm.hero .chip {display:inline-block; font:600 9px/1 Inter, sans-serif; padding:4px 7px; border-radius:999px; white-space:nowrap;}
.dm.hero .chip.g {background:#E2F0E7; color:var(--ok);}
.dm.hero .chip.a {background:#FBEFD2; color:var(--amb);}
.dm.hero .chip.r {background:#F8E0DA; color:var(--bad);}
.dm.hero .chip.b {background:#E4E9F4; color:#3D5A99;}
.dm.hero .cd .mono {white-space:normal;}
.dm.hero .cd .num {font:700 var(--cn)/1.1 "Roboto Slab", Georgia, serif; margin:2px 0 1px;}
.dm.hero .cd .num.bad {color:var(--bad);}
.dm.hero .cd .sub {font-size:var(--cs, 10px); color:var(--muted); line-height:1.3;}
.dm.hero .cd .chip {margin-top:auto; align-self:flex-start;}
.dm.hero .cd.hot {border-color:#E7B5A9; background:#FFF8F6;}
.dm.hero .cd.pulse {animation:hero-glow 1.3s ease-in-out infinite;}
.dm.hero .prog {display:block; flex:none; height:5px; border-radius:3px; background:#E5DDC8; margin-top:4px; position:relative;}
.dm.hero .prog i {position:absolute; left:0; top:0; bottom:0; width:92%; background:var(--blue); border-radius:3px;}
.dm.hero .prog u {position:absolute; left:94%; top:-2px; bottom:-2px; width:2px; background:var(--ink);}
.dm.hero .strip i {flex:1; position:relative; display:block;}
.dm.hero .strip i b {position:absolute; left:0; right:0; border-radius:2px; transform-origin:50% 50%; transition:transform .5s cubic-bezier(.3,.7,.2,1);}
.dm.hero .strip i.p1 b {bottom:50%; background:#9CC4AE; transform-origin:50% 100%;}
.dm.hero .strip i.n1 b {top:50%; background:#D9A094; transform-origin:50% 0;}
.dm.hero .strip i.last b {background:var(--bad); outline:2px solid #12313F; outline-offset:1px;}
.dm.hero .strip.line {position:relative;}
.dm.hero .strip.line::after {content:""; position:absolute; left:0; right:0; top:50%; border-top:1px solid #D9CFB6;}
.dm.hero .gp {display:grid; grid-template-columns:62px 1fr 58px; gap:6px; align-items:center; font-size:10px;}
.dm.hero .gp .tr {position:relative; height:9px; display:block;}
.dm.hero .gp .tr::before {content:""; position:absolute; left:50%; top:-2px; bottom:-2px; border-left:1px solid #D9CFB6;}
.dm.hero .gp .tr i {position:absolute; top:0; bottom:0; border-radius:3px; transform:scaleX(0); transition:transform .6s cubic-bezier(.3,.7,.2,1);}
.dm.hero .gp b {text-align:right; font-weight:600; white-space:nowrap;}
.dm.hero .in .gp .tr i {transform:none;}
.dm.hero .rv.in {opacity:1; transform:none;}
.dm.hero.out .rv {opacity:0; transition:opacity .5s;}
.dm.hero .fa {stroke-dasharray:1; stroke-dashoffset:1;}
.dm.hero .in .fa {stroke-dashoffset:0; transition:stroke-dashoffset 1.6s ease-in-out .1s;}
.dm.hero .fx {opacity:0; transition:opacity .6s;}
.dm.hero .in .fx {opacity:1; transition-delay:1.5s;}
.dm.hero .in .strip i b {transform:none;}
.dm.hero .strip i b {transform:scaleY(0);}
.dm.hero .wfb {transform-box:fill-box; transform-origin:50% 100%; transform:scaleY(0); transition:transform .6s cubic-bezier(.3,.7,.2,1);}
.dm.hero .in .wfb {transform:none;}
.dm.hero .chat .me {align-self:flex-end; max-width:96%; background:var(--blue); color:#fff; font-size:13px; line-height:1.3; font-weight:600; padding:7px 10px; border-radius:10px 10px 3px 10px;}
.dm.hero .chat .bot {background:#FBF8F0; border:1px solid var(--line); border-radius:3px 10px 10px 10px; padding:7px 9px; font-size:10.5px; color:var(--muted);}
.dm.hero .chat .bot b {display:block; color:var(--ink); font:700 11.5px/1.25 "Roboto Slab", Georgia, serif; margin-bottom:3px;}
.dm.hero .chat .in-bar {margin-top:auto; border:1px solid var(--line); border-radius:999px; padding:6px 10px; font-size:10px; color:#8A979C; background:#fff;}
.dm.hero .src {display:flex; gap:6px; align-items:center; font-size:9.5px; color:var(--ok); font-weight:600; background:#E2F0E7; border-radius:999px; padding:4px 8px; white-space:nowrap;}
.dm.hero .src i {width:6px; height:6px; border-radius:50%; background:var(--ok);}
.dm.hero .mini .sub, .dm.hero .mini .chip, .dm.hero .mini .prog { display:none; }
@keyframes hero-glow { 0%,100% { box-shadow:0 0 0 0 rgba(183,67,47,0); } 50% { box-shadow:0 0 0 5px rgba(183,67,47,.22); } }
.dm.hero { display:grid; align-items:stretch; gap:8px; height:380px; padding:12px; font:11px/1.35 Inter, sans-serif; --cn:22px; }
.dm.hero .gp .tr { background:none; border-radius:0; height:9px; }
.dm.hero.nar .hdr .sb { display:none; } .dm.hero.nar .chat .in-bar { display:none; } .dm.hero.nar .chat { gap:5px; padding:6px 10px; }
.dm.hero.nar .chat .bot { padding:5px 8px; } .dm.hero.nar .chat .bot b { margin-bottom:1px; }
/* The hero image: a browser frame beside the copy. */
.v3hero .herodemo { width:100%; margin:0; border-radius:14px; overflow:hidden; background:#fff; border:1px solid var(--line); box-shadow:0 18px 50px rgba(14,95,124,.16); }
.v3hero .herodemo .bar { display:flex; gap:6px; padding:9px 14px; background:#EFE6D2; border-bottom:1px solid var(--line); align-items:center; }
.v3hero .herodemo .bar i { width:10px; height:10px; border-radius:50%; background:#C9BC9C; display:block; }
.v3hero .herodemo .bar em { margin-left:auto; font:500 .62rem/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.12em; text-transform:uppercase; color:#8a7c5a; font-style:normal; }
.dm.hero .chat .mg { margin-top:7px; display:flex; flex-direction:column; gap:4px; } .dm.hero .chat .mg .gp { grid-template-columns:62px 1fr 44px; font-size:9.5px; margin:0; } .dm.hero.nar .chat .mg, .dm.hero.nar .chat > .mono { display:none; }
.dm.hero .chat .bot { text-wrap:pretty; }

/* Testimonial footers: the locked-width footer padding must not reach the cards, so every avatar and name lines up. */
.lock .slide footer { padding-left:0; padding-right:0; }
.slide .who { min-width:0; }
/* Hero: on wide screens the dashboard gets the bigger share so it reads at full size. */
@media (min-width:1100px) { .v3hero { grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr); } .v3hero h1 { font-size:clamp(2.2rem,3.4vw,2.75rem); } }
/* Problem 3: the row being filled in is highlighted as it goes. */
.dm .fc-t .r.hl { background:#EAF3F6; }
.v3hero .eyebrow { line-height:1.6; }

/* Hero ChartBot: the answer is a chart only. */
.dm.hero .chat .bot {flex:1; min-height:0; display:flex; flex-direction:column; gap:8px; background:#fff;}
.dm.hero .chat .bot > .mono {font-size:8.5px;}
.dm.hero .cgs {display:flex; flex-direction:column; gap:9px; justify-content:space-evenly; flex:1;}
.dm.hero .cg {display:grid; grid-template-columns:56px 1fr 50px; gap:6px; align-items:center; font-size:10px; color:var(--ink);}
.dm.hero .cg .tr {display:block; height:9px;}
.dm.hero .cg .tr i {display:block; height:100%; border-radius:3px; background:#B7432F; transform:scaleX(0); transform-origin:0 50%; transition:transform .6s cubic-bezier(.3,.7,.2,1) .2s;}
.dm.hero .cg:nth-child(2) .tr i {transition-delay:.35s;} .dm.hero .cg:nth-child(3) .tr i {transition-delay:.5s;} .dm.hero .cg:nth-child(4) .tr i {transition-delay:.65s;}
.dm.hero .cg b {text-align:right; font-weight:600; color:#B7432F; white-space:nowrap;}
.dm.hero .in .cg .tr i, .dm.hero .chat.in .cg .tr i {transform:none;}
.dm.hero.nar .chat .bot > .mono {display:none;} .dm.hero.nar .cgs {gap:5px;}
.dm.hero.rst, .dm.hero.rst * {transition:none !important; animation:none !important;}
.dm.hero .chat {gap:12px; padding-top:12px; padding-bottom:12px;}
.dm.hero .chat > .mono {margin-bottom:2px;}
.dm.hero .chat .me {margin:2px 0;}
.dm.hero.nar .chat {gap:8px; padding-top:8px; padding-bottom:8px;}
.dm.hero.nar .chat .bot {padding:6px 8px 10px;} .dm.hero.nar .cgs {gap:4px; justify-content:flex-start;}

/* Phase results: the same height whether the line wraps or not. */


/* Hero backdrop: a faint sun, the Southern Cross and slow waves washing behind the content. Decorative only. */
.v3hero { position:relative; isolation:isolate; overflow:hidden; }
.v3hero > .copy, .v3hero > .herodemo { position:relative; z-index:1; }
.v3bg { position:absolute; left:0; width:100%; z-index:-1; pointer-events:none; }
.v3bg.top { top:0; height:260px; } .v3bg.bot { bottom:0; height:130px; }
.v3bg .stars .st { transform-box:fill-box; transform-origin:center; fill:#12313F; opacity:.35; animation:tw 3.4s ease-in-out infinite; }
.v3bg .s2{animation-delay:.7s} .v3bg .s3{animation-delay:1.4s} .v3bg .s4{animation-delay:2.1s} .v3bg .s5{animation-delay:2.7s}
.v3bg .sun { transform-box:fill-box; transform-origin:center; animation:sunb 7s ease-in-out infinite; }
.v3bg .w3 { animation:wv720 40s linear infinite; } .v3bg .w2 { animation:wv800r 32s linear infinite; } .v3bg .w1 { animation:wv920 26s linear infinite; }
@media (max-width:620px) { .v3bg .stars { opacity:.6; } }
@media (prefers-reduced-motion:reduce) { .v3bg .st, .v3bg .sun, .v3bg .w { animation:none; } }
@media (max-width:620px) { .v3bg .sun { opacity:.5; } }

/* Section decoration: faint sun, Southern Cross and waves behind the content. */
#founder, #problem-2, #problem-3, #problem-4, #how, #addons, #proof { position:relative; isolation:isolate; overflow:hidden; }
.deco { position:absolute; z-index:-1; pointer-events:none; }
.d-sun { width:clamp(120px,15vw,210px); } .d-stars { width:clamp(70px,9vw,110px); }
.deco.tl { top:-10px; left:3%; } .deco.tr { top:10px; right:4%; } .deco.bl { bottom:6px; left:3%; } .deco.br { bottom:6px; right:4%; }
.d-sun.tl, .d-sun.tr { top:-48px; } .d-sun.bl { bottom:-60px; }
.d-waves { left:0; bottom:0; width:100%; height:110px; }
.deco .stars .st { transform-box:fill-box; transform-origin:center; fill:#12313F; opacity:.2; animation:dtw 3.4s ease-in-out infinite; }
@keyframes dtw { 0%,100%{opacity:.1; transform:scale(.8)} 50%{opacity:.3; transform:scale(1.05)} }
.deco .s2{animation-delay:.7s} .deco .s3{animation-delay:1.4s} .deco .s4{animation-delay:2.1s} .deco .s5{animation-delay:2.7s}
.deco .sun { transform-box:fill-box; transform-origin:center; animation:sunb 7s ease-in-out infinite; }
.d-waves .w3 { animation:wv720 40s linear infinite; } .d-waves .w2 { animation:wv800r 32s linear infinite; } .d-waves .w1 { animation:wv920 26s linear infinite; }
@media (max-width:620px) { .d-sun { opacity:.6; } .d-stars { opacity:.7; } }
@media (prefers-reduced-motion:reduce) { .deco .st, .deco .sun, .deco .w { animation:none; } }
/* Founder on a phone: the photo and the quote are centred. */
@media (max-width:620px) { .founder-in { align-items:center; text-align:center; } .founder figure { text-align:center; } }
.d-stars.tl, .d-stars.tr { top:16px; } .d-stars.bl, .d-stars.br { bottom:16px; }

/* The three steps share their rows, so each card's cost and result sit on the same line whatever the text does. */
@supports (grid-template-rows: subgrid) {
  .steps3 { row-gap:20px; }
  .steps3 .card { display:grid; grid-template-rows:subgrid; grid-row:span 5; row-gap:0; align-content:stretch; }
  .steps3 .card > ul.tick { align-self:start; }
  .steps3 .card > .cost { align-self:end; }
}
#proof { background:var(--band); }
