/* ==========================================================================
   Plansfield v2 — design system (dark)
   Content markup comes from the approved prototype; this file is presentation.
   ========================================================================== */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
}

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --bg: #07080a;
  --bg-2: #0c0e11;
  --surface: #101216;
  --glass: rgba(18, 21, 27, .55);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f2f4f7;
  --muted: #8d939e;
  --dim: #5c626c;
  --accent: #4f8cff;
  --accent-2: #8fb6ff;
  --accent-soft: rgba(79, 140, 255, 0.12);
  --ink: var(--text);
  --accent-ink: #fff;

  --radius: 8px;
  --radius-lg: 14px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  --font-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { left: 12px; }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ---------- type ---------- */

h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.035em; line-height: 1.06; margin: 0; }
p { margin: 0; }
b { font-weight: 500; color: var(--text); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--muted); max-width: 64ch; }

/* tagline: a statement, not a quote box */
.tag {
  margin-top: 26px;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 34ch;
  color: var(--text);
}

/* ---------- buttons & links ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .02);
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s, box-shadow .4s var(--ease);
}
/* optical centring: Inter Tight sits low in its line box */
.btn > .t { display: block; transform: translateY(-.015em); }
.btn:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .05); }
.btn.primary { border-color: transparent; background: var(--accent); color: #fff; }
.btn.primary:hover { background: #3f7ef5; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 34px; }
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 4px;
  line-height: 1;
  color: var(--text);
  font-weight: 500;
}
.link::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 13px;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.link:hover::after { transform: scaleX(0); transform-origin: right; }

/* ---------- nav ---------- */

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .35s var(--ease), border-color .35s; border-bottom: 1px solid transparent; }
.nav.is-scrolled, .nav-open .nav {
  background: rgba(7, 8, 10, .62);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.03em; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; display: inline-block; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 72px 0 0 0; z-index: 49;
  background: rgba(7, 8, 10, .9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.nav-open { overflow: hidden; }
.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a:not(.btn) { font-size: 32px; letter-spacing: -0.03em; padding: 14px 0; border-bottom: 1px solid var(--line); transform: translateY(12px); opacity: 0; filter: blur(6px); transition: transform .5s var(--ease-out), opacity .5s var(--ease-out), filter .5s; }
.nav-open .mobile-menu a { transform: none; opacity: 1; filter: none; }
.nav-open .mobile-menu a:nth-child(2) { transition-delay: .04s; }
.nav-open .mobile-menu a:nth-child(3) { transition-delay: .08s; }
.nav-open .mobile-menu a:nth-child(4) { transition-delay: .12s; }
.mobile-menu .btn { margin-top: 28px; height: 54px; font-size: 16px; }

/* ==========================================================================
   Home
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 150px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero h1 { font-size: clamp(44px, 6.8vw, 108px); font-weight: 500; letter-spacing: -0.055em; line-height: .95; max-width: 13ch; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero h1 .tone { color: var(--accent); }
.hero .sub { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.35; letter-spacing: -0.02em; color: var(--muted); max-width: 34ch; margin-top: 30px; }
.hero .sub .em { color: var(--text); }

.hero .actions { margin-top: 40px; }

.ticker {
  position: relative;
  display: flex;
  overflow: hidden;
  margin-top: 88px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track { display: flex; gap: 72px; width: max-content; animation: marquee 44s linear infinite; }
.ticker span { white-space: nowrap; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.02em; color: var(--dim); }
.ticker b { font-weight: 400; color: var(--text); }
@keyframes marquee { to { transform: translateX(calc(-50% - 36px)); } }

.section { position: relative; padding: clamp(110px, 13vw, 180px) 0 0; }
.sec-head { margin-bottom: clamp(56px, 7vw, 96px); max-width: 1000px; }
.sec-head h2 { margin-top: 22px; font-size: clamp(34px, 4.6vw, 68px); font-weight: 400; letter-spacing: -0.045em; }

/* services showcase: text scrolls, the schematic stays */
.showcase { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.showcase-list .svc { min-height: 86vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .22; filter: blur(2px); transition: opacity .6s var(--ease), filter .6s var(--ease); }
.showcase-list .svc.active { opacity: 1; filter: none; }
.showcase-list .svc:first-child { min-height: 70vh; justify-content: flex-start; padding-top: 4vh; }
.showcase-list .svc:last-child { min-height: 72vh; }
.svc h3 { font-size: clamp(32px, 3.4vw, 50px); font-weight: 400; letter-spacing: -0.04em; margin-bottom: 22px; }
.svc .lead { font-size: 18px; }
.svc .fig-slot { display: none; }
.showcase-stage { position: sticky; top: max(96px, calc(50vh - 330px)); transform: scale(var(--ss, 1)); opacity: var(--so, 1); transform-origin: 50% 40%; will-change: transform, opacity; }
.stage {
  position: relative;
  aspect-ratio: 480 / 380;
  width: 100%;
}
.stage .fig { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.94); transition: opacity .6s var(--ease), transform 1s var(--ease-out); }
.stage .fig.on { opacity: 1; filter: none; transform: none; }
.stage-dots { display: flex; gap: 8px; margin: 28px auto 0; max-width: 360px; }
.stage-dots span { flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; position: relative; }
.stage-dots span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.stage-dots span.on::after { transform: scaleX(1); }

/* figures */
.fig svg { width: 100%; height: auto; overflow: visible; }
.fig text { font-family: var(--font-mono); font-size: 12.5px; fill: #aeb4bf; }
.fig .t-hi { fill: #fff; }
.fig .t-dim { fill: #6b717c; font-size: 11.5px; letter-spacing: .04em; }
.fig .card { fill: rgba(255, 255, 255, .035); stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.fig .card-hi { fill: rgba(79, 140, 255, .1); stroke: rgba(79, 140, 255, .55); stroke-width: 1; }
.fig .wire { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.2; }
.fig .wire-dash { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.2; stroke-dasharray: 3 5; }
.fig .flow { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: .14 1.2; stroke-dashoffset: 1.34; animation: flow 2.8s linear infinite; animation-delay: var(--fd, 0s); }
@keyframes flow { to { stroke-dashoffset: 0; } }
.fig .track { fill: rgba(255, 255, 255, .06); }
.fig .bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform 1.2s var(--ease-out); transition-delay: var(--bd, .2s); }
.fig.on .bar, .fig-slot.in .bar { transform: none; }
.fig .blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fig .pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.fig .grow-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) .3s; }
.fig.on .grow-line, .fig-slot.in .grow-line { stroke-dashoffset: 0; }
.fig .spark { stroke-dasharray: 1; stroke-dashoffset: 1; animation: spark 3.6s var(--ease) infinite; }
@keyframes spark { 0% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }
.fig .led { animation: led 3.6s ease-in-out infinite; animation-delay: var(--ld, 0s); }
@keyframes led { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.fig .card { fill: #111317; }
.stage .fig .card-hi { fill: #121a2b; }


.fig .caret { animation: blink 1s steps(1) infinite; }
.fig .grow-area { opacity: 0; transition: opacity 1.2s var(--ease) 1s; }
.fig.on .grow-area, .fig-slot.in .grow-area { opacity: 1; }
.fig .flow { animation-duration: 3.6s; }

/* AI schematic story: type → send → read sources → answer */
.fig .s-run { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); }
.fig.s-sent .s-run { stroke-dashoffset: 0; }
.fig .s-input, .fig .s-a, .fig .s-at { transition: stroke .4s, fill .4s; }
.fig.s-typing .s-input { stroke: rgba(79, 140, 255, .6); }
.fig.s-answer .s-a { fill: rgba(79, 140, 255, .1); stroke: rgba(79, 140, 255, .55); }
.fig.s-answer .s-at { fill: #fff; }
.fig .caret { opacity: 0; }
.fig.s-typing .caret { opacity: 1; }
.fig .s-status { opacity: 0; transition: opacity .3s; }
.fig.s-reading .s-status { opacity: 1; animation: pulse 1.2s ease-in-out infinite; }
.fig .s-out { opacity: 0; transition: opacity .5s var(--ease); }
.fig.s-answer .s-out { opacity: 1; }
.fig .s-bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform .9s var(--ease-out); }
.fig .s-row.grown .s-bar { transform: none; }
.fig .s-row { transition: opacity .5s var(--ease); }
.fig.s-done .s-row:not(.s-main) { opacity: .4; }
.fig.s-done .s-main text { fill: #fff; }
.fig .live.grow-area { animation: areaLoop 3.6s var(--ease) infinite; }
@keyframes areaLoop { 0%, 30% { opacity: 0; } 70%, 100% { opacity: 1; } }

/* planning: demand moves, master data carries it to the other plans */
.fig .pl-hl { fill: rgba(79, 140, 255, 0); transition: fill .5s var(--ease); }
.fig .pl-bar { transform-box: fill-box; transform-origin: left center; transition: transform 1s var(--ease-out); }
.fig .pl-run { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease); }
.fig .pl-md { transition: fill .4s, stroke .4s; }
.fig.st-1 .pl-1 .pl-hl { fill: rgba(79, 140, 255, .1); }
.fig.st-1 .pl-1 .pl-bar { transform: scaleX(1.32); }
.fig.st-2 .pl-run { stroke-dashoffset: 0; }
.fig.st-2 .pl-md { fill: rgba(79, 140, 255, .12); stroke: rgba(79, 140, 255, .6); }
.fig.st-3 .pl-3 .pl-bar { transform: scaleX(1.18); }
.fig.st-4 .pl-4 .pl-bar { transform: scaleX(1.4); }
.fig.st-5 .pl-5 .pl-bar { transform: scaleX(1.1); }
.fig.st-3 .pl-3 .pl-hl, .fig.st-4 .pl-4 .pl-hl, .fig.st-5 .pl-5 .pl-hl { fill: rgba(79, 140, 255, .06); }
.fig.st-6 .pl-hl { fill: rgba(79, 140, 255, 0) !important; }

/* applications: approve → finance done → line to ERP → sent */
.fig .ap-done { fill: #4f8cff; }
.fig .ap-fin, .fig .ap-erp { fill: #07080a; stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.fig .ap-fin { stroke: #a9c6ff; }
.fig .ap-line { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease); }
.fig .ap-btn { transform-box: fill-box; transform-origin: center; transition: transform .2s var(--ease), opacity .3s; }
.fig .ap-erp-t { fill: #6b717c; transition: fill .4s; }
.fig.st-1 .ap-btn { transform: scale(.95); }
.fig.st-2 .ap-btn { transform: none; opacity: .45; }
.fig.st-2 .ap-fin { fill: #4f8cff; stroke: #4f8cff; }
.fig.st-3 .ap-line { stroke-dashoffset: 0; }
.fig.st-4 .ap-erp { fill: #4f8cff; stroke: #4f8cff; }
.fig.st-4 .ap-erp-t { fill: #fff; }

/* data: sources sync one by one, the semantic layer reconciles, consumers agree */
.fig .da-dot { fill: rgba(255, 255, 255, .2); transition: fill .4s; }
.fig .da-run, .fig .da-out { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease); }
.fig .da-sl { transition: fill .4s, stroke .4s; }
.fig .da-bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform .9s var(--ease-out); }
.fig.st-1 .da-1, .fig.st-2 .da-2, .fig.st-3 .da-3, .fig.st-4 .da-4 { fill: #4f8cff; }
.fig.st-1 .da-r1, .fig.st-2 .da-r2, .fig.st-3 .da-r3, .fig.st-4 .da-r4 { stroke-dashoffset: 0; }
.fig.st-5 .da-sl { fill: rgba(79, 140, 255, .12); stroke: rgba(79, 140, 255, .6); }
.fig.st-5 .da-out { stroke-dashoffset: 0; }
.fig.st-6 .da-bar { transform: none; }

/* products — bento */
.plist { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.plist .prod { grid-column: span 2; }
.plist .prod:nth-child(1), .plist .prod:nth-child(4) { grid-column: span 4; }
.prod {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  padding: 30px 30px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008));
}
.prod.in { transition: transform .5s var(--ease-out), border-color .3s; }
.prod:hover { border-color: rgba(255, 255, 255, .24); background: #111318; }
.cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.prod .name { font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.04em; margin-top: auto; padding-top: 40px; line-height: 1.05; }
.plist .prod:nth-child(1) .name, .plist .prod:nth-child(4) .name { font-size: clamp(36px, 3.6vw, 54px); }
.prod .desc::first-letter { text-transform: uppercase; }
.prod {
  min-height: 300px;
  padding: clamp(28px, 3vw, 44px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #0e1014;
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, .9);
  transition: border-color .3s, background .3s;
}


.prod .desc { color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.plist .prod:nth-child(1) .desc, .plist .prod:nth-child(4) .desc { font-size: 17px; }
.pfoot { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-top: 36px; }
.pfoot p { color: var(--muted); max-width: 62ch; }

/* AI — two cards, the second slides over the first while scrolling */
.ai-grid { position: relative; display: grid; gap: 40px; padding-bottom: 8vh; }
.ai-card {
  position: sticky;
  top: 112px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-rows: auto auto 1fr;
  gap: 0 clamp(32px, 5vw, 80px);
  min-height: min(600px, calc(100vh - 160px));
  padding: clamp(32px, 4.5vw, 64px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #0e1014;
  box-shadow: 0 -30px 80px -40px rgba(0, 0, 0, .9);
  transform-origin: 50% 0;
  transform: scale(var(--cs, 1));
  will-change: transform;
}
.ai-card:nth-child(2) { top: 136px; }
.ai-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #07080a;
  opacity: var(--cd, 0);
  pointer-events: none;
}
.ai-card > .pill { grid-column: 1; grid-row: 1; justify-self: start; align-self: start; }
.ai-card > h3 { grid-column: 1; grid-row: 2; font-size: clamp(30px, 3.2vw, 46px); font-weight: 400; letter-spacing: -0.04em; margin: 24px 0 0; }
.ai-card > .actions { grid-column: 1; grid-row: 3; align-self: end; margin-top: 40px; padding-top: 0; }
.ai-card > p { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); font-size: 17px; }
.ai-card > .checks, .ai-card > .kv { grid-column: 2; grid-row: 3; align-self: start; }
.pill, .badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line-2);
}
.kv { margin: 30px 0 0; display: grid; }
.kv dt { font-weight: 500; padding-top: 18px; border-top: 1px solid var(--line); }
.kv dd { margin: 6px 0 0; padding-bottom: 18px; color: var(--muted); font-size: 15.5px; }

/* contact */
.contact { position: relative; isolation: isolate; padding-bottom: clamp(40px, 6vw, 80px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact h2 { font-size: clamp(36px, 5vw, 74px); font-weight: 400; letter-spacing: -0.05em; line-height: 1; margin-top: 22px; max-width: 14ch; }
.contact-copy > p { color: var(--muted); font-size: clamp(18px, 1.45vw, 21px); max-width: 44ch; margin-top: 24px; }
.mail { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.mail span { font-family: var(--font-mono); font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.01em; }
.copy {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 14px; line-height: 1;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
}
.copy:hover { border-color: var(--text); color: var(--text); }
.copy.done { border-color: var(--accent); color: var(--accent-2); background: rgba(79, 140, 255, .1); }
.contact-meta { display: grid; gap: 16px; margin-top: 30px; }
.contact-meta div { display: grid; gap: 3px; }
.contact-meta .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.contact-meta span:not(.k) { color: var(--muted); }

.contact .mail { margin-top: 40px !important; }
.contact-body > p { color: var(--muted); font-size: clamp(18px, 1.45vw, 21px); max-width: 44ch; margin-top: 24px; }
.contact .mail { display: block; margin-top: clamp(48px, 7vw, 96px); padding-top: 0; border-top: 0; }
.contact .mail span#mail {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.05;
  white-space: nowrap;
  font-size: min(9vw, 120px);
  color: var(--text);
  padding-bottom: .08em;
}
.contact .mail { position: relative; display: inline-block; }
.contact .mail span#mail { display: inline-block; }
.contact .copy { position: absolute; right: .2em; top: 0; transform: translateY(-100%); }

/* form on glass */
.form {
  position: relative;
  display: grid;
  gap: 12px;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  background-color: rgba(0, 0, 0, .28);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 15px 9px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 136px; resize: vertical; display: block; }
.field select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 26px, calc(100% - 17px) 26px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field select option { background: var(--surface); color: var(--text); }
.field label { position: absolute; left: 16px; top: 17px; color: var(--dim); font-size: 15px; pointer-events: none; transition: top .2s var(--ease), font-size .2s var(--ease), color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: rgba(79, 140, 255, .7); background-color: rgba(0, 0, 0, .4); box-shadow: 0 0 0 4px rgba(79, 140, 255, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 7px; font-size: 11.5px; color: var(--muted); }
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; }
.consent-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 6px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent-check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(0, 0, 0, .3); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.consent-check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease-out); }
.consent-check input:checked { background: var(--accent); border-color: var(--accent); }
.consent-check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent-check.invalid input { border-color: #ff6b6b; }
.consent-check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-error { display: none; color: #ff8a8a; font-size: 14px; }
.form-error.show { display: block; }
.form-success { display: none; padding: 8px 0; }
.form-success h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; letter-spacing: -0.035em; }
.form-success p { color: var(--muted); margin-top: 10px; }
.form.sent .form-success { display: block; animation: blurIn .8s var(--ease-out); }
.form.sent > :not(.form-success) { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@keyframes blurIn { from { opacity: 0; filter: blur(12px); transform: translateY(10px); } to { opacity: 1; filter: none; transform: none; } }

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page { position: relative; padding-top: 136px; isolation: isolate; }
.crumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--dim); margin-bottom: 36px; }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--text); }
.phero { padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.phero h1 { font-size: clamp(36px, 5.2vw, 76px); font-weight: 400; letter-spacing: -0.045em; line-height: 1.02; max-width: 20ch; margin: 24px 0 30px; }
.phero .lead { max-width: 70ch; }
.status { margin-top: 26px; }

.pblock { padding-top: clamp(72px, 9vw, 120px); }
.pblock > h2 { font-size: clamp(28px, 3.2vw, 46px); font-weight: 400; letter-spacing: -0.04em; max-width: 26ch; margin-bottom: clamp(28px, 3.5vw, 44px); }
.intro { color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); max-width: 72ch; margin-bottom: 36px; }
.note { color: var(--dim); font-size: 14.5px; max-width: 90ch; }

.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15.5px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 1px; top: .45em;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.why, .dash { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--line); }
.why li, .dash li, .steps li, .case, .faq > div {
  background-image: linear-gradient(var(--line-2), var(--line-2));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 1px;
}
.why li.in, .dash li.in, .steps li.in, .case.in, .faq > div.in { background-size: 100% 1px; }
.why li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px 40px; padding: 26px 0; color: var(--muted); }
.why li > b { font-size: clamp(18px, 1.5vw, 21px); letter-spacing: -0.02em; line-height: 1.35; }
.dash li { position: relative; padding: 20px 0 20px 30px; color: var(--muted); }
.dash li::before { content: ""; position: absolute; left: 0; top: calc(20px + .78em); width: 14px; height: 1px; background: var(--accent); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 32px; }
.steps li { position: relative; padding: 30px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.steps li.in { background-image: linear-gradient(90deg, var(--accent), rgba(79, 140, 255, .1)); background-size: 100% 2px; }
.steps li > b { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.steps li > span { color: var(--muted); font-size: 15.5px; }

.cards6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cards6.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards6 > .card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008));
}
.cards6 > .card.in { transition: transform .5s var(--ease-out), border-color .3s; }
a.card:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .03); }
.cards6 > .card h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; letter-spacing: -0.03em; }
.cards6 > .card p { color: var(--muted); font-size: 15.5px; }
.cards6 > .card .badge { margin: 2px 0 4px; }
.cards6 > .card .more { margin-top: auto; padding-top: 22px; font-size: 14.5px; font-weight: 500; color: var(--text); }

.cards6 > div.card .more { color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; font-weight: 400; border-top: 1px solid var(--line); }
.cards6 > div.card { min-height: 0; }

.inc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.inc > article { padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)); }
.inc h3 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 400; letter-spacing: -0.03em; margin-bottom: 14px; }
.inc p { color: var(--muted); font-size: 15.5px; }

.valgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.val { padding: 28px 24px 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)); }
.val b { display: block; font-size: 19px; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 14px; }
.val p { color: var(--muted); font-size: 15px; }

.tblwrap { overflow-x: auto; border-top: 1px solid var(--line-2); }
.tbl { width: 100%; border-collapse: collapse; min-width: 720px; }
.tbl th { text-align: left; vertical-align: bottom; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 18px 20px 16px 0; border-bottom: 1px solid var(--line); }
.tbl th .sub { display: block; margin-top: 6px; color: var(--accent-2); text-transform: none; letter-spacing: .04em; }
.tbl td { vertical-align: top; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; transition: color .25s; }
.tbl td:first-child { color: var(--text); font-weight: 500; }
.tbl tr:hover td { color: var(--text); }
.tbl.map td, .tbl.map th { width: 40%; }
.tbl.map td:first-child, .tbl.map th:first-child { width: 20%; }

.faq { border-bottom: 1px solid var(--line); }
.faq .q { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%; text-align: left; padding: 26px 0; background: none; border: 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 400; letter-spacing: -0.02em; color: var(--text); transition: color .2s; }
.faq .q:hover { color: var(--accent-2); }
.faq .plus { flex: none; position: relative; width: 16px; height: 16px; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1.5px; background: currentColor; }
.faq .plus::after { transform: rotate(90deg); transition: transform .4s var(--ease-out); }
.faq .open .plus::after { transform: rotate(0); }
.faq .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.faq .open .a { grid-template-rows: 1fr; }
.faq .a > p { overflow: hidden; color: var(--muted); max-width: 80ch; }
.faq .open .a > p { padding-bottom: 28px; }
.faq:not(.js) > div > b { display: block; padding: 26px 0 10px; font-size: 20px; font-weight: 400; }
.faq:not(.js) > div > p { color: var(--muted); padding-bottom: 26px; }

.filters { padding-top: 56px; display: grid; gap: 18px; }
.frow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; }
.frow .eyebrow { padding-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 15px; line-height: 1; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font-size: 14px; color: var(--muted); transition: background .25s, border-color .25s, color .25s, box-shadow .25s; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
#case-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-top: 6px; }
.cases { border-bottom: 1px solid var(--line); padding-top: 40px; }
.case { padding: 40px 0 44px; }
.case-head { display: grid; gap: 16px; margin-bottom: 30px; }
.case-head h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; letter-spacing: -0.035em; max-width: 30ch; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tag-k, .tag-a { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.tag-k { color: var(--accent-2); }
.tag-a { color: var(--muted); }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; }
.case-body .eyebrow { display: block; color: var(--dim); margin-bottom: 12px; }
.case-body p { color: var(--muted); font-size: 15.5px; }
.case-body .checks { margin-top: 0; }
.case-body > div:last-child p { color: var(--text); }
.case.fade-in { animation: blurIn .6s var(--ease-out); }

.pcta {
  position: relative;
  margin-top: clamp(96px, 12vw, 160px);
  padding: clamp(36px, 6vw, 84px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  isolation: isolate;
}
.pcta h2 { font-size: clamp(32px, 4.4vw, 64px); font-weight: 400; letter-spacing: -0.045em; max-width: 18ch; }
.pcta > p { color: var(--muted); font-size: clamp(18px, 1.45vw, 21px); max-width: 56ch; margin-top: 22px; }

/* legal pages */
.legal { max-width: 780px; }
.legal h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin: 52px 0 14px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal b { color: var(--text); }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal .tblwrap { margin: 10px 0 18px; }
.legal .tbl { min-width: 560px; }

/* ---------- footer ---------- */

footer.site { position: relative; margin-top: clamp(64px, 7vw, 96px); border-top: 1px solid var(--line); padding: 64px 0 34px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.foot-grid a, .foot-grid .link-btn { color: var(--muted); transition: color .2s; }
.foot-grid a:hover, .foot-grid .link-btn:hover { color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.footer-word {
  font-size: 17vw;
  font-weight: 600;
  line-height: .86;
  letter-spacing: -0.035em;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  margin: 80px 0 24px;
  white-space: nowrap;
  user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .015) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.foot-grid + .foot-bottom { margin-top: 56px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 14px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- cookie consent ---------- */

.consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 90;
  max-width: 540px;
  margin-left: auto;
  background: rgba(16, 18, 22, .78);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  font-size: 14.5px;
  color: var(--muted);
  transform: translateY(20px);
  opacity: 0;
  filter: blur(8px);
  visibility: hidden;
  transition: transform .6s var(--ease-out), opacity .5s var(--ease), filter .5s, visibility .5s;
}
.consent.open { transform: none; opacity: 1; filter: none; visibility: visible; }
.consent h2 { font-size: 17px; letter-spacing: -0.01em; color: var(--text); margin-bottom: 8px; font-weight: 500; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.consent-actions .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.consent-actions [data-consent="reject"] { margin-left: auto; }
.consent-prefs { display: none; margin-top: 16px; border-top: 1px solid var(--line); }
.consent.customize .consent-prefs { display: block; }
.consent-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.consent-opt b { display: block; font-size: 14.5px; }
.consent-opt span { font-size: 13px; }
.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease-out); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + i { opacity: .55; }

/* ==========================================================================
   Motion
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
  transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out), filter 1.1s var(--ease-out), background-size 1.4s var(--ease-out), border-color .3s;
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; filter: none; }

.wd {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* the mask is wider than the word so tight tracking and descenders are never clipped */
  padding: .06em .12em .2em;
  margin: -.06em -.12em -.2em;
}
.wd > span {
  display: inline-block;
  transform: translateY(135%);
  filter: blur(6px);
  transition: transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 38ms + var(--d, 0s));
}
.in .wd > span { transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .wd > span { transform: none; filter: none; }
  .ticker-track { animation: none; }
  .fig .flow { display: none; }
  .fig .spark, .fig .grow-line { stroke-dashoffset: 0; }
  .fig .bar { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .valgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plist .prod, .plist .prod:nth-child(n) { grid-column: span 1; }
  .plist .prod:nth-child(1), .plist .prod:nth-child(4) { grid-column: span 2; }
  .case-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .case-body > div:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .showcase-stage { display: none; }
  .showcase-list .svc { min-height: 0 !important; opacity: 1; filter: none; padding: 0 0 80px !important; }
  .svc .fig-slot { display: block; margin-top: 36px; }
  .fig-slot .stage { aspect-ratio: auto; transform: none; }
  .fig-slot .fig { position: relative; padding: 0; }
  .inc, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .ai-card { position: relative; top: 0 !important; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; min-height: 0; transform: none; }
  .ai-card > * { grid-column: 1 !important; grid-row: auto !important; }
  .ai-card > p { margin-top: 18px; }
  .ai-card::after { display: none; }
  .why li { grid-template-columns: minmax(0, 1fr); }
  .frow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .frow .eyebrow { padding-top: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .plist, .cards6, .cards6.four, .valgrid { grid-template-columns: minmax(0, 1fr); }
  .plist .prod:nth-child(n) { grid-column: auto; }
  .prod, .cards6 > .card { min-height: 0; padding: 26px 22px 28px; }
  .case-body { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .case-body > div:nth-child(2) { order: 0; }
  .hero { padding-top: 120px; }
  .hero .actions .btn, .phero .actions .btn, .pcta .actions .btn, .contact .actions .btn { width: 100%; }
  .page { padding-top: 112px; }
  .ticker { margin-top: 64px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .mail span { font-size: 18px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .consent { left: 10px; right: 10px; bottom: 10px; padding: 20px 18px 18px; }
  .consent-actions .btn { flex: 1 1 40%; }
  .consent-actions [data-consent="reject"] { margin-left: 0; }
  .consent-actions [data-consent="customize"] { flex-basis: 100%; order: 3; }
}

/* hero options review page */
.hero-opt { border-bottom: 1px solid var(--line); }
.opt-label { position: absolute; top: 96px; right: var(--gutter); font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }

/* isometric scenes in product cards and the contact block */
.prod { position: relative; overflow: hidden; isolation: isolate; }
.prod > * { position: relative; z-index: 1; }
.prod > .piso { position: absolute; z-index: 0; top: 4%; right: 2%; width: 48%; height: 52%; pointer-events: none; }
.plist .prod:nth-child(1) > .piso, .plist .prod:nth-child(4) > .piso { top: 6%; right: 3%; width: 34%; height: 88%; }
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact-iso { position: absolute; z-index: -1; top: 0; right: 0; width: 34%; height: 100%; pointer-events: none; }
@media (max-width: 900px) { .contact-iso { display: none; } .prod > .piso { opacity: .5; } }

/* schematic stories: reset without reverse transitions, restart through a short fade */
.fig.no-anim svg, .fig.no-anim svg * { transition: none !important; }
.fig svg { transition: opacity .35s var(--ease); }
.fig.story-out svg { opacity: 0; }

/* product cards: category left, status right; a fine dot texture fading from the top-right corner */
.prod .badge { align-self: flex-start; }
.prod .cat { margin-top: auto; padding-top: 48px; }
.prod .cat + .name { margin-top: 10px; padding-top: 0; }
.prod::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.3px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(120% 90% at 100% 0%, #000 0%, transparent 60%);
  mask-image: radial-gradient(120% 90% at 100% 0%, #000 0%, transparent 60%);
  transition: opacity .4s;
  opacity: .8;
}
.prod:hover::after { opacity: 1; }
.prod::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .4s;
}
.prod:hover::before { opacity: 1; }



/* contact: friendly headline left, e-mail right */
.contact-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.contact-body > h2 { margin: 0; font-size: clamp(34px, 4.2vw, 60px); font-weight: 400; letter-spacing: -0.045em; line-height: 1.04; color: var(--text); max-width: 14ch; }
.contact-body .mail { margin-top: 0 !important; justify-self: end; }
.contact-body .mail span#mail { font-size: clamp(28px, 3.6vw, 56px) !important; }
@media (max-width: 900px) { .contact-body { grid-template-columns: minmax(0, 1fr); } .contact-body .mail { justify-self: start; } }

.contact-body { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 88px); align-items: end; }
.contact-body .mail { display: flex !important; flex-direction: column; align-items: flex-start; gap: 18px; position: static !important; }
.contact-body .mail span#mail {
  position: relative;
  padding-bottom: 10px;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 2px no-repeat,
              linear-gradient(var(--line-2), var(--line-2)) left bottom / 100% 1px no-repeat;
  transition: background-size .6s var(--ease-out), color .3s;
}
.contact-body .mail:hover span#mail { background-size: 100% 2px, 100% 1px; }
.contact-body .copy { position: static !important; transform: none !important; order: 2; }

/* ==========================================================================
   Case library
   ========================================================================== */
.cfilters {
  position: sticky;
  top: 72px;
  z-index: 20;
  margin-top: 48px;
  padding: 18px 0 16px;
  display: grid;
  gap: 14px;
  background: rgba(7, 8, 10, .9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.cf-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .7fr); gap: 10px; }
.cf-search input, .cf-select select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background-color: #0e1014;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}
.cf-search input { padding-left: 40px; background-image: linear-gradient(var(--muted), var(--muted)), radial-gradient(circle at 50% 50%, transparent 5px, var(--muted) 5.5px, var(--muted) 6.5px, transparent 7px); background-size: 6px 1.5px, 16px 16px; background-position: 26px 27px, 12px 13px; background-repeat: no-repeat; }
.cf-select select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.cf-select option { background: var(--surface); }
.cf-search input:focus, .cf-select select:focus { outline: none; border-color: var(--accent); }
.cfilters .chip i { font-style: normal; font-family: var(--font-mono); font-size: 11px; margin-left: 8px; opacity: .6; }
.cf-kinds .chip { height: 32px; font-size: 13px; }
.cf-meta { display: flex; gap: 18px; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.cf-meta .link-btn { text-decoration: underline; text-underline-offset: 3px; font-family: inherit; font-size: inherit; letter-spacing: inherit; }

.cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 28px; }
.cc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #0e1014;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.cc:hover, .cc:focus-visible { border-color: rgba(255, 255, 255, .24); background: #111318; outline: none; }
.cc.fade-in { animation: blurIn .5s var(--ease-out); }
.cc-tags { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.cc-tags .tag-s { color: var(--accent-2); }
.cc-tags .tag-k, .cc-tags .tag-a { color: var(--muted); }
.cc-tags .badge { margin-left: auto; }
.cc h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; margin-top: 6px; }
.cc-client { color: var(--muted); font-size: 15px; }
.cc-teaser { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-kpis { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 8px; }
.cc-kpis div { display: grid; gap: 2px; }
.cc-kpis b { font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; letter-spacing: -0.03em; color: var(--text); }
.cc-kpis span { font-size: 13px; color: var(--muted); max-width: 20ch; }
.cc-detail { display: none; }
.cc-more { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 500; }
.cempty { padding: 48px 0; color: var(--muted); }

.cmodal {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: #0e1014;
  color: var(--text);
  overflow: auto;
}
.cmodal::backdrop { background: rgba(4, 5, 7, .72); backdrop-filter: blur(6px); }
.cmodal[open] { animation: blurIn .4s var(--ease-out); }
.cmodal-body { padding: clamp(28px, 4vw, 56px); display: grid; gap: 14px; }
.cmodal-body h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 400; letter-spacing: -0.04em; max-width: 24ch; }
.cmodal-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.cmodal-detail .eyebrow { display: block; margin-bottom: 14px; color: var(--dim); }
.cmodal-detail p { color: var(--muted); font-size: 15.5px; }
.cmodal-detail .checks { margin-top: 0; }
.cmodal-detail .cc-metrics { display: grid; gap: 14px; margin-bottom: 18px; }
.cmodal-detail .cc-metrics div { display: grid; }
.cmodal-detail .cc-metrics b { font-size: 32px; font-weight: 400; letter-spacing: -0.03em; }
.cmodal-detail .cc-metrics span { font-size: 13px; color: var(--muted); }
.cmodal-x { position: sticky; top: 16px; float: right; margin: 16px 16px 0 0; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: #0e1014; z-index: 2; }
.cmodal-x::before, .cmodal-x::after { content: ""; position: absolute; left: 12px; right: 12px; top: 19px; height: 1.5px; background: var(--text); transform: rotate(45deg); }
.cmodal-x::after { transform: rotate(-45deg); }
.cmodal-x:hover { border-color: var(--text); }
@media (max-width: 900px) {
  .cf-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cf-search { grid-column: 1 / -1; }
  .cgrid { grid-template-columns: minmax(0, 1fr); }
  .cmodal-detail { grid-template-columns: minmax(0, 1fr); }
  .cfilters { position: static; }
  .cf-services { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}

/* inner pages share the home card language */
.cards6 > .card, .inc > article, .val {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #0e1014;
  box-shadow: 0 30px 80px -50px rgba(0, 0, 0, .9);
  transition: border-color .3s, background .3s;
}
.cards6 > .card, .inc > article { padding: clamp(28px, 3vw, 40px); }
.cards6, .inc, .valgrid { gap: 16px; }
a.card:hover, .inc > article:hover, .val:hover { border-color: rgba(255, 255, 255, .24); background: #111318; }
.cards6 > a.card .badge { margin-top: 2px; }
.pcta { border-radius: 24px; background: #0e1014; }

/* case details: a floating panel on the right */
.cmodal {
  position: fixed;
  inset: 16px 16px 16px auto;
  margin: 0;
  width: min(640px, calc(100vw - 32px));
  height: calc(100vh - 32px);
  max-height: none;
  border-radius: 22px;
  box-shadow: -40px 0 120px -40px rgba(0, 0, 0, .9);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.cmodal::-webkit-scrollbar { width: 10px; }
.cmodal::-webkit-scrollbar-track { background: transparent; margin: 18px 0; }
.cmodal::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 999px; border: 3px solid #0e1014; }
.cmodal::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .26); }
.cmodal[open] { animation: panelIn .5s var(--ease-out); }
.cmodal.closing { animation: panelOut .3s var(--ease) forwards; }
.cmodal::backdrop { background: rgba(4, 5, 7, .55); backdrop-filter: blur(4px); }
@keyframes panelIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes panelOut { to { transform: translateX(40px); opacity: 0; } }
.cmodal-body { padding: clamp(28px, 3.4vw, 44px); padding-top: 24px; }
.cmodal-body h2 { font-size: clamp(28px, 2.8vw, 38px); }
.cmodal-detail { grid-template-columns: minmax(0, 1fr) !important; gap: 28px; }
.cmodal-detail .cc-col + .cc-col { padding-top: 26px; border-top: 1px solid var(--line); }
.cmodal-detail .cc-metrics { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.cmodal-x { position: sticky; top: 14px; }
@media (max-width: 640px) { .cmodal { inset: 8px; width: auto; height: calc(100vh - 16px); } }

/* friendlier filter bar */
.cfilters { gap: 16px; padding: 20px 0 18px; }
.cf-services .chip { height: 40px; padding: 0 18px; font-size: 14.5px; }
.cf-meta { flex-wrap: wrap; gap: 12px 14px; font-family: var(--font-sans); font-size: 14px; letter-spacing: 0; }
.cf-meta #case-count { color: var(--text); margin-right: 6px; }
.cf-meta .cf-select select { height: 36px; width: auto; min-width: 0; border-radius: 999px; padding: 0 34px 0 14px; font-size: 14px; color: var(--muted); background-color: transparent; background-position: calc(100% - 18px) 15px, calc(100% - 13px) 15px; }
.cf-meta .cf-select select:hover { border-color: var(--text); color: var(--text); }
.cf-meta .link-btn { color: var(--muted); }
.cf-meta .link-btn:hover { color: var(--text); }

/* filters: compact row + expandable full view */
.cf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.cf-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 14.5px;
  transition: border-color .25s, background .25s;
}
.cf-toggle::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease-out); }
.cf-toggle.on::after { transform: translateY(2px) rotate(-135deg); }
.cf-toggle:hover, .cf-toggle.on { border-color: var(--text); }
.cf-toggle i { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: #fff; background: var(--accent); border-radius: 999px; padding: 0 6px; line-height: 18px; }
.cf-toggle i:empty { display: none; }
.cf-more { display: grid; gap: 16px; padding: 18px 0 4px; border-top: 1px solid var(--line); animation: blurIn .4s var(--ease-out); }
.cf-group { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; }
.cf-group .eyebrow { padding-top: 9px; }
.cf-group .chip { height: 34px; font-size: 13.5px; }
@media (max-width: 900px) { .cf-group { grid-template-columns: minmax(0, 1fr); } .cf-group .eyebrow { padding-top: 0; } }

/* iso field in the page header (services, products, cases) */
.page-iso { position: absolute; top: 0; left: 0; width: 100%; height: min(100vh, 900px); z-index: -1; pointer-events: none; }
.page.has-iso .phero h1 { max-width: 15ch; }
.page.has-iso .phero .lead { max-width: 54ch; }
@media (max-width: 900px) { .page-iso { display: none; } }

/* filter panel (left) */
.fpanel {
  position: fixed;
  inset: 16px auto 16px 16px;
  margin: 0;
  width: min(420px, calc(100vw - 32px));
  height: calc(100vh - 32px);
  max-height: none;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: #0e1014;
  color: var(--text);
  box-shadow: 40px 0 120px -40px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.fpanel[open] { display: flex; flex-direction: column; animation: panelInL .5s var(--ease-out); }
.fpanel.closing { animation: panelOutL .3s var(--ease) forwards; }
.fpanel::backdrop { background: rgba(4, 5, 7, .55); backdrop-filter: blur(4px); }
@keyframes panelInL { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes panelOutL { to { transform: translateX(-40px); opacity: 0; } }
.fp-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px 28px; border-bottom: 1px solid var(--line); }
.fp-head h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.fp-head .cmodal-x { position: relative; top: auto; float: none; margin: 0; }
.fp-body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.fp-body::-webkit-scrollbar { width: 10px; }
.fp-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 999px; border: 3px solid #0e1014; }
.fp-group { display: grid; gap: 2px; padding: 16px 0 10px; }
.fp-group + .fp-group { border-top: 1px solid var(--line); }
.fp-group .eyebrow { padding: 0 12px 8px; color: var(--dim); }
.fp-group[hidden] { display: none; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); font-size: 15px; text-align: left;
  transition: background .2s, color .2s;
}
.opt i { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--dim); min-width: 2ch; text-align: right; }
.opt:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.opt.on { background: rgba(79, 140, 255, .12); color: #fff; }
.opt.on i { color: var(--accent-2); }
.opt:disabled { opacity: .35; cursor: default; }
.opt:disabled:hover { background: transparent; color: var(--muted); }
.fp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 20px 28px; border-top: 1px solid var(--line); }
.fp-foot .link-btn { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.fp-foot .btn { flex: 1; max-width: 220px; }

/* chosen filters as removable pills */
.cf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-x {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 10px 0 12px; border-radius: 999px;
  border: 1px solid rgba(79, 140, 255, .45); background: rgba(79, 140, 255, .08);
  color: var(--text); font-size: 13px;
}
.pill-x::after { content: "\00d7"; color: var(--muted); font-size: 15px; line-height: 1; }
.pill-x:hover { border-color: var(--accent); }
.pill-x:hover::after { color: var(--text); }
.cf-toggle::after { display: none; }
.cf-toggle::before {
  content: "";
  width: 14px;
  height: 10px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 3px 4px / 8px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 8px / 4px 1.5px no-repeat;
}
@media (max-width: 640px) { .fpanel { inset: 8px; width: auto; height: calc(100vh - 16px); } }

/* no hanging words in headings */
h1, h2, h3 { text-wrap: balance; }
.lead, .intro, .sub { text-wrap: pretty; }
.wd > span { white-space: nowrap; }

/* hover background: the iso field, grey and faint */
.prod, .cards6 > a.card, .ai-card { position: relative; overflow: hidden; isolation: isolate; }
.cards6 > a.card > *, .ai-card > * { position: relative; z-index: 1; }
.card-iso {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .6s var(--ease), transform .9s var(--ease-out);
}
.prod:hover > .card-iso, .cards6 > a.card:hover > .card-iso, .ai-card:hover > .card-iso { opacity: .32; transform: none; }
.prod::after { display: none; }
@media (hover: none) { .card-iso { display: none; } }

/* ==========================================================================
   Demo assistant (bottom right)
   ========================================================================== */
.agent { position: fixed; right: 24px; bottom: 24px; z-index: 80; font-family: var(--font-sans); }
.agent-fab {
  position: relative;
  width: 58px; height: 58px; border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #0e1014;
  display: grid; place-items: center;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
  transition: transform .35s var(--ease-out), border-color .3s, background .3s;
}
.agent-fab svg { width: 26px; height: 26px; transition: transform .4s var(--ease-out); }
.agent-fab:hover { border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.agent-fab::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--accent); opacity: 0; }
.agent.hint .agent-fab::after { animation: fabRing 1.8s var(--ease) 3; }
@keyframes fabRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.agent.open .agent-fab { background: #151821; }
.agent.open .agent-fab svg { transform: scale(.85); }

.agent-panel {
  position: absolute;
  isolation: isolate;
  right: 0; bottom: 74px;
  width: min(400px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 140px));
  display: flex; flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: #0e1014;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .95);
  transform-origin: 100% 100%;
  transform: translateY(12px) scale(.96);
  opacity: 0;
  visibility: hidden;
  transition: transform .45s var(--ease-out), opacity .3s var(--ease), visibility .3s;
  overflow: hidden;
}
.agent.open .agent-panel { transform: none; opacity: 1; visibility: visible; }
.agent-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.agent-head b { font-weight: 500; font-size: 15px; }
.agent-demo { margin-left: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 8px; }
.agent-x { position: relative; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; }
.agent-x::before, .agent-x::after { content: ""; position: absolute; left: 9px; right: 9px; top: 15px; height: 1.5px; background: var(--text); transform: rotate(45deg); }
.agent-x::after { transform: rotate(-45deg); }
.agent-log { flex: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
.agent-msg { opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .45s var(--ease-out); font-size: 14.5px; line-height: 1.5; }
.agent-msg.show { opacity: 1; transform: none; }
.agent-msg.user { align-self: flex-end; max-width: 85%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: #1a1e27; color: var(--text); }
.agent-msg.step { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.agent-spin { width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid rgba(255, 255, 255, .2); border-top-color: var(--accent); animation: spinSq .8s linear infinite; flex: none; }
.agent-msg.step.done .agent-spin { animation: none; background: var(--accent); border-color: var(--accent); }
@keyframes spinSq { to { transform: rotate(360deg); } }
.agent-msg.bot { color: var(--text); }
.agent-msg.bot p { margin: 0; color: #d6d9df; }
.agent-items { display: grid; gap: 6px; margin-top: 12px; }
.agent-items a {
  display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #0b0d11;
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .4s var(--ease-out), border-color .2s;
}
.agent-items a.show { opacity: 1; transform: none; }
.agent-items a:hover { border-color: rgba(255, 255, 255, .28); }
.agent-items b { font-weight: 500; font-size: 14px; }
.agent-items span { font-size: 12.5px; color: var(--muted); }
.agent-more { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.agent-asks { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); transition: opacity .3s; }
.agent-asks.dim { opacity: .4; pointer-events: none; }
.agent-ask { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 13px; text-align: left; transition: border-color .2s, background .2s; }
.agent-ask:hover { border-color: var(--accent); background: rgba(79, 140, 255, .08); }
@media (max-width: 640px) { .agent { right: 14px; bottom: 14px; } .agent-panel { height: calc(100vh - 110px); } }

/* keep text crisp above the field: a soft dark veil on the text side */
.card-iso { -webkit-mask-image: linear-gradient(100deg, transparent 15%, rgba(0,0,0,.5) 45%, #000 70%); mask-image: linear-gradient(100deg, transparent 15%, rgba(0,0,0,.5) 45%, #000 70%); }

/* ---------- product film: "<product> in a minute" ---------- */
.film { margin-top: clamp(40px, 5vw, 72px); }
.film-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #07080a; border: 1px solid var(--line); outline: none; user-select: none; }
.film-stage:focus-visible { border-color: var(--accent); }
.film-stage:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; border: 0; }
.film-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film-stage.started .film-canvas { cursor: pointer; }
.film-inner { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; pointer-events: none; opacity: 0; }
.film-stage.started .film-inner { opacity: 1; }
.film-card { position: absolute; left: 0; top: 0; width: 640px; transform-origin: 0 0; will-change: transform; }
.film-k { font-family: var(--font-mono); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.film-t { font-size: 58px; font-weight: 400; letter-spacing: -0.045em; line-height: 1.06; color: var(--text); }
.film-card.intro .film-t { font-size: 124px; letter-spacing: -0.055em; line-height: 1; }
.film-card.outro .film-t { font-size: 60px; max-width: 15ch; }
.film-s { font-size: 25px; line-height: 1.4; color: var(--muted); max-width: 540px; margin-top: 28px; letter-spacing: -0.01em; }
.film-s:empty { display: none; }
.fw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.fw > span { display: inline-block; }
.film-chips { position: absolute; left: 0; top: 0; width: 430px; display: flex; flex-wrap: wrap; gap: 10px; }
.film-chips .badge { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 15px; color: rgba(242,244,247,.78); padding: 8px 16px; white-space: normal; text-align: left; line-height: 1.35; }
.film-end { position: absolute; left: 72px; top: 0; display: flex; gap: 12px; opacity: 0; }
.film-end .btn { pointer-events: inherit; }

.film-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 0 0 0 6%; border: 0; color: var(--text); cursor: pointer; text-align: left;
  background: linear-gradient(90deg, rgba(7,8,10,.92) 0%, rgba(7,8,10,.6) 38%, rgba(7,8,10,0) 62%); }
.film-stage.started .film-poster { display: none; }
.film-play { width: 76px; height: 76px; border-radius: 22px; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform .35s var(--ease-out), background .2s; }
.film-play svg { width: 30px; height: 30px; margin-left: 3px; }
.film-poster:hover .film-play { background: #3f7ef5; transform: scale(1.05); }
.film-ptitle { margin-top: 30px; font-size: clamp(26px, 3.4vw, 52px); letter-spacing: -0.045em; line-height: 1.05; }
.film-pmeta { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.film-ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 28px 20px 14px; background: linear-gradient(180deg, rgba(7,8,10,0), rgba(7,8,10,.82)); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.film-stage.started .film-ui { opacity: 1; pointer-events: auto; }
.film-stage.started.idle .film-ui { opacity: 0; }
.film-stage.idle { cursor: none; }
.film-btn { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text); cursor: pointer; }
.film-btn:hover { background: rgba(255,255,255,.08); }
.film-btn svg { width: 20px; height: 20px; }
.film-pp .i-pause { display: none; }
.film-stage.playing .film-pp .i-pause { display: inline; }
.film-stage.playing .film-pp .i-play { display: none; }
.film-mute .i-x { display: none; }
.film-stage.muted .film-mute .i-x { display: inline; }
.film-stage.muted .film-mute .i-wave { display: none; }
.film-bar { flex: 1; display: flex; gap: 4px; }
.film-seg { position: relative; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.film-seg::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(255,255,255,.18); transition: height .2s, margin .2s; }
.film-seg > span { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: height .2s, margin .2s; }
.film-seg:hover::before, .film-seg:hover > span { height: 5px; margin-top: -2.5px; }
.film-time { flex: none; font-family: var(--font-mono); font-size: 12px; color: var(--muted); min-width: 92px; text-align: right; }
@media (max-width: 640px) {
  .film-stage { border-radius: 14px; }
  .film-ui { gap: 6px; padding: 18px 10px 8px; }
  .film-time, .film-fs { display: none; }
  .film-play { width: 56px; height: 56px; border-radius: 16px; }
  .film-play svg { width: 24px; height: 24px; }
  .film-ptitle { margin-top: 18px; }
}
.film-cap { display: none; }
.film.compact .film-chips, .film.compact .film-s, .film.compact .film-end { display: none; }
.film.compact .film-stage.started + .film-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 92px; padding: 16px 2px 0; }
.film-cap small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.film-cap b { font-weight: 400; font-size: 20px; letter-spacing: -0.025em; line-height: 1.2; color: var(--text); }
.film-cap > span { color: var(--muted); font-size: 15px; }
.film-cap .btn { margin-top: 10px; }

/* "Read the case" and card links: the blue line draws in only while the card is hovered */
.cc-more, .cards6 > a.card .more { align-self: flex-start; text-decoration: none; }
.cc-more::after, .cards6 > a.card .more::after { content: ""; display: block; height: 1.5px; margin-top: 5px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out); }
.cc:hover .cc-more::after, .cards6 > a.card:hover .more::after { transform: scaleX(1); }

/* case filters: service and kind of AI on the page, the rest in a panel on the right */
.cf-top { align-items: flex-start; }
.cf-rows { display: grid; gap: 12px; min-width: 0; flex: 1; }
.cf-line { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; }
.cf-line .eyebrow { color: var(--dim); }
.cf-line[hidden] { display: none; }
.cf-kinds { animation: blurIn .35s var(--ease-out); }
.cf-kinds .chip { height: 34px; font-size: 13.5px; }
.cfilters .chip:disabled { opacity: .35; cursor: default; }
.cfilters .chip:disabled:hover { border-color: var(--line-2); color: var(--muted); }
.cf-toggle { flex: none; }
@media (max-width: 900px) { .cf-line { grid-template-columns: minmax(0, 1fr); gap: 8px; } .cf-line .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }

.fp-head { align-items: flex-start; padding: 24px 20px 18px 28px; }
.fp-head h2 { font-size: 26px; font-weight: 400; letter-spacing: -0.03em; }
.fp-sub { margin-top: 6px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.opt { position: relative; overflow: hidden; }
.cf-line .eyebrow { color: var(--muted); }
.cmodal-x:focus { outline: none; }
.cmodal-x:focus-visible { border-color: var(--accent); }
.cf-top { align-items: center; }
.cf-kinds { animation: none; }
.cf-top { align-items: center; flex-wrap: wrap; }
.cf-top .cf-rows { flex: 1 1 auto; }
.cf-top .cf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-reset { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cf-reset:hover { color: var(--text); }
.cc-tags .tag-p { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.cgroup { margin-top: clamp(72px, 9vw, 128px); }
.cgroup[hidden] { display: none; }
.cgroup-h { font-size: clamp(32px, 4vw, 56px); font-weight: 400; letter-spacing: -0.045em; line-height: 1.05; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cgroup { scroll-margin-top: 170px; }

/* product category: readable, in the accent */
.cat { font-size: 12.5px; letter-spacing: .12em; color: var(--accent-2); }
.prod .cat + .name { margin-top: 14px; }
/* the service row: a quieter second layer */
.cf-rows { gap: 10px; }
.cf-svc .chip { height: 30px; padding: 0 12px; font-size: 13px; }
.cf-svc .chip i { font-size: 10.5px; margin-left: 6px; }
.cf-svc .chip:not(.on) { border-color: var(--line); }
.cf-svc .chip.on { background: rgba(79, 140, 255, .14); border-color: rgba(79, 140, 255, .55); color: #fff; }
.cf-top { flex-wrap: nowrap; align-items: flex-start; }
.cf-top .cf-rows { flex: 1 1 auto; min-width: 0; }
.cf-top .cf-pills, .cf-top .cf-reset, .cf-top .cf-toggle { flex: none; margin-top: 2px; }
.cf-top .cf-reset { margin-top: 10px; }
@media (max-width: 900px) { .cf-top { flex-wrap: wrap; } }
/* filter bar: rows | button, then the chosen pills underneath */
.cf-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 12px; align-items: start; }
.cf-top .cf-rows { grid-column: 1; grid-row: 1; }
.cf-top .cf-toggle { grid-column: 2; grid-row: 1; margin-top: 0; }
.cf-top .cf-pills { grid-column: 1; grid-row: 2; margin: 0; }
.cf-top .cf-pills:empty { display: none; }
.cf-top .cf-reset { grid-column: 2; grid-row: 2; justify-self: end; margin-top: 4px; }
.cf-line { grid-template-columns: 96px minmax(0, 1fr); }
.cf-svc .chip { padding: 0 10px; font-size: 12.5px; }
@media (max-width: 900px) { .cf-top { grid-template-columns: minmax(0, 1fr); } .cf-top .cf-toggle, .cf-top .cf-reset { grid-column: 1; grid-row: auto; justify-self: start; } .cf-line { grid-template-columns: minmax(0, 1fr); } }

/* technologies: one quiet wall of marks */
.tech-sec .sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.tech-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tech { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 148px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; transition: color .3s, background .3s; }
.tech svg { width: 34px; height: 34px; color: #7d848e; transition: color .3s, transform .4s var(--ease-out); }
.tech-mono { width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid #7d848e; border-radius: 8px; font-family: var(--font-mono); font-size: 16px; color: #9aa0aa; transition: border-color .3s, color .3s; }
.tech:hover { color: var(--text); background: rgba(255, 255, 255, .02); }
.tech:hover svg { color: var(--text); transform: translateY(-2px); }
.tech:hover .tech-mono { border-color: var(--text); color: var(--text); }
@media (max-width: 900px) { .tech-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tech { height: 120px; } }
.tech-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .tech-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tech-wall { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tech-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tech-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tech-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tech-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tech-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* case filters: services as tabs, kinds of AI as a small second row */
.cf-rows { display: grid; gap: 14px; }
.cf-tabs { display: flex; flex-wrap: wrap; gap: 2px 4px; border-bottom: 1px solid var(--line); }
.cf-tab { position: relative; display: inline-flex; align-items: baseline; gap: 7px; padding: 10px 12px 14px; border: 0; background: none; color: var(--muted); font-size: 15px; cursor: pointer; transition: color .25s; }
.cf-tab i { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.cf-tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease-out); }
.cf-tab:hover { color: var(--text); }
.cf-tab.on { color: var(--text); }
.cf-tab.on i { color: var(--accent-2); }
.cf-tab.on::after { transform: scaleX(1); }
.cf-tab:disabled { opacity: .35; cursor: default; }
.cf-tab:first-child { padding-left: 0; }
.cf-tab:first-child::after { left: 0; }
.cf-kinds { grid-template-columns: auto minmax(0, 1fr); gap: 14px; animation: blurIn .35s var(--ease-out); }
.cf-kinds .eyebrow { color: var(--dim); }
.cf-kinds .chip { height: 30px; padding: 0 12px; font-size: 13px; }
.cf-kinds .chip i { font-size: 10.5px; margin-left: 6px; }
.cf-kinds .chip.on { background: rgba(79, 140, 255, .14); border-color: rgba(79, 140, 255, .55); color: #fff; }
.cf-top .cf-toggle { align-self: start; margin-top: 2px; }
@media (max-width: 900px) {
  .cf-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cf-tab { white-space: nowrap; }
  .cf-kinds { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* case filters: one row of service badges */
.cf-svc { gap: 8px; }
.cf-svc .chip { height: 38px; padding: 0 16px; font-size: 14px; border-color: var(--line-2); }
.cf-svc .chip i { font-size: 11px; margin-left: 8px; }
.cf-svc .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cf-svc .chip.on i { color: rgba(255, 255, 255, .8); opacity: 1; }
.cf-top { align-items: center; }
@media (max-width: 900px) { .cf-svc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .cf-svc .chip { flex: none; } }
.cf-svc { gap: 6px; } .cf-svc .chip { padding: 0 14px; } .cf-svc .chip i { margin-left: 7px; }
/* contact: the e-mail level with the top of the heading */
.contact-body { align-items: start; }
.contact-body > h2 { max-width: none; font-size: clamp(32px, 3.5vw, 52px); }
.contact-body .mail { padding-top: .1em; }
/* case cards: the status badge on its own line, top left, as on the product cards */
.cc-tags { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 0; }
.cc-tags .badge { order: -2; margin: 0 0 22px 0 !important; }
.cc-tags::before { content: ""; order: -1; flex-basis: 100%; height: 0; }
/* filter controls: no second ring around them; keyboard focus shows on their own border */
.chip:focus-visible, .opt:focus-visible, .cf-toggle:focus-visible, .pill-x:focus-visible, .cf-reset:focus-visible { outline: none; }
.chip:focus-visible, .cf-toggle:focus-visible, .pill-x:focus-visible { border-color: var(--text); }
.opt:focus-visible { background: rgba(255, 255, 255, .06); }
.cf-reset:focus-visible { color: var(--text); }
/* cases: no rule under the filter bar */
.cfilters { border-bottom: 0; }
