:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #3D3D3A;
  --muted: #6B6B66;
  --line: #E8E8E3;
  --tint: #EFEFEB;
  --accent: #7C6CF6;
  --ok: #1F9D55;
  --ok-bg: #E5F6EC;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(10,10,10,.04), 0 8px 24px -8px rgba(10,10,10,.10);
  --shadow-lg: 0 2px 4px rgba(10,10,10,.04), 0 24px 60px -16px rgba(10,10,10,.22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); font-weight: 400; }
.center { text-align: center; margin-top: 32px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  font: 500 15px/1 var(--font);
  padding: 8px 8px 8px 22px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px -6px rgba(10,10,10,.5);
}
.btn .arrow {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 15px; transition: transform .2s ease;
}
.btn:hover { background: #262624; transform: translateY(-1px); }
.btn:hover .arrow { transform: translateX(2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { padding: 5px 5px 5px 16px; font-size: 14px; }
.btn--sm .arrow { width: 26px; height: 26px; font-size: 13px; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light .arrow { background: var(--ink); color: #fff; }
.btn--light:hover { background: #EDEDE9; }
.btn--block { width: 100%; padding: 8px 8px 8px 22px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { width: min(1120px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.logo svg { width: 26px; height: 26px; color: var(--ink); }
.nav__links { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; }
.nav__links a { text-decoration: none; font-size: 14px; color: var(--ink-2); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__toggle { display: none; }

/* Hero */
.hero { padding: 88px 0 24px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -64px 0 auto; height: 720px; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 30%, #ECE8FF 0%, transparent 70%),
    radial-gradient(35% 45% at 82% 22%, #FDE7F3 0%, transparent 70%),
    radial-gradient(40% 40% at 60% 75%, #E6EEFF 0%, transparent 70%);
  opacity: .8;
}
.hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px 6px 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #ECE8FF; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); margin-bottom: 20px; max-width: 15ch; letter-spacing: -0.04em; }
.hero h1 em { font-size: 1.08em; white-space: nowrap; }
.lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 52ch; }
.hero__cta { display: flex; gap: 12px; margin-top: 32px; justify-content: center; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin: 28px 0 0; }
.hero-stats div { display: grid; gap: 2px; align-content: start; position: relative; }
.hero-stats dt { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-stats dd { margin: 0; font-size: 13.5px; color: var(--muted); text-wrap: balance; }
.hero-stats__link a { text-decoration: none; }
.hero-stats__link a::after { content: ""; position: absolute; inset: -6px -8px; }
.hero-stats__link:hover dd { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Floating cards */
.card { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid rgba(10,10,10,.04); }
.card small { display: block; font-size: 12px; color: var(--muted); }
.card strong { font-size: 14px; font-weight: 600; }
.card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card__head > div { flex: 1; min-width: 0; line-height: 1.3; }
.dot-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.pill { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c); font-weight: 700; flex-shrink: 0; }
.avatar--sm { width: 32px; height: 32px; font-size: 14px; }


.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.steps em { margin-left: auto; font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.steps--compact { gap: 8px; font-size: 13px; }
.tick { width: 18px; height: 18px; border-radius: 50%; background: var(--ok-bg); position: relative; flex-shrink: 0; }
.tick::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tick--pending { background: #F1F1EE; }
.tick--pending::after { border: 0; width: 6px; height: 6px; left: 6px; top: 6px; border-radius: 50%; background: #C9C9C3; transform: none; }

/* Tools marquee */
.tools { padding: 48px 0 8px; text-align: center; }
.tools--band { border-block: 1px solid var(--line); padding: 28px 0; }
.tools--band .eyebrow { margin-bottom: 14px; }
.tools--band + .section { padding-top: 64px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 20px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #A3A39C; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--flush { padding-top: 24px; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.section__head--sm { margin-bottom: 32px; }
.section .section__head--sm h2 { font-size: clamp(24px, 2.6vw, 30px); }
.section h2, .dark h2, .cta-band h2 { font-size: clamp(30px, 4vw, 44px); }
.kicker { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: #ECE8FF; padding: 5px 12px; border-radius: 999px; letter-spacing: .01em; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Proof split */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split__text { display: grid; gap: 20px; justify-items: start; }
.split__text p { color: var(--muted); }
.photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8.5; background: #E9E6DF; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--split { aspect-ratio: 5 / 4; }
.photo--hero { aspect-ratio: 16 / 8; margin-bottom: 72px; }
.overlay { position: absolute; padding: 18px; width: min(320px, calc(100% - 32px)); }
.overlay--br { right: 5%; bottom: 6%; }
.overlay--bl { left: 5%; bottom: 8%; }
.overlay--tr { right: 5%; top: 8%; }
.kv { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13px; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.kv li:last-child { border: 0; padding: 0; }
.kv span { color: var(--muted); }
.score { color: var(--ok); }
.progress { height: 6px; border-radius: 999px; background: #F1F1EE; margin: -4px 0 14px; overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--p); background: var(--accent); border-radius: inherit; }
.notif-stack { display: grid; gap: 10px; padding: 0; width: min(300px, calc(100% - 32px)); }
.notif { display: flex; align-items: center; gap: 12px; padding: 14px; line-height: 1.3; border-radius: 16px; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.chart i { flex: 1; height: var(--h); border-radius: 5px; background: linear-gradient(#C9DAFF, #3B6CF6); }

/* What we build cards */
.work { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.work__go { position: absolute; left: 14px; bottom: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; transition: transform .2s ease; }
.work:hover .work__go { transform: translate(2px, -2px); }
.work h3 { font-size: 18px; }
.work p { font-size: 14.5px; color: var(--muted); }

/* n8n-style workflow canvas */
.flow {
  position: relative; aspect-ratio: 4 / 3; margin-bottom: 12px; display: grid; place-items: center;
  border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  background: #F4F4F1 radial-gradient(circle, #D3D3CC 1px, transparent 1.3px) 0 0 / 16px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.work:hover .flow { border-color: #CFC8FB; box-shadow: var(--shadow); }
.flow svg { width: 100%; height: auto; padding: 4px 6px 28px; overflow: visible; }
.flow .box { fill: #fff; stroke: #D6D6D0; stroke-width: 1; filter: drop-shadow(0 2px 3px rgba(10,10,10,.08)); }
.flow text { font: 500 9.5px var(--font); fill: var(--ink-2); text-anchor: middle; letter-spacing: 0; }
.flow .lt { font-size: 12px; font-weight: 700; fill: #fff; }
.flow .br { font-size: 8.5px; fill: var(--muted); }
.flow .br--t { fill: var(--ok); }
.flow .e { fill: none; stroke: #BDBDB6; stroke-width: 1.5; }
.flow .p {
  fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: .14 .86; stroke-dashoffset: 1;
  animation: flow-pulse 2.4s linear infinite; animation-delay: var(--d, 0s);
}
@keyframes flow-pulse { to { stroke-dashoffset: 0; } }

/* Emphasis underline */
.mark { position: relative; display: inline-block; color: var(--ink); font-weight: 600; white-space: nowrap; z-index: 0; }
.mark::before {
  content: ""; position: absolute; left: -3px; right: -3px; bottom: 1px; height: 45%; z-index: -1;
  background: #ECE8FF; border-radius: 4px; transform: scaleX(0); transform-origin: left;
  transition: transform .7s cubic-bezier(.2,.7,.2,1) .35s;
}
.mark svg { position: absolute; left: -2px; right: -2px; bottom: -9px; width: calc(100% + 4px); height: 12px; overflow: visible; }
.mark path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.65,0,.35,1) .35s; }
.is-in .mark::before, html:not(.js) .mark::before { transform: scaleX(1); }
.is-in .mark path, html:not(.js) .mark path { stroke-dashoffset: 0; }
.mark--soft { font-weight: inherit; }
.mark--soft::before { display: none; }
.mark--soft path { stroke-width: 2.5; opacity: .55; }

/* Case study card */
.case { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; margin-bottom: 48px; }
.case__text { display: grid; gap: 16px; justify-items: start; }
.case__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: #ECE8FF; padding: 6px 12px; border-radius: 999px; }
.case__who { font-weight: 600; font-size: 17px; display: grid; gap: 2px; }
.case__who span { font-weight: 400; font-size: 14.5px; color: var(--muted); }
.case h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; }
.case__text > p:not(.case__who) { color: var(--muted); }
.case .meta { justify-content: flex-start; margin: 4px 0 8px; gap: 8px; }
.case .meta div { padding: 8px 14px; }
.shot { margin: 0; display: grid; gap: 12px; }
.shot__frame { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.shot__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #E4E4DF; }
.shot__bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 13px; color: var(--muted); }

/* Before / after receipt */
.receipt { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; max-width: 940px; margin: 0 auto; }
.rc { border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); }
.rc--before { background: #FFF6F5; border: 1px solid #F6D9D5; }
.rc--after { background: #F2FAF5; border: 1px solid #CDEBD7; }
.rc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rc__head small { font-size: 12px; color: var(--muted); }
.rc__tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.rc--before .rc__tag { background: #FDE2DE; color: #B42318; }
.rc--after .rc__tag { background: var(--ok-bg); color: var(--ok); }
.rc__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14.5px; }
.rc__rows li { display: flex; align-items: baseline; gap: 10px; color: var(--ink-2); }
.rc__rows li::after { content: ""; order: 1; flex: 1; border-bottom: 1.5px dotted #CFCFC8; transform: translateY(-4px); }
.rc__rows b { order: 2; font: 600 13.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.rc--before .rc__rows b { color: #B42318; }
.rc--after .rc__rows b { color: var(--ok); }
.rc__total { display: flex; align-items: baseline; justify-content: space-between; border-top: 1.5px solid rgba(10,10,10,.1); padding-top: 16px; margin-top: auto; }
.rc__total span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rc__total b { font: italic 400 clamp(40px, 5vw, 56px)/1 var(--serif); letter-spacing: -0.02em; }
.rc--before .rc__total b { color: #B42318; }
.rc__total .win { color: var(--ink); }
.rc__foot { font-size: 14px; color: var(--muted); min-height: 2lh; }
.rc__foot b { color: var(--ink); }
.strike { position: relative; }
.strike::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 3px; border-radius: 2px; background: #B42318;
  transform: scaleX(0) rotate(-6deg); transform-origin: left; transition: transform .6s cubic-bezier(.65,0,.35,1) .6s;
}
.is-in .strike::after, html:not(.js) .strike::after { transform: scaleX(1) rotate(-6deg); }
.rc__arrow { align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 18px; box-shadow: var(--shadow); }

/* Founder */
.founder-lg { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; max-width: 980px; margin: 0 auto; }
.founder-lg__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: #E4E4E1; }
.founder-lg__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-lg__body h3 { font-size: 28px; }
.founder-lg__body .muted { margin: 4px 0 20px; }
.founder-lg__body p:not(.muted) { color: var(--ink-2); margin-bottom: 14px; }
.founder-lg__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip-link {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  overflow-wrap: anywhere; transition: border-color .2s ease;
}
.chip-link svg { width: 16px; height: 16px; flex: none; }
.chip-link:hover { border-color: var(--ink); }
.contact__alt { color: var(--muted); font-size: 15px; margin-top: 12px; }
.contact__alt a { color: var(--ink); text-underline-offset: 3px; }

/* Dark */
.dark { background: #0E0E0D; color: #fff; padding: 96px 0; }
.dark h2 { text-align: center; margin-bottom: 48px; }
.dcard { background: #1A1A18; border: 1px solid #2A2A27; border-radius: var(--radius); padding: 24px; }
.dcard h3 { font-size: 17px; margin-bottom: 10px; }
.dcard p { color: #A3A39C; font-size: 14.5px; }
.dcard { display: flex; flex-direction: column; }
.dcard .code { margin-top: auto; background: #0E0E0D; border: 1px solid #2A2A27; font-size: 12px; padding: 10px 12px; color: #D4D4CE; }
.dcard p { margin-bottom: 14px; }
.dcard .kv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dcard .kv-row > span:first-child { color: #8A8A84; }
.dcard .muted-strike { color: #6B6B66; }
.dcard .uptime { display: flex; gap: 2px; }
.dcard .uptime i { width: 4px; height: 12px; border-radius: 1px; background: #7EE2A8; }
.dcard .uptime i.dim { opacity: .35; }
.dcard .tree { color: #A3A39C; }
.dcard .tree > span { white-space: pre; }
.dcard .lock { width: 11px; height: 11px; vertical-align: -1px; margin-left: 2px; fill: none; stroke: #7EE2A8; stroke-width: 2.2; stroke-linecap: round; }

/* Process */
.process { list-style: none; padding: 0; margin: 0; }
.process > li { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); overflow: hidden; }
.process__img { display: block; width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: -24px -24px 20px; }
.step { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.process h3 { font-size: 17px; margin: 14px 0 8px; }
.process p { color: var(--muted); font-size: 14.5px; }

/* Contact */
.contact { padding-bottom: 32px; }
.contact__wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 64px 24px; display: grid; place-items: center; min-height: 640px; background: #DCD7C9; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.form, .form-success { position: relative; width: min(560px, 100%); padding: 28px; display: grid; gap: 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.form-success { text-align: center; justify-items: center; padding: 48px 28px; }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--muted); }
.form-success[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.form input, .form textarea, .form select {
  font: 400 15px/1.4 var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; min-height: 104px; }
.form select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236B6B66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px #ECE8FF; }
.form [aria-invalid="true"] { border-color: #D94646; }
.form__status { font-size: 13px; color: #B42323; text-align: center; }
.form__status:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Sub-pages */
.page-head { padding: 88px 0 48px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.page-head h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.04em; max-width: 18ch; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 12px 0 0; }
.meta div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 18px; text-align: left; }
.meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.meta dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }

.feature { margin-bottom: 72px; scroll-margin-top: 96px; }
.feature__text { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 28px; align-items: start; }
.feature__text h2 { font-size: clamp(24px, 2.8vw, 32px); }
.feature__text p { color: var(--muted); }
.duo { background: var(--bg); padding: 32px; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.duo .kicker { background: rgba(255,255,255,.7); }
.duo h3 { font-size: 24px; }
.duo p { color: var(--ink-2); font-size: 15px; }
.code { margin-top: 8px; width: 100%; background: var(--ink); color: #E8E8E3; border-radius: 14px; padding: 14px 16px; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; display: grid; }
.code .ok { color: #7EE2A8; }

.tile { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tile h3 { display: flex; align-items: center; gap: 12px; font-size: 17px; margin-bottom: 10px; }
.tile p { font-size: 14.5px; color: var(--muted); }
.tile .link { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 16px 0 0; list-style: none; }
.tags li { font-size: 12px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c); flex-shrink: 0; }
.ic svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.prose { max-width: 720px; padding-bottom: 96px; display: grid; gap: 56px; }
.prose section { display: grid; gap: 16px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); }
.prose p { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
/* Case-study header: LeftClick's case-study grammar, not the landing hero. Row 2's main column sits on the article's 720 column. */
.cs-top { padding-top: 32px; margin-bottom: 72px; display: grid; gap: 56px; }
.back { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); }
.back .arrow { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; transition: transform .2s ease; }
.back:hover .arrow { transform: translateX(-2px); }
.cs-cover { display: grid; grid-template-columns: 1fr 2fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 10px; }
.cs-cover__card { grid-row: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px 30px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 32px; }
.cs-cover__title { display: grid; gap: 14px; justify-items: start; }
.cs-cover__sub { display: block; font-weight: 400; color: var(--muted); }
.cs-cover__card h1 { font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -0.03em; line-height: 1.12; }
.cs-cover__shot { grid-column: 2; grid-row: 1 / span 2; grid-template-rows: subgrid; gap: 10px; }
.cs-body { display: grid; grid-template-columns: 1fr 720px 1fr; column-gap: 24px; align-items: start; }
.cs-side { background: var(--tint); border-radius: var(--radius); padding: 20px; }
.cs-side dl { margin: 0; display: grid; gap: 14px; }
.cs-side dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.cs-side dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; }
.cs-side .tags { margin-top: 18px; border-top: 1px solid #DEDED8; }
.cs-side .tags li { background: var(--surface); }
.cs-main { display: grid; gap: 20px; }
.cs-name { font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; gap: 6px; }
.cs-name span { font-size: 16px; letter-spacing: 0; }
.cs-main .lede { max-width: none; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.cs-out { background: #0E0E0D; color: #fff; border-radius: var(--radius); padding: 26px 30px 28px; }
.cs-out__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #A3A39C; }
.cs-out dl { margin: 10px 0 0; }
.cs-out dl div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); align-items: baseline; }
.cs-out dt { font-size: 13px; color: #A3A39C; }
.cs-out dd { margin: 0; font-size: 16px; }
.cs-out__model { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-top: 18px; }
.cs-out__model .cs-out__label { flex-basis: 100%; }
.cs-out__hours { font-size: 16px; color: #A3A39C; }
.cs-out__hours b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.cs-out .strike::after { background: #FF8A7A; }
.cs-out .link { margin-left: auto; font-size: 14px; color: #fff; }
@media (max-width: 1180px) {
  .cs-body { grid-template-columns: minmax(0, 720px); justify-content: center; row-gap: 32px; }
  .cs-side dl { grid-template-columns: repeat(4, auto); gap: 14px 24px; }
}
.prose .rc__foot { font-size: 14px; line-height: 1.6; color: var(--muted); }

.prose h3 { font-size: 20px; margin-top: 8px; }
.cs-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.cs-list ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; list-style: circle; font-size: 15.5px; }
.cs-list li::marker { color: var(--muted); }
.cs-list b, .prose p b { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats div { background: var(--surface); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.stats b { font: italic 400 36px/1 var(--serif); letter-spacing: -0.02em; }
.stats span { font-size: 13.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.calc { width: 100%; border-collapse: collapse; font-size: 14px; }
.calc th, .calc td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.calc th:first-child, .calc td:first-child { text-align: left; white-space: normal; }
.calc th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.calc td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.calc tfoot td { font-weight: 600; color: var(--ink); }
.calc tfoot tr:last-child td { border-bottom: 0; color: var(--ok); }
.cs-note { font-size: 14px !important; color: var(--muted) !important; }
.calc--text { min-width: 600px; }
.calc--text th, .calc--text td { text-align: left; white-space: normal; vertical-align: top; }
.prose .process p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.cs-fig { display: grid; gap: 10px; }
.cs-fig img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cs-fig figcaption { font-size: 13.5px; color: var(--muted); }
.flow--arch { aspect-ratio: auto; margin-bottom: 0; }
.flow--arch svg { max-width: 480px; }
.cs-stat { font-family: var(--serif); font-style: italic; font-size: clamp(44px, 6vw, 64px) !important; line-height: 1 !important; color: var(--ink) !important; }

.cta-band { background: #0E0E0D; color: #fff; text-align: center; padding: 96px 0; }
.cta-band .container { display: grid; justify-items: center; gap: 16px; }
.cta-band p { color: #A3A39C; margin-bottom: 12px; }

/* FAQ */
.faq { max-width: 760px; }
.faq h2 { text-align: center; margin-bottom: 40px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 22px 0; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 64px; }
.footer--flush { margin-top: 0; padding-top: 8px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer__inner > div { display: grid; gap: 14px; align-content: start; justify-items: start; }
.footer__inner p { color: var(--muted); font-size: 14px; max-width: 30ch; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.footer nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.footer__base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer--flush .footer__base { margin-top: 0; border-top: 0; }
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: var(--ink); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee__track [aria-hidden] { display: none; }
  .btn, .btn .arrow, .work__go, .flow { transition: none; }
  .flow .p { animation: none; stroke-dasharray: none; stroke-opacity: .55; stroke-width: 1.5; }
  .mark::before, .mark path, .strike::after { transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .grid--4, .grid--industries { grid-template-columns: repeat(2, 1fr); }
  .split, .case { grid-template-columns: 1fr; gap: 32px; }
  .receipt { grid-template-columns: 1fr; gap: 12px; }
  .rc__arrow { justify-self: center; transform: rotate(90deg); }
  .cs-cover { grid-template-columns: 1fr; }
  .cs-cover { row-gap: 16px; }
  .cs-cover__shot { grid-column: 1; grid-row: auto; grid-template-rows: auto; }
  .cs-cover__card { gap: 40px; }
  .founder-lg { grid-template-columns: 300px 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__inner > div { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 64px 0 auto; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav__links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__inner { gap: 12px; } /* keeps logo, button and menu on one line at 320px */
  .nav__inner > .btn { margin-left: auto; }
  .nav__toggle { display: grid; gap: 5px; place-content: center; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 0; }
  .nav__toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: .2s; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

  .hero { padding-top: 56px; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
  .hero-stats dt { font-size: clamp(22px, 7vw, 26px); }
  .case .meta { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .process__img { aspect-ratio: 2 / 1; }

  .section, .dark, .cta-band { padding: 72px 0; }
  .tools--band { padding: 20px 0; }
  .tools--band + .section { padding-top: 48px; }
  .section--flush { padding-top: 8px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--3 { gap: 32px; }
  .grid--3.grid--industries { gap: 12px; }
  .rc { padding: 22px; }
  .rc__head { flex-wrap: wrap; row-gap: 8px; }
  .rc__tag, .rc__head small { white-space: nowrap; }
  .rc__rows li::after { min-width: 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cs-top { padding-top: 16px; gap: 40px; margin-bottom: 56px; }
  .cs-cover__card { padding: 18px 20px 24px; }
  .cs-name { font-size: 26px; }
  .cs-side dl { grid-template-columns: 1fr 1fr; }
  .cs-out { padding: 22px 20px 24px; }
  .cs-out dl div { grid-template-columns: 84px 1fr; gap: 12px; }
  .cs-out .link { margin-left: 0; }
  .founder-lg { grid-template-columns: 1fr; gap: 28px; }
  .founder-lg__photo { width: 100%; aspect-ratio: 1 / 1; }
  .founder-lg__photo img { object-position: 50% 30%; }
  .feature { margin-bottom: 56px; }
  .feature__text { grid-template-columns: 1fr; gap: 12px; }
  .photo:not(.photo--hero) { aspect-ratio: auto; display: flex; flex-direction: column; background: transparent; overflow: visible; }
  .photo:not(.photo--hero) img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
  .overlay { position: relative; inset: auto; width: calc(100% - 24px); margin: -48px auto 0; }
  .notif-stack { width: calc(100% - 24px); }
  .photo--hero { aspect-ratio: 4 / 3; margin-bottom: 48px; }
  .page-head { padding: 56px 0 32px; }
  .prose { gap: 40px; padding-bottom: 72px; }
  .form__row { grid-template-columns: 1fr; }
  .form input, .form textarea, .form select { font-size: 16px; } /* 16px stops iOS zooming in on focus */
  .contact__wrap { padding: 120px 12px 12px; min-height: 0; }
  .form { padding: 20px; }
}
