/* Tephra site. One dark world: basalt at night, ember rising from below, slate haze above.
   Colours and type come from tokens.css. Single theme by choice. */

:root { color-scheme: dark; --gutter: 24px; --line-strong: #3A3F38;
  /* Option B: body copy one step brighter than --muted, for easy reading */
  --soft: #C3C7BD;
  /* Corner scale measured on linearity.io (2026-11-27), the reference the client chose.
     Buttons and chips are pills, icon buttons are circles. A framed box is two nested
     shapes: the outer frame, its padding, and an inner radius = outer minus padding. */
  --r-pill: 999px; --r-frame: 30px; --r-frame-pad: 5px; --r-inner: calc(var(--r-frame) - var(--r-frame-pad));
  --r-card-lg: 28px; --r-card: 24px; --r-tile: 14px;
  /* Motion and light measured on kivoagentic.ai (2026-11-27), the second reference.
     One easing curve everywhere. Fast for controls, slow for surfaces. */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: .15s; --t-mid: .5s; --t-slow: .7s;
  /* Grain, as in the brand heat maps */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 18px/1.55 var(--text); overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mist); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: var(--r-pill); background: var(--paper); color: var(--basalt); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1.15em; height: 1.15em; flex: none; color: var(--pc, var(--fg)); }

/* Buttons. The light sits on the button: a lit top edge, a shaded bottom edge,
   and a short coloured shadow straight below. No halo around it. */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border: 0; border-radius: var(--r-pill); font: 600 15px/1 var(--text); text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, #F07A4C, var(--ember));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), inset 0 -2px 0 rgba(0,0,0,.14), 0 6px 16px color-mix(in srgb, var(--ember) 34%, transparent);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), filter var(--t-fast) var(--ease); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), inset 0 -2px 0 rgba(0,0,0,.14), 0 9px 22px color-mix(in srgb, var(--ember) 42%, transparent); }
.btn:active { transform: none; }
.btn.ghost { color: var(--fg); background: linear-gradient(180deg, #252924, var(--raise));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,.08), inset 0 -2px 0 rgba(0,0,0,.25), 0 6px 16px rgba(0,0,0,.35); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255,255,255,.1), inset 0 -2px 0 rgba(0,0,0,.25), 0 9px 22px rgba(0,0,0,.45); }

/* Header */
.bar { position: sticky; top: 0; z-index: 9; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 16px; padding-block: 14px; }
.brand { display: flex; padding: 6px 4px; }   /* padding keeps the clear space */
.brand svg { display: block; width: 96px; height: auto; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: var(--r-pill); text-decoration: none; font: 500 14px/1 var(--text); color: var(--muted); white-space: nowrap;
  transition: color .3s var(--ease), background-color .3s var(--ease); }
.nav a:hover { color: var(--fg); background: var(--raise); }
.nav > a, .menu-trigger { display: inline-flex; align-items: center; gap: 6px; }
/* Products menu, after linearity.io: a panel under the header with one row per product.
   A row is an icon tile in the product colour, the name, and what the product is. */
.has-menu { position: relative; display: flex; }
.caret-down { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-fast) var(--ease); }
.has-menu.open .caret-down { transform: rotate(180deg); }
.has-menu.open .menu-trigger { color: var(--fg); background: var(--raise); }
.menu { position: absolute; top: 100%; left: 50%; z-index: 10; width: 320px; padding: 8px; margin-top: 10px; border-radius: 20px; text-align: left;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -20px rgba(0,0,0,.85);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast); }
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* keeps hover alive across the gap */
.has-menu.open .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav .menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--fg); }
.nav .menu a:hover, .nav .menu a:focus-visible { background: var(--raise); }
.nav .menu a[aria-current="page"] { background: color-mix(in srgb, var(--pc) 10%, var(--raise)); }
.mi { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px;
  background: color-mix(in srgb, var(--pc) 16%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 35%, var(--line)); }
.mi .ic { width: 18px; height: 18px; color: var(--pc); }
.menu b { display: block; font: 600 14px/1.2 var(--text); }
.menu em { display: block; margin-top: 3px; font: 400 13px/1.2 var(--text); font-style: normal; color: var(--muted); }
.nav .menu .menu-all { display: block; margin-top: 6px; padding: 12px 10px 6px; border-top: 1px solid var(--line); border-radius: 0; font: 500 13px/1 var(--text); color: var(--muted); }
.nav .menu .menu-all:hover { background: none; color: var(--fg); }
.bar .btn { padding: 11px 18px; font-size: 14px; }

/* Hero, v3: the words on the left, read first. On the right, scattered tools come together
   in one Tephra window, as the eight products (hero-merge.js). */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100svh - var(--bar-h, 68px)); display: grid; align-items: center;
  padding-block: clamp(40px, 6vh, 88px);
  background: radial-gradient(50% 45% at 68% 45%, color-mix(in srgb, var(--slate) 10%, transparent), transparent 70%), var(--bg); }
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: clamp(18px, 2.6vh, 28px); justify-items: start; }
/* The headline grows with the screen, by width or by height, whichever comes first */
.hero h1 { font-size: clamp(36px, min(4.2vw, 7.4vh), 64px); line-height: 1.04; max-width: 16ch; }
/* A large screen gives the hero more width, so the headline keeps to four or five lines */
@media (min-width: 1600px) { .hero .wrap { max-width: 1380px; } }
/* The smallest phones: the four header links fit on one line */
@media (max-width: 360px) { .nav > a { padding: 9px 7px; font-size: 13px; } }
/* A tablet stacks the hero: the words first, the picture full width under them */
@media (max-width: 900px) {
  .hero { min-height: 0; padding-block: 48px 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { max-width: 18ch; }
  .merge { height: clamp(300px, 56vw, 460px); }
}
.hero-sub { max-width: 32ch; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--soft); }

/* The merge picture. The tiles sit on the window slots. Scattered, each one moves away by
   --dx and --dy and turns by --r. Together, it lands on its slot and shows its product face. */
@property --amp { syntax: "<length>"; inherits: true; initial-value: 0px; }
.merge { position: relative; width: 100%; height: clamp(340px, 60vh, 560px); display: grid; place-items: center; }
.m-win { width: min(92%, 640px); padding: clamp(10px, 1.4vw, 16px); border-radius: var(--r-card-lg);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255,255,255,.07), 0 40px 80px -40px rgba(0,0,0,.9);
  opacity: 0; transform: scale(.96); transition: opacity 1s var(--ease) .3s, transform 1s var(--ease) .3s; }
.m-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px clamp(10px, 1.4vw, 16px); }
.m-head img { display: block; width: clamp(56px, 6vw, 74px); height: auto; }
.m-head span { font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--dim); }
.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.1vw, 14px); }
.m-grid i { aspect-ratio: 1; border-radius: var(--r-tile); box-shadow: inset 0 0 0 1px var(--line); }

.m-tile { position: absolute; z-index: 1; transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r, 0deg)); --amp: 6px;
  /* Leaving the window, each key starts to fade before it moves */
  transition: transform 1.1s var(--ease) calc(var(--d) + 350ms), --amp 1.1s var(--ease) calc(var(--d) + 350ms); }
.m-float { position: relative; width: 100%; height: 100%; animation: m-drift 5.5s ease-in-out var(--fd, 0s) infinite alternate; }
@keyframes m-drift { from { translate: 0 calc(var(--amp) * -1); } to { translate: 0 var(--amp); } }
.m-face { position: absolute; inset: 0; }
.m-old, .m-new { position: absolute; inset: 0; border-radius: var(--r-tile); }
/* A loose piece: a file left on a desktop, an icon with its name under it, in dark mode (Amila, 2026-12-03).
   Sizes run in cqw, the tile width. A small tile shows only the icon. */
.m-old { display: flex; flex-direction: column; align-items: center; gap: 5cqw; padding: 3cqw 2cqw 0; color: var(--fg); }
.d-icon { display: block; height: 64cqw; width: auto; max-width: 92cqw; filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); }
.d-icon .pg { fill: #2A2E29; stroke: rgba(255,255,255,.1); stroke-width: 1; }
.d-icon .fold { fill: #454A43; }
.d-icon .ln { fill: rgba(243,244,239,.22); }
.d-icon .grid, .d-icon .env { fill: none; stroke: rgba(243,244,239,.3); stroke-width: 1.6; }
.d-icon .bt { font: 700 10px/1 var(--text); fill: var(--paper); letter-spacing: .02em; }
.d-icon .bt.dark { fill: var(--basalt); }
.d-icon .fd-back { fill: var(--slate-deep); }
.d-icon .fd-paper { fill: #454A43; }
.d-icon .fd-front { fill: var(--slate); }
.d-icon .mtn { fill: rgba(243,244,239,.3); }
.d-icon .sun { fill: rgba(243,244,239,.45); }
.d-name { max-width: 100%; font: 500 max(11px, 9.6cqw)/1.25 var(--text); text-align: center; color: var(--fg); text-shadow: 0 1px 2px rgba(0,0,0,.7);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.m-tile { container-type: size; }
@container (max-width: 96px) { .m-old { justify-content: center; } .d-name { display: none; } .d-icon { height: 78cqw; } }
/* The heat-map face: the product slider tile, light inside the surface */
.m-new { background: var(--raise) center / cover no-repeat; opacity: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.18), 0 14px 30px -12px rgba(0,0,0,.8); }
.m-tile.hot .m-old { opacity: 0; }
.m-tile.hot .m-new { opacity: 1; }
/* In the window each tool becomes a lit key, like a stream deck, with the basalt symbol. Once a key lands it glows in its own
   colour and breathes slowly (Amila, 2026-12-02). --kc is the key colour, --gc the glow colour. */
.m-tile { --kc: var(--pc); --gc: var(--kc); }
/* Vault: Mist alone reads grey on a lit key, so the key leans to Slate (Amila, 2026-12-02) */
.m-tile[data-id="vault"] { --kc: color-mix(in srgb, var(--mist) 45%, var(--slate)); }
/* Insights is basalt, so its light is paper */
.m-tile[data-id="insights"] { --gc: var(--paper); }
/* The key, after Amila's reference (2026-12-03): a dark glossy frame with a lit colour screen
   set into it. The frame has a light top edge, and the screen's colour reflects on its lower rim.
   The screen sits a little below the frame, so the frame casts a thin shadow on its top. */
.m-sym { position: absolute; inset: 0; padding: 10%; border-radius: calc(var(--r-tile) + 4px); opacity: 0;
  background: linear-gradient(180deg, #2C302B, #121412 70%, #0C0E0C);
  box-shadow: 0 8px 16px -6px rgba(0,0,0,.9);
  /* Leaving the window, the keys fade out one after another, over the heat tiles waiting under them */
  transition: opacity .7s var(--ease) var(--d); }
/* The glow. It breathes all the time and shows only while the key shows, so it fades with the key
   and never cuts off. */
.m-sym::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 22px 2px color-mix(in srgb, var(--gc) 65%, transparent), 0 0 56px 8px color-mix(in srgb, var(--gc) 32%, transparent);
  animation: m-breathe 3.4s ease-in-out var(--fd, 0s) infinite alternate; }
.m-sym::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 28% at 50% 100%, color-mix(in srgb, var(--kc) 34%, transparent), transparent 75%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.07), inset 0 -1px 0 color-mix(in srgb, var(--kc) 45%, transparent); }
.m-screen { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border-radius: var(--r-tile);
  background: linear-gradient(180deg, color-mix(in srgb, var(--kc) 88%, #000), var(--kc) 35%, color-mix(in srgb, var(--kc) 90%, #fff));
  box-shadow: inset 0 7px 8px -5px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.35), inset 0 -3px 8px -4px rgba(255,255,255,.3);
  filter: brightness(1.08) saturate(1.05); }
.m-screen svg { width: 48%; height: 48%; color: var(--sg); fill: currentColor; }
/* The heat tile has the key's corners, and it stays under the key while the key shows. So the key
   fades in and out over a solid tile, and the two never blur into each other. */
.m-new { border-radius: calc(var(--r-tile) + 4px); transition: opacity var(--t-fast) var(--ease); }
.merge.together .m-tile.hot .m-sym { opacity: 1; transition: opacity var(--t-mid) var(--ease) calc(var(--d) + 900ms); }
/* The key lights up as it lands: dark, a short bright flash, then a steady light */
.merge.together .m-tile.hot .m-screen { animation: m-light 1.1s var(--ease) calc(var(--d) + 900ms) both; }
@keyframes m-light {
  0% { filter: brightness(.45) saturate(.6); }
  45% { filter: brightness(1.3) saturate(1.2); }
  100% { filter: brightness(1.08) saturate(1.05); }
}
@keyframes m-breathe { to { opacity: .55; } }
.merge.still .m-sym::before { animation: none; }
/* The glitch: the piece jumps, splits into slices and shows colour fringes, in hard steps */
.m-tile.zap .m-face { animation: m-glitch .62s step-end both; }
@keyframes m-glitch {
  0% { transform: none; clip-path: none; filter: none; }
  8% { transform: translate(-5px, 0); clip-path: inset(12% 0 52% 0); filter: drop-shadow(4px 0 var(--ember)) drop-shadow(-4px 0 var(--slate)); }
  16% { transform: translate(6px, 1px); clip-path: inset(58% 0 10% 0); filter: drop-shadow(-3px 0 var(--ember)) drop-shadow(3px 0 var(--lichen)); }
  26% { transform: translate(-2px, -1px) skewX(-6deg); clip-path: none; filter: saturate(2.4) hue-rotate(35deg); }
  36% { transform: translate(4px, 0); clip-path: inset(28% 0 38% 0); filter: drop-shadow(5px 0 var(--slate)) drop-shadow(-5px 0 var(--ember)); }
  46% { transform: translate(-6px, 0); clip-path: inset(0 0 68% 0); filter: contrast(1.6) drop-shadow(-3px 0 var(--moss)); }
  58% { transform: translate(3px, 1px) skewX(5deg); clip-path: inset(70% 0 0 0); filter: drop-shadow(4px 0 var(--ember)); }
  70% { transform: translate(-2px, 0); clip-path: none; filter: drop-shadow(-2px 0 var(--slate)) drop-shadow(2px 0 var(--ember)); }
  84% { transform: translate(1px, 0); clip-path: inset(40% 0 44% 0); filter: none; }
  100% { transform: none; clip-path: none; filter: none; }
}

.merge.together .m-win { opacity: 1; transform: none; transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.merge.together .m-tile { transform: none; --amp: 0px; transition: transform 1s var(--ease) var(--d), --amp 1s var(--ease) var(--d); }
/* Before the script runs, the window shows. Reduced motion keeps it so. */
.merge:not(.ready) .m-win { opacity: 1; transform: none; }
.merge.still .m-float { animation: none; }
.merge.instant .m-tile, .merge.instant .m-win { transition: none; }
.merge.measure .m-win { transform: none; transition: none; }
.merge.still .m-tile, .merge.still .m-win { transition: none; }

/* The one action: a large outlined pill with an arrow that moves on hover */
.btn-line { display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; padding: 18px 30px; border-radius: var(--r-pill); text-decoration: none;
  font: 500 clamp(18px, 1.5vw, 22px)/1 var(--text); color: var(--fg);
  background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 30%, transparent);
  transition: box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.btn-line::after { content: ""; width: 22px; height: 12px; flex: none; background: currentColor; transition: transform var(--t-fast) var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M0 6h20M15 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M0 6h20M15 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn-line:hover { background: var(--paper); color: var(--basalt); box-shadow: inset 0 0 0 1px var(--paper); }
.btn-line:hover::after { transform: translateX(4px); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Products: the glass slider. The canvas runs the full width so side tiles reach the edges. */
/* The whole section fits one screen below the header, at any size: the slider takes the
   height that the name, the text and the buttons leave. */
.products { position: relative; text-align: center; overflow: hidden; display: grid; grid-template-rows: auto minmax(160px, 1fr) auto;
  height: calc(100svh - var(--bar-h, 68px)); min-height: 520px; max-height: 1000px; padding-block: clamp(20px, 5vh, 72px); }
.pmeta { display: grid; gap: 4px; }
.pname { font: 600 16px/1.3 var(--text); }
.ptype { font-size: 15px; color: var(--muted); }
.stage { position: relative; min-height: 0; margin-block: clamp(4px, 1.5vh, 16px); touch-action: pan-y; cursor: grab; outline-offset: -4px; user-select: none; -webkit-user-select: none; }
.stage.dragging { cursor: grabbing; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .flat { position: absolute; left: 50%; top: 50%; width: min(380px, 62vw); height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 20%; }
.pinfo { position: relative; display: grid; gap: 12px; justify-items: center; }
/* The script sets the height of the tallest product here, so the buttons below never move */
.pbody { width: 100%; display: grid; gap: 12px; justify-items: center; align-content: start; }
.pline { font: 400 clamp(22px, min(3.2vw, 4.4vh), 36px)/1.1 var(--display); letter-spacing: -0.01em; }
.ptext { max-width: 52ch; color: var(--muted); text-wrap: balance; font-size: clamp(15px, 2.2vh, 17px); }
.ptag { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); }
.pnav { display: flex; align-items: center; gap: 16px; margin-top: clamp(4px, 1.2vh, 12px); }
.pcount { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--dim); min-width: 7ch; }
.round { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--fg); cursor: pointer;
  background: linear-gradient(180deg, #252924, var(--raise));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,.08), inset 0 -2px 0 rgba(0,0,0,.25), 0 6px 16px rgba(0,0,0,.35);
  transition: transform var(--t-fast) var(--ease); }
.round:hover { transform: translateY(-1px); }
.round svg { width: 18px; height: 18px; }

/* Sections below the hero */
section[id] { scroll-margin-top: var(--bar-h, 68px); }
.band { padding-block: 112px; }
.band h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: end; }
.about h2 { max-width: 17ch; }
.about-text { font-size: clamp(19px, 1.7vw, 22px); color: var(--soft); max-width: 34ch; }
/* Three plain points under the about line: a heading and one sentence each */
.points { list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.points li { display: grid; gap: 8px; align-content: start; padding: 28px 28px 0; border-left: 1px solid var(--line); }
.points li:first-child { padding-left: 0; border-left: 0; }
.points h3 { margin: 0; font: 400 clamp(22px, 2vw, 26px)/1.15 var(--display); letter-spacing: -0.01em; }
.points p { max-width: 30ch; color: var(--soft); }

/* How it works: a grid of cells split by thin lines, as on kivoagentic.ai.
   Each cell holds a small, clean piece of app interface and a caption:
   the product name in full white, then its approved sentence in grey. */
.work-title { max-width: 18ch; margin-bottom: 48px; }
.help { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { grid-column: span 3; display: grid; grid-template-rows: 1fr auto; gap: 28px; padding: clamp(24px, 3vw, 40px); min-width: 0;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell.c-wide { grid-column: span 4; }
.cell.c-wide + .cell { grid-column: span 2; }
.cell.c-third { grid-column: span 2; }
.cell.c-half { grid-column: span 3; }
.mock { position: relative; display: grid; place-items: center; align-content: center; gap: 14px; min-height: 280px; }
.mock::before { content: ""; position: absolute; z-index: -1; inset: 10% 15%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pc) 10%, transparent), transparent); }
.cap { max-width: 46ch; font: 400 clamp(16px, 1.25vw, 18px)/1.5 var(--text); color: var(--muted); }
.cap b { font-weight: 600; color: var(--fg); }

/* The app panels share one look: a dark surface, a hairline, rounded corners, a soft shadow */
.ui { width: min(100%, 420px); border-radius: 16px; background: var(--surface); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,.05), 0 24px 50px -28px rgba(0,0,0,.9); }
.ui-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font: 600 14px/1 var(--text); }
.ui-head.small { justify-content: flex-start; font: 500 12px/1 var(--text); color: var(--muted); padding: 10px 12px; }
.ui-head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pc); }
.ui-add { padding: 5px 9px; border-radius: var(--r-pill); font: 500 12px/1 var(--text); color: var(--ember-soft); background: color-mix(in srgb, var(--ember) 12%, transparent); }
.rows { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease); }
.row > span:not(.app) { display: grid; gap: 3px; min-width: 0; flex: 1; }
.row b { font: 500 14px/1.2 var(--text); color: var(--fg); }
.row em { font: 400 12px/1.2 var(--text); font-style: normal; color: var(--muted); }
.row.on { background: color-mix(in srgb, var(--pc) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 55%, var(--line)); }
.chev { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sw { width: 30px; height: 30px; flex: none; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.app { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: color-mix(in srgb, var(--pc) 15%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 30%, var(--line)); }
.app svg { width: 16px; height: 16px; fill: none; stroke: var(--pc); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.app svg.ic { fill: currentColor; stroke: none; color: var(--pc); }
.app.te img { width: 13px; height: auto; }
.badge { flex: none; padding: 4px 7px; border-radius: 6px; font: 600 11px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--pc) 55%, var(--fg)); background: color-mix(in srgb, var(--pc) 16%, transparent); opacity: 0; transform: scale(.9);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.row.hit .badge, .row.ready .badge { opacity: 1; transform: none; }

/* Vision: the product list, and the customer photo that shows the one picked */
.c-wide .mock { grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); align-items: center; gap: 18px; max-width: 640px; margin-inline: auto; width: 100%; }
.ui-vision { width: 100%; }
.ui-preview { width: 100%; rotate: 2deg; }
.house { display: block; width: 100%; height: auto; padding: 12px 12px 0; color: color-mix(in srgb, var(--fg) 65%, transparent); }
.wall { opacity: 0; transition: opacity var(--t-slow) var(--ease); }
.wall.on { opacity: 1; }

/* Ledger: Snap, Read, Report, and the receipt fields filling in */
.steps-pills { display: flex; gap: 6px; padding: 4px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); }
.steps-pills span { padding: 6px 12px; border-radius: var(--r-pill); font: 500 12px/1 var(--text); color: var(--muted); transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease); }
.steps-pills span.on { color: var(--fg); background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ui-ledger { width: min(100%, 300px); }
.ui-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ui-bar > span:not(.app) { display: grid; gap: 3px; }
.ui-bar b { font: 600 14px/1.2 var(--text); }
.ui-bar em { font: 400 12px/1.2 var(--text); font-style: normal; color: var(--muted); }
.ui-body { display: grid; gap: 12px; padding: 16px; }
.fld { display: grid; gap: 6px; font: 500 12px/1 var(--text); color: var(--muted); }
.fld i { display: block; height: 8px; border-radius: 4px; background: var(--raise); position: relative; overflow: hidden; }
.fld i::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: color-mix(in srgb, var(--pc) 70%, var(--fg)); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease); }
.fld:nth-child(1) i::after { right: 28%; } .fld:nth-child(2) i::after { right: 55%; } .fld:nth-child(3) i::after { right: 66%; }
.ui-ledger.read .fld i::after { transform: scaleX(1); }
.ui-ledger.read .fld:nth-child(2) i::after { transition-delay: .15s; } .ui-ledger.read .fld:nth-child(3) i::after { transition-delay: .3s; }
.done { display: flex; align-items: center; gap: 7px; width: fit-content; margin-top: 4px; padding: 6px 10px; border-radius: var(--r-pill); font: 500 12px/1 var(--text);
  color: var(--fg); background: color-mix(in srgb, var(--pc) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 55%, var(--line));
  opacity: 0; transform: translateY(4px); transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.done svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui-ledger.reported .done { opacity: 1; transform: none; }

/* Vault: a DAM search that returns approved, rights-cleared assets with their metadata */
.ui-search { display: flex; align-items: center; gap: 8px; margin: 8px 8px 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 500 14px/1 var(--text); }
.ui-search svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.caret { width: 1.5px; height: 15px; margin-left: -5px; background: var(--vault); }
.ui-vault.found .row { opacity: .4; }
.ui-vault.found .row.hit { opacity: 1; }

/* Spark: one idea, and a piece for each channel that turns ready */
.ui-idea { display: flex; align-items: center; gap: 12px; margin: 8px 8px 0; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--ember) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ember) 40%, var(--line)); }
.ui-idea > span:not(.app) { display: grid; gap: 3px; }
.ui-idea em { font: 500 11px/1 var(--text); font-style: normal; color: var(--muted); }
.ui-idea b { font: 600 14px/1.2 var(--text); }
.ui-spark .row { padding: 9px 12px; }

/* One login: the four tools behind one sign-in */
.ui-login { width: min(100%, 300px); }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.apps span { display: grid; justify-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 12px; font: 500 13px/1 var(--text); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease); }
.apps i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: color-mix(in srgb, var(--pc) 15%, var(--surface)); }
.apps .ic { width: 18px; height: 18px; color: var(--pc); }
.apps span.on { background: color-mix(in srgb, var(--pc) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 55%, var(--line)); }

/* Contact: the intro and what happens next on the left, the form card on the right,
   and three steps across the bottom */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-intro { display: grid; gap: 20px; padding-top: 24px; }
.contact-intro h2 { max-width: 13ch; }
.contact-text { max-width: 42ch; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); }
.cnotes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; max-width: 360px; }
.cnotes li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; font: 500 15px/1.35 var(--text);
  background: color-mix(in srgb, var(--raise) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,.06), 0 14px 30px -18px rgba(0,0,0,.8); }
.cnotes li:nth-child(2) { margin-left: 28px; } .cnotes li:nth-child(3) { margin-left: 56px; }
.fic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px;
  background: color-mix(in srgb, var(--pc) 16%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 35%, var(--line)); }
.fic .ic { width: 18px; height: 18px; color: var(--pc); }

.cform { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 3.4vw, 48px); border-radius: var(--r-frame); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255,255,255,.06), 0 40px 90px -40px rgba(0,0,0,.9); }
.cform::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 100% 0%, color-mix(in srgb, var(--slate) 16%, transparent), transparent 70%),
              radial-gradient(55% 40% at 0% 100%, color-mix(in srgb, var(--ember) 12%, transparent), transparent 70%); }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.cfield { display: grid; gap: 8px; align-content: start; min-width: 0; }
.cfield.wide { grid-column: 1 / -1; }
.cfield label { font: 500 14px/1.2 var(--text); color: var(--fg); }
.req { color: var(--ember-soft); margin-left: 2px; }
.cfield input, .cfield select { width: 100%; height: 50px; padding: 0 14px; border: 0; border-radius: 12px; font: 400 16px/1 var(--text); color: var(--fg);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t-fast) var(--ease); }
.cfield input:hover, .cfield select:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.cfield input:focus-visible, .cfield select:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--mist), 0 0 0 4px color-mix(in srgb, var(--mist) 16%, transparent); }
.cfield select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23A2A69C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; }
.cfield [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--ember-soft); }
.phone { display: grid; grid-template-columns: 112px 1fr; }
.phone select { border-radius: 12px 0 0 12px; }
.phone input { border-radius: 0 12px 12px 0; margin-left: -1px; }
.err { min-height: 18px; font: 500 13px/1.3 var(--text); color: var(--ember-soft); }
.cform-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.cform-note { margin-right: auto; font-size: 14px; color: var(--muted); max-width: 34ch; }
.cform .btn { padding: 15px 30px; font-size: 16px; }
.cform.sent .cgrid, .cform.sent .cform-foot .btn { display: none; }
.cform.sent .cform-note { font: 400 clamp(22px, 2.4vw, 28px)/1.2 var(--display); color: var(--fg); max-width: none; }

.csteps { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.csteps li { display: flex; align-items: baseline; gap: 12px; padding: 24px 24px 8px; font: 500 16px/1.35 var(--text); border-left: 1px solid var(--line); }
.csteps li:first-child { padding-left: 0; border-left: 0; }
.csteps b { font: 500 13px/1 var(--mono); color: var(--ember-soft); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 64px 32px; }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.fbrand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.fbrand a { display: block; padding: 6px 4px; }   /* clear space around the wordmark */
.fbrand img { display: block; width: 120px; height: auto; }
.fbrand p { color: var(--muted); }
.fcol { display: grid; gap: 10px; align-content: start; }
.fcol a { width: fit-content; color: var(--muted); text-decoration: none; transition: color var(--t-fast) var(--ease); }
.fcol a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }

/* ---------- Tephra Vision page, after linearity.io/curve ----------
   A centred product hero, the product at work in a big heat-gradient frame, a statement,
   then blocks of text and a picture that swap sides. */
.vpage { --vision-text: color-mix(in srgb, var(--vision) 55%, var(--mist)); }
.v-hero { padding-block: clamp(48px, 9vh, 112px) clamp(32px, 5vh, 56px); text-align: center; }
.v-hero .wrap { display: grid; justify-items: center; gap: 16px; }
/* The Vision icon alone, flat, in the product colour */
.v-icon { display: block; width: 72px; height: 72px; color: var(--vision-text); fill: currentColor; }
.v-icon.small { width: 48px; height: 48px; }
.v-hero h1 { margin-top: 8px; font-size: clamp(44px, min(7vw, 11vh), 112px); line-height: 1; max-width: 12ch; }
.v-hero h1 span { display: block; color: var(--vision-text); }
.v-sub { max-width: 54ch; font-size: clamp(17px, 1.4vw, 21px); color: var(--muted); text-wrap: balance; }
.v-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }
/* On a product page every main button takes the product colour, the header one too.
   The blue runs from Vision to its deeper shade, so paper text keeps a contrast above 4.5:1. */
.vision-page .btn:not(.ghost) { color: var(--fg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--vision) 85%, #fff), var(--slate-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.18), 0 6px 16px color-mix(in srgb, var(--vision) 40%, transparent); }
.vision-page .btn:not(.ghost):hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.18), 0 9px 22px color-mix(in srgb, var(--vision) 50%, transparent); }

/* The heat frame: the brand heat map as a light ground for a picture, with grain */
.v-frame { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-card-lg); padding: clamp(16px, 4vw, 56px);
  background:
    radial-gradient(70% 60% at 50% 115%, color-mix(in srgb, var(--ember) 85%, transparent), transparent 70%),
    radial-gradient(80% 70% at 50% 100%, color-mix(in srgb, var(--paper) 55%, transparent), transparent 75%),
    radial-gradient(90% 80% at 50% 95%, color-mix(in srgb, var(--lichen) 45%, transparent), transparent 80%),
    linear-gradient(180deg, var(--slate-deep), var(--slate) 60%, var(--slate));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.v-frame::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: var(--grain); opacity: .16; mix-blend-mode: overlay; }
.v-frame > * { position: relative; z-index: 1; }

/* The demo window */
.v-show { padding-bottom: clamp(40px, 8vh, 96px); }
.v-window { max-width: 1040px; margin-inline: auto; border-radius: 18px; overflow: hidden; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 80px -30px rgba(0,0,0,.75); }
.v-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.v-app-name { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--text); }
.v-app-name .ic { width: 16px; height: 16px; color: var(--vision); }
.v-note { margin-left: auto; font: 500 13px/1.2 var(--text); color: var(--muted); text-align: right; }
.v-body { display: grid; grid-template-columns: 240px 1fr; }
.v-cat { padding: 14px 10px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 4px; }
.v-cat-h { padding: 8px 8px 4px; font: 600 12px/1 var(--text); color: var(--muted); }
.v-cat ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; }
.v-cat button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.v-cat button:hover { background: var(--raise); }
.v-cat button[aria-pressed="true"] { background: color-mix(in srgb, var(--vision) 14%, var(--raise)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vision) 60%, var(--line)); }
.v-cat img { width: 36px; height: 36px; flex: none; border-radius: 9px; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.v-cat b, .v-swatches b { display: block; font: 500 14px/1.2 var(--text); color: var(--fg); }
.v-cat em, .v-swatches em { display: block; margin-top: 3px; font: 400 12px/1.2 var(--text); font-style: normal; color: var(--muted); }
.v-scene { position: relative; min-width: 0; }
.home { display: block; width: 100%; height: auto; }
.home .mat { opacity: 0; transition: opacity var(--t-slow) var(--ease); }
.home .mat.on { opacity: 1; }
.home .mark { opacity: 0; transition: opacity var(--t-mid) var(--ease); }
.home .mark.on { opacity: 1; }

/* The statement: one large sentence, the key part in the product colour */
.v-statement { max-width: 24ch; margin-inline: auto; text-align: center; font: 400 clamp(30px, 4vw, 54px)/1.12 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.v-statement span { color: var(--vision-text); }
.v-say { padding-block: clamp(56px, 10vh, 120px) clamp(24px, 5vh, 48px); }

/* Feature blocks: the words and a list on one side, the picture on the other */
.v-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.v-feat.flip .v-copy { order: 2; }
.v-copy { display: grid; gap: 18px; align-content: center; }
.v-copy h2 { max-width: 14ch; }
.v-copy > p { max-width: 42ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); }
.v-feat { padding-block: clamp(48px, 9vh, 96px); }

/* The list: one item open at a time, with a line that fills until the next one opens */
.acc { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.acc-item { position: relative; border-bottom: 1px solid var(--line); }
.acc-item button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; border: 0; background: none; cursor: pointer;
  font: 500 17px/1.3 var(--text); color: var(--muted); text-align: left; transition: color var(--t-fast) var(--ease); }
.acc-item button:hover, .acc-item.on button { color: var(--fg); }
.acc-item svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform var(--t-mid) var(--ease); }
.acc-item.on svg { transform: rotate(45deg); }
.acc-item p { display: none; max-width: 40ch; padding: 0 0 20px; color: var(--muted); }
.acc-item.on p { display: block; }
.acc-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; }
.acc-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--vision-text); }

/* The pictures inside a frame */
.v-card { position: relative; overflow: hidden; border-radius: 16px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.1); }
.v-card .home { border-radius: 16px; }
/* Step one is the bare photo, step two the product picker over it, step three the finished job */
.v-visual[data-step="photo"] .home .mat, .v-visual[data-step="pick"] .home .mat { opacity: 0; }
.finder { position: absolute; inset: 7%; pointer-events: none; opacity: 0; transition: opacity var(--t-mid) var(--ease); }
.finder i { position: absolute; width: 28px; height: 28px; border: 0 solid var(--paper); }
.finder i:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; border-top-left-radius: 8px; }
.finder i:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; border-top-right-radius: 8px; }
.finder i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; border-bottom-left-radius: 8px; }
.finder i:nth-child(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; border-bottom-right-radius: 8px; }
.v-visual[data-step="photo"] .finder { opacity: 1; }
.v-picker { position: absolute; right: 4%; top: 8%; display: grid; gap: 4px; width: min(200px, 44%); padding: 10px; border-radius: 14px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 20px 40px -16px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(8px); transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.v-picker p { padding: 2px 6px 4px; font: 600 12px/1 var(--text); color: var(--muted); }
.v-picker span { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; font: 500 13px/1 var(--text); }
.v-picker span.on { background: color-mix(in srgb, var(--vision) 14%, var(--raise)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vision) 60%, var(--line)); }
.v-picker img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.v-visual[data-step="pick"] .v-picker { opacity: 1; transform: none; }

.v-swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.v-swatches li { display: grid; gap: 10px; padding: 8px 8px 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), 0 20px 40px -24px rgba(0,0,0,.8); }
.v-swatches img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.v-swatches span { padding-inline: 4px; }

/* Closing box */
.v-cta-box { display: grid; justify-items: center; gap: 16px; padding: clamp(40px, 7vw, 88px) var(--gutter); text-align: center; border-radius: var(--r-card-lg);
  background: radial-gradient(60% 80% at 50% 120%, color-mix(in srgb, var(--vision) 30%, transparent), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong); }
.v-cta-box h2 { max-width: 16ch; }
.v-cta-box p { max-width: 44ch; color: var(--muted); }

@media (max-width: 760px) {
  .v-body { grid-template-columns: 1fr; }
  .v-cat { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: auto; overflow-x: auto; display: flex; align-items: center; gap: 8px; padding: 10px; scrollbar-width: none; }
  .v-cat-h { padding: 0 4px; flex: none; }
  .v-cat ul { display: flex; margin: 0; flex: none; }
  .v-cat button { width: auto; padding: 6px 10px 6px 6px; }
  .v-cat em { display: none; }
  .v-note { display: none; }
  .v-split { grid-template-columns: 1fr; }
  .v-feat.flip .v-copy { order: 0; }
  .v-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  .acc-item.on .acc-bar i.run { animation: fill 4.2s linear both; }
  html { scroll-behavior: smooth; }
  .js .reveal { opacity: 0; }
  .js .reveal.in { opacity: 1; animation: rise-in var(--t-slow) var(--ease) both; }
  /* Arrival: each part fades in, one after the other */
  .rise { animation: rise-in var(--t-slow) var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
}
@keyframes fill { to { transform: scaleX(1); } }
@keyframes rise-in { from { opacity: 0; } }

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .bar .wrap { flex-wrap: wrap; row-gap: 6px; }
  .bar .btn { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: -12px; overflow-x: auto; scrollbar-width: none; }
  /* The words first, the picture under them */
  .hero { min-height: 0; padding-block: 36px 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .merge { height: 300px; }
  .points { grid-template-columns: 1fr; }
  .points li, .points li:first-child { padding: 22px 0 0; border-left: 0; }
  .points li + li { margin-top: 22px; border-top: 1px solid var(--line); }
  .nav { overflow: visible; gap: 0; }
  .nav > a, .menu-trigger { padding: 9px 10px; }
  .menu { position: fixed; left: 12px; right: 12px; top: var(--bar-h, 100px); width: auto; margin-top: 0; transform: translateY(-6px); }
  .has-menu.open .menu { transform: none; }
  .band { padding-block: 72px; }
  .about { padding-bottom: 24px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .help { grid-template-columns: 1fr; }
  .cell, .cell.c-wide, .cell.c-wide + .cell, .cell.c-third, .cell.c-half { grid-column: auto; }
  .c-wide .mock { grid-template-columns: 1fr; }
  .ui-preview { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .cnotes li:nth-child(2), .cnotes li:nth-child(3) { margin-left: 0; }
  .cgrid { grid-template-columns: 1fr; }
  .csteps { grid-template-columns: 1fr; }
  .csteps li { padding: 18px 0 0; border-left: 0; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fbrand { grid-column: 1 / -1; }
  /* One-row sticky bar on phones: the section links live in the footer, the bar keeps the brand and Get in touch */
  .bar .nav { display: none; }
  .bar .wrap { padding-block: 10px; }
  .brand { padding-block: 9px; }
  .bar .btn { min-height: 44px; }
  /* 44px touch targets */
  .fcol { gap: 0; }
  .fcol a { padding-block: 8px; min-height: 44px; box-sizing: border-box; display: flex; align-items: center; }
}
