/* risen — styles
   Layout concept: editorial light page on a 12-col grid; purple is reserved for
   the problem-node hero, the NO CARE moment, the consultation blocks and actions. */
:root {
  --bg: #FBFAFD;          /* near-white, slight violet bias */
  --surface: #FFFFFF;
  --lav: #F3E8FF;         /* soft lavender */
  --lav-2: #EADCFC;
  --line: #E6E1EF;
  --line-strong: #D6CCE6;
  --ink: #18181B;
  --ink-2: #3A3542;
  --muted: #676472;       /* secondary text, AA on --bg */
  --p-deep: #5B21B6;
  --p: #7C3AED;
  --p-bright: #A855F7;
  --p-ink: #2A1454;       /* deep violet-black for the dark card */
  --on-p: #FFFFFF;
  --ok: #15803D;
  --err: #B42318;
  --err-bg: #FEF3F2;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-display: clamp(2.6rem, 5.2vw, 4.75rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.5rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.6rem);
  --fs-h4: 1.2rem;
  --fs-body: 1.0625rem;
  --fs-small: .8125rem;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}


/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
em { font-style: normal; }
::selection { background: var(--lav-2); color: var(--p-ink); }
:focus-visible { outline: 3px solid var(--p-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); letter-spacing: .01em; }
.small { font-size: var(--fs-small); }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .08em; color: var(--p-deep); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--p); box-shadow: 0 0 0 4px var(--lav); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.12; }
.h4 { font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -.01em; }

/* placeholders: empty config values */
.ph {
  display: inline-block; font-family: var(--f-mono); font-size: .8em; font-weight: 500; letter-spacing: 0;
  color: var(--p-deep); background: repeating-linear-gradient(135deg, var(--lav) 0 6px, #fff 6px 12px);
  border: 1px dashed var(--p-bright); border-radius: 6px; padding: 1px 7px; text-decoration: none; line-height: 1.5;
}


/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arr { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arr, .svc-cta:hover .arr, .path-link:hover .arr, .chat-hint:hover .arr { transform: translate(3px, -1px); }
.btn-primary { --b-bg: var(--p); --b-fg: var(--on-p); --b-bd: var(--p); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 18px -8px rgba(124,58,237,.7); }
.btn-primary:hover { --b-bg: var(--p-deep); --b-bd: var(--p-deep); }
.btn-outline { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--ink); }
.btn-outline:hover { --b-bg: var(--ink); --b-fg: #fff; }
.btn-ghost { --b-bg: var(--lav); --b-fg: var(--p-deep); --b-bd: transparent; }
.btn-light { --b-bg: #fff; --b-fg: var(--p-deep); --b-bd: #fff; }
.btn-light:hover { --b-bg: var(--lav); }
.btn-ghost-light { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255,255,255,.55); }
.btn-ghost-light:hover { --b-bd: #fff; --b-bg: rgba(255,255,255,.08); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }


/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s, backdrop-filter .25s;
}
.site-header.is-scrolled, .site-header.menu-open {
  background: rgba(251, 250, 253, .82); border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
.nav-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-slot { display: inline-flex; align-items: center; gap: 9px; }
.logo-slot img { height: 32px; width: auto; }
.logo-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--p); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; line-height: 1; padding-bottom: 2px;
}
.logo-slot.is-placeholder .logo-mark { outline: 1.5px dashed var(--p-bright); outline-offset: 2px; }
.logo-word { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.04em; line-height: 1; }
.nav-desktop { margin-left: auto; }
.nav-desktop ul { list-style: none; display: flex; gap: 2px; }
.nav-desktop a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav-desktop a:hover { background: var(--lav); color: var(--p-deep); }
.nav-desktop a.is-active { color: var(--p-deep); }
.menu-btn { display: none; }

.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.site-header.menu-open ~ .chat { display: none; }
.mobile-nav ul { list-style: none; padding: 8px var(--gutter); }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-nav ul a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; text-decoration: none; letter-spacing: -.02em; }
.mobile-nav ul a::after { content: "→"; font-family: var(--f-body); font-size: 1.1rem; color: var(--p); }
.mobile-nav-foot { display: grid; gap: 10px; padding: 12px var(--gutter) 28px; }
.mobile-nav-foot .mono { text-align: center; color: var(--muted); }

@media (max-width: 1020px) {
  .nav-desktop, .nav-cta { display: none; }
  .menu-btn {
    display: inline-grid; place-content: center; gap: 6px; margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer;
  }
  .menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}


/* ---------- hero ---------- */
.glow-zone { position: relative; isolation: isolate; }
.glow-zone::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(168, 85, 247, .14), transparent 70%);
}
.glow-zone.is-glowing::before { opacity: 1; }

.hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; z-index: -2; inset: -20% -10% auto 40%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(243, 232, 255, .9), rgba(243, 232, 255, 0));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.display { font-size: var(--fs-display); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.display .line { display: block; }
.display em { color: var(--p); position: relative; white-space: nowrap; }
.display em::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: .02em; height: .11em; border-radius: 99px;
  background: linear-gradient(90deg, var(--p-bright), var(--p)); opacity: .35;
}
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 36ch; line-height: 1.5; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-line { display: flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--muted); }
.trust-line svg { color: var(--p); flex-shrink: 0; }

.hero-visual { margin: 0; min-width: 0; display: grid; gap: 6px; justify-items: center; }
.hero-visual svg { width: 100%; max-width: 540px; height: auto; overflow: visible; }
.flow-caption { display: flex; gap: 10px; align-items: center; font-size: var(--fs-small); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.flow-caption .sep { color: var(--p-bright); }

.link { stroke-dasharray: 4 5; animation: dash 2.8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -36; } }
.pulse { opacity: 0; transform-box: fill-box; }
.node { transform-box: fill-box; transform-origin: center; animation: bob 6s ease-in-out infinite; }
.n2 { animation-delay: -1s; } .n3 { animation-delay: -2s; } .n4 { animation-delay: -3s; } .n5 { animation-delay: -4s; } .n6 { animation-delay: -5s; } .n7 { animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.core-ring { transform-box: fill-box; transform-origin: center; animation: ring 3.2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35, 1.6); opacity: 0; } }
/* dots travel from centre to each node (via JS-set CSS vars) */
.pulse { animation: travel 3.6s var(--ease) infinite; }
.p1 { --dx: 0px;    --dy: 168px;  animation-delay: 0s; }
.p2 { --dx: -131px; --dy: 105px;  animation-delay: .5s; }
.p3 { --dx: -164px; --dy: -37px;  animation-delay: 1s; }
.p4 { --dx: -73px;  --dy: -151px; animation-delay: 1.5s; }
.p5 { --dx: 73px;   --dy: -151px; animation-delay: 2s; }
.p6 { --dx: 164px;  --dy: -37px;  animation-delay: 2.5s; }
.p7 { --dx: 131px;  --dy: 105px;  animation-delay: 3s; }
@keyframes travel {
  0% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
  10% { opacity: 1; }
  60% { transform: translate(0, 0); opacity: 1; }
  70%, 100% { transform: translate(0, 0); opacity: 0; }
}

/* three ways in */
.paths { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 60px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.path { padding: 20px 24px; display: grid; gap: 6px; min-width: 0; }
.path + .path { border-left: 1px solid var(--line); }
.path-k { font-size: var(--fs-small); color: var(--muted); }
.path-link { justify-self: start; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.015em; text-decoration: none; color: var(--ink); text-align: left; line-height: 1.2; }
.path-link .arr { display: inline-block; color: var(--p); transition: transform .25s var(--ease); }
.path:hover { background: linear-gradient(180deg, var(--surface), #FCF8FF); }
.path-link:hover { color: var(--p-deep); }


/* ---------- statement / NO CARE ---------- */
.statement { padding-block: clamp(64px, 10vw, 140px); background: var(--ink); color: #fff; overflow: hidden; }
.statement-line { font-size: clamp(2.4rem, 7.2vw, 6.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; max-width: 15ch; text-wrap: initial; }
.care-wrap { position: relative; display: inline-block; white-space: nowrap; }
.care { color: #8E8A99; }
.strike {
  position: absolute; left: -4%; top: 54%; height: .09em; width: 108%; background: var(--p-bright); border-radius: 99px;
  transform: rotate(-4deg) scaleX(1); transform-origin: left center; transition: transform .6s var(--ease) .1s;
}
.nocare {
  position: absolute; left: 50%; bottom: 78%; transform: translateX(-50%) rotate(-5deg); white-space: nowrap;
  font-family: var(--f-mono); font-weight: 500; font-size: .36em; letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink); background: var(--p-bright); padding: .12em .45em .16em; border-radius: .25em;
  transition: opacity .4s var(--ease) .65s, transform .5s var(--ease) .65s;
}
.statement-line.is-armed .strike { transform: rotate(-4deg) scaleX(0); }
.statement-line.is-armed .nocare { opacity: 0; transform: translateX(-50%) rotate(-5deg) translateY(10px); }
.statement-line .period { color: var(--p-bright); }
.statement-foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: end; margin-top: clamp(32px, 5vw, 56px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.statement-joke { font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.statement-note { color: #B9B4C6; font-size: .875rem; max-width: 38ch; justify-self: end; }


/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head-row { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; gap: 24px; }
.section-sub { color: var(--muted); font-size: 1.125rem; max-width: 56ch; }


/* ---------- services bento ---------- */
.positioning { font-family: var(--f-display); font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -.015em; margin-bottom: 28px; color: var(--ink-2); }
.positioning strong { color: var(--p-deep); font-weight: 700; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 32px); min-width: 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.svc:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 40px -28px rgba(59, 7, 100, .35); }
.svc > p { color: var(--ink-2); max-width: 52ch; }
.svc-num { font-size: var(--fs-small); color: var(--p-deep); text-transform: uppercase; letter-spacing: .08em; }
.svc-web { grid-column: span 6; }
.svc-app { grid-column: span 6; }
.svc-auto { grid-column: span 12; }
.svc-custom { grid-column: span 5; }
.svc-legacy { grid-column: span 7; }
.svc-maint { grid-column: span 6; }
.svc-ai { grid-column: span 6; }
.svc-consult { grid-column: span 12; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .8125rem; padding: 5px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); line-height: 1.3; }
.tags li.is-extra { display: none; }
.tags.is-open li.is-extra { display: list-item; animation: pop .3s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }
.tags li.more-li { padding: 0; border: 0; background: none; }
.tag-more { font: 500 .8125rem var(--f-mono); padding: 5px 11px; border-radius: 999px; border: 1px dashed var(--p-bright); background: transparent; color: var(--p-deep); cursor: pointer; line-height: 1.3; }
.tag-more:hover { background: var(--lav); }
.svc-cta {
  margin-top: auto; align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; padding: 6px 0 0; cursor: pointer;
  font-weight: 600; color: var(--p-deep); text-decoration: none; border-bottom: 1.5px solid transparent;
}
.svc-cta .arr { display: inline-block; transition: transform .25s var(--ease); }
.svc-cta:hover { border-bottom-color: currentColor; }

.svc-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.svc-split > div { display: grid; gap: 14px; }
.aside { font-size: .875rem; color: var(--muted); }
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: f; }
.flow-step { position: relative; display: grid; gap: 6px; padding: 14px 14px 14px 0; }
.flow-step + .flow-step { padding-left: 14px; }
.flow-step::before { content: ""; display: block; height: 2px; background: var(--line); margin-bottom: 10px; position: relative; }
.flow-step::after {
  content: ""; position: absolute; top: 9px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong);
  animation: flowdot 4s infinite; animation-delay: calc(var(--i, 0) * 1s);
}
.flow-step + .flow-step::after { left: 14px; }
.flow-step:nth-child(2) { --i: 1; } .flow-step:nth-child(3) { --i: 2; } .flow-step:nth-child(4) { --i: 3; }
@keyframes flowdot { 0%, 20% { background: var(--p); border-color: var(--p); box-shadow: 0 0 0 5px var(--lav); } 30%, 100% { background: var(--surface); border-color: var(--line-strong); box-shadow: none; } }
.flow-k { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--p-deep); }
.flow-v { font-size: .9375rem; font-weight: 500; line-height: 1.35; }

.svc-legacy { background: var(--p-ink); border-color: var(--p-ink); color: #fff; }
.svc-legacy > p { color: #D9D2E8; }
.svc-legacy .svc-num { color: #C9A7FB; }
.svc-legacy .tags li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #EDE7F7; }
.svc-legacy .tag-more { color: #E5D3FF; border-color: #A87CF0; }
.svc-legacy .tag-more:hover { background: rgba(255,255,255,.08); }
.svc-legacy .svc-cta { color: #E5D3FF; }
.sticky-note {
  position: absolute; top: 22px; right: 22px; transform: rotate(4deg); background: #FDF3C4; color: #3A2F05 !important;
  font-family: var(--f-mono); font-size: .8125rem; line-height: 1.35; padding: 10px 12px; border-radius: 4px; box-shadow: 0 8px 18px -10px rgba(0,0,0,.6);
  transition: transform .3s var(--ease);
}
.svc-legacy:hover .sticky-note { transform: rotate(-2deg) translateY(-2px); }
.svc-legacy .h3 { padding-right: 150px; }

.svc-consult {
  background: linear-gradient(125deg, var(--p-deep) 0%, var(--p) 60%, #9148F0 100%); border: 0; color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; row-gap: 14px; align-items: end;
}
.svc-consult > * { grid-column: 1; }
.svc-consult .btn { grid-column: 2; grid-row: 3 / span 2; align-self: end; }
.svc-consult .svc-num { color: #E6D6FE; }
.svc-consult > p { color: #F1E9FE; }
.h3-lg { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.03em; }
.badge-free { font-size: .9375rem; color: #fff !important; }
.badge-free strong { background: rgba(255,255,255,.16); padding: 2px 8px; border-radius: 6px; font-weight: 600; }


/* ---------- weird ---------- */
.weird { background: var(--lav); position: relative; overflow: hidden; }
.weird-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.weird-copy { display: grid; gap: 16px; justify-items: start; }
.weird-copy > p { color: var(--ink-2); max-width: 44ch; }
.weird-perfect { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--p) !important; letter-spacing: -.03em; line-height: 1; }
.bubbles { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }
.bubbles li {
  background: var(--surface); border: 1px solid var(--lav-2); border-radius: 18px 18px 18px 4px; padding: 12px 16px;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1rem, 1.4vw, 1.15rem); letter-spacing: -.01em; line-height: 1.3;
  box-shadow: 0 10px 24px -20px rgba(59, 7, 100, .5); transition: transform .3s var(--ease);
}
.bubbles li:nth-child(odd) { transform: rotate(-1.2deg); }
.bubbles li:nth-child(even) { transform: rotate(1deg); margin-left: 18px; }
.bubbles li:nth-child(3n) { background: var(--p-ink); color: #fff; border-color: var(--p-ink); border-radius: 18px 18px 4px 18px; }
.bubbles li:hover { transform: rotate(0) translateY(-2px); }


/* ---------- process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.step { position: relative; display: grid; align-content: start; gap: 10px; padding: 0 20px 0 0; }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong);
  font-size: .875rem; color: var(--p-deep); position: relative; z-index: 1; margin-bottom: 8px; transition: background-color .25s, color .25s, border-color .25s;
}
.step::before { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1px; background: var(--line-strong); }
.step:last-child::before { display: none; }
.step:hover .step-n { background: var(--p); color: #fff; border-color: var(--p); }
.step p { color: var(--muted); font-size: 1rem; }
.process-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 52px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.process-note { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -.015em; }


/* ---------- projects ---------- */
.projects { background: var(--surface); border-block: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project { display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .3s, box-shadow .3s; }
.project:hover { border-color: var(--line-strong); box-shadow: 0 18px 40px -30px rgba(59, 7, 100, .4); }
.project-media { aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--lav); position: relative; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project-media img { transform: scale(1.04); }
.project-ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; gap: 4px; padding: 16px;
  background: repeating-linear-gradient(135deg, var(--lav) 0 14px, #F8F1FF 14px 28px); color: var(--p-deep); font-family: var(--f-mono); font-size: .875rem;
  transition: transform .8s var(--ease);
}
.project:hover .project-ph { transform: scale(1.03); }
.project-ph strong { display: block; font-size: 1.1rem; font-weight: 500; }
.project-body { display: grid; gap: 12px; padding: 22px 24px 24px; align-content: start; }
.project-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.project-name { font-size: 1.45rem; }
.project-industry { font-size: var(--fs-small); color: var(--muted); }
.project-desc { color: var(--ink-2); }
.project-meta { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; font-size: .9375rem; margin: 0; }
.project-meta dt { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 3px; }
.project-meta dd { margin: 0; min-width: 0; }
.projects-empty { grid-column: 1 / -1; padding: 40px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); text-align: center; color: var(--muted); }


/* ---------- consult CTA ---------- */
.consult { background: var(--p-deep); color: #fff; padding-block: clamp(72px, 10vw, 140px); overflow: hidden; }
.consult::after {
  content: ""; position: absolute; z-index: -2; inset: auto -10% -60% 30%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(168, 85, 247, .55), rgba(168, 85, 247, 0));
}
.consult.glow-zone::before { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(216, 180, 254, .22), transparent 70%); }
.consult-inner { display: grid; gap: 22px; justify-items: start; }
.eyebrow-light { color: #E3D0FF; }
.consult-title { font-size: clamp(2.4rem, 6vw, 5.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; max-width: 16ch; }
.consult-text { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #EADCFF; max-width: 46ch; }
.consult-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.consult-small { color: #CDB4F8; font-size: var(--fs-small); }


/* ---------- enquiry ---------- */
.enquiry-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.enquiry-intro { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.enquiry-intro > p { color: var(--ink-2); max-width: 44ch; }
.checks { list-style: none; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--p); transform: rotate(45deg) translateY(-1px); }
.direct { display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.direct a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.direct a:hover { color: var(--p-deep); text-decoration: underline; }
.chat-hint {
  display: grid; gap: 2px; justify-items: start; text-align: left; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--lav-2); background: var(--lav); cursor: pointer;
  font-weight: 600; color: var(--p-deep); transition: border-color .2s;
}
.chat-hint .mono { font-weight: 400; color: var(--ink-2); }
.chat-hint .arr { display: inline-block; transition: transform .25s var(--ease); }
.chat-hint:hover { border-color: var(--p-bright); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3.4vw, 40px); min-width: 0; }
.prefill-note { background: var(--lav); border: 1px solid var(--lav-2); color: var(--p-ink); padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 20px; font-size: .9375rem; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; display: grid; gap: 18px; }
.legend { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--p-deep); padding: 0; margin-bottom: 4px; display: block; width: 100%; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .label { font-weight: 600; font-size: .9375rem; }
.opt { font-family: var(--f-mono); font-weight: 400; font-size: .75rem; color: var(--muted); margin-left: 4px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s, background-color .2s; appearance: none; -webkit-appearance: none;
}
textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235B21B6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:hover, select:hover, textarea:hover { border-color: #BFB2D6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--p); background: #fff; box-shadow: 0 0 0 4px rgba(124, 58, 237, .16); }
input::placeholder, textarea::placeholder { color: #9A96A6; }
[aria-invalid="true"] { border-color: var(--err) !important; background: var(--err-bg) !important; }
.err { color: var(--err); font-size: .875rem; font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.hint { color: var(--muted); font-size: .8125rem; }
.form-errors { background: var(--err-bg); border: 1px solid #F4C7C3; color: var(--err); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 20px; font-size: .9375rem; }
.form-errors ul { padding-left: 18px; margin-top: 4px; }
.form-errors a { color: inherit; }

.chips-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg);
  font-size: .9375rem; font-weight: 500; transition: background-color .2s, border-color .2s, color .2s;
}
.choice span::before { content: "+"; font-family: var(--f-mono); color: var(--p); width: 10px; }
.choice input:checked + span { background: var(--p); border-color: var(--p); color: #fff; }
.choice input:checked + span::before { content: "✓"; color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--p-bright); outline-offset: 2px; }
.choice:hover span { border-color: var(--p-bright); }
.chips-choice.is-invalid .choice span { border-color: var(--err); }

.dropzone {
  display: grid; gap: 4px; place-items: center; text-align: center; padding: 22px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md);
  background: var(--bg); cursor: pointer; position: relative; transition: border-color .2s, background-color .2s;
}
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--p); background: var(--lav); }
.dropzone:focus-within { border-color: var(--p); box-shadow: 0 0 0 4px rgba(124, 58, 237, .16); }
.dz-main { font-weight: 600; }
.dz-main u { color: var(--p-deep); text-underline-offset: 3px; }
.dz-sub { font-size: .75rem; color: var(--muted); }
.file-list { list-style: none; display: grid; gap: 6px; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: .875rem; min-width: 0; }
.file-list .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-list button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .8125rem; padding: 4px; flex-shrink: 0; }
.file-list button:hover { color: var(--err); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.btn-loading { display: none; align-items: center; gap: 10px; }
.is-loading .btn-label { display: none; }
.is-loading .btn-loading { display: inline-flex; }
.is-loading { pointer-events: none; opacity: .85; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { display: grid; gap: 14px; justify-items: start; padding: 12px 0; }
.form-success p { color: var(--ink-2); }
.success-mark { animation: pop .4s var(--ease) both; }
.form-note-error { color: var(--err); font-size: .9375rem; }


/* ---------- why ---------- */
.why-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.why-item { display: grid; gap: 10px; align-content: start; padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.why-item:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.why-item p { color: var(--muted); }
.why-item .h4::before { content: ""; display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--p); margin-bottom: 14px; }
.why-quote { background: linear-gradient(180deg, transparent, var(--lav)); }
.big-quote { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; line-height: 1.2; letter-spacing: -.015em; color: var(--ink) !important; }


/* ---------- faq ---------- */
.faq { background: var(--surface); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-head { display: grid; gap: 16px; justify-items: start; position: sticky; top: calc(var(--header-h) + 24px); }
.faq-head > p { color: var(--muted); }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary h3 { font-family: var(--f-display); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.accordion summary::after {
  content: ""; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%235B21B6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.accordion details[open] summary::after { transform: rotate(45deg); background-color: var(--lav); }
.accordion summary:hover h3 { color: var(--p-deep); }
.acc-body { padding: 0 48px 22px 0; color: var(--ink-2); display: grid; gap: 12px; }
.acc-body a { color: var(--p-deep); font-weight: 600; }
.tags-static li { background: var(--lav); border-color: var(--lav-2); color: var(--p-ink); }


/* ---------- contact ---------- */
.contact { padding-block: clamp(80px, 11vw, 160px) clamp(64px, 8vw, 110px); }
.contact-title { font-size: clamp(2.8rem, 8.6vw, 7.6rem); font-weight: 800; letter-spacing: -.045em; line-height: .95; max-width: 13ch; }
.contact-title em { color: var(--p); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.contact-copy { display: grid; gap: 14px; }
.contact-copy > p { font-size: 1.2rem; color: var(--ink-2); max-width: 40ch; }
.tell { font-family: var(--f-display); font-weight: 800; font-size: 2rem !important; color: var(--p) !important; letter-spacing: -.03em; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-list dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 1.125rem; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.contact-list a { text-decoration: none; }
.contact-list a:not(.ph):hover { color: var(--p-deep); text-decoration: underline; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 16px; }


/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D8D4E0; padding-block: 64px 28px; }
.site-footer .logo-word { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { max-width: 32ch; color: #B6B1C1; }
.footer-nav ul { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.footer-nav a { text-decoration: none; color: #E9E6EF; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #8E899B; }
.footer-co { display: grid; gap: 6px; align-content: start; }
.footer-co p:first-child { margin-bottom: 6px; }
.footer-co p { overflow-wrap: anywhere; }
.site-footer .ph { color: #E5D3FF; background: rgba(168, 85, 247, .15); border-color: rgba(168, 85, 247, .6); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; font-size: .875rem; color: #8E899B; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255,255,255,.1); }


/* ---------- chat ---------- */
.chat { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; }
.chat-launcher {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 14px 34px -14px rgba(42, 20, 84, .8);
  transition: transform .25s var(--ease), background-color .2s;
}
.chat-launcher:hover { transform: translateY(-2px); background: var(--p-deep); }
.cl-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #fff; }
.cl-icon svg path { fill: var(--p); }
.cl-icon svg circle { fill: #fff; }
.chat.is-open .chat-launcher { opacity: 0; pointer-events: none; transform: scale(.9); }

.chat-panel {
  position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 40px)); height: min(640px, calc(100dvh - 110px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(42, 20, 84, .55), 0 2px 6px rgba(42, 20, 84, .06);
  transform-origin: bottom right; animation: chatIn .32s var(--ease) both;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #FCF9FF, var(--surface)); }
.chat-id { display: flex; gap: 10px; align-items: center; min-width: 0; }
.chat-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--p); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; padding-bottom: 2px; flex-shrink: 0; }
.chat-title { font-size: 1.05rem; letter-spacing: -.01em; }
.chat-sub { font-size: .6875rem; color: var(--muted); margin-top: 2px; }
.chat-tools { display: flex; gap: 4px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--lav); color: var(--p-deep); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .9688rem; line-height: 1.45; animation: msgIn .28s var(--ease) both; overflow-wrap: anywhere; white-space: pre-line; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg-bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg-user { align-self: flex-end; background: var(--p); color: #fff; border-bottom-right-radius: 5px; }
.msg-typing { display: inline-flex; gap: 4px; align-items: center; padding: 14px 16px; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--p-bright); animation: typing 1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; } .msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.est { align-self: stretch; max-width: 100%; border-radius: 16px; border: 1px solid var(--lav-2); background: linear-gradient(180deg, #FCF8FF, var(--surface)); padding: 16px; display: grid; gap: 12px; animation: msgIn .3s var(--ease) both; }
.est-k { font-family: var(--f-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--p-deep); }
.est-tier { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.2; }
.est-range { font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; color: var(--p-deep); font-variant-numeric: tabular-nums; line-height: 1.1; }
.est-note { font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.est-sum { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; font-size: .8438rem; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.est-sum dt { color: var(--muted); }
.est-sum dd { margin: 0; font-weight: 500; }
.est-actions { display: grid; gap: 8px; }
.est-talk { text-align: center; margin-top: 4px; }
.chat-log { position: relative; }
.est-actions .btn { min-height: 44px; font-size: .9375rem; white-space: normal; text-align: center; }
.chat-options { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 16px 10px; max-height: 40%; overflow-y: auto; }
.chat-options:empty { display: none; }
.opt-btn {
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--lav-2); background: var(--surface); color: var(--p-deep); cursor: pointer;
  font-size: .875rem; font-weight: 600; line-height: 1.2; transition: background-color .2s, border-color .2s, color .2s; text-align: left;
}
.opt-btn:hover { background: var(--lav); border-color: var(--p-bright); }
.opt-btn[aria-pressed="true"] { background: var(--p); border-color: var(--p); color: #fff; }
.opt-btn.opt-done { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt-btn.opt-done:disabled { opacity: .45; cursor: not-allowed; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.chat-input input { min-height: 46px; border-radius: 999px; padding: 10px 16px; background: var(--bg); }
.chat-send { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--p); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.chat-send:hover { background: var(--p-deep); }


/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: 2; }
  .hero-visual svg { max-width: 460px; }
  .svc-web, .svc-app, .svc-custom, .svc-legacy, .svc-maint, .svc-ai { grid-column: span 6; }
  .svc-legacy .h3 { padding-right: 0; }
  .sticky-note { position: static; justify-self: start; align-self: flex-start; transform: rotate(-2deg); }
  .svc-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; padding: 0 0 28px; }
  .step .step-n { grid-row: span 2; margin: 0; }
  .step::before { top: 44px; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; }
  .step h3 { padding-top: 10px; }
  .enquiry-grid, .faq-grid, .weird-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .enquiry-intro, .faq-head { position: static; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-item, .why-item:not(:nth-child(3n+1)) { padding: 24px 24px 28px 0; border-left: 0; }
  .why-item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .section-head-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; --fs-body: 1rem; }
  .hero { padding-top: 20px; }
  .display { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .hero-ctas .btn { width: 100%; }
  .hero-visual svg { max-width: 380px; }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .path + .path { border-left: 0; border-top: 1px solid var(--line); }
  .path { padding: 16px 18px; }
  .path-link { font-size: 1.15rem; }
  .statement-foot { grid-template-columns: minmax(0, 1fr); }
  .statement-note { justify-self: start; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bento > .svc { grid-column: 1 / -1; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 4px; }
  .flow-step:nth-child(3) { padding-left: 0; }
  .flow-step:nth-child(3)::after { left: 0; }
  .sticky-note { position: static; justify-self: start; align-self: flex-start; transform: rotate(-2deg); }
  .svc-legacy .h3 { padding-right: 0; }
  .svc-consult { grid-template-columns: minmax(0, 1fr); }
  .svc-consult .btn { grid-column: 1; grid-row: auto; justify-self: stretch; white-space: normal; }
  .bubbles li:nth-child(even) { margin-left: 0; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-meta { grid-template-columns: 96px minmax(0, 1fr); }
  .consult-ctas .btn, .contact-ctas .btn { width: 100%; white-space: normal; text-align: center; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-item, .why-item:nth-child(even), .why-item:not(:nth-child(3n+1)) { padding: 22px 0; border-left: 0; }
  .why-quote { padding: 22px 16px !important; }
  .acc-body { padding-right: 0; }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-co { grid-column: 1 / -1; }
  .process-foot { padding: 20px; }
  .process-foot .btn { width: 100%; }

  /* chat becomes a full-height sheet on phones */
  .chat { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .chat-launcher { height: 52px; padding: 0 16px 0 10px; }
  .chat.is-open { inset: 0; right: 0; bottom: 0; }
  .chat.is-open .chat-launcher { display: none; }
  .chat-panel {
    position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0;
    padding-top: env(safe-area-inset-top, 0px); animation-name: sheetIn;
  }
  @keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } }
  .msg { max-width: 90%; }
}
@media (max-width: 380px) {
  .cl-text { display: none; }
  .chat-launcher { width: 56px; padding: 0; justify-content: center; }
}


/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .pulse { display: none; }
  .glow-zone::before { display: none; }
}
@media (hover: none) { .glow-zone::before { display: none; } }


/* =====================================================================
   MOTION — scroll reveals (driven by assets/motion.js)
   Active only when <html class="js-anim">; reduced-motion visitors never get it.
   ===================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-pop: cubic-bezier(.34, 1.4, .64, 1); }

.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--p-deep), var(--p), var(--p-bright));
  transform: scaleX(0); transform-origin: left center;
}

html.js-anim [data-rv] {
  transition:
    opacity .9s var(--ease-out) var(--d, 0s),
    translate 1.1s var(--ease-out) var(--d, 0s),
    scale 1.1s var(--ease-out) var(--d, 0s),
    filter .9s var(--ease-out) var(--d, 0s);
}
html.js-anim [data-rv]:not(.is-in) { opacity: 0; }
html.js-anim [data-rv="up"]:not(.is-in)   { translate: 0 34px; }
html.js-anim [data-rv="left"]:not(.is-in) { translate: -22px 0; }
html.js-anim [data-rv="card"]:not(.is-in) { translate: 0 56px; scale: .965; }
html.js-anim [data-rv="pop"]:not(.is-in)  { translate: 0 26px; scale: .86; }
html.js-anim [data-rv="step"]:not(.is-in) { translate: 0 30px; }
html.js-anim [data-rv="zoom"]:not(.is-in) { translate: 0 24px; scale: .9; filter: blur(6px); }
html.js-anim [data-rv="zoom"] { transition-duration: 1.2s, 1.6s, 1.6s, 1.2s; }
html.js-anim [data-rv="pop"] { transition-timing-function: var(--ease-out), var(--ease-pop), var(--ease-pop), var(--ease-out); }
html.js-anim .no-anim, html.js-anim .no-anim .wi { transition: none !important; }

/* headings: each word rises out of its own mask */
html.js-anim [data-rv="words"] { opacity: 1; }
.w { display: inline-block; overflow: clip; vertical-align: top; padding: .06em .02em .14em; margin: -.06em -.02em -.14em; }
html.js-anim [data-rv="words"] .wi {
  display: inline-block; translate: 0 112%; rotate: 4deg; transform-origin: left bottom;
  transition: translate 1s var(--ease-out), rotate 1s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--wi, 0) * 45ms);
}
html.js-anim [data-rv="words"].is-in .wi { translate: 0 0; rotate: 0deg; }
/* keep the purple underline under "solution." hidden until its word lands */
html.js-anim .display[data-rv] em::after { scale: 0 1; transform-origin: left; transition: scale .8s var(--ease-out) calc(var(--d, 0s) + .75s); }
html.js-anim .display[data-rv].is-in em::after { scale: 1 1; }

/* "care" gets crossed out after the headline has risen */
html.js-anim .statement-line .strike { transition-delay: .95s; }
html.js-anim .statement-line .nocare { transition-delay: 1.45s, 1.45s; }

/* project images wipe open, then settle */
html.js-anim .project[data-rv] .project-media { clip-path: inset(0 0 100% 0 round 0); transition: clip-path 1.2s var(--ease-out) calc(var(--d, 0s) + .15s); }
html.js-anim .project[data-rv].is-in .project-media { clip-path: inset(0 0 0 0 round 0); }
html.js-anim .project[data-rv] .project-ph, html.js-anim .project[data-rv] .project-media img { scale: 1.18; transition: scale 1.6s var(--ease-out) calc(var(--d, 0s) + .15s); }
html.js-anim .project[data-rv].is-in .project-ph, html.js-anim .project[data-rv].is-in .project-media img { scale: 1; }

/* process: the connecting line draws itself step by step */
html.js-anim .step[data-rv]::before { scale: 0 1; transform-origin: left center; transition: scale .9s var(--ease-out) calc(var(--d, 0s) + .35s); }
html.js-anim .step[data-rv].is-in::before { scale: 1 1; }
html.js-anim .step[data-rv] .step-n { scale: .6; transition: scale .7s var(--ease-pop) var(--d, 0s), background-color .25s, color .25s, border-color .25s; }
html.js-anim .step[data-rv].is-in .step-n { scale: 1; }
@media (max-width: 1020px) {
  html.js-anim .step[data-rv]::before { scale: 1 0; transform-origin: center top; }
  html.js-anim .step[data-rv].is-in::before { scale: 1 1; }
}

/* automation flow + legacy sticky note wait for their card */
html.js-anim .svc[data-rv] .flow-step { opacity: 0; translate: -12px 0; transition: opacity .6s var(--ease-out), translate .8s var(--ease-out); }
html.js-anim .svc[data-rv].is-in .flow-step { opacity: 1; translate: 0 0; }
html.js-anim .svc[data-rv].is-in .flow-step:nth-child(1) { transition-delay: calc(var(--d, 0s) + .35s); }
html.js-anim .svc[data-rv].is-in .flow-step:nth-child(2) { transition-delay: calc(var(--d, 0s) + .47s); }
html.js-anim .svc[data-rv].is-in .flow-step:nth-child(3) { transition-delay: calc(var(--d, 0s) + .59s); }
html.js-anim .svc[data-rv].is-in .flow-step:nth-child(4) { transition-delay: calc(var(--d, 0s) + .71s); }
html.js-anim .svc[data-rv] .sticky-note { opacity: 0; scale: .7; transition: opacity .4s var(--ease-out) calc(var(--d, 0s) + .6s), scale .7s var(--ease-pop) calc(var(--d, 0s) + .6s), transform .3s var(--ease); }
html.js-anim .svc[data-rv].is-in .sticky-note { opacity: 1; scale: 1; }

/* service tags ripple in */
html.js-anim .svc[data-rv] .tags li { opacity: 0; translate: 0 8px; transition: opacity .5s var(--ease-out), translate .6s var(--ease-out); }
html.js-anim .svc[data-rv].is-in .tags li { opacity: 1; translate: 0 0; }
html.js-anim .svc[data-rv].is-in .tags li:nth-child(1) { transition-delay: calc(var(--d, 0s) + .30s); }
html.js-anim .svc[data-rv].is-in .tags li:nth-child(2) { transition-delay: calc(var(--d, 0s) + .35s); }
html.js-anim .svc[data-rv].is-in .tags li:nth-child(3) { transition-delay: calc(var(--d, 0s) + .40s); }
html.js-anim .svc[data-rv].is-in .tags li:nth-child(4) { transition-delay: calc(var(--d, 0s) + .45s); }
html.js-anim .svc[data-rv].is-in .tags li:nth-child(5) { transition-delay: calc(var(--d, 0s) + .50s); }
html.js-anim .svc[data-rv].is-in .tags li:nth-child(n+6) { transition-delay: calc(var(--d, 0s) + .55s); }

/* big purple blocks: the glow blooms as the section arrives */
html.js-anim .consult::after { opacity: 0; scale: .7; transition: opacity 1.6s var(--ease-out), scale 2s var(--ease-out); }
html.js-anim .consult:has(.is-in)::after, html.js-anim .consult.lit::after { opacity: 1; scale: 1; }

/* launcher pops in after the hero */
html.js-anim .chat-launcher { opacity: 0; scale: .6; transition: transform .25s var(--ease), background-color .2s, opacity .5s var(--ease-out) 1.5s, scale .7s var(--ease-pop) 1.5s; }
html.js-anim.is-loaded .chat-launcher { opacity: 1; scale: 1; }
html.js-anim.is-loaded .chat.is-open .chat-launcher { opacity: 0; transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* ---------- legal page (legal.html) ---------- */
.legal { padding-block: 48px 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.035em; margin: 12px 0 8px; }
.legal section { padding-top: 48px; margin-top: 48px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.legal h2 { font-size: 1.8rem; }
.legal p, .legal li { color: var(--ink-2); max-width: 65ch; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal .todo { padding: 14px 16px; border: 1px dashed var(--p-bright); background: var(--lav); border-radius: 12px; font-family: var(--f-mono); font-size: .875rem; color: var(--p-deep); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
