/* ==========================================================================
   Effectus Media — site styles
   Brand: Electric Violet #5600E5 · Radiant Purple #8E2DE2 · Midnight Indigo #00001A
          Digital Lavender #DADAFE · Season Mix (display) · Satoshi (text)
   System: zero radius, ruled grid with + crosshairs, ASCII accents
   ========================================================================== */

/* ---------- Fonts ---------- */
/* Season Mix files are TRIAL licences: buy the web licence from Displaay before launch. */
@font-face { font-family: "Season Mix"; src: url("../fonts/SeasonMix-TRIAL-Light.ttf") format("truetype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Season Mix"; src: url("../fonts/SeasonMix-TRIAL-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Season Mix"; src: url("../fonts/SeasonMix-TRIAL-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Season Mix"; src: url("../fonts/SeasonMix-TRIAL-LightItalic.ttf") format("truetype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Season Mix"; src: url("../fonts/SeasonMix-TRIAL-RegularItalic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --violet: #5600e5;
  --violet-deep: #4300b8;
  --violet-bright: #7c34f4;
  --purple: #8e2de2;
  --ink: #00001a;
  --lavender: #dadafe;
  --bg: #f6f6ff;
  --soft: #ededfc;
  --white: #fff;

  --text: var(--ink);
  --text-2: rgba(0, 0, 26, 0.72);
  --text-3: rgba(0, 0, 26, 0.56);
  --line: rgba(0, 0, 26, 0.14);
  --tile: #ededfc;
  --muted: rgba(0, 0, 26, 0.46);
  --line-strong: rgba(0, 0, 26, 0.32);
  --xh: var(--ink);

  --shadow-card: none;
  --shadow-card-lg: none;
  --shadow-lift: none;

  --f-display: "Season Mix", "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-text: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 6.4vw, 120px);
  --maxw: 1200px;
  --rail: max(16px, calc(var(--gutter) - 16px), calc(50% - 624px));
  --sect-pad: clamp(80px, 8.4vw, 120px);
  --nav-h: 84px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000; padding: 12px 18px;
  background: var(--ink); color: #fff; font-weight: 500; transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* Sections carry the vertical rails. --rail contains a percentage, so it must
   only be used on full-width boxes (never inside .container), or the rails and
   crosshairs resolve it against different widths and drift apart. */
.sect { position: relative; padding-block: var(--sect-pad); }
.sect::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(var(--line), var(--line)) no-repeat left var(--rail) top 0 / 1px 100%,
    linear-gradient(var(--line), var(--line)) no-repeat right var(--rail) top 0 / 1px 100%;
}
/* Crosshairs appear only where a horizontal rule actually crosses the rails */
.sect--ruled { border-top: 1px solid var(--line); }
.sect--ruled::after {
  content: ""; position: absolute; z-index: 3; pointer-events: none;
  top: -7px; height: 13px; left: calc(var(--rail) - 6px); right: calc(var(--rail) - 6px); /* -7px: centred on the 1px border above the padding box */
  background:
    linear-gradient(var(--xh), var(--xh)) no-repeat left 5.5px top 0 / 2px 13px,
    linear-gradient(var(--xh), var(--xh)) no-repeat left 0 top 5.5px / 13px 2px,
    linear-gradient(var(--xh), var(--xh)) no-repeat right 5.5px top 0 / 2px 13px,
    linear-gradient(var(--xh), var(--xh)) no-repeat right 0 top 5.5px / 13px 2px;
}

/* Free-standing crosshair, placed on a rail where a full-width rule crosses it */
.xh { position: absolute; z-index: 3; width: 13px; height: 13px; pointer-events: none; --c: var(--xh); }
.xh::before, .xh::after { content: ""; position: absolute; background: var(--c); }
.xh::before { left: 5.5px; top: 0; width: 2px; height: 13px; }
.xh::after { top: 5.5px; left: 0; width: 13px; height: 2px; }
.xh--light { --c: #fff; }
.xh--tl, .xh--bl { left: calc(var(--rail) - 6px); }
.xh--tr, .xh--br { right: calc(var(--rail) - 6px); }
.xh--tl, .xh--tr { top: -6px; }
.xh--bl, .xh--br { bottom: -6px; }

.sect--tall { padding-block: clamp(96px, 11vw, 168px); }

.stack > * + * { margin-top: var(--gap, 24px); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }

.sect-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 4vw, 56px); }

.sect-head .h2 { max-width: 720px; }
/* a heading with nothing beside it sits in the middle */
.sect-head:not(:has(> :nth-child(2))) { justify-content: center; text-align: center; }
.sect-head:not(:has(> :nth-child(2))) .h2 { margin-inline: auto; }
/* heading and its line stacked in the middle */
.sect-head--center { flex-direction: column; align-items: center; gap: 16px; text-align: center; }

/* ---------- Typography ---------- */
.h1, .h2, .h3 { font-family: var(--f-display); font-weight: 400; color: var(--text); }

.h1 { font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
.h2 { font-size: clamp(2.2rem, 1.5rem + 2.3vw, 3.5rem); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
.h3 { font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2rem); line-height: 1.2; letter-spacing: -0.005em; }
.lead { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.25rem); font-weight: 300; line-height: 1.5; color: var(--text-2); }

.card-title { font: 600 20px/1.3 var(--f-text); letter-spacing: -0.005em; color: var(--text); }
.eyebrow { font: 400 13px/1.2 var(--f-text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--violet); }

.hl { color: var(--violet); }

.measure { max-width: 34em; }
.text-2 { color: var(--text-2); }

/* ---------- Icons ---------- */
.ic { width: 16px; height: 16px; flex: none; }

/* ---------- Buttons (zero radius) ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent; --btn-hover-bg: var(--ink); --btn-hover-fg: #fff; --btn-hover-bd: transparent;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px 14px 20px; min-height: 48px;
  font: 500 15px/1.2 var(--f-text); color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); white-space: nowrap; cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, translate 0.45s var(--ease-spring), transform 0.16s var(--ease-out);
}
.btn:focus-visible { background: var(--btn-hover-bg); color: var(--btn-hover-fg); border-color: var(--btn-hover-bd); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); border-color: var(--btn-hover-bd); } }
.btn:active { transform: scale(0.97); }
.btn__icon { position: relative; width: 16px; height: 16px; overflow: hidden; flex: none; }
.btn__icon .ic { position: absolute; inset: 0; transition: transform 0.35s var(--ease-out); }
.btn__icon .ic + .ic { transform: translate(-120%, 120%); }
@media (hover: hover) and (pointer: fine) { .btn:hover .btn__icon .ic:first-child { transform: translate(120%, -120%); } }
@media (hover: hover) and (pointer: fine) { .btn:hover .btn__icon .ic + .ic { transform: none; } }
.btn__icon--down .ic + .ic { transform: translateY(-120%); }
@media (hover: hover) and (pointer: fine) { .btn:hover .btn__icon--down .ic:first-child { transform: translateY(120%); } }
.btn--primary { --btn-bg: var(--violet); --btn-fg: #fff; --btn-hover-bg: var(--violet-deep); }
.btn--secondary { --btn-bd: var(--line-strong); --btn-hover-bg: transparent; --btn-hover-fg: var(--ink); --btn-hover-bd: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-hover-bg: var(--lavender); --btn-hover-fg: var(--ink); }
.btn--ghost { --btn-bd: rgba(255, 255, 255, 0.4); --btn-fg: #fff; --btn-hover-bg: rgba(255, 255, 255, 0.1); --btn-hover-fg: #fff; --btn-hover-bd: #fff; }
.btn--sm { padding: 10px 14px 10px 16px; min-height: 40px; font-size: 14px; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: 0.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1.2 var(--f-text); color: var(--violet);
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px; padding-bottom: 3px;
  transition: background-size 0.45s var(--ease-out), gap 0.3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { background-size: 100% 1px; gap: 12px; } }

/* ---------- Label / grid box: ruled label with + crosshairs at the corners ---------- */

@keyframes blink { 50% { opacity: 0.2; } }

/* Crosshair-cornered frame (larger) */

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; background: #fff; border: 1px solid var(--line);
  font: 500 13px/1.2 var(--f-text); color: var(--ink); white-space: nowrap;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
button.tag, .tag[data-tip] { cursor: help; }
.tag:focus-visible { border-color: var(--violet); color: var(--violet); }
@media (hover: hover) and (pointer: fine) { .tag:hover { border-color: var(--violet); color: var(--violet); } }

/* ---------- Pills: fully rounded, as in the brand guidelines ---------- */
.tag, .chip span, .filter, .chip-links a, .wcard__meta .meta, .store__tag, .pill, .nav__new { border-radius: 999px; }
.chip span::before { border-radius: 50%; }
/* the label above a page title; the trailing letter-spacing comes off the right padding */
.pill { display: inline-flex; align-items: center; padding: 9px 12px 8px 16px; background: var(--lavender); color: var(--violet); }
[data-nav="dark"] .pill { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }

/* ---------- Cards ---------- */
.card { position: relative; background: #fff; transition: transform 0.5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.card:hover { transform: translateY(-6px); } }

/* ---------- Header / nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  color: var(--ink); transition: transform 0.5s var(--ease-out), background-color 0.4s, color 0.4s;
}
/* logo left, page links centred on the viewport, one CTA right */
.nav__inner { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.nav__brand { display: inline-flex; justify-self: start; position: relative; }
.nav__brand .logo { width: 140px; height: 37.5px; }
.nav__brand .logo--mono { position: absolute; inset: 0; opacity: 0; }
.nav__links { display: flex; gap: 30px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; font: 500 15px/1.2 var(--f-text); padding: 8px 0; }
.nav__link--new { display: inline-flex; align-items: center; gap: 8px; }
.nav__new { padding: 3px 8px 3px; background: var(--violet); color: #fff; font: 500 11px/1.1 var(--f-text); }
.nav[data-theme="dark"] .nav__new { background: var(--lavender); color: var(--violet); }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out);
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) { .nav__link:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__cta { justify-self: end; }
.nav__burger { display: none; justify-self: end; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* nav over dark heroes */
.nav[data-theme="dark"] { color: #fff; }
.nav[data-theme="dark"] .logo:not(.logo--mono) { opacity: 0; }
.nav[data-theme="dark"] .logo--mono { opacity: 1; }
.nav[data-theme="dark"] .btn--primary { --btn-bg: #fff; --btn-fg: var(--ink); --btn-fill: var(--violet); }
.nav.is-solid { background: rgba(246, 246, 255, 0.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.nav.is-solid[data-theme="dark"] { background: rgba(0, 0, 26, 0.72); }
.nav.is-hidden { transform: translateY(-100%); }
/* the rule under the nav (layout.html); it belongs to the page, so it scrolls away with the hero. The homepage hero draws its own */
.navrule { position: absolute; z-index: 5; top: var(--nav-h); left: 0; right: 0; height: 1px; background: var(--line); pointer-events: none; }
/* white over dark heroes: the nav knows which theme the top of the page has */
.nav[data-theme="dark"] ~ main .navrule { background: rgba(255, 255, 255, 0.3); }
.nav[data-theme="dark"] ~ main .navrule .xh { --c: #fff; }
.home .navrule { display: none; }
.menu-open .nav { transform: none; background: transparent; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .nav .logo:not(.logo--mono) { opacity: 0; }
.menu-open .nav .logo--mono { opacity: 1; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 85; background: var(--ink); color: #fff; display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; visibility: hidden; opacity: 0;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease-in-out), opacity 0.3s, visibility 0s 0.7s;
}
.menu-open .menu { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path 0.7s var(--ease-in-out), opacity 0.2s, visibility 0s; }
.menu__links { position: relative; list-style: none; padding: 0; display: grid; gap: 4px; }
.menu__links a { display: flex; align-items: baseline; gap: 14px; font: 400 clamp(2.4rem, 9vw, 3.5rem)/1.12 var(--f-display); letter-spacing: -0.01em; }
.menu__links a small { font: 400 12px/1 var(--f-text); color: var(--lavender); letter-spacing: 0.3em; }
.menu__links li { transform: translateY(40px); opacity: 0; transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out); transition-delay: calc(0.12s + var(--i) * 0.05s); }
.menu-open .menu__links li { transform: none; opacity: 1; }
.menu__foot { position: relative; margin-top: auto; display: grid; gap: 20px; }
.menu__foot a.mail { color: rgba(255, 255, 255, 0.74); }
body.menu-open { overflow: hidden; }

/* ---------- Custom cursor (only inside [data-cursor] zones, fine pointers) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.cursor.is-on { opacity: 1; }
/* white everywhere; the faint edge keeps it findable on the light tiles */
.cursor__x { position: absolute; left: -10.5px; top: -10.5px; width: 21px; height: 21px; filter: drop-shadow(0 0 1px rgba(0, 0, 26, 0.55)); transition: transform 0.35s var(--ease-spring); }
.cursor__x::before, .cursor__x::after { content: ""; position: absolute; background: #fff; }
.cursor__x::before { left: 9px; top: 0; width: 3px; height: 21px; }
.cursor__x::after { top: 9px; left: 0; height: 3px; width: 21px; }
.cursor.is-down .cursor__x { transform: rotate(45deg) scale(0.8); }
.cursor__label {
  position: absolute; left: 18px; top: 14px; padding: 7px 10px; background: var(--ink); color: #fff;
  font: 400 11px/1 var(--f-text); letter-spacing: 0.3em; text-transform: uppercase; white-space: nowrap;
  transform: scale(0.6); transform-origin: 0 0; opacity: 0; transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.cursor.has-label .cursor__label { transform: none; opacity: 1; }
.cursor.is-flip .cursor__label { left: auto; right: 18px; transform-origin: 100% 0; }
.cursor--light .cursor__label { background: #fff; color: var(--ink); }
/* over the showreel the cursor becomes a square Play tile */
.cursor--tile .cursor__x { opacity: 0; }
.cursor--tile .cursor__label, .cursor--tile.is-flip .cursor__label { left: 0; right: auto; top: 0; display: grid; place-items: center; width: 88px; height: 88px; padding: 0 0 0 0.3em; background: var(--violet); translate: -50% -50%; transform-origin: 50% 50%; }
@media (pointer: fine) {
  .has-cursor [data-cursor], .has-cursor [data-cursor] * { cursor: none; }
  .has-cursor [data-cursor] input, .has-cursor [data-cursor] textarea { cursor: text; }
}

/* ---------- Tooltip popover ---------- */
.tip {
  position: fixed; left: 0; top: 0; z-index: 210; max-width: 280px; padding: 10px 12px 11px;
  background: var(--ink); color: #fff; font: 400 13px/1.45 var(--f-text); pointer-events: none;
  opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.3s var(--ease-out);
}
.tip.is-on { opacity: 1; transform: none; }
.tip b { display: block; font: 400 11px/1.2 var(--f-text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--lavender); margin-bottom: 4px; }
.tip::after { content: ""; position: absolute; left: var(--ax, 50%); width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.tip[data-side="top"]::after { bottom: -4px; }
.tip[data-side="bottom"]::after { top: -4px; }

/* ---------- Page transition (ASCII wipe) ---------- */
/* Page transitions: a short fade of the page body */
main, .footer { transition: opacity 0.22s ease, transform 0.32s var(--ease-out); }
.is-leaving main, .is-leaving .footer { opacity: 0; transform: translateY(-8px); }
.pt-in main, .pt-in .footer { opacity: 0; transform: translateY(10px); }

/* ---------- Reveal + kinetic type ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.9s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: clip; vertical-align: top; padding: 0.06em 0.02em 0.12em; margin: -0.06em -0.02em -0.12em; }
.wi { display: inline-block; will-change: transform; }
.js [data-split] .wi { transform: translate3d(0, 110%, 0) rotate(4deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease-out) calc(var(--d, 0s) + var(--wi) * 55ms); }
.js [data-split].is-in .wi { transform: none; }
[data-scrub] .sw { color: var(--text); opacity: 0.18; transition: opacity 0.3s linear; }
[data-scrub] .sw.on { opacity: 1; }
[data-scramble] { font-variant-ligatures: none; }

/* ==========================================================================
   SYSTEM: the homepage's language, shared by every page
   ========================================================================== */

/* Meta labels: Satoshi Regular, all caps, 30% letter spacing (brand book) */
.meta, .fig-cap { font: 400 12px/1.2 var(--f-text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); }
.meta--v { color: var(--violet); }
.fig-cap { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 12px; font-size: 11px; line-height: 1; }
.fig-cap span { color: var(--violet); }
.fig-cap em { font-style: normal; }
.h1 em, .h2 em { font-style: italic; color: var(--violet); }

/* ---------- Motion: every ruled section draws its rule across, then its crosshairs ---------- */
@property --rule { syntax: "<percentage>"; inherits: true; initial-value: 100%; }
.sect--ruled { border-top: 0; }
.sect--ruled::before {
  background:
    linear-gradient(var(--line), var(--line)) no-repeat left var(--rail) top 0 / 1px 100%,
    linear-gradient(var(--line), var(--line)) no-repeat right var(--rail) top 0 / 1px 100%,
    linear-gradient(var(--line), var(--line)) no-repeat left 0 top 0 / var(--rule) 1px;
}
.sect--ruled::after { top: -6px; }
.js .sect--ruled { --rule: 0%; transition: --rule 1.4s var(--ease-out); }
.js .sect--ruled::after { transform: scaleY(0); transition: transform 0.5s var(--ease-spring) 0.75s; }
.js .sect--ruled.is-drawn { --rule: 100%; }
.js .sect--ruled.is-drawn::after { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .sect--ruled { --rule: 100%; } .js .sect--ruled::after { transform: none; } }

/* ---------- Benefits: picture, numbers, icons, gradient (after a fintech bento) ---------- */
.sbento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(clamp(290px, 23vw, 340px), auto); gap: 12px; }
.sb { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: clamp(22px, 2vw, 30px); background: var(--tile); isolation: isolate; }
.sb .card-title { margin: 0; }
.sb p { margin: 8px 0 0; max-width: 30em; color: var(--text-2); }
.sb__body { position: relative; z-index: 1; }
.sb__big { display: block; font: 400 clamp(3.6rem, 1.6rem + 3.6vw, 6rem)/0.9 var(--f-display); letter-spacing: -0.045em; }
.sb__big small { font-size: 0.42em; letter-spacing: -0.01em; }
.sb__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out); }
.sb__ico .ph { width: 22px; height: 22px; }
.sb__ico--lg { width: 72px; height: 72px; }
.sb__ico--lg .ph { width: 32px; height: 32px; }
@media (hover: hover) and (pointer: fine) { .sb:hover .sb__ico { background: var(--violet); color: #fff; } }
/* the picture: tall, fading into the tile where the words sit */
.sb--pic { grid-row: span 2; justify-content: flex-end; }
.sb--pic img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.sb--pic::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 38%, rgba(237, 237, 252, 0.9) 68%, var(--tile) 84%); }
@media (hover: hover) and (pointer: fine) { .sb--pic:hover img { scale: 1.05; } }
/* a number on the brand blue */
.sb--num { justify-content: space-between; background: linear-gradient(160deg, #2c4fe0, #5d78ee 55%, #aab8f7); color: #fff; }
.sb--num .card-title, .sb--num p { color: #fff; }
.sb--num::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.35), transparent); translate: 40% 45%; transition: translate 1.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sb--num:hover::before { translate: 10% 15%; } }
/* a picture with the words over its foot (the storm for speed) */
.sb--shot { justify-content: flex-end; color: #fff; }
.sb--shot img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.sb--shot::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(16, 4, 60, 0.82)); }
.sb--shot .card-title, .sb--shot p { color: #fff; }
@media (hover: hover) and (pointer: fine) { .sb--shot:hover img { scale: 1.05; } }
/* a live line figure above the words: the work in four steps, walked through under the pointer */
.sb--line { gap: 18px; background: linear-gradient(180deg, #fff 0%, var(--tile) 78%); }
.sb--line .sb__fig { flex: 1; min-height: 0; padding: 0; background: none; }
.sb__word { display: block; font: 400 clamp(2.6rem, 1.6rem + 1.8vw, 3.6rem)/1 var(--f-display); letter-spacing: -0.03em; }
/* a figure beside a statement */
.sb--split { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(20px, 2.4vw, 36px); }
.sb__stat { display: grid; justify-items: center; align-content: center; gap: 10px; height: 100%; padding: 24px; background: #fff; text-align: center; }
.sb__stat .sb__ico { background: var(--tile); }
.sb__stat b { font: 400 clamp(2.2rem, 1.2rem + 1.5vw, 3.4rem)/1 var(--f-display); letter-spacing: -0.03em; white-space: nowrap; }
.sb__stat > span:last-child { font-size: 14px; color: var(--text-2); }
.sb--split .link-arrow { margin-top: 22px; }
/* the brand gradient rising from the foot, slowly breathing */
.sb--glow { grid-column: span 2; justify-content: space-between; gap: 28px; }
.sb--glow::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -55%; height: 110%; z-index: -1; background: radial-gradient(40% 55% at 22% 50%, rgba(86, 0, 229, 0.42), transparent 70%), radial-gradient(42% 60% at 55% 55%, rgba(60, 102, 234, 0.55), transparent 70%), radial-gradient(38% 55% at 84% 50%, rgba(214, 120, 230, 0.45), transparent 70%); filter: blur(18px); animation: sb-breathe 9s ease-in-out infinite alternate; }
/* the home bento's own gradient: warm, from the brand book's flower (rose, peach, lilac), unlike the blues elsewhere */
.sb--warm::before { background: radial-gradient(40% 55% at 20% 50%, rgba(255, 140, 170, 0.55), transparent 70%), radial-gradient(42% 60% at 52% 55%, rgba(255, 186, 140, 0.55), transparent 70%), radial-gradient(38% 55% at 84% 50%, rgba(186, 120, 255, 0.5), transparent 70%); }
@keyframes sb-breathe { to { transform: translate3d(-4%, -8%, 0) scale(1.08); } }
.sb__chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sb__chips li { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); font-size: 13px; color: var(--text-2); backdrop-filter: blur(8px); }
.sb__chips b { display: block; font-weight: 500; font-size: 15px; color: var(--ink); }
.sb__chips .sb__ico { width: 38px; height: 38px; }
.sb__chips .sb__ico .ph { width: 19px; height: 19px; }
/* an orb, a number */
.sb--orb { align-items: center; justify-content: center; gap: 14px; text-align: center; background: linear-gradient(180deg, #f7f7ff, var(--tile)); }
.sb--orb .sb__ico { box-shadow: none; outline: 10px solid rgba(255, 255, 255, 0.6); }
.sb--orb p { max-width: 17em; }
@media (prefers-reduced-motion: reduce) { .sb--glow::before { animation: none; } }

.sbento--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sbento--3 .sb--tall { grid-column: 3; grid-row: 1 / span 2; }
.sb__fig { display: grid; place-items: center; height: 100%; padding: 12px; background: #fff; }
.sb__fig .hl { width: 100%; max-width: 340px; }
.sb__chips--col { flex-direction: column; align-items: flex-start; }
.sb--pic .sb__chips { margin-top: 20px; }
.sbento--3 .sb--pic img { height: 62%; }
.sbento--3 .sb--pic::after { background: linear-gradient(180deg, transparent 30%, var(--tile) 62%); }

/* ---------- Testimonial ---------- */
/* a number first, then the quotes, in one ruled rail: the number stays put while the quotes run past it */
.qrail { --qs: clamp(220px, 21vw, 300px); display: flex; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--qs); overscroll-behavior-x: contain; scrollbar-width: none; background: var(--tile); border: 1px solid var(--line); }
.qrail::-webkit-scrollbar { display: none; }
.qrail:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.qscore { position: sticky; left: 0; z-index: 1; flex: 0 0 var(--qs); display: grid; align-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; background: linear-gradient(165deg, #3d0fb4 0%, #1f0a78 52%, #0d0340 100%); color: #fff; }
.qscore b { font: 400 clamp(3.6rem, 2.8rem + 2.6vw, 5.4rem)/1 var(--f-display); letter-spacing: -0.03em; }
.qscore p { margin-top: 4px; font-size: 16px; font-weight: 500; }
.qscore span { font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.qcell { flex: 0 0 clamp(300px, 26vw, 380px); display: grid; grid-template-rows: 44px 1fr auto auto; gap: 22px; min-height: clamp(400px, 31vw, 460px); margin: 0; padding: clamp(24px, 2.4vw, 34px); scroll-snap-align: start; }
.qcell + .qcell { border-left: 1px solid var(--line); }
.qcell blockquote { margin: 0; font: 400 clamp(20px, 1.25rem + 0.3vw, 24px)/1.28 var(--f-text); letter-spacing: -0.01em; color: var(--ink); }
/* every logo in one ink, its letters at one height (sizes in index.html, measured from each file); a fixed slot keeps the quotes level */
.qcell__logo { align-self: center; max-width: none; filter: brightness(0); opacity: 0.86; }
.qcell figcaption { display: grid; gap: 2px; font-size: 13px; line-height: 1.3; color: var(--text-3); }
.qcell figcaption b { font-size: 15px; font-weight: 500; color: var(--ink); }
.qcell__more { justify-self: start; padding: 11px 18px; background: rgba(0, 0, 26, 0.05); font-size: 14px; line-height: 1; color: var(--ink); transition: background-color 0.25s, color 0.25s; }
.qcell__more:focus-visible { background: var(--violet); color: #fff; }
@media (hover: hover) and (pointer: fine) { .qcell__more:hover { background: var(--violet); color: #fff; } }
.qrail__nav { justify-content: center; margin-top: 20px; }
.sq-nav__btn:disabled { opacity: 0.35; pointer-events: none; }

/* the quotes as a row of three (Free Homepage Redesign) */
.qgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--tile); border: 1px solid var(--line); }
.qgrid .qcell { min-height: 0; }

/* ---------- Hairline figures (assets/js/hairline): one stroke, violet as the only highlight ---------- */
.hl { --hairline-plate: #fff; --hairline-hi: var(--violet); --hairline-edge: rgba(0, 0, 26, 0.5); --hairline-mid: rgba(0, 0, 26, 0.3); --hairline-lo: rgba(0, 0, 26, 0.14); --hairline-stroke: 1; }
/* the parts each figure is about carry the violet: a tinted face and a violet edge */
.hl svg .acc > path { stroke: rgba(86, 0, 229, 0.34); }
.hl svg .acc > path:first-child, .hl svg .acc > path.sil, .hl svg path.acc { fill: #e2d7ff; stroke: rgba(86, 0, 229, 0.72); }
.hl svg .acc > path.nf { fill: none; }
.hl svg .acc > path.hi, .hl svg path.acc.hi { stroke: var(--violet); }
.hl svg path.acc.fo { stroke: none; }
/* every figure rests white, in line only; the part the pointer is working takes the violet while the figure (or the card holding it) is under the pointer */
.hl:not(:hover, :is(.scard, .sb):hover .hl) svg .acc > path { stroke: var(--hairline-mid); }
.hl:not(:hover, :is(.scard, .sb):hover .hl) svg .acc > path:first-child, .hl:not(:hover, :is(.scard, .sb):hover .hl) svg .acc > path.sil, .hl:not(:hover, :is(.scard, .sb):hover .hl) svg path.acc { fill: var(--hairline-plate); stroke: var(--hairline-edge); }
.hl:not(:hover, :is(.scard, .sb):hover .hl) svg .acc > path.hi, .hl:not(:hover, :is(.scard, .sb):hover .hl) svg path.hi { stroke: var(--hairline-edge); }
.hl-read { position: absolute; top: 14px; right: 16px; font-size: 11px; line-height: 1; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); pointer-events: none; }

/* ---------- Next stage (after ElevenLabs "Safety, built in") ---------- */
.scards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scard { display: flex; flex-direction: column; gap: 6px; padding: 0 24px 26px; background: var(--tile); }
.scard__fig { position: relative; margin: 0 -24px 18px; padding: clamp(12px, 1.6vw, 22px) 24px 0; }
.scard__fig .hl { max-width: 380px; margin-inline: auto; }
.scard__desc { color: var(--text-2); }

/* Gradient band: the homepage hero's blues for the sections that matter most. It drifts slowly. */
.sect--grad {
  --text: #fff; --text-2: #fff; --text-3: rgba(255, 255, 255, 0.64); --line: rgba(255, 255, 255, 0.24); --line-strong: rgba(255, 255, 255, 0.5); --xh: rgba(255, 255, 255, 0.9);
  color: #fff; isolation: isolate;
  background: linear-gradient(165deg, #173dd0 0%, #2349dc 34%, #4a6aec 62%, #5a73ef 78%, #3546cf 100%);
}
/* the glow drifts on its own layer by transform (no repaint per frame), paused off-screen (site.js sets .is-off) */
.grad-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.grad-glow::before { content: ""; position: absolute; left: 0; top: 0; width: 180%; height: 180%; background: radial-gradient(60% 80% at 50% 100%, rgba(150, 125, 255, 0.6), transparent 70%); will-change: transform; animation: grad-pan 22s ease-in-out infinite alternate; }
@keyframes grad-pan { from { transform: translate(-6.667%, -44.444%); } to { transform: translate(-37.778%, -31.111%); } }
.is-off .grad-glow::before { animation-play-state: paused; }
.sect--grad .lead { color: var(--text-2); }
.sect--grad .meta--v, .sect--grad .fig-cap span { color: var(--lavender); }
.sect--grad .statement { color: #fff; }
.sect--grad .statement__rest .sw { color: rgba(255, 255, 255, 0.26); }
.sect--grad .statement__rest .sw.on { color: var(--lavender); }
.sect--grad .facts .ic { color: var(--lavender); }
.sect--grad .closing-cta__field { -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%); mask-image: linear-gradient(90deg, transparent 35%, #000 85%); }
@media (prefers-reduced-motion: reduce) { .grad-glow::before { animation: none; } }

/* Icon button: a square lavender key (carousels, testimonials) */
.sq-nav { display: flex; gap: 8px; }
.sq-nav__btn { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); background: var(--lavender); cursor: pointer; transition: background-color 0.2s, color 0.2s, translate 0.45s var(--ease-spring); }
.sq-nav__btn:focus-visible { color: #fff; background: var(--violet); }
@media (hover: hover) and (pointer: fine) { .sq-nav__btn:hover { color: #fff; background: var(--violet); } }

/* ---------- Position statement ---------- */
.intro { padding-block: clamp(96px, 11vw, 168px); }
.statement { margin-inline: auto; text-align: center; font: 400 clamp(2.2rem, 1.5rem + 2.3vw, 3.5rem)/1.15 var(--f-text); letter-spacing: -0.02em; max-width: 21em; color: var(--ink); text-wrap: balance; }
.intro .statement { font-weight: 500; } /* the homepage statement, after the showreel */
.statement__lead { display: block; }
/* the rest of the sentence starts at 20% and turns fully black as it is read */
.statement__rest .sw { color: rgba(0, 0, 26, 0.2); transition: color 0.4s; }
.statement__rest .sw.on { color: var(--ink); }

/* ---------- FAQ as rows ---------- */
.faq--rows { gap: 0; border-top: 1px solid var(--line); }
.faq--rows .faq__item, .faq--rows .faq__item.is-open { background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.faq--rows .faq__q { padding: 22px 0; }
.faq--rows .faq__a p { padding: 0 48px 24px 0; }

/* ---------- Closing ---------- */
/* the supplied picture sits on the foot of the section, with the copy in its sky: the ground above it continues the picture's top edge. 38vw of bottom padding keeps the copy clear of the figure's head */
.closing-cta { padding-block: clamp(88px, 7vw, 120px) 38vw; overflow: hidden; text-align: center; background: linear-gradient(90deg, #849bdd, #7094d9 25%, #5e89d1 50%, #5682cc 75%, #4c79c4); --line: rgba(255, 255, 255, 0.28); --xh: rgba(255, 255, 255, 0.8); }
.closing-cta::before { z-index: 1; }
.cta-sky { position: absolute; left: -2%; right: -2%; bottom: -16px; z-index: 0; pointer-events: none; }
.cta-sky img { display: block; width: 100%; height: auto; max-width: none; }
.cta-sky__sky { -webkit-mask-image: linear-gradient(180deg, transparent, #000 6%); mask-image: linear-gradient(180deg, transparent, #000 6%); }
/* the person's cut-out sits where it was in the picture (708, 312 of 1694 x 906); the hill covers the chair's feet */
.cta-sky .cta-sky__person { position: absolute; left: 41.795%; top: 34.437%; width: 13.577%; }
.cta-sky .cta-sky__hill { position: absolute; inset: 0; }
.closing-cta__field { position: absolute; top: 0; left: var(--rail); width: calc(100% - var(--rail) * 2); height: 100%; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 85%); mask-image: linear-gradient(90deg, transparent 40%, #000 85%); }
.closing-cta .container { position: relative; z-index: 1; }
[data-kinetic] .ch { display: inline-block; will-change: transform; }
/* once risen, the words drop their masks so the letters can lean out of them */
[data-kinetic].is-free .w { overflow: visible; }
.closing-cta .lead { margin: 20px auto 0; max-width: 32em; color: rgba(0, 0, 26, 0.82); }
.closing-cta .actions { margin-top: 36px; justify-content: center; }
.closing-cta .inline-form { margin-inline: auto; }
/* parallax: the sky, the person and the hill rise into place at their own speeds (the hill fastest; the person a touch behind it, so the chair never lifts off the grass); the copy stays put. The compositor runs it, tied to the scroll */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes cta-sky { from { transform: translateY(3%); } to { transform: none; } }
    @keyframes cta-person { from { transform: translateY(46%); } to { transform: none; } }
    @keyframes cta-hill { from { transform: translateY(13%); } to { transform: none; } }
    .closing-cta { view-timeline: --cta; }
    .cta-sky img { animation: cta-sky auto linear both; animation-timeline: --cta; animation-range: entry 0% cover 60%; will-change: transform; }
    .cta-sky .cta-sky__person { animation-name: cta-person; }
    .cta-sky .cta-sky__hill { animation-name: cta-hill; }
  }
}

/* ---------- Isometric figures (layers animated by iso.js) ---------- */
.iso { position: relative; display: grid; place-items: center; touch-action: pan-y; }

/* ==========================================================================
   HOME
   ========================================================================== */

/* ---------- Hero: ASCII flower ---------- */

.ef-flower { position: absolute; inset: 0; z-index: 0; touch-action: pan-y; }
.ef-flower canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ef-flower .ef-bg { filter: blur(14px); }
.ef-flower .ef-glow { filter: blur(7px) saturate(1.3); mix-blend-mode: screen; opacity: 0.9; }

/* ---------- Client logo strip ---------- */

/* ---------- Showreel ---------- */

/* Dialog */

/* ---------- Bloom: AI-first approach (pinned) ---------- */
.ef-bloom { position: relative; height: 340vh; background: #6a5cf0; }
.ef-bloom .ef-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #6a5cf0; color: #fff; touch-action: pan-y; }
.ef-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ef-stage .ef-bg { filter: blur(14px); transform: scale(1.04); }
/* the real petals and stamens stay legible under the glyphs, which only trace their edges */
.ef-stage .ef-col { filter: blur(0.5px) saturate(1.1); opacity: 0.86; }
.ef-stage .ef-glow { filter: blur(5px) saturate(1.3); mix-blend-mode: screen; opacity: 0.8; }
@media (max-width: 809px), (pointer: coarse) { .ef-stage .ef-bg { filter: blur(8px); } .ef-stage .ef-glow { filter: saturate(1.3); opacity: 0.6; } }
.ef-stage__lines { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)) no-repeat left var(--rail) top 0 / 1px 100%,
    linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)) no-repeat right var(--rail) top 0 / 1px 100%;
}
/* copy on the left, the flower on the right (bloom.js reads [data-bloom-slot]); stacked on narrow screens */
.ef-stage::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 62%; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(36, 12, 140, 0.42), rgba(36, 12, 140, 0.14) 60%, transparent); }
.ef-stage__copy { position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; }
.ef-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; height: 100%; }
.ef-split__copy { display: flex; flex-direction: column; gap: clamp(28px, 4vh, 44px); }
.ef-split__art { align-self: stretch; }
.stage-pills { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.stage-pill { position: relative; display: flex; align-items: center; gap: 18px; padding: 10px 0 10px 22px; font: 400 13px/1.2 var(--f-text); letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.56); cursor: pointer; transition: color 0.4s; }
.stage-pill::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: currentColor; transition: width 0.5s var(--ease-out); }
.stage-pill span { opacity: 0.7; }
@media (hover: hover) and (pointer: fine) { .stage-pill:hover { color: rgba(255, 255, 255, 0.8); } }
.stage-pill.is-active { color: #fff; }
.stage-pill.is-active::before { width: 16px; }
.stage-heads { position: relative; display: grid; width: 100%; }
.stage-head { grid-area: 1 / 1; align-self: start; font: 400 clamp(2.2rem, 1.5rem + 2.3vw, 3.5rem)/1.1 var(--f-display); letter-spacing: -0.015em; text-wrap: balance; max-width: 11em; }
.stage-head .wi { transition: transform 0.9s var(--ease-out) calc(var(--wi) * 40ms), opacity 0.6s; }
.stage-head:not(.is-active) .wi { transform: translateY(-110%); opacity: 0; transition-duration: 0.5s; transition-delay: calc(var(--wi) * 20ms); }
.stage-head.is-before:not(.is-active) .wi { transform: translateY(110%); }
.ef-hint { position: absolute; z-index: 2; left: max(var(--gutter), calc(50% - 600px)); bottom: 28px; font: 400 11px/1 var(--f-text); letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); pointer-events: none; transition: opacity 0.6s; white-space: nowrap; }
.ef-hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 10px 0 0; background: linear-gradient(rgba(255, 255, 255, 0.8), transparent); animation: drip 1.8s ease-in-out infinite; }
@media (max-width: 860px), (max-aspect-ratio: 5/6) {
  .ef-stage::before { inset: 0 0 auto; width: auto; height: 62%; background: linear-gradient(180deg, rgba(36, 12, 140, 0.42), rgba(36, 12, 140, 0.16) 55%, transparent); }
  .ef-stage__copy { align-items: flex-start; padding-top: calc(var(--nav-h) + 3vh); }
  .ef-split { grid-template-columns: minmax(0, 1fr); height: auto; }
  .ef-split__art { display: none; }
  .ef-split__copy { align-items: center; text-align: center; gap: 22px; }
  .stage-pills { display: grid; justify-items: center; gap: 0; }
  .stage-pill { padding: 8px 0; gap: 10px; }
  .stage-pill::before { display: none; }
  .stage-head { margin-inline: auto; }
  .ef-hint { left: 50%; transform: translateX(-50%); }
  .ef-hint::after { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .ef-hint::after { animation: none; } }
@media (pointer: coarse) { .stage-pill { min-height: 44px; } .qcell__more { display: inline-flex; align-items: center; min-height: 44px; } .nav__brand { align-items: center; min-height: 44px; } }
@keyframes drip { 0%, 100% { transform: scaleY(0.3); transform-origin: top; } 50% { transform: scaleY(1); } }

/* ---------- Next stage cards ---------- */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ---------- Capabilities bento ---------- */

/* ---------- Metrics ---------- */

/* ---------- Work ---------- */

.project { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Testimonial ---------- */

/* ---------- Statement band with ASCII field ---------- */
.band { position: relative; min-height: clamp(360px, 38vw, 520px); display: grid; place-items: center; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(90deg, #dadafe 0%, #a98cf6 16%, #7a2fe8 40%, #5600e5 62%, #2b0a9e 82%, #00001a 100%); }
.band canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* ---------- Studio story (dark) ---------- */

/* ---------- Approach steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

/* ---------- Website audit promo ---------- */

/* ---------- FAQ ---------- */
.faq-split { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.faq-split__head { position: sticky; top: 120px; display: grid; gap: 16px; }
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); transition: border-color 0.3s; }
.faq__item.is-open { border-color: rgba(86, 0, 229, 0.35); }
.faq__q { width: 100%; display: flex; align-items: center; gap: 20px; padding: 24px 24px 24px 28px; text-align: left; font: 600 clamp(17px, 1rem + 0.3vw, 20px)/1.3 var(--f-text); letter-spacing: -0.005em; }
.faq__q span:first-child { flex: 1; }
.faq__toggle { position: relative; width: 32px; height: 32px; flex: none; display: grid; place-items: center; background: var(--soft); color: var(--violet); transition: background-color 0.3s, color 0.3s; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; width: 12px; height: 1.5px; background: currentColor; transition: transform 0.45s var(--ease-out); }
.faq__toggle::after { transform: rotate(90deg); }
/* shared toggle: any open accordion item (FAQ, homepage services) */
.is-open .faq__toggle { background: var(--violet); color: #fff; }
.is-open .faq__toggle::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) { .faq__q:hover .faq__toggle { background: var(--lavender); } }
@media (hover: hover) and (pointer: fine) { .is-open .faq__q:hover .faq__toggle { background: var(--violet); } }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 28px 26px; color: var(--text-2); line-height: 1.6; max-width: 60ch; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- Closing CTA ---------- */

/* ---------- Footer ---------- */
/* deep indigo into violet, drifting slowly; the light wordmark reads clearly over it */
.footer { position: relative; color: #fff; padding-top: clamp(64px, 7vw, 96px); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #00001a 0%, #08063f 48%, #1a0d86 100%); }
/* the two glows drift on their own layers by transform, paused off-screen */
.footer::before, .footer::after { content: ""; position: absolute; left: 0; top: 0; width: 160%; height: 160%; z-index: -1; pointer-events: none; will-change: transform; }
.footer::before { background: radial-gradient(55% 45% at 18% 100%, rgba(86, 0, 229, 0.75), transparent 72%); animation: foot-a 24s ease-in-out infinite alternate; }
.footer::after { background: radial-gradient(50% 45% at 84% 104%, rgba(142, 45, 226, 0.6), transparent 72%); animation: foot-b 24s ease-in-out infinite alternate; }
@keyframes foot-a { from { transform: translate(0, -37.5%); } to { transform: translate(-22.5%, -30%); } }
@keyframes foot-b { from { transform: translate(-37.5%, -37.5%); } to { transform: translate(-15%, -33.75%); } }
/* the closing wordmark; on the homepage it rises into place as the page ends (home.js sets --rise) */
.footer__mark { margin-top: clamp(48px, 6vw, 88px); line-height: 0; }
/* the wordmark alone, its gradient travelling across it on a loop (the mask is assets/img/wordmark.svg) */
.footer__word { display: block; width: 100%; aspect-ratio: 79.294 / 8.948; transform: translateY(var(--rise, 0%));
  position: relative; overflow: hidden;
  -webkit-mask: url("../img/wordmark.svg") center / contain no-repeat; mask: url("../img/wordmark.svg") center / contain no-repeat; }
.footer__word::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 400%; background: linear-gradient(90deg, #dadafe, #ffffff 25%, #b8a6ff 50%, #ffffff 75%, #dadafe) 0 0 / 50% 100% repeat-x; will-change: transform; animation: word-sheen 9s linear infinite; }
@keyframes word-sheen { from { transform: translateX(-50%); } to { transform: none; } }
.footer.is-off::before, .footer.is-off::after, .footer.is-off .footer__word::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .footer::before, .footer::after, .footer__word::before { animation: none; } }
/* the brand and the three columns sit at even intervals across the width */
.footer__top { display: flex; justify-content: space-between; gap: 40px; }
.footer__brand .logo { width: 175px; height: auto; color: #fff; }
.footer__brand p { margin-top: 20px; max-width: 14em; text-wrap: balance; color: rgba(255, 255, 255, 0.72); font-size: 15px; line-height: 1.6; }
.footer__social { display: flex; gap: 8px; margin-top: 28px; list-style: none; padding: 0; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.8); transition: color 0.25s, border-color 0.25s, background-color 0.25s; }
@media (hover: hover) and (pointer: fine) { .footer__social a:hover { color: #fff; border-color: var(--violet); background: var(--violet); } }
.footer__social .ph { width: 20px; height: 20px; }
.footer__col h2 { font: 400 12px/1 var(--f-text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--lavender); margin-bottom: 18px; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer__col a { color: rgba(255, 255, 255, 0.86); font-size: 15px; position: relative; transition: color 0.25s; }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { color: #fff; } }
.footer__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover::after { transform: scaleX(1); transform-origin: left; } }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 24px 28px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.footer__bottom a { color: #fff; }
.to-top { display: inline-flex; align-items: center; gap: 8px; }
.to-top .ic { transform: rotate(180deg); }

/* ==========================================================================
   INNER PAGES: the homepage's system, page by page
   ========================================================================== */
/* Hero: the page's point on the left, its figure on a tile on the right */
.phero { position: relative; padding-top: calc(var(--nav-h) + clamp(48px, 6vw, 88px)); padding-bottom: clamp(72px, 8vw, 120px); }
.phero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--line), var(--line)) no-repeat left var(--rail) top 0 / 1px 100%,
    linear-gradient(var(--line), var(--line)) no-repeat right var(--rail) top 0 / 1px 100%;
}
.phero > .container { position: relative; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.phero__copy { display: grid; gap: 26px; justify-items: start; }
.phero__copy .h1 { max-width: 11em; }
.phero__copy .lead { max-width: 30em; }
/* a figure on its own tile, with its caption bottom-left and its read-out top-right */
.phero__fig, .proc__fig, .figtile { position: relative; display: grid; place-items: center; margin: 0; padding: 36px 32px 48px; background: var(--tile); }
.phero__fig .hl, .proc__fig .hl, .figtile .hl { width: 100%; max-width: 500px; }
.phero--text .phero__copy .h1 { max-width: 14em; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-2); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .ic { color: var(--violet); }

/* ---------- Page heroes: one pattern per page ---------- */
/* Centred (studio, store, 404) */
.phero--center .phero__copy { justify-items: center; text-align: center; margin-inline: auto; }
.phero--center .phero__copy .h1 { max-width: 13em; }
.phero--center .phero__copy .lead { max-width: 34em; }
.phero--center .actions { justify-content: center; }

/* Studio: a wide stage under the headline, framed like the homepage showreel */
.stage { --gx: 9%; --gy: 12%; position: relative; display: grid; place-items: center; margin: clamp(56px, 6vw, 80px) 0 0; aspect-ratio: 1200 / 540; background: var(--tile); overflow: hidden; }
.stage .hl { height: 100%; width: auto; padding-block: 3%; }
.stage__grid { position: absolute; inset: 0; pointer-events: none; }
.stage__grid i { position: absolute; background: var(--line); }
.stage__grid .t, .stage__grid .b { left: 0; right: 0; height: 1px; } .stage__grid .t { top: var(--gy); } .stage__grid .b { bottom: var(--gy); }
.stage__grid .l, .stage__grid .r { top: 0; bottom: 0; width: 1px; } .stage__grid .l { left: var(--gx); } .stage__grid .r { right: var(--gx); }
.stage__tag { position: absolute; bottom: calc(var(--gy) - 28px); font: 400 11px/1 var(--f-text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); }
.stage__tag--l { left: calc(var(--gx) + 16px); } .stage__tag--r { right: calc(var(--gx) + 16px); }
.stage__tag span { color: var(--violet); }
.stage .hl-read { top: calc(var(--gy) - 28px); right: calc(var(--gx) + 16px); }

.row.row--link .row__t { font: 600 20px/1.3 var(--f-text); }
.row--link small { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--text-2); }
.row--link .ic { color: var(--text-3); transition: color 0.3s, transform 0.4s var(--ease-out); }
.row--link.is-on { background: #e4ddff; }
@media (hover: hover) and (pointer: fine) { .row--link:hover { background: #e4ddff; } }
.row--link.is-on .ic { color: var(--violet); transform: translateY(2px); }
@media (hover: hover) and (pointer: fine) { .row--link:hover .ic { color: var(--violet); transform: translateY(2px); } }

/* Counts: numbers over small labels (case study stats) */
.counts { display: flex; gap: 40px; margin: 0; }
.counts div { display: grid; gap: 6px; }
.counts dd { margin: 0; font: 400 clamp(2.4rem, 1.7rem + 2vw, 3.6rem)/1 var(--f-display); letter-spacing: -0.02em; }
.counts dt { order: 2; font: 400 12px/1.2 var(--f-text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); }

/* Website audit: a dark product hero, the review areas called out round the figure */
.sect--grad .h1, .sect--grad .h2 { color: #fff; }
.phero.sect--grad .facts { justify-content: center; }
.callouts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 12px; margin-top: clamp(56px, 6vw, 80px); }
.callouts__col { display: grid; gap: 12px; }
/* solid deep-blue tiles on the gradient, so the figure's plate matches its tile */
.callout { display: grid; gap: 8px; padding: 22px 22px 24px; text-align: left; background: #0f2a9c; border: 1px solid transparent; cursor: default; transition: border-color 0.3s, background-color 0.3s; }
.callout .meta { color: var(--lavender); }
.callout b { font: 600 18px/1.3 var(--f-text); color: #fff; }
.callout p { font-size: 14px; color: var(--text-2); }
.callout.is-on { border-color: var(--lavender); background: #1534b4; }
@media (hover: hover) and (pointer: fine) { .callout:hover { border-color: var(--lavender); background: #1534b4; } }
.sect--grad .figtile, .sect--grad .scard, .sect--grad .tcard, .sect--grad .proc__fig { background: #0f2a9c; }
.sect--grad .row.is-on .row__t { color: var(--lavender); }
@media (hover: hover) and (pointer: fine) { .sect--grad .row:hover .row__t { color: var(--lavender); } }
.sect--grad .tcard .meta { color: var(--lavender); }
.sect--grad .hl { --hairline-plate: #0f2a9c; --hairline-hi: var(--lavender); --hairline-edge: rgba(255, 255, 255, 0.7); --hairline-mid: rgba(255, 255, 255, 0.4); --hairline-lo: rgba(255, 255, 255, 0.2); }
.sect--grad .hl svg .acc > path { stroke: rgba(218, 218, 254, 0.55); }
.sect--grad .hl svg .acc > path:first-child, .sect--grad .hl svg .acc > path.sil, .sect--grad .hl svg path.acc { fill: rgba(142, 45, 226, 0.4); stroke: var(--lavender); }
.sect--grad .hl svg .acc > path.nf { fill: none; }

.chip-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 560px; }
.chip-links a { padding: 9px 14px; border: 1px solid var(--line-strong); font: 500 14px/1.2 var(--f-text); transition: border-color 0.2s, color 0.2s; }
@media (hover: hover) and (pointer: fine) { .chip-links a:hover { border-color: var(--violet); color: var(--violet); } }
.chip-links--center { justify-content: center; margin-inline: auto; max-width: 640px; }

/* Contact: the form is the hero */
.direct-list { display: grid; margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); width: 100%; }
.direct-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.direct-list .meta { font-size: 11px; }
.direct-list a:not(.btn) { font-size: 17px; }

/* Figure on its own under centred copy (store, 404) */
.lone-fig { position: relative; width: min(560px, 100%); margin: clamp(32px, 4vw, 56px) auto 0; }
.lone-fig--top { width: min(400px, 100%); margin: 0 auto 24px; }
.sect--grad .lone-fig { padding: 32px 32px 40px; background: #0f2a9c; }
.sect--grad .lone-fig .hl { --hairline-plate: #0f2a9c; }

/* Split: a heading on the left, the body on the right */
.split2 { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.body-lg { display: grid; gap: 20px; max-width: 36em; font-size: 18px; line-height: 1.65; color: var(--text-2); }
.body-lg p:first-child { font: 400 clamp(1.5rem, 1.15rem + 1vw, 2rem)/1.3 var(--f-display); letter-spacing: -0.01em; color: var(--ink); }

/* AI tools figure (Studio): the tools flow into the studio, and out as five kinds of work */

/* Rows: a numbered list with a rule between rows */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 64px minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: baseline; gap: 24px; padding-block: clamp(22px, 2.4vw, 30px); border-bottom: 1px solid var(--line); }
.row__n { font: 400 12px/1.2 var(--f-text); letter-spacing: 0.3em; color: var(--text-3); }
.row__t { transition: color 0.3s, transform 0.5s var(--ease-out); }
.row p { color: var(--text-2); }
.row.is-on .row__t { color: var(--violet); }
@media (hover: hover) and (pointer: fine) { .row:hover .row__t { color: var(--violet); } }
@media (hover: hover) and (pointer: fine) { .row:hover .row__t { transform: translateX(6px); } }
.row--ic { grid-template-columns: 48px minmax(0, 0.75fr) minmax(0, 1.25fr); align-items: center; }
.row__ic { display: grid; place-items: center; width: 48px; height: 48px; background: var(--tile); color: var(--violet); transition: background-color 0.3s, color 0.3s; }
.row__ic .ph { width: 26px; height: 26px; }
.sect--grad .row__ic { background: #0f2a9c; color: var(--lavender); }
@media (hover: hover) and (pointer: fine) { .sect--grad .row--ic:hover .row__ic { background: #1534b4; color: #fff; } }

/* Process: the steps on the left, their figure held on the right */
.proc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.proc .row { grid-template-columns: 64px minmax(0, 1fr); cursor: default; }
.proc .row p { grid-column: 2; margin-top: -12px; }
/* the box runs from the first row to the last; the drawing (5:4, at most 500px wide) stays centred on screen as the rows pass */
.proc__fig { align-self: stretch; display: block; container-type: inline-size; }
.proc__fig .hl { position: sticky; top: calc((100vh + var(--nav-h)) / 2 - 0.4 * min(500px, 100cqw)); margin-inline: auto; }
/* a scroll-steered list: the row the figure shows stays bright, the rest step back */
[data-hl-scroll] .row { transition: opacity 0.5s var(--ease-out); }
[data-hl-scroll]:has(.row.is-on) .row:not(.is-on) { opacity: 0.42; }

/* Text tiles: the cards that carry no figure */
.tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tcards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tcards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tcard { display: grid; align-content: start; gap: 10px; padding: 28px 24px 32px; background: var(--tile); }
.tcard .meta { margin-bottom: 18px; color: var(--violet); }
.tcard p { color: var(--text-2); }
.tcard .link-arrow { margin-top: 12px; }
.tcard__val { font: 400 clamp(1.5rem, 1.2rem + 0.8vw, 2rem)/1.2 var(--f-display); letter-spacing: -0.01em; }
.tcard__fig { display: block; width: 100%; height: auto; margin: -8px 0 6px; }
.tcard__fig :is(rect, path, circle) { fill: none; stroke: var(--text-3); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke 0.3s; }
.tcard__fig .a { stroke: var(--violet); }
.tcard__fig .f { fill: #e2d7ff; }
/* the problem (.pb) gives way to its fix (.fx): in a wave across the cards, or at once under the pointer */
.tcard__fig :is(.pb, .fx) { transition: opacity 0.5s var(--ease-out); }
.tcard__fig .fx { opacity: 0; }
.tcard.is-in .tcard__fig .pb { animation: fig-pb 7s calc(var(--d, 0s) * 6 + 1.2s) infinite; }
.tcard.is-in .tcard__fig .fx { animation: fig-fx 7s calc(var(--d, 0s) * 6 + 1.2s) infinite; }
@media (hover: hover) and (pointer: fine) { .tcard:hover .tcard__fig .pb { animation: none; opacity: 0; } }
@media (hover: hover) and (pointer: fine) { .tcard:hover .tcard__fig .fx { animation: none; opacity: 1; } }
/* Problems as a bento (Website Audit): the first tile runs two columns wide, its drawing beside the words */
.tcards--bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tcard--wide { grid-column: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: center; align-items: center; column-gap: clamp(32px, 4vw, 64px); }
.tcard--wide .tcard__fig { margin: 0; }
.tcard__body { display: grid; gap: 10px; }

/* ---------- Icon badge and bento tiles ---------- */
.tile-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; background: #fff; border: 1px solid var(--line); color: var(--violet); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.tile-ic .ph { width: 26px; height: 26px; }
@media (hover: hover) and (pointer: fine) { .tcard:hover .tile-ic, .tiles__tile:hover .tile-ic { background: var(--violet); border-color: var(--violet); color: #fff; } }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tiles__tile { position: relative; display: grid; align-content: start; gap: 10px; padding: clamp(24px, 2.6vw, 36px); background: var(--tile); border: 1px solid transparent; overflow: hidden; transition: background-color 0.3s, border-color 0.3s; }
.tiles__tile p { max-width: 30em; color: var(--text-2); }
/* words at the foot, icon and number at the head */
.tiles__tile--end { grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto auto; min-height: clamp(260px, 22vw, 320px); }
.tiles__tile--end .tile-ic { grid-column: 1; }
.tiles__tile--end .tiles__n { grid-column: 2; grid-row: 1; align-self: start; }
.tiles__tile--end :is(h3, p) { grid-column: 1 / -1; }
.tiles__tile--end h3 { grid-row: 3; }
.tiles__tile--end p { grid-row: 4; }
/* topics (Insights): one large tile, two rows high, beside four small ones */
.tiles--topics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles__tile--feature { grid-column: span 2; grid-row: span 2; grid-template-rows: 1fr auto auto; min-height: clamp(400px, 34vw, 520px); }
.tiles__tile--feature .tile-ic { align-self: start; }
.tiles__mark { position: absolute; top: -12%; right: -8%; width: 58%; opacity: 0.1; pointer-events: none; transition: opacity 0.6s, rotate 1.2s var(--ease-out); }
.tiles__mark .ph { width: 100%; height: auto; }
@media (hover: hover) and (pointer: fine) { .tiles__tile--feature:hover .tiles__mark { opacity: 0.16; rotate: 12deg; } }
/* on the gradient the tiles are glass */
.sect--grad .tiles__tile { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }
@media (hover: hover) and (pointer: fine) { .sect--grad .tiles__tile:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(218, 218, 254, 0.6); } }
.sect--grad .tile-ic { border-color: transparent; }
.sect--grad .tiles__n { color: var(--lavender); }
@keyframes fig-pb { 0%, 38% { opacity: 1; } 46%, 88% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes fig-fx { 0%, 38% { opacity: 0; } 46%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tcard.is-in .tcard__fig :is(.pb, .fx) { animation: none; } }
/* Counters: odometer columns, moved by transform only */
.odo { display: inline-block; margin: -0.1em 0; line-height: 1.2; vertical-align: baseline; font-variant-numeric: tabular-nums; white-space: nowrap; }
.odo__c { display: inline-block; height: 1.2em; overflow: hidden; vertical-align: top; -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
.odo__s { display: block; transform: translate3d(0, calc(var(--i, 0) * -1.2em), 0); transition: transform var(--dur, 3s) cubic-bezier(0.6, 0, 0.15, 1) var(--delay, 0s); }
.odo__s span { display: block; height: 1.2em; }
/* Studio film (in the hero stage) and team */
.stage--film { display: block; place-items: normal; aspect-ratio: auto; padding: 6.5% var(--gx); }
.stage__screen { position: relative; }
.stage__screen::before, .stage__screen::after { content: ""; position: absolute; left: -50vw; right: -50vw; height: 1px; background: var(--line); pointer-events: none; }
.stage__screen::before { top: -1px; } .stage__screen::after { bottom: -1px; }
.stage--film .stage__tag { bottom: 30px; }
.film-sect .stage { margin-top: 0; }
.film__play, .stage__screen iframe { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--ink); }
.film__play { overflow: hidden; cursor: pointer; }
.film__play img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .film__play:hover img { transform: scale(1.03); } }
.film__btn { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 88px; height: 88px; translate: -50% -50%; background: var(--violet); color: #fff; transition: scale 0.4s var(--ease-out), background-color 0.3s; }
@media (hover: hover) and (pointer: fine) { .film__play:hover .film__btn { scale: 1.08; background: var(--purple); } }
.film__btn .ic { width: 24px; height: 24px; margin-left: 3px; }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2vw, 32px); }
.member { display: flex; flex-direction: column; gap: 6px; }
.member__photo { position: relative; display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 14px; overflow: hidden; background: var(--tile); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .member:hover .member__photo img { scale: 1.03; } }
.member .card-title { margin: 0; }
.member .meta { font-size: clamp(10px, 0.78vw, 12px); letter-spacing: 0.05em; white-space: nowrap; color: var(--violet); }
.member__disc { margin: 10px 0 0; font-size: clamp(14px, 1.05vw, 15px); line-height: 1.45; color: var(--text-2); }
/* the LinkedIn mark waits in the photo's corner until you point at that person */
.member__in { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; background: #fff; opacity: 0; translate: 0 -6px; transition: opacity 0.3s var(--ease-out), translate 0.3s var(--ease-out); }
.member__in svg { display: block; }
.member__in:focus-visible { opacity: 1; translate: none; }
@media (hover: hover) and (pointer: fine) { .member:hover .member__in { opacity: 1; translate: none; } }
@media (hover: none) { .member__in { opacity: 1; translate: none; } }
/* studio gallery: a bento of team photos, the placeholder shows until a photo is in the frame */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 17vw, 280px); gap: 12px; }
.gallery__item { position: relative; margin: 0; overflow: hidden; background: var(--tile); }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gallery__item:hover img { scale: 1.03; } }
.gallery__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--violet); }
.gallery__ph .ph { width: 32px; height: 32px; opacity: 0.45; transition: opacity 0.4s, scale 0.6s var(--ease-out); }
.gallery__ph span { font: 400 11px/1 var(--f-text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); }
@media (hover: hover) and (pointer: fine) { .gallery__item:hover .gallery__ph .ph { opacity: 0.8; scale: 1.08; } }

/* Service block: what it is on the left, the work it makes on the right */
.svcb { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.svcb--media-left { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.svcb--media-left .rot { order: -1; }
.svcb__copy { display: grid; gap: 22px; justify-items: start; }
.svcb__copy .lead { max-width: 30em; }
.svcb__copy .link-arrow { margin-top: 8px; }
.svcb__body { max-width: 30em; color: var(--text-2); }
.svcb__sign { margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line-strong); text-wrap: balance; }
.sect--grad .svcb__copy .lead, .sect--grad .svcb__sign { color: #fff; }
.sect--grad .svcb__body { color: rgba(255, 255, 255, 0.9); }
.rot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tile); translate: calc(var(--mx, 0) * 10px) calc(var(--my, 0) * 8px); transition: translate 0.9s var(--ease-out); }
.rot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.06; transition: opacity 0.9s, scale 3.6s linear; }
.rot img.is-on { opacity: 1; scale: 1; }

/* Work: filters and the project grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 3vw, 44px); }
.filter { padding: 10px 16px; border: 1px solid var(--line-strong); font: 500 14px/1.2 var(--f-text); color: var(--ink); cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
@media (hover: hover) and (pointer: fine) { .filter:hover { border-color: var(--ink); } }
.filter.is-active { color: #fff; background: var(--violet); border-color: var(--violet); }
.wgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 700px) { .wgrid { grid-template-columns: minmax(0, 1fr); } }
/* each project is a card: the image inset, the words under it; the card lifts under the pointer */
.wcard { display: grid; gap: 8px; align-content: start; padding: 14px 14px 28px; background: var(--tile); border: 1px solid var(--line); transition: translate 0.5s var(--ease-out), border-color 0.3s, background-color 0.3s; }
@media (hover: hover) and (pointer: fine) { .wcard:hover { translate: 0 -4px; border-color: var(--violet); } }
.wcard__meta, .wcard > p { margin-inline: 10px; }
.wcard.is-hidden { display: none; }
.wcard__media { position: relative; aspect-ratio: 16 / 10.4; margin-bottom: 8px; overflow: hidden; background: var(--tile); }
.wcard__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .wcard:hover .wcard__media img { scale: 1.035; } }
.wcard__media--logo { display: grid; place-items: center; }
.wcard__media--logo img { width: auto; height: 40px; object-fit: contain; }
.wcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wcard__meta .meta { flex: none; padding: 7px 7px 6px 10px; background: var(--lavender); } /* right padding less the trailing letter-spacing */
.wcard p { max-width: 34em; color: var(--text-2); }
a.wcard__media { display: block; }
a.wcard__media--logo { display: grid; }
.wcard__meta a { transition: color 0.3s; }
@media (hover: hover) and (pointer: fine) { .wcard:hover .wcard__meta a { color: var(--violet); } }

/* Case studies (work-*.html): the facts in a ruled row, the story in sticky-headed blocks, the next project */
.cs-back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(32px, 4vw, 56px); font-size: 15px; color: var(--text-2); transition: color 0.3s; }
.cs-back .ic { transition: translate 0.4s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cs-back:hover { color: var(--violet); } }
@media (hover: hover) and (pointer: fine) { .cs-back:hover .ic { translate: -4px 0; } }
/* the title block is centred under the back link, like every other page hero */
.cs-hero .pill { display: flex; width: fit-content; margin-inline: auto; }
.cs-hero .h1 { max-width: 15em; margin: 26px auto 0; text-align: center; }
.cs-hero .lead { max-width: 36em; margin: 28px auto 0; text-align: center; }
.cs-live { margin-top: 24px; text-align: center; }
/* ruled above and below, out to the rails (24px outside the content, less on narrow screens), crosshairs where the rules meet them */
.cs-facts { --out: min(24px, calc(var(--gutter) - 8px)); position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(48px, 5vw, 72px) calc(var(--out) * -1) 0; padding-inline: var(--out); border-block: 1px solid var(--line); }
.cs-facts::before, .metrics::before {
  content: ""; position: absolute; inset: -7px -6px; pointer-events: none;
  background:
    linear-gradient(var(--xh), var(--xh)) no-repeat left 5.5px top 0 / 2px 13px,
    linear-gradient(var(--xh), var(--xh)) no-repeat left 0 top 5.5px / 13px 2px,
    linear-gradient(var(--xh), var(--xh)) no-repeat right 5.5px top 0 / 2px 13px,
    linear-gradient(var(--xh), var(--xh)) no-repeat right 0 top 5.5px / 13px 2px,
    linear-gradient(var(--xh), var(--xh)) no-repeat left 5.5px bottom 0 / 2px 13px,
    linear-gradient(var(--xh), var(--xh)) no-repeat left 0 bottom 5.5px / 13px 2px,
    linear-gradient(var(--xh), var(--xh)) no-repeat right 5.5px bottom 0 / 2px 13px,
    linear-gradient(var(--xh), var(--xh)) no-repeat right 0 bottom 5.5px / 13px 2px;
}
.cs-facts div { display: grid; gap: 10px; align-content: start; padding: 22px 24px 22px 0; }
.cs-facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.cs-facts dt { font: 400 12px/1.2 var(--f-text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); }
.cs-facts dd { margin: 0; font-size: 17px; color: var(--ink); }
/* phones: two facts to a row */
@media (max-width: 600px) {
  .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-facts div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cs-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.cs-frame { margin: clamp(56px, 6vw, 80px) 0 0; overflow: hidden; background: var(--tile); }
.cs-frame img { display: block; width: 100%; height: auto; }
.cs-frame--logo { display: grid; place-items: center; aspect-ratio: 16 / 9; }
.cs-frame--logo img { width: auto; height: 72px; object-fit: contain; }
.cs-block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.cs-block__head { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 18px; }
.cs-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cs-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 14px; }
.cs-list .ic { margin-top: 0.45em; color: var(--violet); }
.cs-list b { font-weight: 500; color: var(--ink); }
.cs-short { display: grid; gap: 12px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line-strong); font-size: 18px; color: var(--ink); }
.cs-stats { gap: 56px; padding: 8px 0 4px; }
.cs-stats dd { color: var(--violet); }
.cs-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cs-gallery figure { margin: 0; overflow: hidden; background: var(--tile); }
.cs-gallery img { display: block; width: 100%; height: auto; transition: scale 1.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .cs-gallery figure:hover img { scale: 1.03; } }
.cs-quote { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; margin: 0; }
.cs-quote blockquote { grid-column: 2; grid-row: 1; margin: 0; }
.cs-quote blockquote p, .cs-quote blockquote p:first-child { font: 400 clamp(1.2rem, 1rem + 0.55vw, 1.5rem)/1.45 var(--f-display); letter-spacing: -0.01em; color: var(--ink); }
.cs-quote figcaption { grid-column: 1; grid-row: 1; display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line-strong); font-size: 15px; color: var(--text-2); }
.cs-quote figcaption b { font-weight: 500; font-size: 17px; color: var(--ink); }
/* the next two case studies reuse the Work page's cards */
.cs-more .wgrid { margin-top: 32px; }

/* Insights: categories as rows, the empty state, the newsletter */
.note-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 40px; background: var(--tile); }
.note-panel .h3 { margin-bottom: 8px; }

/* Prose (legal) */
.prose { display: grid; gap: 22px; max-width: 40em; font-size: 18px; line-height: 1.65; color: var(--text-2); }
.prose .h3 { margin-top: 26px; color: var(--ink); }

/* ---------- Client logos: one slow row that pauses under the pointer (homepage, Website Audit) ---------- */
.logos { position: relative; background: var(--bg); }
.logos::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--line), var(--line)) no-repeat left var(--rail) top 0 / 1px 100%,
    linear-gradient(var(--line), var(--line)) no-repeat right var(--rail) top 0 / 1px 100%;
}
.logos__run { display: flex; width: calc(100% - var(--rail) * 2); margin: 0 auto; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos__track { display: flex; flex: none; align-items: center; margin: 0; padding: 0; list-style: none; animation: logos-run 70s linear infinite; }
.logos__track li { display: grid; place-items: center; height: 132px; padding-inline: clamp(28px, 3.2vw, 52px); }
.logos__track img { height: 41px; width: auto; max-width: 152px; object-fit: contain; filter: grayscale(1); opacity: 0.6; transition: opacity 0.3s, filter 0.3s; }
@media (hover: hover) and (pointer: fine) { .logos__track img:hover { opacity: 1; filter: none; } }
@keyframes logos-run { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .logos__track { animation: none; } .logos__run { flex-wrap: wrap; justify-content: center; } .logos__track[aria-hidden] { display: none; } .logos__track { flex-wrap: wrap; justify-content: center; } }
.container .logos__run { width: 100%; }
.logos--titled { padding-top: clamp(40px, 4vw, 56px); text-align: center; }
.logos__title { color: var(--text-3); }

/* ---------- Versus (Website Audit): what other audits leave you with, beside this one ---------- */
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.versus__col { display: grid; align-content: start; gap: 28px; padding: clamp(28px, 3vw, 44px); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.versus__col--us { background: #fff; border-color: #fff; color: var(--ink); --text: var(--ink); --text-2: rgba(0, 0, 26, 0.68); }
.versus__label { padding: 8px 12px 7px 14px; justify-self: start; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; }
.versus__col--us .versus__label { background: var(--violet); }
.versus__list { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.versus__list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; align-items: start; }
.versus__list p { margin-top: 6px; color: var(--text-2); }
.versus__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.72); }
.versus__col--us .versus__ic { background: var(--lavender); color: var(--violet); }
.versus__col:not(.versus__col--us) .card-title { color: rgba(255, 255, 255, 0.86); }
.audit-steps__cta { justify-content: center; margin-top: clamp(40px, 4vw, 56px); }
/* the band is the whole section: the section's rule and the next one close it */
.audit-nums { padding-block: 0; }
.audit-nums .metrics { margin-top: 0; border-block: 0; }

/* ---------- Metrics on a light page (Work): the homepage's numbers band, ruled out to the rails ---------- */
.metrics { --out: min(24px, calc(var(--gutter) - 8px)); position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(56px, 6vw, 80px) calc(var(--out) * -1) 0; padding-inline: var(--out); border-block: 1px solid var(--line); }
.metrics div { display: flex; flex-direction: column-reverse; gap: 12px; padding: 32px 20px 34px; text-align: center; }
.metrics div + div { border-left: 1px solid var(--line); }
.metrics dd { margin: 0; font: 400 clamp(2.4rem, 1.7rem + 2vw, 3.6rem)/1 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.metrics dt { font-size: 14px; color: var(--text-2); }
/* in a hero the band sits on the page's first rule: the next section's rule closes it */
.phero:has(> .container > .metrics) { padding-bottom: 0; }
.phero .metrics { border-bottom: 0; }

/* ---------- Ambition (About): the sky and the cloud fill the section, the heading sits in the sky ---------- */
.ambition { --text: #fff; --line: rgba(255, 255, 255, 0.24); --xh: rgba(255, 255, 255, 0.9); display: grid; align-content: start; min-height: clamp(760px, 100vh, 1000px); overflow: hidden; color: #fff;
  background: #4f7be8 url("../media/about/ambition-cloud.webp") center / cover no-repeat; }
.ambition__ascii { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.ambition .container { position: relative; z-index: 2; padding-top: clamp(24px, 4vw, 64px); }
.ambition__title { max-width: 16em; margin-inline: auto; text-align: center; color: #fff; text-shadow: 0 2px 30px rgba(30, 50, 160, 0.25); }

/* ---------- Store: coming soon under a night sky, a horizon glowing at the foot ---------- */
.store {
  --text: #fff; --text-2: rgba(255, 255, 255, 0.72); --line: rgba(255, 255, 255, 0.12); --xh: rgba(255, 255, 255, 0.9);
  display: grid; align-content: center; min-height: 100svh; padding-bottom: clamp(160px, 16vw, 240px); overflow: hidden; color: #fff;
  background: radial-gradient(60% 50% at 50% 100%, rgba(86, 0, 229, 0.32), transparent 72%), var(--ink);
}
.store .h1 { color: #fff; }
.store .h1 em { color: var(--lavender); }
.store__stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* the pill breathes, and a ring pulses out from it */
.store__tag { position: relative; padding: 8px 14px; background: var(--violet); font: 500 13px/1 var(--f-text); color: #fff; animation: tag-breathe 2.8s ease-in-out infinite; }
.store__tag::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(142, 45, 226, 0.7); animation: tag-pulse 2.8s ease-out infinite; }
@keyframes tag-breathe { 0%, 100% { scale: 1; box-shadow: 0 0 18px rgba(142, 45, 226, 0.35); } 50% { scale: 1.06; box-shadow: 0 0 32px rgba(142, 45, 226, 0.7); } }
@keyframes tag-pulse { 0% { box-shadow: 0 0 0 0 rgba(142, 45, 226, 0.6); } 70%, 100% { box-shadow: 0 0 0 14px rgba(142, 45, 226, 0); } }
@media (prefers-reduced-motion: reduce) { .store__tag, .store__tag::after { animation: none; } }
/* a planet far bigger than the page, so only its rim shows: brightest to the right of centre, with a violet haze above */
.store__horizon {
  position: absolute; left: 50%; top: calc(100% - clamp(110px, 12vw, 180px)); width: 260%; aspect-ratio: 1; translate: -50% 0; rotate: -3deg;
  border: 1.5px solid transparent; border-radius: 50%; pointer-events: none;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, linear-gradient(90deg, transparent 30%, rgba(218, 218, 254, 0.95) 56%, transparent 74%) border-box;
  box-shadow: 0 -18px 60px rgba(218, 218, 254, 0.14), 0 -60px 180px rgba(142, 45, 226, 0.4);
}

/* ---------- Forms ---------- */
/* a consent checkbox, square like the chips' marker but larger */
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text-2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--violet); }
.check a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.contact-form { margin-top: clamp(48px, 5vw, 72px); }
.form-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.form-wrap__intro { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 22px; justify-items: start; }
.form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; padding: clamp(24px, 3.4vw, 48px); background: var(--tile); }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font: 500 14px/1.3 var(--f-text); color: var(--ink); }
.field label .opt { color: var(--text-3); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 0;
  font-size: 16px; line-height: 1.4; color: var(--ink); transition: border-color 0.25s, background-color 0.25s; appearance: none;
}
.textarea { min-height: 140px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2300001A' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.input::placeholder, .textarea::placeholder { color: rgba(0, 0, 26, 0.42); }
@media (hover: hover) and (pointer: fine) { .input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); } }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--violet); background: #fff; outline: 2px solid rgba(86, 0, 229, 0.18); outline-offset: 0; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: #c3093f; background: #fff7f9; }
.field__err { display: none; align-items: center; gap: 6px; font-size: 13px; color: #b1003a; }
.field.is-invalid .field__err { display: flex; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); background: #fff; font: 500 14px/1.2 var(--f-text); transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.chip span::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--line-strong); transition: background-color 0.2s, border-color 0.2s; }
@media (hover: hover) and (pointer: fine) { .chip input:hover + span { border-color: var(--line-strong); } }
.chip input:checked + span { border-color: var(--violet); background: rgba(86, 0, 229, 0.06); color: var(--violet); }
.chip input:checked + span::before { background: var(--violet); border-color: var(--violet); }
.chip input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 8px; }
.form__privacy { font-size: 13px; color: var(--text-3); max-width: 34em; }
.form__error { grid-column: 1 / -1; display: none; padding: 14px 16px; background: #fff3f6; border: 1px solid #f3c3d0; color: #8a0030; font-size: 14px; }
.form.has-error .form__error { display: block; }
.form__success { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 32px; text-align: center; background: var(--tile); opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0s 0.5s; }
.form__success canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.form__success > *:not(canvas) { position: relative; }
.form.is-sent .form__success { opacity: 1; visibility: visible; transition: opacity 0.5s, visibility 0s; }
.form__success .tick { width: 64px; height: 64px; display: grid; place-items: center; background: var(--violet); color: #fff; }
.form__success .tick .ic { width: 28px; height: 28px; }
.inline-form { display: flex; gap: 0; max-width: 520px; width: 100%; position: relative; }
.inline-form .input { flex: 1; min-width: 0; background: #fff; }

.inline-form .btn { flex: none; }
.inline-form__msg { min-height: 22px; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.inline-form__msg.is-ok { color: var(--violet); }

.inline-form__msg.is-err { color: #c3093f; }
.sect--grad .inline-form__msg.is-ok, .store .inline-form__msg.is-ok { color: #fff; }
.sect--grad .inline-form__msg.is-err, .store .inline-form__msg.is-err { color: #ffd6e0; }

/* Contact direct */

/* Insights */

.cat { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 22px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; text-align: left; transition: background-color 0.35s, color 0.35s; }

.cat h3 { font: 700 18px/1.3 var(--f-text); }
.cat p { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.cat.is-active { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .cat:hover { background: var(--ink); color: #fff; } }
.cat.is-active p { color: rgba(255, 255, 255, 0.72); }
@media (hover: hover) and (pointer: fine) { .cat:hover p { color: rgba(255, 255, 255, 0.72); } }

.empty { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: clamp(32px, 5vw, 64px); background: #fff; border: 1px dashed var(--line-strong); overflow: hidden; }

/* Store / 404 full-screen ASCII */

/* Work index */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.filter { padding: 10px 16px; border: 1px solid var(--line); background: #fff; font: 500 14px/1.2 var(--f-text); transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
@media (hover: hover) and (pointer: fine) { .filter:hover { border-color: var(--ink); } }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Legal */

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__links { gap: 20px; }
  .nav__link { font-size: 14px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  
  
  .footer__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  
}
@media (max-width: 980px) {
  :root { --nav-h: 72px; }
  .nav__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .nav__inner > nav, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .split, .faq-split, .form-wrap, .process, .empty { grid-template-columns: minmax(0, 1fr); }
  .faq-split__head, .form-wrap__intro { position: static; }
  .tiles, .tiles--topics, .tcards--bento, .tcard--wide, .versus { grid-template-columns: minmax(0, 1fr); }
  .tcard--wide, .tiles__tile--feature { grid-column: auto; grid-row: auto; }
  .stages { grid-template-columns: minmax(0, 1fr); }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  .faq-split__head { gap: 12px; }
  .sect-head { flex-direction: column; align-items: flex-start; }
  
  
}
@media (max-width: 720px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  
  
  
  
  .form { grid-template-columns: minmax(0, 1fr); }
  .footer__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  
  
  
  
  
  
  
  
  
  .inline-form { flex-direction: column; gap: 10px; }
  .inline-form .btn { justify-content: center; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  
  
  
  
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] .wi { opacity: 1; transform: none; }
  
}

/* No shadows: surfaces are separated by hairlines */
.tip { border: 1px solid var(--line); }
.nav.is-solid { border-bottom: 1px solid var(--line); }
.nav.is-solid[data-theme="dark"] { border-bottom-color: rgba(255, 255, 255, 0.12); }
/* where the solid nav's bottom border crosses the rails; -7px centres it on the border */
.nav .xh { display: none; }
.nav.is-solid .xh { display: block; bottom: -7px; }
.nav[data-theme="dark"] .xh { --c: rgba(255, 255, 255, 0.8); }
.menu-open .nav .xh { display: none; }
.nowrap { white-space: nowrap; }

/* ---------- Free Homepage Redesign ---------- */
.redo-hero .phero__copy { position: relative; z-index: 1; }
.redo-hero .phero__copy .h1 { max-width: 15em; }
.redo-hero .facts { justify-content: center; }
.redo-note { font-size: 14px; color: var(--text-2); }
.redo-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); margin-bottom: clamp(40px, 4vw, 56px); }
.redo-split__head { display: grid; gap: 20px; justify-items: start; align-content: start; }
.redo-split__body { display: grid; gap: 18px; align-content: end; color: var(--text-2); }
.redo-split__body .lead { color: var(--ink); }
.sect--grad .redo-split { margin-bottom: 0; }
.sect--grad .redo-split__body, .sect--grad .redo-split__body .lead { color: inherit; }
.redo-head { display: grid; gap: 16px; justify-items: center; max-width: 46em; margin: 0 auto clamp(40px, 4vw, 56px); text-align: center; color: var(--text-2); }
.redo-opp { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; margin-top: 12px; padding: clamp(24px, 2.6vw, 36px); background: var(--violet); color: #fff; }
.redo-opp .h3 { color: #fff; }
.redo-opp p:last-child { max-width: 32em; font-size: 18px; line-height: 1.5; }
.redo-cta { display: grid; justify-items: center; gap: 14px; margin-top: clamp(32px, 4vw, 48px); }
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.offer__card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(24px, 3vw, 44px); background: var(--tile); border: 1px solid transparent; transition: border-color 0.3s; }
@media (hover: hover) and (pointer: fine) { .offer__card:hover { border-color: var(--violet); } }
.offer__card .tile-ic { margin-bottom: 6px; }
.offer__card > p { color: var(--text-2); }
.offer__card .cs-list { margin-top: 8px; }
.offer__how { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; align-self: stretch; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.offer__how b { font-weight: 500; color: var(--ink); }
.offer__card .cs-list + .offer__how { margin-block-start: auto; }
.compare { --x: 50%; position: relative; margin: 0; overflow: hidden; background: var(--tile); border: 1px solid var(--line); touch-action: pan-y; }
.compare img { display: block; width: 100%; height: auto; }
.compare__after { position: absolute; inset: 0; height: 100% !important; clip-path: inset(0 0 0 var(--x)); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--violet); pointer-events: none; }
.compare__line::after { content: "\2039\2002\203A"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; translate: -50% -50%; background: var(--violet); color: #fff; font-size: 20px; line-height: 1; }
.compare__tag { position: absolute; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 14px; pointer-events: none; }
.compare__tag b { font-weight: 500; color: var(--violet); }
.compare__tag--l { left: 16px; }
.compare__tag--r { right: 16px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare input:focus-visible { opacity: 0.001; }
.compare:has(input:focus-visible) .compare__line { box-shadow: 0 0 0 2px var(--lavender); }
.compare-note { margin-top: 14px; text-align: center; font-size: 14px; color: var(--text-2); }
.form__head { grid-column: 1 / -1; display: grid; gap: 14px; }
.form__steps { display: grid; gap: 8px; }
.form__steps i { display: block; height: 2px; background: var(--line); }
.form__steps i::after { content: ""; display: block; height: 100%; background: var(--violet); transform: scaleX(var(--progress, 0.5)); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.form__step { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 20px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form__step[hidden] { display: none; }
.form__step:focus { outline: none; }
.form__step legend { grid-column: 1 / -1; float: left; width: 100%; margin-bottom: 4px; padding: 0; }
.field__label { font: 500 14px/1.3 var(--f-text); color: var(--ink); }
.form__back { background: none; border: 0; padding: 0; cursor: pointer; }
.form__note { grid-column: 1 / -1; }
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Tinted bento (homepage benefits and the Free Redesign offer): brand tints, each tile a small piece of UI.
   Hovering a tile plays that piece one step forward, all on one timing, and it plays back when the pointer leaves ---------- */
.b2 { --b2-t: 0.7s var(--ease-out); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(300px, auto) minmax(300px, auto); gap: 12px; margin-top: clamp(64px, 7vw, 112px); }
.b2__t { --tint: #e6e4ff; position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: clamp(24px, 2.2vw, 32px); overflow: hidden; isolation: isolate; background: var(--tint); color: var(--text-2); font-size: 15px; line-height: 1.5; }
.b2__t p { margin: 0; max-width: 26em; }
.b2__title { margin: 0; font: 300 clamp(1.45rem, 1.1rem + 0.8vw, 1.9rem)/1.15 var(--f-text); letter-spacing: -0.02em; color: var(--ink); }
.b2__title b { font-weight: 600; }
.b2__t .link-arrow { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .b2 { --b2-t: 0.01s linear; } }
@media (max-width: 900px) {
  .b2 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .b2 > .b2__t { grid-column: auto; grid-row: auto; }
}

/* ==========================================================================
   RESPONSIVE: the current components. Tablets (≤980) lose side-by-side
   splits; phones (≤720) lose 3-up and 4-up rows. Free Homepage Redesign
   keeps its own rules in redesign.css.
   ========================================================================== */
@media (max-width: 980px) {
  .phero__grid, .split2, .proc, .svcb, .svcb--media-left, .cs-block, .cs-quote, .redo-split, .offer, .callouts { grid-template-columns: minmax(0, 1fr); }
  .svcb--media-left .rot { order: 0; }
  .cs-quote blockquote, .cs-quote figcaption { grid-column: 1; grid-row: auto; } /* the quote, then who said it */
  .tcards--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sbento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sbento--3 .sb--tall { grid-column: auto; grid-row: auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the figures: two to a row, each pair ruled off from the next */
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics div:nth-child(odd) { border-left: 0; }
  .metrics div:nth-child(n+3) { border-top: 1px solid var(--line); }
  /* stage labels sit beside the frame, which a tablet or phone has no room for */
  .stage__tag { display: none; }
}
@media (max-width: 720px) {
  .scards, .tcards, .tcards--2, .tcards--5, .qgrid, .sbento, .sbento--3, .cs-gallery, .note-panel { grid-template-columns: minmax(0, 1fr); }
  .sb--split, .sb--glow, .sb--pic { grid-column: auto; grid-row: auto; }
  .sb--split { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .metrics dd { font-size: clamp(2rem, 1.4rem + 3vw, 2.6rem); }
  /* numbered rows: the number, then the title over its text */
  .row, .row--ic { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 16px; }
  .row > :nth-child(n+3) { grid-column: 2; }
}
/* contact lines: once the column narrows, the label sits over the value and its button */
@media (max-width: 1180px) {
  /* contact lines: the label over the value and its button */
  .direct-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .direct-list li > .meta { grid-column: 1 / -1; }
  .direct-list a:not(.btn) { overflow-wrap: anywhere; }
}
