/* ==========================================================================
   Orvynt - glassmorphic marketing site
   ========================================================================== */

:root {
  --bg: #050914;
  --bg-2: #0a1226;
  --ink: #eef3ff;
  --ink-2: rgba(226, 234, 255, 0.72);
  --ink-3: rgba(206, 218, 255, 0.56);
  --blue: #2f6bff;
  --blue-2: #6f9bff;
  --sun: #ffb877;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.09);
  --radius: 28px;
  --radius-sm: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(8rem, 14vw, 12rem);
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  /* Nav stays a dark floating pill in both themes (matches the brand's
     chosen reference), so its own text/border tokens never change with
     [data-theme]. Everything else re-themes through the tokens above. */
  --nav-ink: rgba(238, 243, 255, 0.86);
  --nav-ink-2: rgba(226, 234, 255, 0.72);
  --nav-line: rgba(255, 255, 255, 0.14);
  --nav-line-strong: rgba(255, 255, 255, 0.24);

  /* Generic low-emphasis fill for small chips/rows/badges: a hint of tint
     to separate them from the page background, direction flips per theme. */
  --surface-1: rgba(255, 255, 255, 0.05);
  --input-bg: rgba(5, 9, 20, 0.35);
  --input-bg-focus: rgba(5, 9, 20, 0.55);
  --watermark: rgba(255, 255, 255, 0.16);
  --placeholder: rgba(206, 218, 255, 0.62);
  --accent-a: #9cbcff;
  --accent-b: #2f6bff;

  /* Hero puppet masks paint from this photo; night overrides it below so
     the moving regions always match whichever base image is showing. */
  --hero-a-src: url("assets/team.jpg");

  /* Scrim under text laid over a photo (bento card, accordion, wide shot).
     RGB triplet so it can feed rgba(); day flips it to white below, so the
     scrim and the ink text over it stay a matching pair in both themes. */
  --scrim: 5, 9, 20;

  /* Status text (form messages, month-on-month deltas) and the one chart
     series colour. Each pair is contrast-checked against its own theme:
     text >= 4.5:1, chart marks >= 3:1. */
  --ok: #86efac;
  --err: #ff9c9c;
  --chart: #5b8cff;
}
html[data-theme="night"] { --hero-a-src: url("assets/team-night.jpg"); }
html[data-theme="day"] { --scrim: 255, 255, 255; }

/* ---------- Day theme ----------
   Default is day: light blue page, white glass. Toggling to night (see
   main.js) restores the tokens above unchanged, plus swaps the hero art. */
html[data-theme="day"] {
  --bg: #eaf1fb;
  --bg-2: #dbe8fa;
  --ink: #0d1b33;
  --ink-2: rgba(13, 27, 51, 0.72);
  --ink-3: rgba(13, 27, 51, 0.64);
  --blue-2: #2f5bc7;
  --line: rgba(10, 30, 70, 0.12);
  --line-strong: rgba(10, 30, 70, 0.22);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-2: rgba(255, 255, 255, 0.78);
  --surface-1: rgba(13, 27, 51, 0.045);
  --input-bg: rgba(255, 255, 255, 0.6);
  --input-bg-focus: rgba(255, 255, 255, 0.88);
  --watermark: rgba(13, 27, 51, 0.12);
  --placeholder: rgba(13, 27, 51, 0.66);
  --accent-a: #3f6fe0;
  --accent-b: #1e46a8;
  --ok: #11703a;
  --err: #b42318;
  --chart: #2f6bff;
}
html[data-theme="day"] .glass {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(10, 30, 70, 0.04),
    0 20px 45px -22px rgba(30, 60, 120, 0.22);
}
html[data-theme="day"] .ambient { mix-blend-mode: multiply; opacity: 0.4; }

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
  border-radius: 8px;
}

.page { overflow-x: hidden; width: 100%; max-width: 100%; position: relative; z-index: 1; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  will-change: transform;
}
.ambient__blob--a { width: 46vw; height: 46vw; left: -12vw; top: 30vh; background: radial-gradient(circle, #1d4ed8, transparent 70%); animation: drift 26s ease-in-out infinite alternate; }
.ambient__blob--b { width: 38vw; height: 38vw; right: -10vw; top: 120vh; background: radial-gradient(circle, #ff9b58, transparent 70%); opacity: 0.22; animation: drift 32s ease-in-out infinite alternate-reverse; }
.ambient__blob--c { width: 50vw; height: 50vw; left: 30vw; bottom: -20vw; background: radial-gradient(circle, #3b82f6, transparent 70%); opacity: 0.35; animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift {
  to { transform: translate3d(8vw, -6vh, 0) scale(1.15); }
}
.ambient__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Glass primitive ---------- */
.glass {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025) 55%),
    var(--glass);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 24px 60px -24px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

/* Cursor-follow highlight on glass cards */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(120, 160, 255, 0.18), transparent 60%);
  z-index: 2;
}
.spot:hover::after { opacity: 1; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 20ch;
}
.accent-text {
  background: linear-gradient(100deg, var(--accent-a) 0%, var(--accent-b) 45%, var(--accent-a) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  border-radius: 999px;
  padding: 0.85em 1.35em;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn i { font-size: 1.05em; transition: transform 0.4s var(--ease); }
.btn:hover i { transform: translateX(2px); }
.btn--light { background: #f4f7ff; color: #07122b; box-shadow: 0 6px 20px -10px rgba(111, 155, 255, 0.45); }
.btn--light:hover { background: #ffffff; box-shadow: 0 8px 24px -10px rgba(111, 155, 255, 0.55); }
.btn--glass {
  color: var(--ink);
  background: var(--surface-1);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.16); }
.btn--sm { padding: 0.62em 1.05em; font-size: 0.9rem; }
.btn--lg { padding: 1.05em 1.7em; font-size: 1.02rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; gap: 0.5em; align-items: center; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; }
.link-arrow i { transition: transform 0.5s var(--ease); }
.link-arrow:hover i { transform: translate(3px, 3px); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--nav-ink); }
.brand__mark { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(47, 107, 255, 0.55)); }
.brand__word { font-weight: 600; letter-spacing: 0.32em; font-size: 0.95rem; }
.brand__word em { font-style: normal; color: var(--blue-2); }
.brand--lg .brand__mark { width: 44px; height: 44px; }
.brand--lg .brand__word { font-size: 1.2rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  transition: transform 0.6s var(--ease);
}
.nav.is-hidden { transform: translateY(-140%); }
.nav__pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  width: 100%;
  max-width: 880px;
  justify-content: space-between;
}
.nav__pill.glass { background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 55%), rgba(8, 14, 32, 0.5); }
.nav__left { display: flex; align-items: center; gap: clamp(0.9rem, 2.4vw, 1.6rem); min-width: 0; }
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__divider { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.16); flex: none; }
.nav__links { display: flex; gap: 0.25rem; }
.nav__links a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--nav-ink-2);
  transition: color 0.3s, background-color 0.3s;
}
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* Day / night toggle: a small segmented pill, active side gets a solid disc */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--nav-line);
  background: rgba(255, 255, 255, 0.05);
  flex: none;
}
.theme-toggle__btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.theme-toggle__btn i { font-size: 15px; }
.theme-toggle__btn[aria-checked="true"] {
  background: #f4f7ff;
  color: #d98a2b;
  box-shadow: 0 4px 12px -3px rgba(0, 0, 0, 0.4);
}
.theme-toggle__btn[data-theme-set="night"][aria-checked="true"] { color: #3a4a7d; }
.theme-toggle__btn:hover:not([aria-checked="true"]) { color: rgba(255, 255, 255, 0.75); }
.theme-toggle--sheet {
  display: flex;
  gap: 8px;
  padding: 6px;
  margin: 4px 0;
}
.theme-toggle--sheet .theme-toggle__btn {
  flex: 1;
  width: auto;
  height: 44px;
  border-radius: 12px;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--nav-ink-2);
}
.theme-toggle--sheet .theme-toggle__btn i { font-size: 1.1rem; }
/* The sheet rule above re-colours the label, which would otherwise beat the
   checked state (same specificity, later in the file) and leave near-white
   text on the white active pill. Restate the checked colours after it. */
.theme-toggle--sheet .theme-toggle__btn[aria-checked="true"] { color: #07122b; }
.theme-toggle--sheet .theme-toggle__btn[data-theme-set="day"][aria-checked="true"] i { color: #b4701c; }
.theme-toggle--sheet .theme-toggle__btn[data-theme-set="night"][aria-checked="true"] i { color: #3a4a7d; }
.nav__login {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--nav-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--nav-ink-2);
  font-size: 1.25rem;
  flex: none;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}
.nav__login:hover { color: var(--nav-ink); background: rgba(255, 255, 255, 0.12); border-color: var(--nav-line-strong); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--nav-line);
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.4s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__sheet {
  position: absolute;
  top: calc(100% + 10px);
  left: 16px;
  right: 16px;
  border-radius: 24px;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 4px;
  background: rgba(10, 18, 38, 0.82);
}
.nav__sheet a:not(.btn) { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; font-size: 1.1rem; color: var(--nav-ink); }
.nav__sheet a:not(.btn) i { font-size: 1.1rem; color: var(--nav-ink-2); }
.nav__sheet a:not(.btn):hover { background: rgba(255, 255, 255, 0.07); }
.nav__sheet .btn { margin-top: 8px; }
.nav__sheet.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  isolation: isolate;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }

/* Two frames on one wide strip: frame A is the arrival scene, frame B is the
   terrace it continues into. Scrolling pans the whole strip left so B slides
   in from off-screen right, with no cut or section boundary in between. */
.hero__pan { display: flex; width: 200%; height: 100%; will-change: transform; }
.hero__frame { position: relative; flex: none; width: 50%; height: 100%; overflow: hidden; }
.hero__frame--b img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }

/* Day / night homepage art. The base <img> swaps src via main.js (day/night
   src on the element). The puppet masks paint from the same photo as a
   background-image, so they carry a matching var that swaps alongside it -
   otherwise the moving regions would still show day-lit skin tones cut into
   a night-lit scene. */
.hero__box { position: absolute; inset: 0; container-type: size; overflow: hidden; }

/* Stage replicates object-fit: cover (focus 50% 35%) so overlay layers share image coordinates */
.stage {
  --w: max(100cqw, calc(100cqh * 1672 / 941));
  --h: calc(var(--w) * 941 / 1672);
  position: absolute;
  width: var(--w);
  height: var(--h);
  left: calc((100cqw - var(--w)) * 0.5);
  top: calc((100cqh - var(--h)) * 0.35);
  transform-origin: 50% 40%;
}
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; }
.puppet {
  position: absolute;
  inset: 0;
  background: var(--hero-a-src) 0 0 / 100% 100% no-repeat;
  -webkit-mask-image: radial-gradient(ellipse var(--rx) var(--ry) at var(--cx) var(--cy), #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse var(--rx) var(--ry) at var(--cx) var(--cy), #000 55%, transparent 100%);
  transform-origin: var(--ox) var(--oy);
  will-change: transform;
  pointer-events: none;
}
.debug-puppets .puppet { background: rgba(255, 60, 120, 0.55); }
.debug-puppets .puppet::after {
  content: attr(data-puppet);
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  font: 600 12px var(--mono);
  color: #fff;
}

/* Rising steam wisps */
.steam { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; pointer-events: none; }
.steam i {
  position: absolute;
  bottom: 0;
  left: -0.35cqw;
  width: 0.7cqw;
  height: 3.2cqw;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 255, 255, 0.55), transparent 70%);
  filter: blur(0.25cqw);
  opacity: 0;
  animation: steam 4.2s ease-out infinite;
}
.steam i:nth-child(2) { animation-delay: 1.4s; left: -0.1cqw; }
.steam i:nth-child(3) { animation-delay: 2.8s; left: -0.6cqw; }
.steam--lg i { width: 1.1cqw; height: 4.6cqw; left: -0.55cqw; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(0) scaleX(0.6) rotate(0deg); }
  25% { opacity: 0.55; }
  100% { opacity: 0; transform: translateY(-3cqw) scaleX(1.5) rotate(8deg); }
}

/* Light glinting across the lake */
.shimmer {
  position: absolute;
  left: 49.6%;
  top: 41.4%;
  width: 46%;
  height: 6.4%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 45%, transparent 60%) 0 0 / 250% 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
  animation: shimmer 9s ease-in-out infinite;
  opacity: 0.6;
}
@keyframes shimmer { 0% { background-position: 110% 0; } 100% { background-position: -110% 0; } }

.hero__inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter) clamp(2.5rem, 7vh, 5rem);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding-top: 0; }
/* Top section on a dedicated page (services/process/results/clients/contact):
   just enough clearance for the fixed nav, not a full homepage-section gap. */
.section--first { padding-top: clamp(7.5rem, 16vh, 10rem); }
.section-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head__copy { color: var(--ink-2); max-width: 32rem; justify-self: end; }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
  grid-auto-flow: dense;
  gap: 16px;
}
.bento__a { grid-column: span 2; grid-row: span 2; }
.bento__b { grid-column: span 2; grid-row: span 1; }
.bento__c { grid-column: span 1; grid-row: span 1; }
.bento__d { grid-column: span 1; grid-row: span 2; }
.bento__e { grid-column: span 3; grid-row: span 1; }

.card {
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.5s var(--ease), transform 0.7s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card__title { font-size: clamp(1.3rem, 1.8vw, 1.75rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; }
.card__copy { color: var(--ink-2); font-size: 0.97rem; }
.chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--ink-2);
}

.bento__a { padding: 0; position: relative; min-height: 520px; }
.card__media { position: absolute; inset: 0; overflow: hidden; }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  transform: scale(1.08);
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
  filter: saturate(0.85) contrast(1.1);
}
.bento__a:hover .card__media img { transform: scale(1.14); filter: saturate(1.05) contrast(1.1); }
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--scrim), 0) 25%, rgba(var(--scrim), 0.72) 55%, rgba(var(--scrim), 0.96) 88%);
}
.card__body--overlay {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 34rem;
}
.card__body--overlay .card__title { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }

.bento__b { flex-direction: row; align-items: stretch; gap: 24px; }
.bento__b .card__body { display: flex; flex-direction: column; gap: 12px; flex: 1 1 45%; }
.serp { flex: 1 1 55%; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.serp__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1530;
  font-size: 0.9rem;
}
.serp__row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  font-size: 0.9rem;
  transition: transform 0.6s var(--ease), background-color 0.6s var(--ease);
}
.serp__row span:last-child { display: flex; flex-direction: column; }
.serp__row small { color: var(--ink-3); font-size: 0.78rem; }
.serp__row small i { color: var(--sun); }
.serp__row--win { background: rgba(47, 107, 255, 0.18); border-color: rgba(111, 155, 255, 0.5); }
.bento__b:hover .serp__row--win { transform: translateX(-6px) scale(1.02); }
.serp__pin {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
}
.serp__row:not(.serp__row--win) .serp__pin { background: rgba(255, 255, 255, 0.18); }

.stars { display: flex; gap: 4px; color: var(--sun); font-size: 1.1rem; }
.stat { font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.bento__c { justify-content: space-between; }
.serp__note { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.bento__d { justify-content: space-between; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 8px; }
.bars span {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--blue-2), rgba(47, 107, 255, 0.25));
  transform-origin: bottom;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.bars span:last-child { background: linear-gradient(180deg, #b8ccff, var(--blue)); }

.bento__e { flex-direction: row; align-items: center; gap: 32px; }
.bento__e .card__body { flex: 1 1 40%; display: flex; flex-direction: column; gap: 12px; }
.channels { flex: 1 1 60%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.channels li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  font-size: 0.92rem;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.channels li i { font-size: 1.35rem; color: var(--blue-2); }
.channels li:hover { transform: translateY(-4px); background: rgba(47, 107, 255, 0.15); border-color: rgba(111, 155, 255, 0.45); }

/* ---------- Manifesto with inline images ---------- */
.manifesto__title {
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 76rem;
}
.manifesto__title .w { opacity: 0.14; transition: none; }
.inline-img {
  display: inline-block;
  width: 2.5em;
  height: 1.1em;
  border-radius: 999px;
  vertical-align: middle;
  margin: -0.16em 0.1em 0;
  background: var(--src) center / cover no-repeat;
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px -10px rgba(47, 107, 255, 0.6);
  transition: width 0.8s var(--ease), height 0.8s var(--ease);
}
.inline-img--wide { width: 3.6em; }
.inline-img:hover { width: 2.9em; height: 1.28em; }
.inline-img--wide:hover { width: 4.15em; }
.manifesto__foot {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.manifesto__foot p { max-width: 34rem; color: var(--ink-2); }

/* ---------- Pinned services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.services__aside-inner { display: flex; flex-direction: column; gap: 1.6rem; padding-top: 7rem; }
.services__aside-copy { color: var(--ink-2); max-width: 26rem; }
.services__index { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.services__index li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.4s var(--ease), padding 0.5s var(--ease);
}
.services__index li em { font-style: normal; font-family: var(--mono); font-size: 0.8rem; }
.services__index li:hover { color: var(--ink-2); }
.services__index li.is-active { color: var(--ink); padding-left: 14px; }
.services__index li { position: relative; }
.services__index li.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 12px var(--blue);
}
.services__aside .btn { align-self: flex-start; }

.services__list { display: flex; flex-direction: column; gap: 14px; padding-top: 7rem; }
.svc-group { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 120px; }
.svc-group + .svc-group { margin-top: 3rem; }
.svc {
  display: flex;
  gap: 20px;
  padding: 26px 28px;
  border-radius: var(--radius-sm);
  transition: transform 0.6s var(--ease), border-color 0.5s;
}
.svc:hover { transform: translateX(-6px); border-color: var(--line-strong); }
.svc__icon {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, rgba(47, 107, 255, 0.9), rgba(47, 107, 255, 0.35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 30px -10px rgba(47, 107, 255, 0.8);
  transition: transform 0.6s var(--ease);
}
.svc:hover .svc__icon { transform: rotate(-8deg) scale(1.06); }
.svc h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.svc p { color: var(--ink-2); font-size: 0.97rem; }
.svc__go {
  flex: none;
  align-self: center;
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--ink-3);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.4s var(--ease);
}
.svc:hover .svc__go { opacity: 1; transform: translateX(0); color: var(--blue-2); }

/* ---------- Horizontal accordion ---------- */
.accordion { display: flex; gap: 12px; height: clamp(460px, 62vh, 620px); }
.acc {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: flex-grow 0.9s var(--ease), border-color 0.5s;
  outline: none;
}
.acc.is-open { flex-grow: 4.2; border-color: var(--line-strong); cursor: default; }
.acc:focus-visible { border-color: var(--blue-2); }
.acc__bg {
  position: absolute;
  inset: 0;
  background: var(--img) var(--pos) / cover no-repeat;
  transform: scale(1.15);
  filter: grayscale(0.85) brightness(0.55) contrast(1.15);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.acc.is-open .acc__bg { transform: scale(1.02); filter: grayscale(0) brightness(0.8) contrast(1.05); }
.acc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--scrim), 0.15), rgba(var(--scrim), 0.88) 85%);
}
.acc__rail {
  position: absolute;
  z-index: 1;
  inset: 24px auto 24px 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.4s var(--ease);
}
.acc__num { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-2); }
.acc__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }
.acc.is-open .acc__rail { opacity: 0; }
.acc__content {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(24px, 3vw, 40px);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.acc.is-open .acc__content { opacity: 1; transform: none; transition-delay: 0.25s; pointer-events: auto; }
.acc__content h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); letter-spacing: -0.04em; font-weight: 600; margin-bottom: 12px; }
.acc__content p { max-width: 30rem; color: var(--ink-2); }
.acc__content ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.acc__content li {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--surface-1);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ---------- Wide image ---------- */
.wide-shot { margin: 0; position: relative; }
.wide-shot__inner { border-radius: 36px; overflow: hidden; aspect-ratio: 16 / 8; border: 1px solid var(--line); }
.wide-shot__inner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: contrast(1.08); }
.wide-shot__cap {
  position: absolute;
  left: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 40px);
  max-width: 24rem;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(var(--scrim), 0.5);
}
.wide-shot__quote { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.wide-shot__cap span { color: var(--ink-2); font-size: 0.92rem; }
.wide-shot__disclaimer { margin-top: 10px; font-family: var(--mono); font-size: 0.68rem; line-height: 1.5; letter-spacing: 0.04em; color: var(--ink-3); }

/* ---------- Testimonials ---------- */
.voices { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.voices__left { display: flex; flex-direction: column; gap: 2.5rem; }
.avatars { display: flex; }
.avatar {
  width: clamp(72px, 8vw, 104px);
  height: clamp(72px, 8vw, 104px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: #07122b;
  background: linear-gradient(145deg, var(--c2), var(--c1));
  border: 3px solid var(--bg);
  margin-left: -22px;
  filter: grayscale(0.9) brightness(0.55);
  transform: scale(0.86);
  transition: filter 0.7s var(--ease), transform 0.7s var(--ease);
  cursor: pointer;
}
.avatar:first-child { margin-left: 0; }
.avatar.is-active { filter: none; transform: scale(1); z-index: 2; box-shadow: 0 20px 50px -14px var(--c1); }
.voices__controls { display: flex; align-items: center; gap: 10px; }
.round-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--ink);
  transition: background-color 0.4s;
}
.round-btn:hover { background: rgba(255, 255, 255, 0.16); }
.voices__count { margin-left: 12px; color: var(--ink-3); font-size: 0.9rem; }
.voices__count b { color: #fff; font-weight: 500; }
.voices__stage { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; }
.quote.is-active { opacity: 1; visibility: visible; }
.quote p {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.quote footer { margin-top: 2rem; display: flex; flex-direction: column; gap: 2px; }
.quote footer span { color: var(--ink-3); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta__panel {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  padding: clamp(28px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.cta__glow {
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(ellipse at 30% 50%, rgba(47, 107, 255, 0.45), transparent 60%), radial-gradient(ellipse at 80% 60%, rgba(255, 170, 110, 0.18), transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.cta__title {
  font-size: clamp(3.2rem, 8vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 600;
}
.cta__copy { margin-top: 1.6rem; color: var(--ink-2); max-width: 28rem; font-size: 1.08rem; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 0.82rem; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.field > span { margin-bottom: 0; }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="month"],
.field input[type="file"],
.field textarea,
.copy-field input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  transition: border-color 0.3s, background-color 0.3s;
}
.field input::placeholder { color: var(--placeholder); }
/* Border change plus a ring, so focus is obvious at a glance on either theme. */
.field input:focus,
.field textarea:focus,
.copy-field input:focus { outline: none; border-color: var(--blue-2); background: var(--input-bg-focus); box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.28); }
.field input.is-invalid { border-color: var(--err); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  font-size: 0.88rem;
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
}
.chips label:hover span { border-color: var(--line-strong); color: var(--ink); }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.form .btn { margin-top: 8px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blue); }
.consent a { text-decoration: underline; }
.consent a:hover { color: var(--ink); }
.form__status { min-height: 1.4em; font-size: 0.92rem; color: var(--ink-2); }
/* Were fixed night-mode pinks and greens, about 1.5:1 on the day theme. */
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }

/* ---------- Footer ---------- */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--line); position: relative; }
.footer__top { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.footer__brand { max-width: 22rem; display: flex; flex-direction: column; gap: 1.2rem; }
.footer__brand p { color: var(--ink-2); }
.footer__cols { display: flex; gap: clamp(2rem, 6vw, 6rem); flex-wrap: wrap; }
.footer__cols div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols h4 { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; margin-bottom: 6px; }
.footer__cols a { color: var(--ink-2); transition: color 0.3s; }
.footer__cols a:hover { color: var(--ink); }
.footer__word {
  font-size: clamp(5rem, 21vw, 20rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.8;
  text-align: center;
  margin: clamp(3rem, 6vw, 5rem) 0 2rem;
  background: linear-gradient(180deg, var(--watermark), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-3); }

/* ---------- Cursor glow ---------- */
/* Smokey cursor. A WebGL fluid simulation painted by smokey-cursor.js, which
   skips the canvas entirely when the visitor asks for reduced motion or the
   browser cannot give it a float render target. */
.smokey-cursor {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  z-index: 99999;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.6s;
}
body.has-pointer .cursor-glow { opacity: 1; }

/* ---------- Service pages (services/*.html) ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 0.9rem; margin-bottom: 1.75rem; transition: color 0.3s; }
.back-link:hover { color: var(--ink); }
.back-link i { transition: transform 0.4s var(--ease); }
.back-link:hover i { transform: translateX(-3px); }

.page-hero { padding: clamp(7.5rem, 16vh, 10rem) 0 clamp(3rem, 6vw, 5rem); }
.page-hero__title { font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1.03; letter-spacing: -0.04em; font-weight: 600; max-width: 22ch; margin-top: 1rem; }
.page-hero__lede { margin-top: 1.5rem; max-width: 38rem; color: var(--ink-2); font-size: clamp(1rem, 1.2vw, 1.15rem); }
.page-hero__ctas { display: flex; gap: 12px; margin-top: 2.2rem; flex-wrap: wrap; }
.page-hero__media { margin-top: clamp(3rem, 6vw, 5rem); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 8; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mini-steps__num { display: block; font-family: var(--mono); color: var(--blue-2); font-size: 0.85rem; margin-bottom: 14px; }
.mini-steps li { padding: 26px; border-radius: var(--radius-sm); }
.mini-steps li h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.mini-steps li p { color: var(--ink-2); font-size: 0.94rem; }

/* ---------- Legal pages ---------- */
.legal__wrap { max-width: 68ch; }
.legal__updated { font-size: 0.78rem; color: var(--ink-3); margin-top: 1.5rem; }
.legal__body { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.legal__body h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; margin: 2.5rem 0 0.9rem; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { color: var(--ink-2); margin-bottom: 1rem; }
.legal__body ul { display: flex; flex-direction: column; gap: 8px; margin: 0 0 1.25rem; padding-left: 1.1rem; list-style: disc; }
.legal__body li { color: var(--ink-2); }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__body a { text-decoration: underline; }
.legal__body a:hover { color: var(--blue-2); }
.legal__body code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-1); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.legal__table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: 0.92rem; }
.legal__table th, .legal__table td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.legal__table th { color: var(--ink); font-weight: 600; background: var(--surface-1); }
.footer__details { font-style: normal; font-size: 0.86rem; line-height: 1.7; color: var(--ink-3); margin-top: 0.4rem; }
.footer__details a { text-decoration: underline; }
.footer__details a:hover { color: var(--ink); }

/* ---------- Client login ---------- */
.login { padding-bottom: clamp(6rem, 10vw, 8rem); }
.login__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.login__points { display: flex; flex-direction: column; gap: 14px; margin-top: 2.2rem; }
.login__points li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 0.98rem; }
.login__points i { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font-size: 1.1rem; color: #fff; background: linear-gradient(145deg, rgba(47, 107, 255, 0.9), rgba(47, 107, 255, 0.35)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.login__card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); }
.login__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: -4px; }
.login__remember { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-2); cursor: pointer; }
.login__remember input { accent-color: var(--blue); width: 15px; height: 15px; }
.login__forgot { font-size: 0.88rem; color: var(--ink-2); border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.login__forgot:hover { color: var(--ink); border-color: var(--line-strong); }
.login__footnote { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-2); font-size: 0.92rem; }
.login__footnote .link-arrow { font-size: 0.92rem; }

/* ---------- CALL US ---------- */
.call__panel {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  padding: clamp(28px, 5vw, 64px);
}
.call__glow {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 120%;
  background: radial-gradient(ellipse at 70% 40%, rgba(47, 107, 255, 0.38), transparent 60%), radial-gradient(ellipse at 20% 30%, rgba(255, 170, 110, 0.14), transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.call__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.call__title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 600;
  margin-top: 0.6rem;
}
.call__copy { margin-top: 1.4rem; color: var(--ink-2); font-size: 1.05rem; max-width: 34rem; }

.call__list { list-style: none; margin: 2.2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.call__list li { display: flex; gap: 16px; align-items: flex-start; }
.call__list i { font-size: 1.45rem; color: var(--blue-2); flex: 0 0 auto; margin-top: 2px; }
.call__list h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.call__list p { color: var(--ink-2); font-size: 0.95rem; }

.call__action {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--glass-2);
}
.call__num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 22px 18px;
  border-radius: var(--radius-sm);
  background: #f4f7ff;
  color: #07122b;
  text-decoration: none;
  /* Fixed dark hairline: in day mode the panel behind is almost white, so the
     button needs an edge of its own to read as a button. */
  border: 1px solid rgba(7, 18, 43, 0.1);
  box-shadow: 0 10px 30px -14px rgba(111, 155, 255, 0.6);
  /* No transform here: .magnetic sets an inline GSAP transform on this element,
     so a CSS hover transform would never apply. */
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.call__num:hover { background: #ffffff; box-shadow: 0 14px 34px -14px rgba(111, 155, 255, 0.7); }
.call__num i { font-size: 1.7rem; color: var(--blue); }
.call__num-label { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.call__num-value { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }

.call__hours { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 0.95rem; }
.call__hours i { font-size: 1.1rem; color: var(--blue-2); }
.call__note { color: var(--ink-2); font-size: 0.95rem; }
.call__alt { color: var(--ink-3); font-size: 0.88rem; border-top: 1px solid var(--line); padding-top: 1rem; }


/* ---------- Client portal ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100000;
  padding: 10px 16px;
  border-radius: 12px;
  background: #f4f7ff;
  color: #07122b;
  font-weight: 500;
  transform: translateY(-150%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.nav__form { display: inline-flex; margin: 0; }
.nav__sheet .nav__form { display: block; margin-top: 8px; }

.portal-narrow { max-width: 38rem; }
.portal-title { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 600; margin-top: 0.8rem; overflow-wrap: anywhere; }
.portal-lede { margin-top: 1rem; color: var(--ink-2); max-width: 42rem; font-size: 1.05rem; }
.portal-lede strong { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.portal-help { margin-top: 1.25rem; color: var(--ink-2); font-size: 0.92rem; }
.portal-help a, .field__hint a, .panel__muted a, .notice a { text-decoration: underline; text-underline-offset: 3px; }
.portal-actions { margin-top: 2rem; }
.portal-card { margin-top: 2rem; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); }
.portal-subtitle { margin-top: 3rem; }

.portal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.portal-head__meta { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 0.92rem; color: var(--ink-2); }
.portal-head__meta li, .portal-head__meta a { display: inline-flex; align-items: center; gap: 8px; }
.portal-head__meta a { color: var(--ink-2); transition: color 0.3s; }
.portal-head__meta a:hover { color: var(--ink); }
.portal-head__meta strong { color: var(--ink); font-weight: 600; }
nav.portal-head__meta { flex-direction: row; flex-wrap: wrap; gap: 8px; }
nav.portal-head__meta a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-1); }

/* Status line. Text stays in the ink colour for contrast; the icon and the
   left edge carry the ok/error colour, so meaning is never colour alone. */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin: 0 0 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-3);
  background: var(--surface-1);
  color: var(--ink);
  font-size: 0.95rem;
}
.notice i { font-size: 1.15rem; flex: none; margin-top: 1px; }
.notice--ok { border-left-color: var(--ok); }
.notice--ok i { color: var(--ok); }
.notice--err { border-left-color: var(--err); }
.notice--err i { color: var(--err); }
.notice code, .field code { font-family: var(--mono); font-size: 0.88em; }

.panel { padding: clamp(22px, 3.5vw, 36px); border-radius: var(--radius); margin-bottom: 14px; }
.panel__title { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 1rem; }
.panel__subtitle { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.25rem; }
.panel__muted { color: var(--ink-2); font-size: 0.95rem; }
.panel__muted + .form, .panel__muted + .files { margin-top: 1.25rem; }
.panel__prose p { color: var(--ink-2); line-height: 1.7; }

.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.portal-grid > .panel { margin-bottom: 0; }

.portal-empty { text-align: center; padding: clamp(36px, 6vw, 64px); }
.portal-empty i { font-size: 2.4rem; color: var(--chart); }
.portal-empty h2 { font-size: 1.4rem; font-weight: 600; margin: 0.75rem 0 0.5rem; letter-spacing: -0.02em; }
.portal-empty p { color: var(--ink-2); max-width: 36rem; margin: 0 auto; }

/* Stat tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { padding: 22px 22px 18px; border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 6px; }
.kpi__label { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); }
.kpi__value { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.kpi__delta { display: inline-flex; align-items: center; gap: 4px; font-size: 0.88rem; font-weight: 500; color: var(--ink-2); }
.kpi__delta.is-up { color: var(--ok); }
.kpi__delta.is-down { color: var(--err); }
.kpi__vs { color: var(--ink-2); font-weight: 400; }
.spark { display: block; margin-top: 8px; overflow: visible; }
.spark__line { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark__dot { fill: var(--chart); stroke: var(--bg); stroke-width: 2; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 1.5rem 0 0; }
.facts div { padding: 14px 16px; border-radius: 14px; background: var(--surface-1); }
.facts dt { font-size: 0.82rem; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.facts__unit { font-size: 0.85rem; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.facts--stack { grid-template-columns: 1fr; }
.facts--stack dd { font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }

/* Column chart: plain HTML so its text stays full size at any width. */
.chart { position: relative; margin: 0; }
.chart__caption { font-size: 0.85rem; color: var(--ink-2); }
.chart__frame { position: relative; height: 240px; margin-top: 14px; }
.chart__ticks { position: absolute; inset: 0 0 28px 0; list-style: none; margin: 0; padding: 0; }
.chart__ticks li { position: absolute; left: 44px; right: 0; bottom: var(--at); border-top: 1px solid var(--line); }
.chart__ticks span { position: absolute; left: -44px; width: 36px; transform: translateY(-50%); text-align: right; font-size: 0.75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chart__cols { position: absolute; top: 0; right: 0; bottom: 0; left: 44px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.chart__col { display: flex; flex-direction: column; align-items: center; min-width: 0; border-radius: 8px; outline: none; }
.chart__col:focus-visible { box-shadow: inset 0 0 0 2px var(--blue-2); }
.chart__slot { position: relative; flex: 1; width: 100%; display: flex; justify-content: center; }
.chart__bar { position: absolute; bottom: 0; width: min(24px, 64%); height: var(--h); background: var(--chart); border-radius: 4px 4px 0 0; transition: filter 0.2s; }
.chart__col.is-active .chart__bar { filter: brightness(1.18) saturate(1.1); }
.chart__value { position: absolute; bottom: calc(var(--h) + 6px); font-size: 0.8rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.chart__x { height: 28px; display: flex; align-items: flex-end; font-size: 0.72rem; color: var(--ink-2); }
.chart__tip {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(7, 14, 32, 0.95);
  color: #fff;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px));
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}
.chart__tip[hidden] { display: none; }
.chart__tip-value { font-size: 0.95rem; font-weight: 600; }
.chart__tip-title { color: rgba(226, 234, 255, 0.78); }

/* Tables */
.table-view { padding-top: 18px; padding-bottom: 18px; }
.table-view summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; list-style: none; }
.table-view summary::-webkit-details-marker { display: none; }
.table-view summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; color: var(--ink-2); }
.table-view[open] summary::after { content: "\2212"; }
.table-wrap { overflow-x: auto; margin-top: 1rem; border-radius: 12px; }
.table-wrap:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; padding-left: 0; }
.data-table thead th { font-size: 0.8rem; font-weight: 500; color: var(--ink-2); }
.data-table tbody th { font-weight: 500; }
.data-table td:first-child { white-space: normal; }
.data-table__actions form { display: inline; margin-left: 14px; }

.table-link, .link-danger {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.table-link { color: var(--blue-2); }
.link-danger { color: var(--err); }
.table-link:hover, .link-danger:hover { text-decoration-thickness: 2px; }

.badge { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-1); color: var(--ink-2); font-size: 0.75rem; font-weight: 500; vertical-align: middle; white-space: nowrap; }
.badge--off { color: var(--err); }

/* File and people lists */
.files, .people { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.files__row, .people__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.files__icon { font-size: 1.6rem; color: var(--chart); flex: none; }
.files__text, .people__text { flex: 1; min-width: 12rem; }
.files__name { font-weight: 500; overflow-wrap: anywhere; }
.files__meta { font-size: 0.85rem; color: var(--ink-2); overflow-wrap: anywhere; }
.files__row form, .people__actions form { margin: 0; }
.people { margin-top: 0; }
.people__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Message thread */
.thread { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.thread__msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-1); }
.thread__msg.is-mine { align-self: flex-end; border-color: rgba(47, 107, 255, 0.35); background: rgba(47, 107, 255, 0.1); }
.thread__meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; font-size: 0.78rem; color: var(--ink-2); }
.thread__meta span { font-weight: 500; color: var(--ink); }
.thread__body { line-height: 1.6; overflow-wrap: anywhere; }

/* Forms: extra field types and layout */
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.5; }
.field input[type="file"] { padding: 10px; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.field input[type="month"] { color-scheme: dark; }
html[data-theme="day"] .field input[type="month"] { color-scheme: light; }
.field > span small { color: var(--ink-2); font-size: 0.95em; }
.field__hint { margin-top: -6px; font-size: 0.85rem; color: var(--ink-2); }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form__grid--2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form__actions .btn { margin-top: 8px; }
.copy-field { display: flex; gap: 8px; margin-top: 1rem; }
.copy-field input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 0.82rem; }
.invite-box { border: 1px solid var(--chart); }

.danger-zone { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.danger-zone summary { cursor: pointer; color: var(--err); font-weight: 500; }
.danger-zone .panel__muted { margin: 0.75rem 0 1rem; }
.btn--danger { background: #b42318; color: #fff; }
.btn--danger:hover { background: #9a1d13; }

@media (max-width: 860px) {
  .mini-steps { grid-template-columns: 1fr; }
  .login__grid { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .mini-steps { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__a { grid-column: span 2; grid-row: span 2; }
  .bento__b { grid-column: span 2; }
  .bento__c { grid-column: span 1; }
  .bento__d { grid-column: span 1; grid-row: span 1; }
  .bento__d .bars { height: 110px; }
  .bento__e { grid-column: span 2; }
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-head__copy { justify-self: start; }
}

@media (max-width: 860px) {
  .stage { left: calc((100cqw - var(--w)) * 0.46); }
  .nav__links, .nav__divider, .nav__right .btn, .nav__right .theme-toggle { display: none; }
  .nav__toggle { display: block; }
  .nav__pill { padding: 6px 6px 6px 18px; }
  .services__grid { grid-template-columns: 1fr; }
  .services__aside-inner, .services__list { padding-top: 0; }
  .services__index { display: none; }
  .voices { grid-template-columns: 1fr; }
  .cta__panel { grid-template-columns: 1fr; }
  .call__grid { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .accordion { flex-direction: column; height: auto; }
  .acc { flex: none; height: 84px; transition: height 0.8s var(--ease), border-color 0.5s; }
  .acc.is-open { height: 420px; }
  .acc__rail { inset: 0 24px; transform: none; flex-direction: row; justify-content: flex-start; gap: 16px; }
  .acc__label { writing-mode: horizontal-tb; transform: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .bento > * { grid-column: span 1 !important; grid-row: span 1 !important; }
  .bento__a { min-height: 440px; }
  .bento__b, .bento__e { flex-direction: column; align-items: stretch; }
  .channels { grid-template-columns: repeat(2, 1fr); }
  .bento__a .card__media::after { background: linear-gradient(180deg, rgba(var(--scrim), 0) 10%, rgba(var(--scrim), 0.7) 40%, rgba(var(--scrim), 0.96) 70%); }
  .form__row { grid-template-columns: 1fr; }
  .wide-shot__inner { aspect-ratio: 4 / 5; border-radius: 24px; }
  .wide-shot__cap { position: relative; left: 0; bottom: 0; margin-top: 12px; max-width: none; }
  .svc { padding: 20px; gap: 16px; }
  .svc__icon { width: 44px; height: 44px; font-size: 1.3rem; }
  .cta__panel, .call__panel { border-radius: 28px; }
  /* Keep the number on one line: a phone number broken across lines is hard to
     read and to dictate. Shrink it instead. */
  .call__num-value { font-size: 1.25rem; }
  .chart__col:nth-last-child(even) .chart__x { visibility: hidden; }
  .thread__msg { max-width: 100%; }
  .copy-field { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .manifesto__title .w { opacity: 1; }
}
