/* ==========================================================================
   yin Solutions — shared site stylesheet
   Used by every main page (home, about, blogs, contact, FAQ, privacy, 404).
   Blog posts additionally load css/blog.css.

   Contents
   1. Fonts (self-hosted, see /fonts)
   2. Design tokens (colours, type scale, spacing)
   3. Base & accessibility helpers
   4. Layout primitives
   5. Navigation
   6. Buttons & links
   7. Hero + 3D chrome logo (the signature element)
   8. Page sections (trust, services, video, work, posts, reviews, contact)
   9. Inner-page components (page header, FAQ, prose, filters)
   10. Footer
   11. Motion (scroll reveal) + reduced-motion overrides
   ========================================================================== */


/* 1. Fonts ---------------------------------------------------------------- */
/* Variable fonts: one file covers every weight. Latin subset only. */
@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/familjen-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next-italic-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}


/* 2. Design tokens -------------------------------------------------------- */
:root {
  /* Colour — the original yin palette, refined for contrast.
     Violet is reserved for things you can act on (buttons, links, focus). */
  --bg:          #080810;   /* page background (unchanged) */
  --surface:     #12121d;   /* raised panels */
  --surface-2:   #1a1a2b;   /* inputs, hover states */
  --line:        rgba(236, 235, 244, 0.09);  /* hairlines */
  --line-strong: rgba(236, 235, 244, 0.18);
  --text:        #ecebf4;   /* 16.6:1 on --bg */
  --muted:       #9a9ab2;   /* 7.0:1 on --bg */
  --action:      #7c3aed;   /* button fill — white text 5.7:1 */
  --action-hover:#6d28d9;
  --link:        #c4a2ff;   /* violet for text links — 9.3:1 on --bg */
  --lilac:       #a855f7;   /* illustration accent only */
  --success:     #6ee7b7;

  /* Type */
  --font-display: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  /* Fluid scale (≈ 1.25 ratio), min at 360px wide, max at 1280px wide */
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.18vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.13rem + 0.33vw, 1.4rem);
  --step-2:  clamp(1.44rem, 1.3rem + 0.6vw, 1.8rem);
  --step-3:  clamp(1.73rem, 1.48rem + 1.1vw, 2.45rem);
  --step-4:  clamp(2.2rem, 1.7rem + 2.2vw, 3.7rem);

  /* Space & shape */
  --wrap:    1160px;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --nav-h:   68px;
  --radius:  14px;   /* panels */
  --radius-s: 8px;   /* inputs, small elements */
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
}


/* 3. Base & accessibility ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

/* The hidden attribute must always win over component display rules
   (otherwise filtered-out blog cards stay visible) */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* "Skip to content" link for keyboard users — visible only on focus */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--action);
  color: #fff;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }


/* 4. Layout primitives ---------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }

/* Section heading block: title + one supporting sentence, left aligned */
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 0.9rem; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }


/* 5. Navigation ----------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(8, 8, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); }

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; }
.brand span { color: var(--muted); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-s);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }

/* Gliding indicator (desktop): one thin violet line that slides to the link
   you point at and settles back under the current page. Positioned by
   js/site.js with transform only (translateX + scaleX of a 1px-wide line). */
@media (min-width: 861px) {
  .nav-links { position: relative; }
  .nav-indicator {
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 1px;
    height: 2px;
    border-radius: 2px;
    background: var(--link);
    box-shadow: 0 0 10px rgba(196, 162, 255, 0.7);
    transform-origin: left;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s var(--ease), opacity 0.3s;
  }
  .nav-indicator.is-on { opacity: 1; }
}
@media (max-width: 860px) { .nav-indicator { display: none; } }
.nav-links .nav-cta { margin-left: 0.5rem; }
.nav-links .nav-cta a { color: #fff; background: var(--action); padding-inline: 1.1rem; }
.nav-links .nav-cta a:hover { background: var(--action-hover); }

/* Mobile menu button (three lines that turn into an ×) */
.menu-button {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-button span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-button span:nth-child(1) { top: 15px; }
.menu-button span:nth-child(2) { top: 21px; }
.menu-button span:nth-child(3) { top: 27px; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-button { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    /* Hidden state: slide up + fade (transform/opacity only) */
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }
  .nav-links a { padding: 0.85rem 0.5rem; font-size: 1.05rem; }
  .nav-links .nav-cta { margin: 0.75rem 0 0; }
  .nav-links .nav-cta a { text-align: center; }
}


/* 6. Buttons & links ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;          /* keeps the light effects below the label */
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  /* every property that changes on hover/focus is listed, so nothing jumps */
  transition: transform 0.3s var(--ease), background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
/* Same feedback for mouse (hover) and keyboard (focus) users */
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
/* Press: a small, quick push-in — this is also the feedback on touch screens */
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }

/* Spotlight: a soft light that follows the pointer inside the button.
   js/site.js updates --mx / --my; without JS it simply glows in the centre. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { opacity: 1; }

.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--action-hover); }
/* Chrome sweep: the same band of light that crosses the logo glides across
   the main buttons once on hover — a small echo of the signature element. */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px -40%;
  z-index: -1;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.32) 50%, transparent 62%);
  transform: translateX(-75%);
  transition: transform 0s;
}
.btn-primary:hover::after, .btn-primary:focus-visible::after { transform: translateX(75%); transition: transform 0.9s var(--ease); }

.btn-quiet { border-color: var(--line-strong); color: var(--text); }
.btn-quiet:hover, .btn-quiet:focus-visible { border-color: var(--link); }

/* Busy state (e.g. while a form is sending) */
.btn[aria-busy="true"] { cursor: progress; opacity: 0.8; transform: none; }

/* Inline text link (inside sentences): the underline brightens on hover. */
.text-link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(196, 162, 255, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.25s, color 0.25s;
}
.text-link:hover, .text-link:focus-visible { color: #ddc9ff; text-decoration-color: currentColor; }

/* Stand-alone links (not inside a sentence): full 44px tap area, and the
   underline draws in from the left over a faint resting line. */
:where(div, li, nav) > .text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
:where(div, li, nav) > .text-link::before,
:where(div, li, nav) > .text-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 9px;
  height: 1px;
  background: currentColor;
}
:where(div, li, nav) > .text-link::before { opacity: 0.35; }
:where(div, li, nav) > .text-link::after {
  height: 2px;
  bottom: 8.5px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
:where(div, li, nav) > .text-link:hover::after,
:where(div, li, nav) > .text-link:focus-visible::after { transform: scaleX(1); }


/* 7. Hero + 3D chrome logo --------------------------------------------- */
.hero {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: var(--step--1);
}
.status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.15);
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 14ch;
}
.hero-sub {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

/* — Hero refinements (premium "modern tech" direction) —
   Soft gradient light behind the logo, glass status pill, silver headline. */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(60rem 40rem at 78% 42%, rgba(124, 58, 237, 0.16), transparent 62%),
    radial-gradient(40rem 30rem at 10% 0%, rgba(196, 162, 255, 0.06), transparent 60%);
}
.hero .status {
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero h1 {
  /* Brushed-silver headline: echoes the chrome logo, stays highly legible */
  background: linear-gradient(180deg, #ffffff 0%, #e4e3ee 55%, #a9a8bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .btn-primary { box-shadow: 0 0 0 1px rgba(196, 162, 255, 0.25), 0 10px 30px -8px rgba(124, 58, 237, 0.65); }
.hero .btn-primary:hover, .hero .btn-primary:focus-visible { box-shadow: 0 0 0 1px rgba(196, 162, 255, 0.4), 0 14px 36px -8px rgba(124, 58, 237, 0.75); }

/* Frosted-glass secondary button */
.btn-glass {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover, .btn-glass:focus-visible { border-color: rgba(196, 162, 255, 0.45); background: rgba(255, 255, 255, 0.07); }

/* — 3D chrome logo stage —
   Layers, bottom to top:
   1. the real <img> logo (always in the HTML for SEO/screen readers),
   2. a CSS-only chrome version (shown by default),
   3. a WebGL canvas that fades in when js/logo3d.js has drawn its first frame.
   The stage has fixed dimensions, so nothing shifts while it loads. It is
   portrait-shaped because the logo is tall; the 3D camera fits the logo to
   whatever size the stage ends up, on any screen. */
.logo-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  max-height: min(72svh, 600px);
  margin-inline: auto;
  perspective: 1200px;
}
/* soft light pool behind the logo */
.logo-stage::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 109, 255, 0.32), rgba(124, 58, 237, 0.08) 45%, transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.logo-stage .logo-img {
  position: absolute;
  inset: 4% 0;
  width: 100%;
  height: 92%;
  object-fit: contain;
}

/* CSS chrome: the logo shape used as a mask over a metallic gradient.
   Stacked copies behind the face give it real thickness when it turns. */
.logo-css {
  position: absolute;
  inset: 4% 0;
  transform-style: preserve-3d;
  animation: logo-sway 9s var(--ease) infinite alternate;
  transition: opacity 0.8s var(--ease);
}
.logo-css span {
  position: absolute;
  inset: 0;
  -webkit-mask: url("/logo-mark.svg") center / contain no-repeat;
          mask: url("/logo-mark.svg") center / contain no-repeat;
  transform: translateZ(calc(var(--d, 0) * -1px));
  background: linear-gradient(90deg, #3c3c48, #6d6d7c 50%, #3c3c48);
}
.logo-css span:nth-child(1) { --d: 2; }
.logo-css span:nth-child(2) { --d: 4; }
.logo-css span:nth-child(3) { --d: 6; }
.logo-css span:nth-child(4) { --d: 8; }
.logo-css span:nth-child(5) { --d: 10; }
.logo-css .logo-face {
  --d: 0;
  overflow: hidden;
  background:
    linear-gradient(115deg, #5f5f6e 0%, #f4f4fa 20%, #9898aa 36%, #ffffff 50%, #8b8b9c 63%, #e9e9f2 80%, #5a5a68 100%);
}
/* highlight sweep: a soft band of light gliding across the metal */
.logo-css .logo-face::after {
  content: "";
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.75) 50%, transparent 60%);
  transform: translateX(-60%);
  animation: logo-sheen 6s var(--ease) infinite;
}
@keyframes logo-sway {
  from { transform: rotateY(-26deg) rotateX(4deg); }
  to   { transform: rotateY(26deg) rotateX(-4deg); }
}
@keyframes logo-sheen {
  0%, 55% { transform: translateX(-60%); }
  100%    { transform: translateX(60%); }
}

/* WebGL layer */
.logo-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.logo-stage.is-webgl canvas { opacity: 1; cursor: grab; }
.logo-stage.is-dragging canvas { cursor: grabbing; }
.logo-stage.is-webgl .logo-css { opacity: 0; }

/* The flat <img> is only visible if the browser can't draw the chrome mask */
@supports ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  .logo-stage .logo-img { opacity: 0; }
}

/* Reduced motion: a slower, smaller sway; paused state freezes everything */
@media (prefers-reduced-motion: reduce) {
  .logo-css { animation-duration: 18s; animation-name: logo-sway-gentle; }
  .logo-css .logo-face::after { animation-duration: 12s; }
}
@keyframes logo-sway-gentle {
  from { transform: rotateY(-16deg); }
  to   { transform: rotateY(16deg); }
}
.logo-stage.is-paused .logo-css,
.logo-stage.is-paused .logo-css .logo-face::after { animation-play-state: paused; }

/* Pause / play button (required for anything that moves on its own) */
.logo-pause {
  position: absolute;
  right: 4%; bottom: 4%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(18, 18, 29, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--muted);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s, color 0.3s, border-color 0.3s, transform 0.2s var(--ease);
}
.logo-pause svg { width: 16px; height: 16px; fill: currentColor; }
.logo-pause .i-play { display: none; }
.logo-stage.is-paused .logo-pause .i-play { display: block; }
.logo-stage.is-paused .logo-pause .i-pause { display: none; }
.logo-stage:hover .logo-pause, .logo-pause:focus-visible { opacity: 1; }
.logo-pause:hover { color: var(--text); border-color: rgba(196, 162, 255, 0.5); }
.logo-pause:active { transform: scale(0.94); }

/* Phones & tablets: the logo leads, sized so the headline and buttons still
   fit on the first screen (≈30% of the screen height). */
@media (max-width: 860px) {
  .hero { padding-top: 1.5rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 1.25rem; }
  .logo-stage {
    order: -1;
    max-width: none;
    aspect-ratio: auto;
    height: clamp(190px, 30svh, 300px);
    max-height: none;
  }
  .hero .status { margin-bottom: 1rem; }
  .hero-sub { margin-top: 1rem; font-size: 1.05rem; }
  .hero-actions { margin-top: 1.5rem; gap: 0.75rem; }
}


/* 8. Page sections -------------------------------------------------------- */

/* — Trust: numbers + supporting line — */
.trust .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.trust h2 { font-size: var(--step-2); }
.trust-intro p { margin-top: 0.75rem; color: var(--muted); }
.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.figures li { border-top: 2px solid var(--action); padding-top: 1rem; }
.figures .num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.figures .label { display: block; margin-top: 0.5rem; color: var(--muted); font-size: var(--step--1); }

@media (max-width: 760px) {
  .trust .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 330px) {
  .figures { grid-template-columns: 1fr; }
}

/* — Services: intro + list of what we do — */
.services .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
}
.services-intro h2 { font-size: var(--step-3); }
.services-intro p { margin-top: 1.1rem; color: var(--muted); }
.services-intro strong { color: var(--text); font-weight: 600; }
.services-intro .btn { margin-top: 2rem; }

.service-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.service-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-1);
  line-height: 1.4;
}
.service-list svg { width: 26px; height: 26px; margin-top: 0.15rem; color: var(--link); }

@media (max-width: 860px) {
  .services .wrap { grid-template-columns: 1fr; }
}

/* — Video showcase — */
.showcase .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.showcase h2 { font-size: var(--step-3); }
.showcase-text p { margin-top: 1rem; color: var(--muted); }
.showcase-text .text-link { display: inline-block; margin-top: 1.25rem; }

/* Click-to-play: a lightweight image until the visitor presses play,
   then js/site.js swaps in the real <video>. Fixed 16:9 box = no shift. */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.video-frame img,
.video-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(to top, rgba(8, 8, 16, 0.55), rgba(8, 8, 16, 0) 55%);
  cursor: pointer;
}
.video-play .play-icon {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--action);
  color: #fff;
  transition: transform 0.25s var(--ease);
}
.video-play:hover .play-icon,
.video-play:focus-visible .play-icon { transform: scale(1.08); }
.video-play .play-icon svg { width: 28px; height: 28px; margin-left: 4px; }
.video-play .video-caption {
  position: absolute;
  left: 1.25rem; bottom: 1rem;
  font-size: var(--step--1);
  color: var(--text);
}

@media (max-width: 860px) {
  .showcase .wrap { grid-template-columns: 1fr; }
}

/* — Work / solutions: alternating image + text rows — */
.work-list { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.work-item:nth-child(even) .work-media { order: 2; }
.work-media {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.work-media img { width: 100%; aspect-ratio: 1912 / 941; object-fit: cover; }
.work-tag { color: var(--link); font-size: var(--step--1); font-weight: 600; }
.work-text h3 { margin-top: 0.4rem; font-size: var(--step-2); }
.work-text p { margin-top: 0.85rem; color: var(--muted); }
.work-text strong { color: var(--text); font-weight: 600; }
.work-text .text-link { display: inline-block; margin-top: 1.1rem; }

@media (max-width: 760px) {
  .work-item { grid-template-columns: 1fr; }
  .work-item:nth-child(even) .work-media { order: 0; }
}

/* — Posts: featured trio + compact list (all links in plain HTML) — */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  list-style: none;
  padding: 0;
}
.post-card { position: relative; display: flex; flex-direction: column; }
.post-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.post-card .post-topic { margin-top: 1.1rem; color: var(--link); font-size: var(--step--1); font-weight: 600; }
.post-card :is(h2, h3) { margin-top: 0.35rem; font-size: var(--step-1); line-height: 1.25; }
.post-card :is(h2, h3) a { text-decoration: none; }
/* Whole card is clickable via the heading link, without nesting links */
.post-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.post-card p { margin-top: 0.55rem; color: var(--muted); font-size: 1rem; }
.post-card:hover :is(h2, h3) a,
.post-card :is(h2, h3) a:focus-visible { text-decoration: underline; text-decoration-color: var(--link); text-underline-offset: 0.2em; }
/* Blog cards are the only cards with a hover effect: the image lifts and tilts
   very slightly toward the pointer (js/site.js sets --rx / --ry). */
.post-card img {
  transform: perspective(900px) translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.post-card:hover img, .post-card:focus-within img {
  --lift: -4px;
  border-color: rgba(196, 162, 255, 0.35);
  box-shadow: 0 18px 40px -18px rgba(124, 58, 237, 0.45);
}

.more-posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.more-posts a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  transition: color 0.2s;
}
.more-posts a span { color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); white-space: nowrap; }
.more-posts a:hover { color: var(--link); }
.posts-footer { margin-top: 2.5rem; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .post-grid, .more-posts { grid-template-columns: 1fr; }
}

/* — Reviews: one featured quote + two supporting — */
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.quote blockquote p { font-size: var(--step-1); line-height: 1.5; }
.quote--featured blockquote p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.quote-side { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-content: start; }
.quote-side .quote { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.quote-side .quote:first-child { padding-top: 0; border-top: 0; }
.quote figcaption { display: flex; align-items: center; gap: 0.8rem; }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}
.quote .who { display: block; font-weight: 600; }
.quote .role { display: block; color: var(--muted); font-size: var(--step--1); }

@media (max-width: 760px) {
  .reviews-layout { grid-template-columns: 1fr; }
}

/* — Contact: info column + form — */
.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-info h2 { font-size: var(--step-3); }
.contact-info > p { margin-top: 1rem; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.contact-points { margin-top: 2rem; list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.contact-points li { display: flex; align-items: center; gap: 0.8rem; }
.contact-points svg { width: 20px; height: 20px; color: var(--link); flex: none; }

.form-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.95rem; font-weight: 600; }
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8a8aa3; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 3px rgba(196, 162, 255, 0.2);
}
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--action); flex: none; }
/* reCAPTCHA is 78px tall; reserve the space so nothing jumps when it loads */
.captcha-slot { min-height: 78px; }
.form-grid .btn { width: 100%; }
.form-note { color: var(--muted); font-size: var(--step--1); }

@media (max-width: 860px) {
  .contact .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
}


/* 9. Inner-page components ----------------------------------------------- */

/* Page header used by About, Blogs, Contact, FAQ, Privacy */
.page-head { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; max-width: 18ch; }
.page-head + .section { padding-top: clamp(1.5rem, 4vw, 3rem); }
.page-head p { margin-top: 1.25rem; max-width: 40rem; color: var(--muted); font-size: var(--step-1); line-height: 1.55; }

/* Simple grid of short text blocks (About values, Contact reasons) */
.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  list-style: none;
  padding: 0;
}
.points > * { border-top: 2px solid var(--action); padding-top: 1.1rem; }
.points h2, .points h3 { font-size: var(--step-1); }
.points p { margin-top: 0.6rem; color: var(--muted); }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }

/* Two-column list of capabilities (About) */
.capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.capabilities li { padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.capabilities h3 { font-size: var(--step-1); }
.capabilities p { margin-top: 0.45rem; color: var(--muted); }
@media (max-width: 760px) { .capabilities { grid-template-columns: 1fr; } }

/* FAQ accordion — native <details>, works without JavaScript */
.faq-list { max-width: 50rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.3rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h2 { font: inherit; letter-spacing: inherit; }

/* FAQ page: questions + sticky "can't find your answer" panel */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.side-panel {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.side-panel h2 { font-size: var(--step-1); }
.side-panel p { margin-top: 0.75rem; color: var(--muted); }
.side-panel .btn { margin-top: 1.5rem; width: 100%; }
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
}
.faq-list summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 2px solid var(--link);
  border-bottom: 2px solid var(--link);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq-list .answer { padding-bottom: 1.4rem; color: var(--muted); max-width: 44rem; }
/* Opening a question: the answer fades in, showing what changed */
.faq-list details[open] .answer { animation: answer-in 0.35s var(--ease); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-list .answer a { color: var(--link); }

/* Long-form text (Privacy policy) */
.prose { max-width: 44rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 1rem; color: #c9c8d8; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--link); text-underline-offset: 0.2em; }

/* On-page table of contents (Privacy) */
.page-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3rem; list-style: none; padding: 0; }
.page-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.page-toc a:hover { color: var(--text); border-color: var(--link); }

/* Blog list filters (Blogs page) */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-bottom: 2.5rem; }
.search {
  position: relative;
  flex: 1 1 260px;
  max-width: 360px;
}
.search input {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem 0.65rem 2.6rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.search input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(196, 162, 255, 0.2); }
.search svg { position: absolute; left: 0.95rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.topic-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.topic-filter button {
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: var(--step--1);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.topic-filter button:hover { color: var(--text); }
.topic-filter button[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: #fff; }
.no-results { margin-top: 1rem; color: var(--muted); }

/* Closing call-to-action band (inner pages) */
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 3rem;
}
.cta-band h2 { font-size: var(--step-3); max-width: 22ch; }
.cta-band p { margin-top: 0.6rem; color: var(--muted); }


/* 10. Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2.5rem; font-size: 1rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.footer-grid p { margin-top: 0.8rem; color: var(--muted); max-width: 26rem; }
.footer-grid h2 { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.footer-grid ul { margin-top: 0.4rem; list-style: none; padding: 0; display: grid; gap: 0; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.footer-grid a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 0.2em; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}


/* 11. Motion -------------------------------------------------------------- */
/* Scroll reveal. Content is visible by default; js/site.js marks anything
   already on screen as visible, then adds "js-reveal" so only content further
   down fades in. If JavaScript fails, nothing is ever hidden. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* "Reduce motion" = gentle mode, not no motion.
   Many people switch the OS setting on for speed, not because motion bothers
   them, so we keep calm, non-moving feedback — fades, count-ups, glows, the
   timeline line filling, and a slow logo turn (with a pause button) — and
   remove only real movement: sliding, lifting, tilting, floating, warping. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { transform: none; transition: opacity 0.7s var(--ease); transition-delay: var(--reveal-delay, 0s); }
  .btn:hover, .btn:focus-visible, .btn:active,
  .post-card img, .post-card:hover img,
  .video-play:hover .play-icon, .video-play:focus-visible .play-icon { transform: none; }
  .nav-links, .nav-links.is-open { transform: none; }
  .btn-primary::after { display: none; }      /* no light sweep */
  .nav-indicator { transition: opacity 0.3s; } /* indicator jumps, never slides */
}


/* 12. Signature components ------------------------------------------------
   Hero grid + floating chips, services bento with live mini-animations,
   4-step process timeline, contact form extras.
   Animations start only when a block scrolls into view (js/site.js adds
   .is-live), use transform/opacity only, and show their finished state
   for visitors who prefer reduced motion. */

/* — Hero: fine grid that fades out towards the edges — */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(236, 235, 244, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 235, 244, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 60% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 65% at 60% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* Headline in two weights: the set-up line light and silver, the pay-off bold */
.hero h1 .h1-light {
  display: block;
  font-weight: 400;
  background: linear-gradient(180deg, #c9c8d8 0%, #8d8ca3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Floating glass chips around the logo (decorative; the services are
   described in full further down the page) */
.chip-float {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(18, 18, 29, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  animation: chip-float 7s ease-in-out infinite;
}
.chip-float svg { width: 16px; height: 16px; color: var(--link); flex: none; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@media (max-width: 860px) {
  .chip-float { font-size: 0.78rem; padding: 0.4rem 0.7rem; }
      }

/* — Services bento — */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.tile--wide { grid-column: span 2; }
/* Pointer spotlight on the tile border/background (js sets --mx/--my) */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(155, 109, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.tile:hover::before { opacity: 1; }
.tile:hover { border-color: rgba(196, 162, 255, 0.28); }
.tile h3 { font-size: var(--step-1); line-height: 1.25; }
.tile p { margin-top: 0.4rem; color: var(--muted); }
.tile--wide { flex-direction: row; align-items: stretch; }
.tile--wide .tile-text { flex: 1 1 40%; align-self: center; }
.tile--wide .demo { flex: 1 1 60%; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; flex-direction: column; }
}

/* Shared "mini window" look for the animated demos */
.demo {
  position: relative;
  min-height: 170px;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(8, 8, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.85rem;
  overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.85rem; color: var(--muted); font-size: 0.78rem; }
.demo-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2c2c3c; }
.demo-bar span { margin-left: 0.4rem; }

/* Demo 1: analysis log — lines appear one after another */
.log { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.log li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  opacity: 0;
  transform: translateY(8px);
}
.log .ok   { color: #6ee7b7; }
.log .warn { color: #f0b86e; }
.log .scan { color: var(--link); }
.log b { font-weight: 600; color: inherit; }
.log li span:last-child { color: var(--text); }
.is-live .log li { animation: log-in 0.5s var(--ease) forwards; }
.is-live .log li:nth-child(2) { animation-delay: 0.7s; }
.is-live .log li:nth-child(3) { animation-delay: 1.4s; }
.is-live .log li:nth-child(4) { animation-delay: 2.1s; }
@keyframes log-in { to { opacity: 1; transform: none; } }
.scan-line {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(155, 109, 255, 0.12), transparent);
  transform: translateY(-100%);
  pointer-events: none;
}
.is-live .scan-line { animation: scan 3.2s ease-in-out 0.2s 2; }
@keyframes scan { to { transform: translateY(260%); } }

/* Demo 2: audience growth — bars rise, counter counts */
.growth { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.growth-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--text); }
.growth-num small { display: block; margin-top: 0.35rem; font-family: var(--font-body); font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; margin-top: 1rem; }
.bars i {
  flex: 1;
  height: 100%;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #c4a2ff, #7c3aed);
  transform: scaleY(0.08);
  transform-origin: bottom;
  opacity: 0.85;
}
.is-live .bars i { animation: bar-up 1.1s var(--ease) forwards; }
.bars i:nth-child(1) { --h: 0.22; } .bars i:nth-child(2) { --h: 0.3; }  .bars i:nth-child(3) { --h: 0.28; }
.bars i:nth-child(4) { --h: 0.42; } .bars i:nth-child(5) { --h: 0.5; }  .bars i:nth-child(6) { --h: 0.62; }
.bars i:nth-child(7) { --h: 0.7; }  .bars i:nth-child(8) { --h: 0.86; } .bars i:nth-child(9) { --h: 1; }
.is-live .bars i:nth-child(n) { animation-delay: calc(var(--i, 0) * 0.08s); }
@keyframes bar-up { to { transform: scaleY(var(--h)); } }

/* Demo 3: project checklist — progress bars fill in sequence */
.steps-demo { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.steps-demo li { display: grid; gap: 0.35rem; }
.steps-demo .row { display: flex; justify-content: space-between; color: var(--text); font-size: 0.82rem; }
.steps-demo .row span:last-child { color: var(--muted); }
.track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7c3aed, #c4a2ff); transform: scaleX(0); transform-origin: left; }
.is-live .track i { animation: fill 1.2s var(--ease) forwards; }
.steps-demo li:nth-child(1) i { --w: 1; }    .steps-demo li:nth-child(2) i { --w: 1; animation-delay: 0.4s; }
.steps-demo li:nth-child(3) i { --w: 0.7; animation-delay: 0.8s; } .steps-demo li:nth-child(4) i { --w: 0.25; animation-delay: 1.2s; }
@keyframes fill { to { transform: scaleX(var(--w)); } }

/* Demo 4: website score — ring fills to 98, checks appear */
.score { display: flex; align-items: center; gap: 1.5rem; height: 100%; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .bg { stroke: rgba(255, 255, 255, 0.07); }
.ring .fg { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; }
.is-live .ring .fg { animation: ring 1.6s var(--ease) 0.2s forwards; }
@keyframes ring { to { stroke-dashoffset: 6; } }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.8rem; color: var(--text); }
.checks { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.checks li { display: flex; align-items: center; gap: 0.5rem; color: var(--text); opacity: 0; transform: translateX(-6px); }
.checks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(110, 231, 183, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9' fill='none' stroke='%236ee7b7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; flex: none; }
.is-live .checks li { animation: log-in 0.45s var(--ease) forwards; }
.is-live .checks li:nth-child(1) { animation-delay: 0.9s; }
.is-live .checks li:nth-child(2) { animation-delay: 1.2s; }
.is-live .checks li:nth-child(3) { animation-delay: 1.5s; }

.bento-foot { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; color: var(--muted); }

/* — Process timeline (a real sequence, so the steps are numbered) — */
.timeline-steps { position: relative; max-width: 940px; margin-inline: auto; list-style: none; padding: 0; }
.timeline-steps::before {             /* the faint track */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.t-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; padding-bottom: 2.5rem; }
.t-step:last-child { padding-bottom: 0; }
/* the lit segment of the line draws downwards as each step appears */
.t-step::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  margin-left: -0.5px;
  background: linear-gradient(180deg, #c4a2ff, #7c3aed);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.9s var(--ease);
}
.t-step.is-live::before { transform: scaleY(1); }
.t-dot {
  position: absolute;
  top: 1.4rem; left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.t-step.is-live .t-dot { border-color: #c4a2ff; box-shadow: 0 0 0 6px rgba(155, 109, 255, 0.15), 0 0 18px rgba(155, 109, 255, 0.6); }
.t-card {
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.t-step:nth-child(even) .t-card { grid-column: 2; transform: translateX(24px); }
.t-step.is-live .t-card { opacity: 1; transform: none; }
.t-num { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--link); }
.t-card h3 { margin-top: 0.3rem; font-size: var(--step-1); }
.t-card p { margin-top: 0.45rem; color: var(--muted); }
@media (max-width: 760px) {
  .timeline-steps::before, .t-step::before { left: 7px; }
  .t-dot { left: 7px; }
  .t-step { grid-template-columns: 1fr; padding-left: 2.25rem; gap: 0; }
  .t-step:nth-child(even) .t-card { grid-column: 1; transform: translateX(16px); }
  .t-card { transform: translateX(16px); }
}
/* Without JS the timeline is fully visible */
html:not(.js) .t-card { opacity: 1; transform: none; }
html:not(.js) .t-step::before { transform: scaleY(1); }

/* — Contact extras: what to expect, service chips, progress — */
.expect { margin-top: 2rem; list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.expect li { display: flex; align-items: center; gap: 0.7rem; }
.expect li::before {
  content: "";
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  background: rgba(155, 109, 255, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.9' fill='none' stroke='%23c4a2ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.form-progress { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--muted); }
.form-progress .row { display: flex; justify-content: space-between; }
.form-progress .track i { --w: 0; transform: scaleX(var(--w)); transition: transform 0.5s var(--ease); }
fieldset.service-picker { border: 0; padding: 0; margin: 0; min-width: 0; }
.service-picker legend { padding: 0; margin-bottom: 0.45rem; font-size: 0.95rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background-color 0.25s, transform 0.2s var(--ease);
}
.chips label:hover { color: var(--text); border-color: rgba(196, 162, 255, 0.5); }
.chips label:active { transform: scale(0.97); }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips input:checked + span { color: #fff; }
.chips label:has(input:checked) { background: rgba(124, 58, 237, 0.25); border-color: var(--link); color: #fff; }
.chips label:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }

/* — Reduce motion: demos still play, but fade instead of sliding — */
@media (prefers-reduced-motion: reduce) {
  .chip-float { animation: none; }
  .log li, .checks li { transform: none; }
  .is-live .log li, .is-live .checks li { animation-name: fade-in; }
  .scan-line { display: none; }
  .t-card, .t-step:nth-child(even) .t-card { transform: none; }
}
@keyframes fade-in { to { opacity: 1; } }


/* Tiles: keep their hover border fade alongside the scroll reveal */
.js-reveal .tile.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.35s; transition-delay: var(--reveal-delay, 0s), var(--reveal-delay, 0s), 0s; }


/* 13. Polish pass ---------------------------------------------------------
   Floating glass nav, live status light, impact cards, scroll-linked
   timeline, warping hero grid, inner-page styling and small details. */

/* — Small details that add up — */
::selection { background: rgba(124, 58, 237, 0.55); color: #fff; }
html { scrollbar-color: #2e2e44 var(--bg); scrollbar-width: thin; }
.section-head h2, .page-head h1, .contact-info h2, .showcase h2, .trust h2 {
  background: linear-gradient(180deg, #ffffff 0%, #d9d8e6 60%, #a9a8bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Lazy images fade in once loaded instead of popping (js adds .is-loaded) */
.js img[loading="lazy"] { opacity: 0; transition: opacity 0.6s var(--ease); }
.js img[loading="lazy"].is-loaded { opacity: 1; }
/* A thin glowing line where each section begins */
.section + .section { border-top: 0; position: relative; }
.section + .section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: min(1100px, 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(196, 162, 255, 0.22), transparent);
}

/* — Navigation: a floating frosted-glass pill — */
.site-nav {
  height: auto;
  padding: 12px var(--gutter) 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-nav > .wrap {
  position: relative;
  height: 60px;
  max-width: 1120px;
  padding-inline: 0.75rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(14, 14, 23, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.site-nav.is-scrolled > .wrap {
  background: rgba(14, 14, 23, 0.82);
  border-color: rgba(196, 162, 255, 0.16);
  box-shadow: 0 14px 44px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(124, 58, 237, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
:root { --nav-h: 72px; }
html { scroll-padding-top: calc(var(--nav-h) + 24px); }
.brand { padding-left: 0.25rem; }
.brand img { transition: transform 0.8s var(--ease); }
.brand:hover img { transform: rotateY(360deg); }
.nav-links .nav-cta a { border-radius: 999px; }
.nav-links .nav-cta a { box-shadow: 0 6px 20px -8px rgba(124, 58, 237, 0.8); transition: background-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease); }
.nav-links .nav-cta a:hover { box-shadow: 0 8px 26px -8px rgba(124, 58, 237, 0.95); transform: translateY(-1px); }
.menu-button { border-radius: 50%; border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); }

@media (max-width: 860px) {
  .site-nav { padding: 10px 10px 0; }
  .site-nav > .wrap { height: 56px; padding-inline: 0.6rem 0.4rem; }
  /* Mobile menu: a glass panel that drops down under the pill */
  .nav-links {
    top: calc(100% + 8px);
    left: 0; right: 0;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background: rgba(14, 14, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
  }
  .nav-links.is-open { transform: none; }
  .nav-links li { opacity: 0; transform: translateY(6px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
  .nav-links.is-open li { opacity: 1; transform: none; }
  .nav-links.is-open li:nth-child(2) { transition-delay: 0.03s; } .nav-links.is-open li:nth-child(3) { transition-delay: 0.06s; }
  .nav-links.is-open li:nth-child(4) { transition-delay: 0.09s; } .nav-links.is-open li:nth-child(5) { transition-delay: 0.12s; }
  .nav-links.is-open li:nth-child(6) { transition-delay: 0.15s; } .nav-links.is-open li:nth-child(7) { transition-delay: 0.18s; }
  .nav-links a { border-radius: 14px; padding: 0.9rem 1rem; color: var(--text); }
  .nav-links a:hover, .nav-links a[aria-current] { background: rgba(255, 255, 255, 0.05); }
  .nav-links .nav-cta a { padding: 0.95rem 1rem; }
}

/* — Status pill with a live "beacon" light (all pages) — */
.status {
  position: relative;
  padding: 0.4rem 0.95rem 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.status::before { box-shadow: 0 0 10px rgba(110, 231, 183, 0.8); }
.status::after {                       /* the expanding ring */
  content: "";
  position: absolute;
  left: 0.8rem; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--success);
  animation: beacon 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes beacon {
  0%   { transform: scale(1); opacity: 0.75; }
  80%, 100% { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .status::after { animation: beacon-soft 2.4s ease-in-out infinite; transform: scale(2); }
}
@keyframes beacon-soft { 0%, 100% { opacity: 0; } 50% { opacity: 0.35; } }

/* — Impact: glass stat cards with drawing trend lines — */
.figures { gap: 1rem; }
.figures li.stat-card {
  position: relative;
  padding: 1.35rem 1.35rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  isolation: isolate;
}
.stat-card::before {                   /* accent bar that fills when visible */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #c4a2ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}
.stat-card.is-live::before { transform: scaleX(1); }
.stat-card::after {                    /* soft glow behind the number */
  content: "";
  position: absolute;
  left: -20%; top: -40%;
  width: 90%; height: 90%;
  z-index: -1;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.stat-card.is-live::after { opacity: 1; }
.stat-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: rgba(155, 109, 255, 0.12);
  border: 1px solid rgba(196, 162, 255, 0.2);
  color: var(--link);
}
.stat-icon svg { width: 19px; height: 19px; }
.stat-card .num { text-shadow: 0 0 30px rgba(155, 109, 255, 0.35); }
.spark { display: block; width: 100%; height: auto; aspect-ratio: 200 / 44; margin-top: 0.9rem; overflow: visible; }
.spark .line { fill: none; stroke: url(#sparkGrad); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.spark .area { fill: url(#sparkFill); opacity: 0; transition: opacity 1s var(--ease) 0.8s; }
.spark .end { fill: #c4a2ff; opacity: 0; transform-box: fill-box; transform-origin: center; }
.stat-card.is-live .spark .line { animation: draw 1.6s var(--ease) 0.2s forwards; }
.stat-card.is-live .spark .area { opacity: 1; }
.stat-card.is-live .spark .end { animation: dot-pop 0.5s var(--ease) 1.7s forwards, dot-pulse 2.4s ease-in-out 2.4s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot-pop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@media (max-width: 1000px) and (min-width: 761px) { .trust .wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .figures { grid-template-columns: 1fr; } }

/* — Timeline: one line that fills as you scroll (js sets --p, 0 → 1) — */
.timeline-steps .t-progress {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  margin-left: -0.5px;
  background: linear-gradient(180deg, #c4a2ff, #7c3aed 80%, rgba(124, 58, 237, 0));
  transform: scaleY(var(--p, 0));
  transform-origin: top;
  box-shadow: 0 0 12px rgba(155, 109, 255, 0.55);
  pointer-events: none;
}
.has-progress .t-step::before { display: none; }   /* replaced by the single line */
@media (max-width: 760px) { .timeline-steps .t-progress { left: 7px; } }

/* — Inner pages: same atmosphere as the homepage hero — */
.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(50rem 30rem at 85% 0%, rgba(124, 58, 237, 0.16), transparent 65%);
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(236, 235, 244, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 235, 244, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 10%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 70% 10%, #000 25%, transparent 75%);
}

/* Glass treatment for the inner-page blocks (no markup changes needed) */
.points > *, .capabilities li, .faq-list details, .cta-band .wrap, .form-panel, .side-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.points > * {
  position: relative;
  padding: 1.5rem;
  border-radius: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.points > *::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #c4a2ff);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.points > *:hover { border-color: rgba(196, 162, 255, 0.28); }
.points > *:hover::before { transform: scaleX(1); }
.capabilities { gap: 1rem; border-top: 0; }
.capabilities li {
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  transition: border-color 0.35s;
}
.capabilities li:hover { border-color: rgba(196, 162, 255, 0.28); }
.faq-list { border-top: 0; display: grid; gap: 0.75rem; }
.faq-list details { border-radius: 16px; padding-inline: 1.25rem; transition: border-color 0.3s, background-color 0.3s; }
.faq-list details[open] { border-color: rgba(196, 162, 255, 0.3); }
.faq-list details:hover { border-color: rgba(196, 162, 255, 0.22); }
.cta-band .wrap { padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 24px; position: relative; overflow: hidden; }
.cta-band .wrap::before {
  content: "";
  position: absolute;
  right: -10%; top: -60%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 65%);
  pointer-events: none;
}
.cta-band { border-top: 0; }
.form-panel { border-radius: 22px; }
.page-toc a { background: rgba(255, 255, 255, 0.03); }
.search input { background: rgba(255, 255, 255, 0.04); }

/* Reading progress (blog posts) */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #c4a2ff);
  box-shadow: 0 0 10px rgba(155, 109, 255, 0.7);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  pointer-events: none;
}

/* Reduce motion: keep the fades, drop the movement */
@media (prefers-reduced-motion: reduce) {
  .brand:hover img, .nav-links .nav-cta a:hover { transform: none; }
  .nav-links li { transform: none; }
}

/* Final touches from the phone/desktop review */
@media (max-width: 860px) {
  .logo-pause { right: auto; left: 4%; }      /* keep clear of the chip on phones */
  .nav-links { background: rgba(12, 12, 20, 0.97); }
}
.trust .wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); align-items: center; }
.trust h2 { font-size: var(--step-3); }
.trust-intro p { font-size: var(--step-1); line-height: 1.5; }
.figures li.stat-card { padding: 1.6rem 1.6rem 1.2rem; }
@media (max-width: 1000px) { .trust .wrap { grid-template-columns: 1fr; } }


/* 14. Round 3 -------------------------------------------------------------
   Header background behind the nav, nav hover pill, warp grid on all
   headers, chip info cards, richer Solutions / Reviews / Latest Blogs. */

/* — The header atmosphere now runs behind the floating nav (no cut-off line).
     The nav overlaps the first section by its own height; the first section
     adds the same amount of top padding. — */
:root { --nav-total: 72px; }
@media (max-width: 860px) { :root { --nav-total: 66px; } }
.site-nav { margin-bottom: calc(-1 * var(--nav-total)); }
.hero       { padding-top: calc(var(--nav-total) + clamp(3rem, 8vw, 6.5rem)); }
.page-head  { padding-top: calc(var(--nav-total) + clamp(3rem, 8vw, 6rem)); }
.post-head  { padding-top: calc(var(--nav-total) + clamp(2.5rem, 7vw, 5rem)); }
main.lost   { padding-top: var(--nav-total); }
@media (max-width: 860px) { .hero { padding-top: calc(var(--nav-total) + 1.25rem); } }

/* — Nav hover: a glass pill that glides between links (clip-path, no layout) — */
@media (min-width: 861px) {
  .nav-links > li { position: relative; z-index: 1; }
  .nav-links .nav-hover {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    opacity: 0;
    pointer-events: none;
    transition: clip-path 0.38s var(--ease), opacity 0.25s;
  }
  .nav-links .nav-hover.is-on { opacity: 1; }
  .nav-links a { transition: color 0.25s; }
  .nav-links a:hover { color: #fff; }
}
@media (max-width: 860px) { .nav-hover { display: none; } }
.nav-links > li.nav-indicator, .nav-links > li.nav-hover { position: absolute; }
.nav-links > li.nav-indicator { z-index: 2; }

/* — Warp grid canvas (every page header) — */
.warp-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero .warp-canvas {
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 35%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 35%, transparent 80%);
}
.page-head .warp-canvas, .post-head .warp-canvas {
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 70% 10%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 85% at 70% 10%, #000 30%, transparent 78%);
}
.has-warp::before { opacity: 0; }

/* — Floating chips: now buttons with an info card — */
.chip-float { pointer-events: auto; padding: 0; }
.chip-float.chip-1 { top: 16%; left: -6%; }
.chip-float.chip-2 { top: 46%; right: -8%; left: auto; animation-delay: -2.3s; }
.chip-float.chip-3 { bottom: 14%; left: 2%; top: auto; animation-delay: -4.6s; }
.chip-float.is-open { animation-play-state: paused; z-index: 5; }
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.chip-float { transition: border-color 0.3s, box-shadow 0.3s; }
.chip-float:hover, .chip-float.is-open { border-color: rgba(196, 162, 255, 0.5); box-shadow: 0 12px 34px -12px rgba(124, 58, 237, 0.6); }
.chip-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 270px;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid rgba(196, 162, 255, 0.22);
  border-radius: 16px;
  background: rgba(16, 16, 27, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(124, 58, 237, 0.08);
  white-space: normal;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top left;
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
}
.chip-2 .chip-pop { left: auto; right: 0; transform-origin: top right; }
.chip-float.is-open .chip-pop { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s var(--ease), transform 0.3s var(--ease); }
.chip-pop strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--text); }
.chip-pop p { margin-top: 0.4rem; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.chip-pop a { display: inline-flex; align-items: center; min-height: 36px; margin-top: 0.4rem; font-size: 0.9rem; color: var(--link); text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 860px) {
  .chip-float.chip-1 { top: 10%; left: 2%; }
  .chip-float.chip-2 { top: auto; bottom: 10%; right: 2%; }
  .chip-float.chip-3 { display: none; }
  .chip-btn { min-height: 44px; }
  .chip-pop { width: min(270px, 78vw); }
  .chip-2 .chip-pop { top: auto; bottom: calc(100% + 10px); transform-origin: bottom right; }
}
@media (prefers-reduced-motion: reduce) { .chip-pop { transform: none; } }


/* 15. Solutions, reviews and latest blogs -------------------------------- */

/* — Solutions: browser-window frames that straighten as they scroll in — */
.work-list { perspective: 1400px; }
.work-media.frame {
  position: relative;
  display: block;
  padding-top: 34px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 40px 90px -45px rgba(124, 58, 237, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: rotateX(14deg) translateY(28px) scale(0.97);
  transform-origin: center bottom;
  opacity: 0.4;
  transition: transform 1s var(--ease), opacity 1s var(--ease), box-shadow 0.5s;
}
.work-item.is-live .work-media.frame { transform: none; opacity: 1; }
.work-item:hover .work-media.frame { box-shadow: 0 46px 100px -40px rgba(124, 58, 237, 0.75), 0 0 0 1px rgba(196, 162, 255, 0.25); }
.frame-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding-inline: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(12, 12, 20, 0.85);
  font-size: 0.78rem;
  color: var(--muted);
}
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c3c; }
.frame-bar i:nth-child(1) { background: #ff5f57; opacity: 0.75; }
.frame-bar i:nth-child(2) { background: #febc2e; opacity: 0.75; }
.frame-bar i:nth-child(3) { background: #28c840; opacity: 0.75; }
.frame-bar > span { margin-left: 10px; padding: 3px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); }
.work-media.frame img { border-radius: 0; }

/* Live function graph (reverse engineering) */
.cfg { display: block; width: 100%; height: auto; aspect-ratio: 640 / 315; background: radial-gradient(circle at 50% 40%, rgba(124, 58, 237, 0.12), transparent 70%), #0b0b14; }
.cfg .edges path { fill: none; stroke: rgba(196, 162, 255, 0.55); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cfg .nodes g { opacity: 0; transition: opacity 0.5s var(--ease); transition-delay: calc(var(--i) * 0.28s + 0.2s); }
.cfg rect { fill: #161624; stroke: rgba(255, 255, 255, 0.14); }
.cfg text { fill: #d9d8e6; font-family: var(--font-body); font-size: 14px; text-anchor: middle; }
.cfg .flag rect { stroke: #f0b86e; fill: rgba(240, 184, 110, 0.08); }
.cfg .flag text { fill: #f0b86e; }
.work-item.is-live .cfg .nodes g { opacity: 1; }
.work-item.is-live .cfg .edges path { animation: draw 0.9s var(--ease) forwards; }
.work-item.is-live .cfg .edges path:nth-child(1) { animation-delay: 0.35s; }
.work-item.is-live .cfg .edges path:nth-child(2), .work-item.is-live .cfg .edges path:nth-child(3) { animation-delay: 0.7s; }
.work-item.is-live .cfg .edges path:nth-child(4), .work-item.is-live .cfg .edges path:nth-child(5) { animation-delay: 1.15s; }
.work-item.is-live .cfg .flag rect { animation: flag-pulse 2.6s ease-in-out 1.6s infinite; }
@keyframes flag-pulse { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.35; } }

.work-tag {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(196, 162, 255, 0.25);
  border-radius: 999px;
  background: rgba(155, 109, 255, 0.08);
}
.work-text h3 { font-size: var(--step-3); }
.work-feats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; list-style: none; padding: 0; }
.work-feats li {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  color: var(--text);
}

/* — Client reviews: glass quote cards — */
.reviews-layout { gap: 1rem; }
.quote {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.quote::before {                      /* big soft quote mark */
  content: "\201C";
  position: absolute;
  right: 0.9rem; top: -1.2rem;
  z-index: -1;
  font-family: Georgia, serif;
  font-size: 9rem;
  line-height: 1;
  background: linear-gradient(180deg, rgba(196, 162, 255, 0.35), rgba(196, 162, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.quote:hover { border-color: rgba(196, 162, 255, 0.3); transform: translateY(-3px); }
.quote--featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(22, 20, 36, 0.96), rgba(14, 14, 23, 0.96)) padding-box,
    linear-gradient(140deg, rgba(196, 162, 255, 0.55), rgba(124, 58, 237, 0.15) 45%, rgba(255, 255, 255, 0.06)) border-box;
  box-shadow: 0 40px 90px -50px rgba(124, 58, 237, 0.7);
}
.quote--featured::after {
  content: "";
  position: absolute;
  left: -20%; bottom: -40%;
  width: 70%; height: 80%;
  z-index: -1;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 70%);
}
.quote-side .quote { padding-top: clamp(1.4rem, 3vw, 2rem); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.quote-side .quote:first-child { padding-top: clamp(1.4rem, 3vw, 2rem); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.quote-side { gap: 1rem; }
.avatar {
  background: linear-gradient(140deg, #7c3aed, #c4a2ff);
  border: 0;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

/* — Latest blogs: framed cards with a topic pill on the image — */
.post-card {
  padding: 0.75rem 0.75rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: border-color 0.35s, background-color 0.35s;
}
.post-card:hover { border-color: rgba(196, 162, 255, 0.3); }
.post-card img { border-radius: 14px; }
.post-card > :not(img) { padding-inline: 0.4rem; }
.post-card .post-topic {
  align-self: flex-start;
  margin-top: 0.9rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(155, 109, 255, 0.1);
  border: 1px solid rgba(196, 162, 255, 0.22);
  margin-left: 0.4rem;
}
.more-posts { border-top: 0; gap: 0.6rem 1rem; }
.more-posts a {
  position: relative;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s, border-color 0.3s;
}
.more-posts a::before {               /* highlight that sweeps in on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.18), rgba(124, 58, 237, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.more-posts a:hover { border-color: rgba(196, 162, 255, 0.28); }
.more-posts a:hover::before { transform: scaleX(1); }
.more-posts a span {
  align-self: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

/* Reduce motion: frames appear straight, nothing lifts */
@media (prefers-reduced-motion: reduce) {
  .work-media.frame { transform: none; }
  .quote:hover { transform: none; }
}

/* About cards: icon badge + cursor spotlight on the capability cards */
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: rgba(155, 109, 255, 0.12);
  border: 1px solid rgba(196, 162, 255, 0.22);
  color: var(--link);
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.card-icon svg { width: 20px; height: 20px; }
.points > *:hover .card-icon, .capabilities li:hover .card-icon { transform: translateY(-2px) rotate(-6deg); background: rgba(155, 109, 255, 0.2); }
.capabilities li { position: relative; overflow: hidden; isolation: isolate; }
.capabilities li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(155, 109, 255, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.capabilities li:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .points > *:hover .card-icon, .capabilities li:hover .card-icon { transform: none; }
}


/* 16. Video stage, review spotlight, blog magazine ----------------------- */

/* — See what we're about — */
.showcase .wrap { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.topics-label { margin-top: 1.5rem !important; font-size: var(--step--1); font-weight: 600; color: var(--text) !important; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; list-style: none; padding: 0; }
.topic-chips li {
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.3s, background-color 0.3s;
}
.topic-chips li:hover { border-color: rgba(196, 162, 255, 0.45); background: rgba(155, 109, 255, 0.1); }
.ig-btn { margin-top: 1.75rem; }
.ig-btn svg { width: 18px; height: 18px; }

/* The stage: a frame with a slowly travelling light along its border */
.video-stage {
  position: relative;
  padding: 2px;                        /* border thickness */
  border-radius: 22px;
  isolation: isolate;
  overflow: hidden;
  transform: rotateX(10deg) translateY(24px) scale(0.97);
  transform-origin: center bottom;
  transition: transform 1s var(--ease), box-shadow 0.6s;
  box-shadow: 0 50px 110px -50px rgba(124, 58, 237, 0.7);
}
.showcase .wrap { perspective: 1400px; }
.video-stage.is-live { transform: none; }
.video-stage::before {                 /* rotating light (a conic gradient spun with transform) */
  content: "";
  position: absolute;
  inset: -60%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(196, 162, 255, 0.9) 40deg, rgba(124, 58, 237, 0.5) 80deg, transparent 140deg, transparent 360deg);
  animation: border-spin 6s linear infinite;
}
.video-stage::after {                  /* the resting border */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.08);
}
@keyframes border-spin { to { transform: rotate(1turn); } }
.video-stage .video-frame { border: 0; border-radius: 20px; }
.video-frame img { transition: transform 0.8s var(--ease), opacity 0.6s var(--ease); }
.video-stage:hover .video-frame img { transform: scale(1.04); }

.presenter {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(12, 12, 20, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.85rem;
  line-height: 1.2;
  pointer-events: none;
}
.presenter-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: url("/video-poster-640.webp") center / cover no-repeat;
  box-shadow: 0 0 0 2px rgba(196, 162, 255, 0.6);
}
.presenter strong { display: block; color: #fff; font-weight: 600; }
.presenter small { display: block; color: rgba(236, 235, 244, 0.75); font-size: 0.75rem; }

/* Play button with a soft pulsing ring */
.video-play .play-icon { position: relative; width: 84px; height: 84px; box-shadow: 0 12px 40px -8px rgba(124, 58, 237, 0.9); }
.video-play .play-icon::before, .video-play .play-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(196, 162, 255, 0.7);
  animation: play-ring 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.video-play .play-icon::after { animation-delay: 1.3s; }
@keyframes play-ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.8); opacity: 0; } }
.video-play .video-caption {
  left: 1rem; bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.45rem 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(12, 12, 20, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.85rem;
}
.video-play .video-caption b { padding: 0.15rem 0.55rem; border-radius: 999px; background: rgba(124, 58, 237, 0.85); color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .showcase .wrap { grid-template-columns: 1fr; }
  .presenter { top: 0.6rem; left: 0.6rem; font-size: 0.78rem; }
  .video-play .play-icon { width: 68px; height: 68px; }
}

/* — Client reviews: spotlight — */
.reviews-v2 {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.reviews-side .section-head { margin-bottom: 1.75rem; }
.review-tabs { display: grid; gap: 0.6rem; }
.review-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 64px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s, background-color 0.3s, transform 0.25s var(--ease);
}
.review-tab:hover { border-color: rgba(196, 162, 255, 0.28); }
.review-tab[aria-selected="true"] { border-color: rgba(196, 162, 255, 0.4); background: rgba(155, 109, 255, 0.1); }
.review-tab:active { transform: scale(0.99); }
.review-tab .avatar { opacity: 0.55; transition: opacity 0.3s, box-shadow 0.3s; }
.review-tab[aria-selected="true"] .avatar { opacity: 1; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.35), 0 0 18px rgba(155, 109, 255, 0.5); }
.review-tab-text .who { display: block; font-weight: 600; }
.review-tab-text .role { display: block; color: var(--muted); font-size: var(--step--1); }
/* progress line: fills while a review is shown, then the next one starts */
.review-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.04); }
.review-timer i { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #c4a2ff); transform: scaleX(0); transform-origin: left; }
.review-tab[aria-selected="true"] .review-timer i { animation: review-timer var(--review-time, 7s) linear forwards; }
.reviews-v2.is-paused .review-tab[aria-selected="true"] .review-timer i { animation-play-state: paused; }
.reviews-v2.no-auto .review-timer { display: none; }
@keyframes review-timer { to { transform: scaleX(1); } }

.review-stage { display: grid; }
.review-panel {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 24px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(22, 20, 36, 0.97), rgba(13, 13, 22, 0.97)) padding-box,
    linear-gradient(140deg, rgba(196, 162, 255, 0.55), rgba(124, 58, 237, 0.12) 45%, rgba(255, 255, 255, 0.06)) border-box;
  box-shadow: 0 50px 110px -60px rgba(124, 58, 237, 0.75);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0s 0.55s;
}
.review-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.review-panel::before {
  content: "\201C";
  position: absolute;
  right: 1.25rem; top: -1.6rem;
  z-index: -1;
  font-family: Georgia, serif;
  font-size: 11rem;
  line-height: 1;
  background: linear-gradient(180deg, rgba(196, 162, 255, 0.4), rgba(196, 162, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.review-panel::after {
  content: "";
  position: absolute;
  left: -15%; bottom: -45%;
  width: 70%; height: 90%;
  z-index: -1;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.26), transparent 70%);
}
.review-tag {
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 162, 255, 0.3);
  background: rgba(155, 109, 255, 0.12);
  color: var(--link);
  font-size: var(--step--1);
  font-weight: 600;
}
.review-panel blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.3vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}
.review-panel figcaption { display: flex; align-items: center; gap: 0.85rem; }
.review-panel .who { display: block; font-weight: 600; }
.review-panel .role { display: block; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 860px) {
  .reviews-v2 { grid-template-columns: 1fr; }
  .review-tabs { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.5rem; }
  .review-tab { flex-direction: column; justify-content: center; gap: 0.4rem; padding: 0.7rem 0.4rem; text-align: center; }
  .review-tab-text .role { display: none; }
  .review-tab-text .who { font-size: 0.85rem; }
}

/* — Latest blogs: magazine layout — */
.blog-mag { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; }
.post-feature, .post-mini, .rail-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.35s, box-shadow 0.4s;
}
.post-feature:hover, .post-mini:hover, .rail-card:hover { border-color: rgba(196, 162, 255, 0.32); box-shadow: 0 30px 70px -40px rgba(124, 58, 237, 0.6); }
.post-img { overflow: hidden; border-radius: 16px; background: var(--surface); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.6s var(--ease); }
.post-feature:hover .post-img img, .post-mini:hover .post-img img, .rail-card:hover .post-img img { transform: scale(1.05); }
/* The heading link covers the whole card, so the card is one big click target */
.post-feature h3 a::after, .post-mini h3 a::after, .rail-card > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-feature h3 a, .post-mini h3 a, .rail-card > a { text-decoration: none; }
.post-feature:hover h3 a, .post-mini:hover h3 a, .rail-card:hover > a, .post-feature h3 a:focus-visible, .post-mini h3 a:focus-visible, .rail-card > a:focus-visible {
  text-decoration: underline; text-decoration-color: var(--link); text-underline-offset: 0.2em;
}
.post-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: var(--step--1); color: var(--muted); }
.post-meta-line .pill {
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 162, 255, 0.24);
  background: rgba(155, 109, 255, 0.1);
  color: var(--link);
  font-weight: 600;
}

.post-feature { display: flex; flex-direction: column; padding: 0.75rem; }
.post-feature .post-img { aspect-ratio: 16 / 9; }
.post-feature .post-body { padding: 1.25rem 0.75rem 0.75rem; }
.post-feature h3 { margin-top: 0.8rem; font-size: var(--step-2); line-height: 1.2; }
.post-feature p:not(.post-meta-line) { margin-top: 0.7rem; color: var(--muted); }
.read-more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.1rem; color: var(--link); font-weight: 600; }
.read-more::after { content: ""; width: 18px; height: 1.5px; background: currentColor; transform-origin: left; transition: transform 0.35s var(--ease); }
.post-feature:hover .read-more::after { transform: scaleX(1.8); }

.post-stack { display: grid; gap: 1rem; }
.post-mini { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.1rem; align-items: center; padding: 0.75rem; }
.post-mini .post-img { aspect-ratio: 4 / 3; }
.post-mini h3 { margin-top: 0.55rem; font-size: var(--step-1); line-height: 1.25; }
.post-mini p:not(.post-meta-line) { margin-top: 0.45rem; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

.rail-head { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.rail-title { font-size: var(--step-1); }
.rail-buttons { display: flex; gap: 0.5rem; }
.rail-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, opacity 0.25s, transform 0.2s var(--ease);
}
.rail-btn svg { width: 18px; height: 18px; }
.rail-btn:hover { border-color: rgba(196, 162, 255, 0.5); background: rgba(155, 109, 255, 0.12); }
.rail-btn:active { transform: scale(0.94); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
.post-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, calc((100% - 3rem) / 4));
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  list-style: none;
  padding: 0.25rem 0.25rem 1rem;
  margin: 0 -0.25rem;
  scrollbar-width: none;
}
.post-rail::-webkit-scrollbar { display: none; }
.rail-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.75rem; padding: 0.6rem 0.6rem 1rem; }
.rail-card .post-img { aspect-ratio: 16 / 10; }
.rail-card .post-meta-line, .rail-card > a { padding-inline: 0.4rem; }
.rail-card > a { font-family: var(--font-display); font-weight: 600; line-height: 1.3; }
@media (max-width: 900px) {
  .blog-mag { grid-template-columns: 1fr; }
  .post-rail { grid-auto-columns: 78%; }
}
@media (max-width: 520px) {
  .post-mini { grid-template-columns: 1fr; }
  .post-mini .post-img { aspect-ratio: 16 / 9; }
}

/* Reduce motion: no spinning light, rings or zooms; frames appear straight */
@media (prefers-reduced-motion: reduce) {
  .video-stage { transform: none; }
  .video-stage::before { animation: none; }
  .video-play .play-icon::before, .video-play .play-icon::after { animation: none; opacity: 0; }
  .video-stage:hover .video-frame img, .post-feature:hover .post-img img, .post-mini:hover .post-img img, .rail-card:hover .post-img img { transform: none; }
  .review-panel { transform: none; }
}
