/* ==========================================================================
   Prumo · styles
   Tech palette: white, ink and mint. Headings in JetBrains Mono, body in Geist.
   ========================================================================== */

:root {
  /* Ink: text and dark panels */
  --ink: #0b1a17;
  --ink-900: #0e211c;
  --ink-850: #122a24;
  --ink-800: #143029;
  --fg: #0b1a17;           /* text and lines on the page (light in dark mode) */
  --header-bg: rgba(255, 255, 255, 0.9);
  --glass: rgba(255, 255, 255, .88);

  /* Lights */
  --white: #ffffff;
  --paper: #f5f8f7;
  --mist: #f5f8f7;
  --mist-2: #fbfdfc;
  --mist-3: #e8f1ee;

  /* Accent */
  --mint: #19e3b1;        /* buttons (with ink text), lines, highlights */
  --mint-2: #0fc79a;
  --mint-light: #6ff2cf;  /* accent text on dark */
  --mint-soft: #e5faf3;
  --teal: #007a5e;        /* accent text on white (5.3:1) */

  /* Text */
  --text-on-dark: #eef5f2;
  --muted-on-dark: #9fb3ad;
  --text-on-light: #0b1a17;
  --muted-on-light: #4f5d59;

  --line-dark: rgba(238, 245, 242, 0.12);
  --line-light: rgba(11, 26, 23, 0.12);
  --line-input: rgba(238, 245, 242, 0.38); /* form controls need 3:1 (WCAG 1.4.11) */
  --line-strong: #7f8c88;                   /* same 3:1 rule on white */
  --error: #e08a6a;

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 350;
  line-height: 1.65;
  color: var(--text-on-light);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  transition: opacity .25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 2px; }

.i18n-pending body { opacity: 0; transition: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--font-mono); }
em { font-style: normal; font-weight: inherit; }
.small-caps { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--mint); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* Subtle film grain on dark sections */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 600; font-size: 14px; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; transition: transform .45s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: #46eac2; box-shadow: 0 10px 30px rgba(25, 227, 177, .35); }
.btn-ghost { border-color: var(--fg); background: transparent; color: var(--fg); }
.btn-ghost:hover { color: var(--white); background: var(--fg); }
.approach .btn-ghost { color: var(--text-on-dark); border-color: var(--mint-light); }
.approach .btn-ghost:hover { color: var(--ink); background: var(--mint); border-color: var(--mint); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Scroll progress (plumb line) ---------- */
.plumb-progress {
  position: fixed; top: 0; right: 18px; width: 1px; height: 100vh; z-index: 40;
  background: rgba(11, 26, 23, 0.22); pointer-events: none;
}
.plumb-progress span {
  position: absolute; top: 0; left: 0; width: 1px; height: 100%;
  background: var(--mint); transform-origin: top; transform: scaleY(var(--progress, 0));
}
@media (max-width: 900px) { .plumb-progress { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--text-on-light);
  transition: border-color .4s;
  border-bottom: 1px solid transparent;
}
/* The blur sits on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile menu and collapse it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0; transition: opacity .4s;
}
.site-header.is-scrolled::before, .nav-open .site-header::before { opacity: 1; }
.site-header.is-scrolled { border-bottom-color: var(--line-light); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 15px; height: 21px; overflow: visible; }
.brand-mark line { stroke: currentColor; stroke-width: 1.4; }
.brand-mark path { fill: var(--mint); }
.brand-word { font-family: var(--font-mono); font-weight: 800; font-size: 23px; line-height: 1; letter-spacing: -0.03em; text-transform: lowercase; }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 34px; align-items: center; }
.nav-list a:not(.btn) { font-size: 14px; color: var(--muted-on-light); position: relative; transition: color .2s; }
.nav-list a:not(.btn):hover { color: var(--text-on-light); }
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }

/* Language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
  font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--text-on-light);
  transition: border-color .2s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--teal); }
.lang-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px; padding: 6px;
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(11, 26, 23, .12);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.lang-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease), visibility 0s; }
.lang-menu button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: none; border: 0; border-radius: 2px; cursor: pointer; text-align: left;
  font-size: 15px; color: var(--muted-on-light);
}
.lang-menu button:hover { background: var(--paper); color: var(--text-on-light); }
.lang-menu button[aria-current="true"] { color: var(--teal); font-weight: 500; }
.lang-menu button[aria-current="true"]::after { content: ""; width: 6px; height: 6px; background: var(--mint); transform: rotate(45deg); }

.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav-open .nav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .header-inner { gap: 10px; }
  .header-cta { display: none; }
  .lang { margin-left: auto; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); margin: 0;
    background: var(--white); padding: 24px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain;
    z-index: 1;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .4s var(--ease), visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header { border-bottom-color: var(--line-light); }
  .nav-open .site-header::before { background: var(--ink); }
  .nav-open .site-header { border-bottom-color: var(--line-dark); }
  .nav-open .brand-word { color: var(--text-on-dark); }
  .nav-open .brand-mark line { stroke: var(--text-on-dark); }
  .nav-open .lang-btn, .nav-open .nav-toggle { color: var(--text-on-dark); border-color: rgba(238, 245, 242, .3); background: transparent; }
  .nav-open .nav-toggle span { background: var(--text-on-dark); }
  /* Menu panel: the site's own voice. Dark, monospace, numbered, staggered in. */
  .nav { background: var(--ink); color: var(--text-on-dark); padding-top: 18px; }
  .nav::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(600px 300px at 90% 0%, rgba(25, 227, 177, .14), transparent 70%),
      linear-gradient(to right, rgba(238, 245, 242, .04) 1px, transparent 1px) 0 0 / 64px 64px; }
  .nav-list { position: relative; flex-direction: column; align-items: stretch; gap: 0; counter-reset: navi; }
  .nav-list li { border-bottom: 1px solid var(--line-dark); counter-increment: navi;
    opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
  .nav-open .nav-list li { opacity: 1; transform: none; }
  .nav-open .nav-list li:nth-child(2) { transition-delay: .04s; } .nav-open .nav-list li:nth-child(3) { transition-delay: .08s; }
  .nav-open .nav-list li:nth-child(4) { transition-delay: .12s; } .nav-open .nav-list li:nth-child(5) { transition-delay: .16s; }
  .nav-open .nav-list li:nth-child(6) { transition-delay: .2s; } .nav-open .nav-list li:nth-child(7) { transition-delay: .24s; }
  .nav-open .nav-list li:nth-child(8) { transition-delay: .3s; }
  .nav-list a:not(.btn) { display: flex; align-items: baseline; gap: 14px; padding: 18px 0;
    font-family: var(--font-mono); font-size: clamp(24px, 7vw, 30px); font-weight: 700; letter-spacing: -0.03em; color: var(--text-on-dark); }
  .nav-list li:not(.nav-cta-mobile) a:not(.btn)::before { content: counter(navi, decimal-leading-zero); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--mint-light); min-width: 22px; }
  .nav-list a:not(.btn)::after { display: block; content: "→"; position: static; margin-left: auto; height: auto; width: auto; background: none; transform: none; color: var(--mint-light); font-size: 20px; opacity: .5; transition: transform .3s var(--ease), opacity .3s; }
  .nav-list a:not(.btn):active::after, .nav-list a:not(.btn):hover::after { transform: translateX(4px); opacity: 1; }
  .nav-list a:not(.btn):hover { color: var(--mint-light); }
  .nav-cta-mobile { display: block; border: 0 !important; padding-top: 28px; }
  .nav-cta-mobile .btn { width: 100%; min-height: 56px; font-size: 15px; }
  @media (prefers-reduced-motion: reduce) { .nav-list li { transition: none; opacity: 1; transform: none; } }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--white);
  color: var(--text-on-light);
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(64px, 8vw, 110px);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000 10%, transparent 70%);
  opacity: .6;
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px; border-radius: 999px; background: var(--mint-soft);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--teal);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(25, 227, 177, .25); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(25, 227, 177, 0); } }

.hero-title {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: clamp(36px, 4.6vw, 66px);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.05em;
}
.hero-title em { color: var(--teal); }
.hero-lede { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted-on-light); }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Geometric shapes: rounded diamonds in mint, echoing the plumb bob */
.hero-visual { position: relative; height: clamp(420px, 46vw, 600px); display: flex; justify-content: center; }
.hero-shapes { position: absolute; inset: 0; pointer-events: none; transform: translateY(calc(var(--p, 0) * 80px)); }
.shape { position: absolute; border-radius: 22%; transform: rotate(45deg); }
.shape.s1 { width: 62%; aspect-ratio: 1; left: 22%; top: 30%; background: linear-gradient(135deg, #8af5d8 0%, var(--mint) 45%, #0bb486 100%); box-shadow: 0 40px 90px rgba(15, 199, 154, .35); animation: drift 14s ease-in-out infinite; }
.shape.s2 { width: 36%; aspect-ratio: 1; left: 4%; top: 6%; background: linear-gradient(135deg, rgba(229, 250, 243, .2), rgba(111, 242, 207, .75)); animation: drift 18s ease-in-out infinite reverse; }
.shape.s3 { width: 18%; aspect-ratio: 1; right: 4%; top: 12%; border: 2px solid var(--mint); background: transparent; animation: drift 11s ease-in-out infinite; }
@keyframes drift { 50% { transform: rotate(45deg) translate(10px, -14px); } }

.plumb { height: 100%; width: auto; overflow: visible; position: relative; z-index: 1; }
.plumb-line { stroke: var(--fg); stroke-width: 1.4; }
.plumb-knot { fill: var(--fg); }
.plumb-swing { cursor: grab; touch-action: none; }
.is-dragging, .is-dragging * { cursor: grabbing !important; user-select: none; }
.plumb-hit { fill: transparent; }
.plumb-hint { margin-top: 6px; font-family: var(--font-sans); font-style: normal; font-size: 12px; color: var(--muted-on-light); }
@media (hover: none) { .plumb-hint { display: none; } }
.plumb-axis { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; z-index: 1; border-left: 1.5px dashed rgba(11, 26, 23, 0.35); }
.plumb-readout {
  position: absolute; right: 0; bottom: 6%; z-index: 2;
  display: flex; flex-direction: column; gap: 4px; min-width: 168px;
  padding: 14px 18px; border-radius: 10px;
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-light); box-shadow: 0 18px 50px rgba(11, 26, 23, .12);
}
.plumb-readout span { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-on-light); }
.plumb-readout strong { font-family: var(--font-mono); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.04em; color: var(--fg); font-variant-numeric: tabular-nums; }
.plumb-readout.is-true strong { color: var(--teal); }
.tilt-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 9px 12px;
  border-radius: 6px; border: 2px solid var(--fg); background: var(--white); cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--fg);
}
.tilt-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-actions .btn { width: 100%; min-height: 56px; }
  /* The pendulum sits below the buttons on phones, with its live readout. */
  .hero-visual { height: 340px; margin-top: 16px; }
  .shape.s1 { width: 54%; left: 26%; top: 34%; }
  .shape.s2 { width: 32%; left: 2%; top: 8%; }
  .plumb-readout { right: 0; bottom: 8px; min-width: 0; }
  .plumb-axis { display: block; }
}
@media (min-width: 560px) and (max-width: 900px) {
  .hero-actions { grid-template-columns: 1fr 1fr; }
  .hero-visual { height: 400px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(84px, 11vw, 150px) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em;
}
.section-kicker::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .35; }
.section-title {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.04em;
}
.section-lede { margin-top: 24px; font-size: clamp(17px, 1.4vw, 19px); max-width: 38em; }

/* Light sections: white and warm off-white alternate */
.services, .faq { background: var(--white); color: var(--text-on-light); }
.results { background: var(--paper); color: var(--text-on-light); }
.services .section-lede { color: var(--muted-on-light); }
.services .section-kicker, .results .section-kicker, .faq .section-kicker, .contact .section-kicker { color: var(--teal); }
.approach .section-kicker { color: var(--mint-light); }
.services .section-title em, .results .section-title em, .faq .section-title em { color: var(--teal); }


/* ---------- Services (sticky stacking cards) ---------- */
.service-stack { display: grid; gap: clamp(20px, 3vw, 32px); }
.service-card {
  --cover: 0;
  position: sticky; top: calc(var(--header-h) + 24px + var(--i, 0) * 14px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "top top" "title list" "text list";
  column-gap: clamp(32px, 6vw, 96px); row-gap: 16px; align-content: start;
  min-height: min(520px, calc(100vh - var(--header-h) - 80px)); min-height: min(520px, calc(100svh - var(--header-h) - 80px));
  padding: clamp(28px, 4.5vw, 64px);
  background: var(--paper); color: var(--text-on-light);
  border: 1px solid var(--line-light); border-radius: 6px;
  box-shadow: 0 -18px 50px rgba(11, 26, 23, .08);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--cover) * 0.06));
  will-change: transform;
  overflow: hidden;
}
.service-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--ink);
  opacity: calc(var(--cover) * 0.35);
}
.service-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(25, 227, 177, .16), transparent 45%);
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }
.service-card:nth-child(1) { --i: 0; }
.service-card:nth-child(2) { --i: 1; }
.service-card:nth-child(3) { --i: 2; }
.service-card:nth-child(4) { --i: 3; }
.service-card.is-dark { background: var(--ink-800); color: var(--text-on-dark); border-color: rgba(111, 242, 207, .18); }
.service-card:nth-child(3) { background: var(--mist-3); }
.service-card:nth-child(4) { background: var(--ink-900); }

.service-top { grid-area: top; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: clamp(24px, 4vw, 56px); }
.service-index { font-family: var(--font-mono); font-weight: 800; font-size: clamp(44px, 6vw, 80px); line-height: .9; letter-spacing: -0.05em; color: var(--teal); }
.is-dark .service-index { color: var(--mint-light); }
.service-icon { width: clamp(44px, 5vw, 64px); height: auto; fill: none; stroke: var(--teal); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
.is-dark .service-icon { stroke: var(--mint-light); }
.service-card h3 { grid-area: title; font-family: var(--font-mono); font-size: clamp(24px, 2.8vw, 36px); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; align-self: end; }
.service-card > p { grid-area: text; color: var(--muted-on-light); max-width: 32em; }
.is-dark > p { color: var(--muted-on-dark); }
.service-list { grid-area: list; align-self: end; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.is-dark .service-list { border-color: var(--line-dark); }
.service-list li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-light); font-size: 16px; }
.is-dark .service-list li { border-color: var(--line-dark); }
.service-list li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--mint); transform: rotate(45deg); }

@media (max-width: 820px) {
  .service-card {
    grid-template-columns: 1fr; grid-template-areas: "top" "title" "text" "list";
    top: calc(var(--header-h) + 12px + var(--i, 0) * 10px);
    min-height: 0;
  }
  .service-list { margin-top: 12px; }
  .service-list li { padding: 12px 0; font-size: 15px; }
}
/* Short landscape screens: no room to pin, let the cards flow. */
@media (max-height: 560px) {
  .service-card { position: relative; top: 0; transform: none; }
  .service-card::after { display: none; }
}

/* ---------- Built with ---------- */
.stack-strip { background: var(--white); padding: 8px 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line-light); }
.stack-title { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-on-light); }
.stack-marquee { display: flex; overflow: hidden; margin-top: 26px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.stack-track { display: flex; flex: none; gap: clamp(36px, 5vw, 72px); padding-right: clamp(36px, 5vw, 72px); animation: stack 38s linear infinite; }
.stack-track li { font-family: var(--font-mono); font-weight: 800; font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.04em; color: #8a9692; white-space: nowrap; transition: color .2s; }
.stack-marquee:hover .stack-track { animation-play-state: paused; }
.stack-track li:hover { color: var(--fg); }
@keyframes stack { to { transform: translateX(-100%); } }

/* ---------- Before / after ---------- */
.transform { background: var(--white); }
.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-light); box-shadow: 0 40px 100px rgba(11, 26, 23, .12);
  user-select: none; touch-action: pan-y;
}
.ba-pane { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 3; pointer-events: none; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--white); box-shadow: 0 0 0 1px rgba(11, 26, 23, .15); }
.ba-handle span {
  position: absolute; top: 50%; left: 0; width: 52px; height: 52px; transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 14px; background: var(--mint); box-shadow: 0 10px 30px rgba(11, 26, 23, .25);
}
.ba-handle span::before, .ba-handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid var(--fg); border-width: 0 0 2px 2px; }
.ba-handle span::before { left: 12px; transform: translateY(-50%) rotate(0deg); }
.ba-handle span::after { right: 12px; transform: translateY(-50%) rotate(180deg); }
/* Drag anywhere (mouse or finger); vertical page scroll still works on phones. The range stays for keyboards. */
.ba { touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.ba-range { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ba.dragging .ba-handle span { transform: translate(-50%, -50%) rotate(45deg) scale(1.12); }
.ba-handle span { transition: transform .2s; }
.ba-range:focus-visible + * , .ba:focus-within .ba-handle span { outline: 3px solid var(--fg); outline-offset: 3px; }
.ba-tag { position: absolute; top: 14px; z-index: 2; padding: 6px 10px; border-radius: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.ba-tag-before { left: 14px; background: #ffe58f; color: #4a3b00; }
.ba-tag-after { right: 14px; background: var(--ink); color: var(--mint); }

/* The "before" mock: a plausible 2013 company site */
.mock-before { height: 100%; display: flex; flex-direction: column; background: #f2f2f2; font-family: Arial, Helvetica, sans-serif; color: #444; font-size: clamp(7px, 1.05vw, 13.5px); }
.mb-bar { padding: .5em 2.4em; background: #1f3b5c; color: #c9d6e6; font-size: .85em; text-align: right; }
.mb-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1em 2.4em; background: #fff; border-bottom: 3px solid #2a6db0; }
.mb-logo b { display: block; font-family: Georgia, serif; font-size: 1.7em; color: #1f3b5c; letter-spacing: .04em; }
.mb-logo small { color: #888; font-size: .9em; }
.mb-nav { display: flex; gap: 1.6em; font-size: 1.05em; }
.mb-nav span { color: #555; }
.mb-nav .on { color: #2a6db0; font-weight: 700; border-bottom: 2px solid #2a6db0; }
.mb-slider { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.mb-photo-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mb-caption { position: absolute; left: 2.4em; bottom: 2.2em; padding: 1em 1.4em; background: rgba(0, 0, 0, .55); color: #fff; }
.mb-caption b { display: block; font-family: Georgia, serif; font-size: 1.6em; font-weight: 400; }
.mb-caption span { font-size: .95em; color: #ddd; }
.mb-dots { position: absolute; right: 2.4em; bottom: 1.4em; display: flex; gap: .5em; }
.mb-dots i { width: .7em; height: .7em; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.mb-dots i.on { background: #fff; }
.mb-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2em; padding: 1.4em 2.4em; background: #fff; }
.mb-cols h5 { margin: 0 0 .4em; font-family: Georgia, serif; font-size: 1.3em; font-weight: 400; color: #1f3b5c; }
.mb-cols p { margin: 0 0 .4em; font-size: .92em; line-height: 1.45; }
.mb-cols u { color: #2a6db0; font-size: .9em; }
.mb-foot { padding: .7em 2.4em; background: #2b2b2b; color: #999; font-size: .8em; }

/* The "after" mock: clean, modern */
.mock-after { height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: #fff; color: var(--ink); font-family: var(--font-sans); font-size: clamp(8px, 1.15vw, 15px); }
.ma-nav { display: flex; align-items: center; gap: 2.2em; padding: 1.4em 2.6em; border-bottom: 1px solid var(--line-light); }
.ma-nav b { font-family: var(--font-mono); font-size: 1.3em; letter-spacing: -0.05em; margin-right: auto; }
.ma-nav b span { color: var(--teal); }
.ma-nav i { width: 4.5em; height: .5em; border-radius: 4px; background: #e3ebe8; }
.ma-nav em { font-style: normal; padding: .7em 1.2em; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 600; }
.ma-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2em; align-items: center; padding: 1.5em 2.6em; }
.ma-hero small { font-family: var(--font-mono); font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; font-size: .8em; }
.ma-hero strong { display: block; margin: .4em 0 .5em; font-family: var(--font-mono); font-weight: 800; font-size: 2.6em; line-height: 1.05; letter-spacing: -0.05em; }
.ma-hero p { margin: 0 0 1.2em; color: var(--muted-on-light); }
.ma-btn { display: inline-block; padding: .9em 1.4em; border-radius: 6px; background: var(--mint); font-weight: 700; font-size: .9em; text-transform: uppercase; letter-spacing: .05em; }
.ma-art { position: relative; aspect-ratio: 1.1; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #e5faf3, #c9efe2); }
.ma-art svg { width: 100%; height: 100%; display: block; }
.ma-chips { display: flex; gap: .8em; padding: 0 2.6em 1.8em; flex-wrap: wrap; }
.ma-chips span { padding: .5em 1em; border-radius: 999px; background: var(--mint-soft); color: var(--teal); font-weight: 600; font-size: .85em; }

@media (max-width: 640px) {
  .ba { aspect-ratio: 4 / 5; }
  .mock-before, .mock-after { font-size: 9.5px; }
  .ma-hero { grid-template-columns: 1fr; }
  .ma-art { aspect-ratio: 2; }
  .ma-nav i { display: none; }
  .mb-cols { grid-template-columns: 1fr; }
  .mb-cols > div:nth-child(n+2) { display: none; }
  .mb-nav { display: none; }
}

/* ---------- Manifesto (words light up on scroll) ---------- */
.manifesto { --p: 0; position: relative; height: 260vh; background: var(--paper); color: var(--text-on-light); }
.manifesto-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.manifesto-sticky::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 100%;
  background: linear-gradient(var(--mint), transparent); opacity: .35;
  transform-origin: top; transform: scaleY(var(--p));
}
.manifesto-kicker { color: var(--muted-on-light); margin-bottom: 28px; letter-spacing: .14em; }
.manifesto-word { font-family: var(--font-mono); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-transform: none; color: var(--teal); }
.manifesto-text {
  position: relative; max-width: 19em;
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(24px, 3.2vw, 44px); line-height: 1.22; letter-spacing: -0.035em;
}
.manifesto-text .w { opacity: var(--o, .16); transition: opacity .15s linear; }
@media (max-width: 820px) { .manifesto { height: 200vh; } }

/* ---------- Expanding panel (approach) ---------- */
.expand-wrap { --p: 1; background: var(--white); }
.expand-wrap > .approach {
  clip-path: inset(0 calc((1 - var(--p)) * 5vw) round calc((1 - var(--p)) * 28px));
  transform: scale(calc(0.96 + var(--p) * 0.04));
  transform-origin: 50% 0;
}

/* ---------- Hero parallax ---------- */
.hero { --p: 0; }
.hero-copy { transform: translateY(calc(var(--p) * -60px)); opacity: calc(1 - var(--p) * 0.9); }

/* ---------- Approach ---------- */
.approach { background: var(--ink-900); color: var(--text-on-dark); }
.approach .section-lede { color: var(--muted-on-dark); }
.approach .section-title em { color: var(--mint-light); }
.approach-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.sticky-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.sticky-head .btn { margin-top: 38px; }

.steps { position: relative; }
.steps { --p: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 1px; background: var(--line-dark); }
.steps::after { background: linear-gradient(var(--mint-light), var(--mint)); transform-origin: top; transform: scaleY(var(--p)); }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 30px; padding: 0 0 60px; }
.step:last-child { padding-bottom: 0; }
.step-num {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  background: var(--ink-900); border: 1px solid var(--line-dark); color: var(--mint-light);
  transition: background .4s, color .4s, border-color .4s;
}
.step > div { opacity: .6; transition: opacity .6s var(--ease); }
.step.is-active > div { opacity: 1; }
.step.is-active .step-num { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.step:hover .step-num { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.step h3 { font-family: var(--font-mono); font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; padding-top: 8px; }
.step p { margin-top: 14px; color: var(--muted-on-dark); max-width: 34em; }
.step-out { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-light); }
.step-out::before { content: ""; width: 22px; height: 1px; background: var(--mint); }

@media (max-width: 900px) {
  .approach-inner { grid-template-columns: 1fr; }
  .sticky-head { position: static; }
}

/* ---------- Results ---------- */
.stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--teal); }
.stat { padding: 32px 28px 8px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line-light); }
.stat dt { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-mono); font-weight: 800; font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -0.05em; color: var(--fg); font-variant-numeric: lining-nums tabular-nums; }
.stat-unit { font-family: var(--font-sans); font-size: 15px; font-weight: 500; letter-spacing: .06em; color: var(--teal); }
.stat dd { margin: 16px 0 0; color: var(--muted-on-light); font-size: 15.5px; max-width: 18em; }
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-light); margin-top: 24px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0 4px; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line-light); margin-top: 20px; }
}



.usecases { margin-top: clamp(56px, 7vw, 96px); }
.usecases-title { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; color: var(--teal); margin: 0; }
/* Before -> after: the old way fades, the result stands out. */
.usecases ol { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: uc; border-top: 1px solid var(--line-light); }
.usecases li { counter-increment: uc; display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px minmax(0, 1.25fr); align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line-light); transition: background .4s var(--ease); }
.usecases li::before { content: counter(uc, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--muted-on-light); letter-spacing: .06em; }
.usecases .uc-b { font-size: 16px; color: var(--muted-on-light); text-decoration: line-through; text-decoration-color: rgba(11, 26, 23, .25); text-decoration-thickness: 1px; }
.usecases .uc-a { grid-column: 4; font-family: var(--font-mono); font-weight: 600; font-size: clamp(17px, 1.6vw, 21px); letter-spacing: -0.02em; color: var(--text-on-light); }
.usecases li::after { content: "→"; grid-column: 3; grid-row: 1; justify-self: center; color: var(--teal); transition: transform .4s var(--ease); }
.usecases li:hover::after { transform: translateX(5px); }
.usecases li:hover .uc-a { color: var(--teal); }
@media (max-width: 720px) {
  /* Phones: one compact line pair, no numbers */
  .usecases ol { margin-top: 14px; }
  .usecases li { grid-template-columns: minmax(0, 1fr); row-gap: 2px; padding: 12px 0; }
  .usecases li::before, .usecases li::after { display: none; }
  .usecases .uc-b { font-size: 12.5px; }
  .usecases .uc-a { grid-column: 1; font-size: 15px; }
  .usecases .uc-a::before { content: "→ "; color: var(--teal); }
}

/* ---------- FAQ ---------- */
.faq-inner { }
.faq-inner .section-head { max-width: none; margin-bottom: clamp(32px, 4vw, 56px); }
.faq-list details { border-bottom: 1px solid var(--line-light); }
.faq-list details:first-child { border-top: 1px solid var(--line-light); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 26px 52px 26px 0; position: relative;
  font-size: clamp(17px, 1.6vw, 19px); font-weight: 450; line-height: 1.4;
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 15px; height: 1px; background: currentColor;
  transition: transform .35s var(--ease), background .3s;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details[open] summary::before, .faq-list details[open] summary::after { background: var(--teal); }
.faq-list summary:hover { color: var(--teal); }
.faq-list details p { padding: 0 52px 28px 0; color: var(--muted-on-light); max-width: 44em; }
.faq-list details[open] p { animation: fadeDown .4s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }


/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 520px at 92% 8%, rgba(25, 227, 177, 0.16), transparent 62%),
    radial-gradient(900px 600px at 0% 100%, rgba(25, 227, 177, 0.08), transparent 60%),
    var(--ink);
  color: var(--text-on-dark);
}
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(600px 400px at 20% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(600px 400px at 20% 30%, #000, transparent 75%);
}
.contact .section-kicker { color: var(--mint-light); }
.contact .section-lede { color: var(--muted-on-dark); }
.contact .section-title em { color: var(--mint); }
.contact-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 100px); align-items: start; }

.contact-steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 0; }
.contact-steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 26px; }
.contact-steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 1px; background: linear-gradient(var(--mint), rgba(25, 227, 177, .1)); }
.cs-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--mint-light); border: 1px solid rgba(25, 227, 177, .45); background: rgba(25, 227, 177, .08); }
.contact-steps strong { display: block; font-size: 18px; font-weight: 600; color: var(--text-on-dark); padding-top: 9px; }
.contact-steps p { color: var(--muted-on-dark); font-size: 15.5px; margin-top: 2px; }
.contact-badges { list-style: none; margin: 18px 0 0; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line-dark); }
.contact-badges li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px; font-size: 14px; color: var(--text-on-dark); background: rgba(238, 245, 242, .06); border: 1px solid var(--line-dark); }
.contact-badges svg { width: 17px; height: 17px; fill: none; stroke: var(--mint); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.contact-form {
  position: relative; color: var(--text-on-light);
  background: var(--white); border-radius: 18px;
  padding: clamp(24px, 3.6vw, 44px); display: grid; gap: 28px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .35), 0 0 0 1px rgba(25, 227, 177, .25);
}
.cf-step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.cf-num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--teal); padding-top: 2px; letter-spacing: .04em; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { font-size: 15px; font-weight: 600; color: var(--text-on-light); margin-bottom: 12px; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 14.5px;
  border: 1px solid var(--line-light); color: var(--text-on-light); background: var(--paper);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.chips span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background .2s, border-color .2s; flex: none; }
.chips label:hover span { border-color: var(--teal); }
.chips input:checked + span { background: var(--ink-800); border-color: var(--ink-800); color: var(--white); }
.chips input:checked + span::before { border-color: var(--mint); background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='%230b1a17' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.chips input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.cf-track { border-top: 1px dashed var(--line-light); padding-top: 18px; margin-left: 48px; }
.cf-track summary { cursor: pointer; font-size: 14.5px; color: var(--muted-on-light); list-style: none; display: flex; align-items: center; gap: 8px; }
.cf-track summary::-webkit-details-marker { display: none; }
.cf-track summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 14px; line-height: 1; transition: transform .2s; }
.cf-track[open] summary::before { transform: rotate(45deg); }
.cf-track .field { margin-top: 14px; }
.cf-note { text-align: center; font-size: 13.5px; color: var(--muted-on-light); margin-top: -12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 15px; font-weight: 600; color: var(--text-on-light); }
.optional { font-size: .9em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line-light); border-bottom-color: var(--line-strong); color: var(--text-on-light);
  transition: border-color .2s, box-shadow .2s;
  font-size: 16px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235a5e54' stroke-width='1.6'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.field ::placeholder { color: #6b7068; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-on-light); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--teal); box-shadow: 0 0 0 4px rgba(25, 227, 177, .22); }
.field.has-error input, .field.has-error textarea { border-color: #a83a25; }
.field-error { font-size: 13px; color: #a83a25; }
.field-hint { font-size: 13px; color: var(--muted-on-light); }
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.contact-form .btn-primary { padding: 20px 22px; border-radius: 12px; font-size: 16px; }
.contact-form .btn-primary[disabled] { opacity: .6; cursor: progress; }
.form-status { font-size: 14.5px; color: var(--muted-on-light); text-align: center; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--teal); font-weight: 500; }
.form-status.is-error { color: #a83a25; }

/* Sent confirmation */
.sent-panel {
  display: grid; gap: 18px; justify-items: start; align-content: start;
  padding: clamp(28px, 4vw, 52px); background: var(--white); color: var(--text-on-light); border: 0; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(11, 26, 23, .08);
  opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.sent-panel.is-in { opacity: 1; transform: none; }
.sent-panel:focus { outline: none; }
.sent-check { width: 64px; height: 64px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sent-check circle { stroke: var(--mint); stroke-width: 2; stroke-dasharray: 183; stroke-dashoffset: 183; }
.sent-check path { stroke: var(--teal); stroke-width: 3; stroke-dasharray: 40; stroke-dashoffset: 40; }
.sent-panel.is-in .sent-check circle { transition: stroke-dashoffset .9s var(--ease) .1s; stroke-dashoffset: 0; }
.sent-panel.is-in .sent-check path { transition: stroke-dashoffset .5s var(--ease) .75s; stroke-dashoffset: 0; }
.sent-panel h3 { font-family: var(--font-mono); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; }
.sent-lede { font-size: 18px; color: var(--muted-on-light); }
.sent-next { display: grid; gap: 16px; justify-items: start; width: 100%; margin-top: 6px; padding: 22px; border-radius: 6px; background: var(--paper); border-left: 2px solid var(--mint); }
.sent-next p { color: var(--text-on-light); }
.link-again { padding: 0; background: none; border: 0; font-size: 14px; color: var(--muted-on-light); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-again:hover { color: var(--text-on-light); }
.sent-account { display: grid; gap: 12px; width: 100%; }
.sent-account[hidden] { display: none; }
.sent-pw { display: grid; gap: 6px; font-size: 14px; color: var(--text-on-light); }
.sent-pw input { width: 100%; max-width: 420px; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text-on-light); background: var(--white); border: 1px solid rgba(11, 26, 23, .25); border-radius: 10px; }
.sent-pw input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(25, 227, 177, .22); }
.sent-account .btn { justify-self: start; }
.sent-msg { min-height: 0; margin: 0; font-size: 14px; color: #b3261e; }
.sent-msg:empty { display: none; }
.sent-signin { font-size: 14px; color: var(--muted-on-light); text-decoration: underline; text-underline-offset: 3px; }
.sent-signin:hover { color: var(--text-on-light); }
@media (max-width: 560px) { .sent-next .btn, .sent-account .btn { width: 100%; } .sent-pw input { max-width: none; } }

@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; } .contact-steps { margin-top: 32px; } }
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 18px; }
  .cf-step { grid-template-columns: 1fr; gap: 6px; }
  .cf-track { margin-left: 0; }
  .contact-form { border-radius: 14px; gap: 24px; }
  .contact-badges li { font-size: 13.5px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--text-on-dark); padding: 64px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px 24px; align-items: start; }
.footer-brand p { margin-top: 16px; color: var(--muted-on-dark); font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.footer-nav a { color: var(--muted-on-dark); font-size: 14px; transition: color .2s; }
.footer-nav a:hover { color: var(--mint-light); }
.footer-legal { grid-column: 1 / -1; color: var(--muted-on-dark); font-size: 13px; padding-top: 28px; border-top: 1px solid var(--line-dark); }

@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Split headings: words rise out of a mask ---------- */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .06em .14em; margin: -.16em -.06em -.14em; }
.swi { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); transition-delay: calc(var(--wi, 0) * 40ms + var(--delay, 0s)); }
.js .reveal[data-split] { opacity: 1; transform: none; }
.reveal[data-split].is-visible .swi { transform: none; }
html:not(.js) .swi { transform: none; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  width: 0; height: 0; opacity: 0; transition: opacity .3s;
}
.has-cursor .cursor { opacity: 1; }
.cursor::before {
  content: ""; position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--mint); background: rgba(25, 227, 177, 0);
  transition: transform .35s var(--ease), background .3s, border-color .3s;
}
.cursor.is-hover::before { transform: scale(1.6); background: rgba(25, 227, 177, .12); }
.cursor.is-down::before { transform: scale(.8); }
.cursor.has-label::before { transform: scale(2.4); background: var(--mint); border-color: var(--mint); }
.cursor.is-hidden { opacity: 0 !important; }
.is-dragging .cursor { opacity: 0; }
.cursor-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg);
  opacity: 0; transition: opacity .2s; white-space: nowrap;
}
.cursor.has-label .cursor-label { opacity: 1; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .manifesto { height: auto; }
  .manifesto-sticky { position: static; height: auto; padding: 120px 0; }
  .manifesto-text .w { opacity: 1; }
  .service-card { position: relative; top: 0; transform: none; }
  .hero-copy, .hero-visual { transform: none; opacity: 1; }
  .expand-wrap > .approach { clip-path: none; transform: none; }
  .step > div { opacity: 1; }
  .swi { transform: none; }
  .cursor { display: none; }
  .stack-track { animation: none; }
  .shape { animation: none; }
}
.tilt-btn[hidden], [hidden] { display: none !important; }

/* Above the fold paints right away (faster first impression and LCP). */
.js .hero .reveal { opacity: 1; transform: none; transition: none; }
.js .hero .swi { animation: rise .7s var(--ease) both; animation-delay: calc(var(--wi, 0) * 35ms); transform: none; transition: none; }
@keyframes rise { from { transform: translateY(110%); } }
.shape { will-change: transform; }
.manifesto { height: 150vh; }
@media (max-width: 820px) { .manifesto { height: 130vh; } }
@media (prefers-reduced-motion: reduce) { .js .hero .swi { animation: none; } .manifesto { height: auto; } }

/* ---------- Hero trust line ---------- */
.hero-trust { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 22px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-on-light); }
.hero-trust li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%230b1a17' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Before mock: real photo banner ---------- */
.mb-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(.95); }

/* ---------- After mock: photo-led ---------- */
.mock-after.ma-photo { position: relative; display: grid; grid-template-rows: auto 1fr auto; color: #fff;
  background: linear-gradient(100deg, rgba(8, 14, 22, .86) 0%, rgba(8, 14, 22, .55) 50%, rgba(8, 14, 22, .2) 100%), url("../assets/photos/construction-hero.jpg") center / cover no-repeat; }
.ma-photo .ma-nav { border-bottom-color: rgba(255, 255, 255, .15); }
.ma-photo .ma-nav b { font-family: Georgia, serif; font-weight: 400; letter-spacing: 0; }
.ma-photo .ma-nav b span { color: #7cc3ff; }
.ma-photo .ma-nav i { background: rgba(255, 255, 255, .35); }
.ma-photo .ma-nav em { background: #3b82c4; color: #fff; border-radius: 999px; }
.ma-photo .ma-hero { grid-template-columns: 1fr; max-width: 62%; padding: 2.4em 2.6em; }
.ma-photo .ma-hero small { color: #b9dcff; }
.ma-photo .ma-hero strong { font-family: Georgia, serif; font-weight: 400; font-size: 3em; letter-spacing: -0.02em; }
.ma-photo .ma-hero p { color: rgba(255, 255, 255, .88); }
.ma-photo .ma-btn { background: #3b82c4; color: #fff; border-radius: 999px; text-transform: none; letter-spacing: 0; }
.ma-trust { display: flex; flex-wrap: wrap; gap: .6em 1.4em; margin-top: 1.2em; font-size: .85em; color: rgba(255, 255, 255, .9); }
.ma-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; padding: 0 2.6em 2em; }
.ma-thumbs span { aspect-ratio: 16 / 10; border-radius: .8em; background: center / cover no-repeat; box-shadow: 0 1em 2em rgba(0, 0, 0, .35); }
@media (max-width: 640px) { .ma-photo .ma-hero { max-width: 100%; } .ma-photo .ma-hero strong { font-size: 2.2em; } }

/* ---------- Examples ---------- */
.examples { background: var(--paper); }
.ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ex-card { display: grid; border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line-light); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }

.ex-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(11, 26, 23, .14); }
.ex-shot { display: block; overflow: hidden; aspect-ratio: 2 / 1; background: var(--mist-3); }
.ex-shot { aspect-ratio: 16 / 10; }
.ex-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.ex-card:hover .ex-shot img { transform: scale(1.04); }
.ex-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px; }
.ex-meta b { font-family: Georgia, serif; font-weight: 400; font-size: 19px; }
.ex-meta span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
@media (max-width: 900px) { .ex-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 560px) { .ex-grid { grid-template-columns: 1fr; } }

/* ---------- A personal note ---------- */
.note { background: var(--white); }
.note-inner { display: grid; grid-template-columns: auto 1fr; gap: 28px; max-width: 900px; align-items: start; }
.note-avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--mint); font-family: Georgia, serif; font-size: 32px; }
.note-body { margin: 16px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.45; color: var(--text-on-light); }
.note-sign { font-size: 15px; color: var(--muted-on-light); }
@media (max-width: 560px) { .note-inner { grid-template-columns: 1fr; } }

/* ---------- Sticky call to action (phones) ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: none; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 999px; background: var(--mint); color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: .02em; box-shadow: 0 16px 40px rgba(11, 26, 23, .3); transform: translateY(120%); transition: transform .45s var(--ease); }
.sticky-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sticky-cta.is-on { transform: none; }
@media (max-width: 900px) { .sticky-cta:not([hidden]) { display: inline-flex; } }
.ba-shot { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ex-go { margin-left: 8px; color: var(--teal); transition: transform .3s var(--ease); } .ex-card:hover .ex-go { transform: translate(3px, -3px); }
.section-for { font-size: 15px; color: var(--teal); font-weight: 600; margin-bottom: 8px; }

/* "Before": an old restaurant site, drawn at desktop size and scaled to fit (on phones too, like old sites really look). */
.ba-pane picture, .ba-pane picture img { display: block; width: 100%; height: 100%; }
.old-site { position: absolute; top: 0; left: 0; width: 1000px; transform-origin: 0 0; transform: scale(var(--os-scale, 1)); background: #f3e6c4; color: #3b2a14; font: 15px/1.35 "Times New Roman", Times, serif; min-height: calc(100% / var(--os-scale, 1)); }
.os-top { background: #8b1a1a; color: #ffd700; font: bold 13px Verdana, sans-serif; padding: 5px 10px; white-space: nowrap; overflow: hidden; }
.os-head { width: 100%; border-collapse: collapse; background: linear-gradient(#6b3d12, #4a2808); color: #fff; }
.os-head td { padding: 14px 18px; vertical-align: middle; }
.os-logo b { font: bold 30px/1 Georgia, serif; color: #ffd700; text-shadow: 2px 2px 0 #000; letter-spacing: 1px; }
.os-logo small { display: block; font: italic 14px Georgia, serif; color: #f5deb3; margin-top: 6px; }
.os-nav { text-align: right; font: 13px Verdana, sans-serif; color: #f5deb3; }
.os-nav a { color: #ffff66; text-decoration: underline; }
.os-body { width: 100%; border-collapse: collapse; }
.os-body td { vertical-align: top; padding: 14px; }
.os-side { width: 210px; background: #e2cc99; border-right: 3px double #8b5a2b; font: 13px Verdana, sans-serif; }
.os-box-t { background: #8b1a1a; color: #fff; font-weight: bold; padding: 4px 6px; margin: 10px 0 6px; }
.os-counter { margin-top: 20px; font: bold 12px "Courier New", monospace; background: #000; color: #0f0; padding: 4px; text-align: center; }
.os-main h1 { font: bold 34px "Comic Sans MS", "Comic Sans", cursive; color: #8b1a1a; margin: 0 0 10px; }
.os-main img { float: left; width: 260px; height: 175px; object-fit: cover; margin: 0 14px 8px 0; border: 4px ridge #8b5a2b; }
.os-main p { margin: 0 0 10px; text-align: justify; }
.os-blink { color: #0000ee; text-decoration: underline; font-weight: bold; text-align: center !important; }
.os-foot { clear: both; background: #4a2808; color: #d2b48c; font: 11px Verdana, sans-serif; text-align: center; padding: 8px; }
@media (max-width: 640px) { .ba { aspect-ratio: 4 / 3 !important; border-radius: 12px; } .ba-shot { object-position: top center; } .ba-tag { top: 8px; padding: 4px 8px; font-size: 10px; } .ba-tag-before { left: 8px; } .ba-tag-after { right: 8px; } .ba-handle span { width: 36px; height: 36px; } }

/* ---------- Laptops and short screens: size by height as well as width ---------- */
.hero-title { font-size: clamp(32px, min(4.6vw, 7.6vh), 66px); }
.hero-visual { height: clamp(360px, min(46vw, 64vh), 600px); }
.section { padding: clamp(72px, min(11vw, 14vh), 150px) 0; }
.section-title { font-size: clamp(32px, min(4.6vw, 7vh), 64px); }
@media (min-width: 901px) and (max-height: 860px) {
  .hero { padding: calc(var(--header-h) + 28px) 0 48px; }
  .hero-lede { margin-top: 18px; font-size: 17px; }
  .hero-actions { margin-top: 26px; }
  .hero-trust { margin-top: 18px; }
  .section-head { margin-bottom: 40px; }
}
@media (min-width: 901px) and (max-height: 700px) {
  .hero-title { font-size: clamp(30px, 6.8vh, 52px); }
  .hero-eyebrow, .eyebrow { margin-bottom: 0; }
}

/* ============ About ============ */
/* Editorial: the statement leads, the founder signs. The background is an abstract
   field of plumb lines with travelling signals (no dated tech imagery). */
.about { position: relative; overflow: hidden; background: var(--ink); color: var(--text-on-dark); isolation: isolate; }
.about-field { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(238,245,242,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(238,245,242,.035) 1px, transparent 1px);
  background-size: 96px 96px; mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%); }
.about-field i { position: absolute; top: -20%; width: 1px; height: 40%; background: linear-gradient(to bottom, transparent, var(--mint), transparent); opacity: .55; animation: about-signal 7s linear infinite; }
.about-field i:nth-child(1) { left: 12%; animation-delay: -1s; }
.about-field i:nth-child(2) { left: 38%; animation-delay: -4.2s; animation-duration: 9s; }
.about-field i:nth-child(3) { left: 58%; animation-delay: -2.5s; }
.about-field i:nth-child(4) { left: 76%; animation-delay: -6s; animation-duration: 11s; }
.about-field i:nth-child(5) { left: 92%; animation-delay: -3.3s; animation-duration: 8s; }
@keyframes about-signal { to { transform: translateY(380%); } }
@media (prefers-reduced-motion: reduce) { .about-field i { animation: none; opacity: .25; } }
.about-inner { position: relative; }
.about .section-kicker { color: var(--mint-light); }
.about-title { font-family: var(--font-mono); font-weight: 700; font-size: clamp(34px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -0.045em; max-width: 18ch; margin: 18px 0 clamp(36px, 5vw, 64px); }
.about-title em { font-style: normal; color: var(--mint-light); }
.about-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.about-lead { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: rgba(238,245,242,.82); max-width: 60ch; }
.about-sign { margin: 0; display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line-dark); border-radius: 18px; background: rgba(238,245,242,.03); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.about-sign img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease); box-shadow: 0 0 0 1px var(--line-dark), 0 0 0 5px rgba(25,227,177,.12); }
.about-sign:hover img { filter: none; }
.about-sign blockquote { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: var(--text-on-dark); }
.about-sign figcaption > span { font-size: 13px; color: var(--muted-on-dark); }
.about-sign b { color: var(--text-on-dark); font-weight: 600; }
.about-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(48px, 6vw, 80px) 0 0; border-top: 1px solid var(--line-dark); }
.about-pillars > div { padding: 26px 26px 0 0; }
.about-pillars > div + div { padding-left: 26px; border-left: 1px solid var(--line-dark); }
.about-pillars dt { font-family: var(--font-mono); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; color: var(--mint-light); }
.about-pillars dd { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted-on-dark); max-width: 32ch; }
.about-cta { display: inline-block; margin-top: 40px; font-family: var(--font-mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--mint-light); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: letter-spacing .3s var(--ease); }
.about-cta:hover { letter-spacing: .14em; }
@media (max-width: 860px) {
  .about-body { grid-template-columns: 1fr; gap: 28px; }
  .about-sign { grid-template-columns: 56px 1fr; gap: 14px; padding: 14px; }
  .about-sign img { width: 56px; height: 56px; }
  .about-sign blockquote { font-size: 14px; }
  .about-pillars { grid-template-columns: 1fr; }
  .about-pillars > div, .about-pillars > div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
}

/* ============ Showcase: browser frame, refined slider, gains, example cards ============ */
.device { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line-light);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 50px 120px -40px rgba(11, 26, 23, .35), 0 18px 40px -20px rgba(11, 26, 23, .25); }
.device-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: linear-gradient(#f7f9f8, #eef2f0); border-bottom: 1px solid var(--line-light); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9dfdc; }
.device-bar i:nth-child(1) { background: #ff6b5e; } .device-bar i:nth-child(2) { background: #ffbd2e; } .device-bar i:nth-child(3) { background: #28c840; }
.device-url { margin: 0 auto; transform: translateX(-24px); min-width: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line-light);
  font: 500 12px var(--font-mono); color: var(--muted-on-light); }
.device-url::before { content: "🔒 "; font-size: 10px; }
.device .ba { border: 0; border-radius: 0; box-shadow: none; }
/* Tags: quiet, monospace */
.ba-tag { top: 16px; padding: 5px 10px; border-radius: 999px; font-size: 11px; letter-spacing: .14em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ba-tag-before { background: rgba(255, 255, 255, .85); color: #5b4a12; border: 1px solid rgba(0,0,0,.08); }
.ba-tag-after { background: rgba(11, 26, 23, .78); color: var(--mint-light); border: 1px solid rgba(255,255,255,.12); }
/* Handle: thin line, round knob */
.ba-handle::before { width: 2px; left: -1px; background: rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px rgba(11, 26, 23, .12), 0 0 24px rgba(0,0,0,.25); }
.ba-handle span { width: 46px; height: 46px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 10px 30px rgba(11, 26, 23, .28); border: 0; }
.ba-handle span::before, .ba-handle span::after { width: 7px; height: 7px; border-color: var(--fg); }
.ba-handle span::before { left: 11px; } .ba-handle span::after { right: 11px; }
.ba.dragging .ba-handle span { transform: translate(-50%, -50%) scale(1.08); }
/* What changed */
.ba-gains { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-light); }
.ba-gains li { padding: 16px 18px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted-on-light); display: grid; gap: 4px; }
.ba-gains li + li { padding-left: 18px; border-left: 1px solid var(--line-light); }
.ba-gains b { font: 700 15px var(--font-mono); letter-spacing: -0.02em; color: var(--text-on-light); }
@media (max-width: 860px) { .ba-gains { grid-template-columns: 1fr 1fr; row-gap: 16px; } .ba-gains li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 640px) { .device-bar { height: 30px; } .device-url { font-size: 10px; transform: none; } .ba-tag { top: 8px; } }

/* Example cards: laptop + phone */
.ex-grid { gap: clamp(18px, 3vw, 32px); }
.ex-card { border: 0; background: transparent; overflow: visible; border-radius: 0; gap: 18px; }
.ex-card:hover { transform: none; box-shadow: none; }
.ex-stage { position: relative; display: block; padding: 0 12% 9% 0; }
.ex-browser { display: block; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line-light); box-shadow: 0 30px 70px -30px rgba(11, 26, 23, .35); transition: transform .6s var(--ease); }
.ex-browser img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.ex-phone { position: absolute; right: 0; bottom: 0; width: 27%; aspect-ratio: 390 / 844; border-radius: 22px; padding: 5px; background: #0b1a17; box-shadow: 0 30px 60px -20px rgba(11, 26, 23, .55); transition: transform .6s var(--ease); }
.ex-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 17px; }
.ex-card:hover .ex-browser { transform: translateY(-6px); }
.ex-card:hover .ex-phone { transform: translateY(-14px) rotate(-1.5deg); }
.ex-meta { display: grid; justify-content: start; gap: 4px; padding: 0; }
.ex-meta .ex-sector { font: 600 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.ex-meta b { font: 800 clamp(22px, 2.4vw, 28px) var(--font-mono); letter-spacing: -0.03em; color: var(--text-on-light); }
.ex-meta .ex-feat { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted-on-light); }
.ex-meta .ex-go { margin-top: 6px; font: 600 13px var(--font-mono); letter-spacing: .04em; text-transform: none; color: var(--text-on-light); border-bottom: 1px solid currentColor; width: max-content; padding-bottom: 2px; transition: color .3s; }
.ex-card:hover .ex-go { color: var(--teal); }
@media (max-width: 720px) { .ex-grid { grid-template-columns: 1fr; } .ex-phone { border-radius: 16px; padding: 4px; } .ex-phone img { border-radius: 12px; } }
@media (prefers-reduced-motion: reduce) { .ex-browser, .ex-phone { transition: none; } }
/* polish */
.ex-browser img { height: auto !important; max-height: none !important; aspect-ratio: 16 / 10; }
.ex-phone img { height: 100% !important; }
.ba-tag { top: auto; bottom: 14px; }
.ba-handle span::before { transform: translateY(-50%) rotate(45deg); left: 15px; }
.ba-handle span::after { transform: translateY(-50%) rotate(-135deg); right: 15px; }
@media (max-width: 640px) { .ba-tag { bottom: 8px; } }

/* Use cases: four compact lines, premium and quiet */
.usecases { margin-top: clamp(40px, 5vw, 64px); }
.usecases ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 0; margin-top: 14px; }
.usecases li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.usecases li::before { display: none; }
.usecases li::after { content: "→"; order: 2; color: var(--teal); }
.usecases .uc-b { order: 1; font-size: 13.5px; }
.usecases .uc-a { order: 3; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.usecases li:hover .uc-a { color: var(--teal); }
@media (max-width: 720px) {
  .usecases ol { grid-template-columns: 1fr; }
  .usecases li { padding: 11px 0; }
  .usecases li::after { display: inline; }
  .usecases .uc-a::before { content: none; }
}

/* ---------- Phones: contact form fits the screen ---------- */
@media (max-width: 560px) {
  .contact-form { padding: 20px 16px 18px; gap: 18px; margin-inline: -4px; }
  .cf-step { gap: 4px; }
  .cf-num { font-size: 11px; }
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .chips legend { font-size: 14px; margin-bottom: 8px; }
  .chips label { min-width: 0; }
  .chips span { width: 100%; padding: 9px 10px; font-size: 13px; gap: 6px; line-height: 1.2; }
  .chips span::before { width: 12px; height: 12px; }
  .field { gap: 6px; }
  .field label { font-size: 14px; }
  .field input, .field select { min-height: 46px; padding-block: 10px; font-size: 16px; }
  .field textarea { min-height: 96px; font-size: 16px; }
  .cf-track .field { margin-top: 10px; }
  .contact-form .btn-primary { padding: 16px 18px; font-size: 15px; }
}

/* ---------- Footer, centred on phones ---------- */
@media (max-width: 720px) {
  .site-footer { padding: 44px 0 28px; }
  .footer-inner { justify-items: center; text-align: center; gap: 22px; }
  .footer-brand { display: grid; justify-items: center; }
  .footer-brand p { margin-top: 10px; font-size: 14px; }
  .footer-nav { justify-content: center; gap: 10px 18px; }
  .footer-nav a { font-size: 13.5px; }
  .footer-legal { width: 100%; text-align: center; padding-top: 18px; font-size: 12px; }
}
@media (max-width: 560px) {
  .contact-form .field textarea { height: 104px; min-height: 0; }
  .chips span { min-height: 40px; }
}
@media (max-width: 720px) {
  .footer-nav { flex-wrap: nowrap; gap: 14px; }
  .footer-nav a { font-size: 13px; white-space: nowrap; }
}
@media (max-width: 360px) { .footer-nav { flex-wrap: wrap; } }


/* ---------- Dark mode: same colours, lights off. Light is the default; the choice is kept per visitor. ---------- */
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-light); background: transparent; color: var(--fg); cursor: pointer; transition: background .2s, border-color .2s; }
.theme-toggle:hover { border-color: var(--mint); }
.theme-toggle:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --fg: #e7f0ec;
  --ink: #07110e;
  --ink-900: #0a1714;
  --ink-850: #0e1d19;
  --ink-800: #12241f;
  --white: #0c1714;
  --paper: #111f1b;
  --mist: #111f1b;
  --mist-2: #0f1c18;
  --mist-3: #172a25;
  --mint-soft: rgba(25, 227, 177, .12);
  --teal: #6ff2cf;
  --text-on-light: #e7f0ec;
  --muted-on-light: #a4b6b0;
  --line-light: rgba(238, 245, 242, 0.13);
  --line-strong: #6f807b;
  --header-bg: rgba(12, 23, 20, 0.88);
  --glass: rgba(17, 31, 27, .9);
}
:root[data-theme="dark"] body { background: var(--white); color: var(--text-on-light); }
:root[data-theme="dark"] img:not([src$=".svg"]) { filter: brightness(.92); }
@media (prefers-reduced-motion: no-preference) {
  :root.theme-anim, :root.theme-anim * { transition: background-color .3s ease, color .3s ease, border-color .3s ease !important; }
}
