/* =========================================================
   Clone Labs — site styles (v2)
   Brand: indigo #2C3479 (team photo) + flask violet #661AFF (logo)
   Concept: "the lab" — bubbles, flows, glowing glass, living illustrations
   ========================================================= */
:root {
  --indigo: #2C3479;
  --indigo-2: #3A44A0;
  --night: #141742;
  --night-2: #1C2058;
  --violet: #661AFF;
  --violet-hover: #5512E0;
  --violet-soft: #9B7BFF;
  --lilac: #DCD3FF;
  --lilac-2: #F3F0FF;
  --mist: #F2F2F8;
  --line: #E2E2EE;
  --ink: #1A1C33;
  --graphite: #4A4D63;
  --steel: #8B8EA6;
  --white: #FFFFFF;
  --ok: #1FAE7A;

  --f-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-logo: "Quicksand", "Figtree", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--graphite);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
/* Never let anything widen the page sideways (stops the white strip on phones) */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--lilac); color: var(--night); }
:focus-visible { outline: 3px solid var(--violet-soft); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); margin: 0; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; }
h4 { font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(1.06rem, 1.45vw, 1.22rem); line-height: 1.6; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--violet); margin-bottom: 16px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(102, 26, 255, .14); }
.on-dark .kicker { color: var(--violet-soft); }
.grad-text { background: linear-gradient(100deg, #B9A2FF, #8E6BFF 40%, #C7B6FF); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--violet); color: var(--white); box-shadow: 0 12px 30px -12px rgba(102, 26, 255, .8); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover { background: var(--violet-hover); transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(102, 26, 255, .9); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.on-dark .btn-outline, .is-dark-btn { background: rgba(255,255,255,.04); color: var(--white); border-color: rgba(255, 255, 255, .28); }
.on-dark .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn svg { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--violet); text-decoration: none; }
.text-link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
.text-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease); }
.text-link:hover span { background-size: 100% 1.5px; }
.on-dark .text-link { color: var(--lilac); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1; }
.logo-word { display: inline-block; white-space: nowrap; font-family: var(--f-logo); font-weight: 700; font-size: 34px; letter-spacing: -0.02em; }
.logo-flask { display: inline-block; vertical-align: baseline; width: .6em; height: .95em; margin: 0 .02em; overflow: visible; }
.logo-flask .glass { fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.logo-flask .liquid, .logo-flask .bubble { fill: var(--violet); }
.logo-sub { font-family: var(--f-logo); font-weight: 600; font-size: 13px; letter-spacing: .32em; margin-top: 2px; padding-left: .32em; color: var(--steel); }
.logo.light { color: var(--white); }
.logo.light .logo-sub { color: var(--lilac); }
.logo.light .liquid, .logo.light .bubble { fill: var(--violet-soft); }
.logo-flask .bubble { transform-box: fill-box; transform-origin: center; }
.js .logo-flask .bubble { animation: bubble-in 1.2s var(--ease) both; }
.js .logo-flask .b2 { animation-delay: .15s; }
.js .logo-flask .b3 { animation-delay: .3s; }
@keyframes bubble-in { 0% { opacity: 0; transform: translateY(14px) scale(.4); } 100% { opacity: 1; transform: none; } }
.logo:hover .bubble { animation: bubble-bob 1.4s ease-in-out infinite; }
.logo:hover .b2 { animation-delay: .2s; }
.logo:hover .b3 { animation-delay: .4s; }
@keyframes bubble-bob { 50% { transform: translateY(-4px); } }
.logo .liquid { transform-box: fill-box; transform-origin: bottom; }
.logo:hover .liquid { animation: slosh 1.2s ease-in-out infinite; }
@keyframes slosh { 50% { transform: scaleY(1.12); } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--white); transition: background .3s var(--ease), box-shadow .3s, color .3s; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; transition: height .3s var(--ease); }
.site-header .logo { color: var(--white); }
.site-header .logo-word { font-size: 30px; }
.site-header .logo-sub { font-size: 11.5px; color: var(--lilac); }
.site-header .liquid, .site-header .bubble { fill: var(--violet-soft); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { position: relative; text-decoration: none; font-weight: 500; font-size: .98rem; padding: 10px 14px; border-radius: 999px; color: inherit; opacity: .84; transition: opacity .2s, background .2s; }
.nav a:not(.btn):hover { opacity: 1; background: rgba(155, 123, 255, .14); }
.nav a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--violet-soft); }
.nav .btn { min-height: 44px; padding: 0 20px; margin-left: 10px; font-size: .95rem; }
.site-header.scrolled { background: rgba(255, 255, 255, .86); color: var(--ink); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(20,23,66,.3); }
.site-header.scrolled .logo { color: var(--ink); }
.site-header.scrolled .logo-sub { color: var(--steel); }
.site-header.scrolled .liquid, .site-header.scrolled .bubble { fill: var(--violet); }
.site-header.scrolled .wrap { height: 70px; }
.scroll-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--violet), var(--violet-soft)); opacity: 0; transition: opacity .3s; }
.site-header.scrolled .scroll-progress { opacity: 1; }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; opacity: .9; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 70px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 2px; background: var(--white); color: var(--ink); padding: 12px; border-radius: var(--r-md); box-shadow: 0 30px 60px -20px rgba(20, 23, 66, .45); opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; }
  .nav a[aria-current="page"] { background: var(--mist); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 8px 0 0; min-height: 52px; }
  .site-header .wrap { height: 70px; }
}

/* ---------- Sections & surfaces ---------- */
section { position: relative; }
.section { padding: clamp(76px, 10vw, 136px) 0; }
.section-tight { padding: clamp(56px, 7vw, 90px) 0; }
.bg-mist { background: var(--mist); }
.bg-lilac { background: radial-gradient(900px 400px at 100% 0%, rgba(155,123,255,.18), transparent 60%), linear-gradient(180deg, #F6F3FF, #EFEEFA); }
.dots::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(44,52,121,.12) 1px, transparent 1.3px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.dots > .wrap { position: relative; }
.on-dark { background: radial-gradient(900px 500px at 90% 0%, rgba(102,26,255,.28), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(58,68,160,.55), transparent 65%), var(--night); color: rgba(255, 255, 255, .74); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark .lead { color: rgba(255, 255, 255, .76); }
.on-dark.grid-bg::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
.on-dark > .wrap { position: relative; }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head p { margin: 0; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Rising bubbles (decorative lab motif) */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bubbles span { position: absolute; bottom: -30px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(155,123,255,.35) 45%, rgba(102,26,255,.15)); border: 1px solid rgba(255,255,255,.18); animation: rise linear infinite; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(14px, -50vh); } 100% { transform: translate(-6px, -100vh); opacity: 0; } }

/* Glow that follows the cursor across a card */
.glow { position: relative; isolation: isolate; }
.glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(155,123,255,.22), transparent 60%); }
.glow:hover::after { opacity: 1; }

/* ---------- Hero ---------- */
.hero { padding: clamp(130px, 15vw, 172px) 0 clamp(70px, 9vw, 110px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px); background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%); }
.hero .wrap { position: relative; z-index: 1; }
.hero .lead { margin-top: 24px; }
.hero .btn-row { margin-top: 34px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.crumbs { display: flex; gap: 8px; font-size: .92rem; margin-bottom: 22px; color: rgba(255,255,255,.6); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); }

/* Home hero */
.home-hero h1 { max-width: 13.5ch; }
.rotator { display: block; min-height: 2.04em; }
.rotator .txt { background: linear-gradient(100deg, #C2AEFF, #8E6BFF 50%, #B59BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rotator .cursor { display: inline-block; width: .07em; height: .82em; background: var(--violet-soft); margin-left: .05em; vertical-align: -0.06em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 34px; font-size: .95rem; color: rgba(255,255,255,.62); }
.hero-note .faces { display: flex; flex: none; }
.hero-note .faces img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--night); margin-left: -9px; object-fit: cover; }
.hero-note .faces img:first-child { margin-left: 0; }

/* Workflow bench */
.bench { position: relative; width: 100%; aspect-ratio: 520 / 470; border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 50px 90px -40px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.1); backdrop-filter: blur(6px); transform: perspective(1200px) rotateY(var(--ry, -6deg)) rotateX(var(--rx, 3deg)); transition: transform .5s var(--ease); }
.bench-bar { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: rgba(255,255,255,.55); }
.bench-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.bench-bar b { font-weight: 500; margin-left: 8px; color: rgba(255,255,255,.78); }
.bench-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #7CF0B5; }
.bench-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: .35; } }
.bench svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.wires path { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.6; stroke-dasharray: 4 6; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.wires .spark { fill: var(--violet-soft); filter: drop-shadow(0 0 6px var(--violet-soft)); }
.node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; width: 38%; padding: 10px 12px; background: rgba(22, 25, 70, .94); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; color: var(--white); transition: border-color .35s, box-shadow .35s, transform .35s var(--ease); }
.node .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .35s; }
.node .ic svg { width: 18px; height: 18px; }
.node small { display: block; font-size: .7rem; color: rgba(255,255,255,.5); line-height: 1.2; }
.node span { display: block; font-size: .84rem; font-weight: 600; line-height: 1.25; }
.node.on { border-color: var(--violet-soft); box-shadow: 0 0 0 4px rgba(155,123,255,.15), 0 12px 30px -10px rgba(102,26,255,.7); transform: translate(-50%, -50%) scale(1.04); }
.node.on .ic { background: var(--violet); }
.node.ai .ic { background: linear-gradient(140deg, var(--violet), #A57BFF); }
.bench-foot { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; color: rgba(255,255,255,.55); }
.bench-foot strong { font-family: var(--f-display); font-size: 1.5rem; color: var(--white); font-weight: 700; letter-spacing: -0.02em; margin-right: 6px; }
@media (max-width: 980px) { .bench { transform: none; } }
@media (max-width: 520px) {
  .node { width: 44%; padding: 8px; gap: 7px; }
  .node .ic { width: 28px; height: 28px; border-radius: 8px; }
  .node small { font-size: .62rem; }
  .node span { font-size: .72rem; }
  .bench { aspect-ratio: 520 / 560; }
}

/* ---------- Marquee ---------- */
.trusted { padding: 44px 0 48px; border-bottom: 1px solid var(--line); background: var(--white); }
.trusted p { text-align: center; margin: 0 auto 24px; color: var(--steel); font-size: .98rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.client { display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); white-space: nowrap; font-weight: 600; color: var(--ink); transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.client:hover { border-color: var(--lilac); transform: translateY(-3px); box-shadow: 0 12px 24px -16px rgba(44,52,121,.5); }
.client img, .client .mono { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.client .mono { display: grid; place-items: center; background: var(--lilac-2); color: var(--indigo); font-family: var(--f-display); font-weight: 700; font-size: .9rem; }

/* ---------- Illustrations ---------- */
.illus { width: 100%; height: auto; overflow: visible;
  --il-card: #FFFFFF; --il-line: #DCDAEE; --il-line-f: #E6E3F6; --il-floor: rgba(44,52,121,.08);
  --il-ink: #2C3479; --il-dark: #23264F; --il-skin: #E9C3A9; --il-hair: #262842; --il-grey: #CACBDA; --il-grey-d: #9FA2BA; --il-ico: #2C3479; --il-wire: #C9C3EC; }
.on-dark .illus, .illus.dark { --il-card: rgba(255,255,255,.08); --il-line: rgba(255,255,255,.18); --il-line-f: rgba(255,255,255,.2); --il-floor: rgba(0,0,0,.25); --il-ink: #4A55B8; --il-dark: #0D0F30; --il-grey: #555A8C; --il-grey-d: #6E73A8; --il-ico: #FFFFFF; --il-wire: rgba(155,123,255,.45); }
.illus .il-floor { fill: var(--il-floor); }
.illus .il-card { fill: var(--il-card); stroke: var(--il-line); stroke-width: 1.5; }
.illus .il-lilac { fill: var(--lilac); }
.illus .il-line-f { fill: var(--il-line-f); }
.illus .il-violet { fill: var(--violet); }
.illus .il-soft { fill: var(--violet-soft); }
.illus .il-violet-d { stroke: #4E10CC; }
.illus .il-violet-stroke { stroke: var(--violet); }
.illus .il-ink { fill: var(--il-ink); }
.illus .il-ink-stroke { stroke: var(--il-ink); }
.illus .il-dark { fill: var(--il-dark); }
.illus .il-skin { fill: var(--il-skin); }
.illus .il-hair { fill: var(--il-hair); }
.illus .il-glass { fill: none; stroke: var(--il-hair); stroke-width: 1.6; }
.illus .il-grey { fill: var(--il-grey); }
.illus .il-grey-d { fill: var(--il-grey-d); }
.illus .il-tick { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.illus .il-ok { fill: var(--ok); }
.illus .p .il-shirt { fill: currentColor; }
.illus .p .il-head-back { fill: var(--il-hair); }
.illus .p.c1 { color: var(--il-ink); }
.illus .p.c2 { color: var(--violet); }
.illus .p.c3 { color: var(--violet-soft); }
.illus .p.c4 { color: #7F86C4; }
.illus .il-shirt-c3 { stroke: var(--violet-soft); }
.illus .il-bar { fill: var(--violet-soft); transform-box: fill-box; transform-origin: bottom; animation: bar 3.6s var(--ease) infinite; }
.illus .il-bar.hot { fill: var(--violet); }
.illus .b2 { animation-delay: .2s; } .illus .b3 { animation-delay: .4s; } .illus .b4 { animation-delay: .6s; }
@keyframes bar { 0%, 100% { transform: scaleY(.55); } 40%, 70% { transform: scaleY(1); } }
.illus .il-trend { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; animation: draw 3.6s var(--ease) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 160; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -160; } }
.illus .il-spark, .illus .il-core-spark { fill: var(--violet-soft); transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
.illus .il-core-spark { fill: #fff; }
.illus .il-core-spark.sm, .illus .s2 { animation-delay: .8s; }
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .6; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }
.illus .il-arm { transform-origin: 126px 144px; animation: point 2.8s ease-in-out infinite alternate; }
@keyframes point { from { transform: rotate(4deg); } to { transform: rotate(-12deg); } }
.illus .il-nod { animation: nod 2.6s ease-in-out infinite; }
.illus .il-nod.n2 { animation-delay: .7s; } .illus .il-nod.n3 { animation-delay: 1.4s; }
@keyframes nod { 50% { translate: 0 2.5px; } }
.illus .il-hand { transform-box: fill-box; transform-origin: bottom left; animation: hand 6s ease-in-out infinite; }
@keyframes hand { 0%, 45%, 100% { opacity: 0; transform: rotate(25deg); } 55%, 85% { opacity: 1; transform: rotate(0); } }
.illus .il-pop { fill: var(--violet-soft); animation: pop-up 3s ease-out infinite; }
.illus .il-pop.p2 { animation-delay: 1.2s; }
@keyframes pop-up { 0% { opacity: 0; translate: 0 10px; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 -24px; } }
.illus .il-pops { opacity: .7; transition: opacity .3s; }
.illus .il-dot { fill: var(--violet-soft); animation: typing 1.2s ease-in-out infinite; }
.illus .d2 { animation-delay: .15s; } .illus .d3 { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { translate: 0 0; opacity: .5; } 30% { translate: 0 -5px; opacity: 1; } }
.illus .il-bubble { animation: float 5s ease-in-out infinite; }
.illus .il-bubble.br { animation-delay: -2.5s; }
@keyframes float { 50% { translate: 0 -6px; } }
.illus .il-check { transform-box: fill-box; transform-origin: center; animation: check 6s var(--spring) infinite; }
.illus .il-check.c2 { animation-delay: .5s; } .illus .il-check.c3 { animation-delay: 1s; }
@keyframes check { 0%, 8% { transform: scale(0); } 16%, 88% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
.illus .il-idea { animation: float 3.5s ease-in-out infinite; }
.illus .il-idea .il-soft { filter: drop-shadow(0 0 8px rgba(155,123,255,.9)); animation: glow-b 3.5s ease-in-out infinite; }
@keyframes glow-b { 50% { fill: #C7B4FF; } }
.illus .il-ray { stroke: var(--violet-soft); stroke-width: 3; stroke-linecap: round; fill: none; animation: rays 3.5s ease-in-out infinite; }
@keyframes rays { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.illus .il-gesture { transform-origin: 294px 148px; animation: gesture 2.2s ease-in-out infinite alternate; }
@keyframes gesture { from { transform: rotate(-6deg); } to { transform: rotate(8deg); } }
.illus .il-steam { stroke: var(--il-grey-d); stroke-width: 2; fill: none; stroke-linecap: round; stroke-dasharray: 14; animation: steam 2.4s ease-in-out infinite; opacity: .7; }
@keyframes steam { 0% { stroke-dashoffset: 14; opacity: 0; } 50% { opacity: .8; } 100% { stroke-dashoffset: -14; opacity: 0; } }
.illus .il-wire { fill: none; stroke: var(--il-wire); stroke-width: 2.4; stroke-dasharray: 6 7; animation: dash 1.2s linear infinite; }
.illus .il-pulse { fill: var(--violet); filter: drop-shadow(0 0 5px rgba(102,26,255,.8)); }
.illus .il-ico { fill: none; stroke: var(--il-ico); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.illus .il-ring { fill: none; stroke: var(--violet-soft); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.8s ease-out infinite; }
.illus .il-ring.r2 { animation-delay: 1.4s; }
@keyframes ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.illus .il-tile { animation: float 4s ease-in-out infinite; }
.illus .t2 { animation-delay: -1s; } .illus .t3 { animation-delay: -2s; } .illus .t4 { animation-delay: -3s; }
.illus .il-done, .illus .il-task .il-ok, .illus .il-task .il-tick { transform-box: fill-box; transform-origin: center; animation: check 3.2s var(--spring) infinite; }
.illus .il-done.d1 { animation-delay: 1.2s; } .illus .il-done.d2 { animation-delay: 1.5s; }
.illus .k1 .il-ok, .illus .k1 .il-tick { animation-delay: 1.6s; }
.illus .k2 .il-ok, .illus .k2 .il-tick { animation-delay: 1.9s; }
.illus .k3 .il-ok, .illus .k3 .il-tick { animation-delay: 2.2s; }

/* ---------- Service cards (home) ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.svc-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.svc-card .art { position: relative; padding: 26px 22px 6px; background: linear-gradient(180deg, var(--lilac-2), #FBFAFF); border-bottom: 1px solid var(--line); overflow: hidden; transition: background .4s; }
.svc-card .art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(44,52,121,.1) 1px, transparent 1.3px); background-size: 18px 18px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.svc-card .art .illus { position: relative; transition: transform .6s var(--ease); }
.svc-card .tag svg, .case-badge svg, .kicker svg { width: 16px; height: 16px; flex: none; }
.svc-card .tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--violet); background: rgba(102,26,255,.08); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; transition: background .3s, color .3s; }
.svc-card .body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { font-size: clamp(1.45rem, 2.1vw, 1.75rem); margin-bottom: 12px; transition: color .3s; }
.svc-card p { font-size: .99rem; margin-bottom: 18px; }
.svc-card ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.svc-card li { display: flex; gap: 10px; align-items: baseline; color: var(--ink); font-size: .97rem; }
.svc-card li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); transform: translateY(-2px); }
.svc-card .text-link { margin-top: auto; }
.svc-card:hover { transform: translateY(-8px); border-color: var(--violet-soft); box-shadow: 0 34px 60px -30px rgba(102,26,255,.55); }
.svc-card:hover .art { background: linear-gradient(180deg, #EAE3FF, #F7F4FF); }
.svc-card:hover .art .illus { transform: scale(1.05); }
.svc-card:hover .illus .il-pops { opacity: 1; }
.svc-card:hover h3 { color: var(--violet); }
.svc-card:hover .tag { background: var(--violet); color: var(--white); }
.svc-card:hover .text-link span { background-size: 100% 1.5px; }
.svc-card:hover .text-link svg { transform: translateX(4px); }
@media (max-width: 980px) {
  .svc-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82vw, 380px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
  .svc-cards::-webkit-scrollbar { display: none; }
  .svc-card { scroll-snap-align: start; }
  .swipe-hint { display: block !important; }
}
.swipe-hint { display: none; text-align: center; font-size: .88rem; color: var(--steel); margin-top: 4px; }

/* ---------- Stats ---------- */
.stats { overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.people-field canvas { width: 100%; height: auto; aspect-ratio: 50 / 30; display: block; }
.people-legend { display: flex; justify-content: space-between; margin-top: 14px; font-size: .88rem; color: rgba(255,255,255,.6); }
.big-stat .num { font-family: var(--f-display); font-weight: 800; color: var(--white); font-size: clamp(4.5rem, 11vw, 8.5rem); line-height: .9; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.big-stat .num sup { font-size: .45em; vertical-align: .9em; color: var(--violet-soft); margin-left: .04em; }
.big-stat .lbl { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--white); margin-top: 16px; max-width: 22ch; line-height: 1.35; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(56px, 7vw, 84px); }
.mini-stat { padding: 28px; border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.mini-stat:hover { background: rgba(255,255,255,.09); border-color: rgba(155,123,255,.5); transform: translateY(-4px); }
.mini-stat .num { font-family: var(--f-display); font-weight: 700; color: var(--white); font-size: clamp(2.8rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.mini-stat .num sup { font-size: .5em; vertical-align: .75em; color: var(--violet-soft); }
.mini-stat .num em { font-style: normal; font-size: .36em; letter-spacing: -0.01em; font-weight: 600; color: var(--lilac); margin-left: .25em; }
.mini-stat p { margin: 12px 0 0; color: rgba(255,255,255,.72); }
.mini-viz { margin-top: 22px; height: 36px; display: flex; align-items: flex-end; gap: 4px; }
.mini-viz i { flex: 1; background: rgba(255,255,255,.14); border-radius: 3px; height: 100%; transition: background .4s; }
.mini-viz i.lit { background: var(--violet-soft); }
.years { display: flex; justify-content: space-between; align-items: center; position: relative; margin-top: 22px; height: 36px; }
.years::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: rgba(255,255,255,.16); }
.years::after { content: ""; position: absolute; left: 6px; top: 50%; height: 2px; width: var(--p, 0%); max-width: calc(100% - 12px); background: var(--violet-soft); transition: width 1.6s var(--ease); }
.years span { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--night); border: 2px solid rgba(255,255,255,.35); }
.years span b { white-space: nowrap; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 500; color: rgba(255,255,255,.55); }
.years span.lit { border-color: var(--violet-soft); background: var(--violet-soft); }
.clock { margin-top: 22px; display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: .85rem; color: rgba(255,255,255,.62); }
.clock svg { flex: none; width: 36px; height: 36px; transform: rotate(-90deg); }
.clock circle { fill: none; stroke-width: 5; }
.clock .track { stroke: rgba(255,255,255,.16); }
.clock .fill { stroke: var(--violet-soft); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s var(--ease); }
@media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr; } .mini-stats { grid-template-columns: 1fr; } }

/* ---------- Training in action (photos + orgs) ---------- */
.action { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.orgs { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.orgs li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 16px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line); border-radius: 14px; transition: background .25s, transform .3s var(--ease); }
.orgs li:hover { background: var(--lilac-2); transform: translateX(6px); }
.orgs .oi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--indigo); transition: background .25s, color .25s; }
.orgs li:hover .oi { background: var(--violet); color: var(--white); border-color: var(--violet); }
.orgs .oi svg { width: 20px; height: 20px; }
.orgs b { display: block; color: var(--ink); font-weight: 600; line-height: 1.3; }
.orgs span { font-size: .93rem; }
.on-dark .orgs, .on-dark .orgs li { border-color: rgba(255,255,255,.12); }
.photo-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 84px; gap: 12px; }
.photo-mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: 18px; background: var(--mist); }
.photo-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.photo-mosaic figure:hover img { transform: scale(1.07); }
.photo-mosaic figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; color: var(--white); font-size: .82rem; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: rgba(20,23,66,.55); backdrop-filter: blur(6px); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); width: fit-content; max-width: calc(100% - 20px); }
.photo-mosaic figure:hover figcaption { opacity: 1; transform: none; }
.pm-a { grid-column: 1 / 5; grid-row: span 3; }
.pm-b { grid-column: 5 / 7; grid-row: span 3; }
.pm-c { grid-column: 1 / 3; grid-row: span 2; }
.pm-d { grid-column: 3 / 7; grid-row: span 2; }
@media (max-width: 980px) { .action { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .photo-mosaic { grid-auto-rows: 54px; gap: 8px; } }

/* ---------- Case study ---------- */
.case { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.case-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(155,123,255,.16); color: var(--lilac); font-weight: 600; font-size: .9rem; margin-bottom: 20px; }
.growth { margin-top: 32px; padding: 24px; border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.growth-nums { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.growth-nums .from { font-family: var(--f-display); font-size: 1.6rem; color: rgba(255,255,255,.55); font-weight: 600; }
.growth-nums .arrow { color: var(--violet-soft); }
.growth-nums .to { font-family: var(--f-display); font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; color: var(--white); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.growth-nums small { color: rgba(255,255,255,.65); font-size: .95rem; }
.growth svg { width: 100%; height: 90px; margin-top: 14px; overflow: visible; }
.growth .g-area { fill: url(#gGrad); opacity: 0; transition: opacity 1.2s .6s; }
.growth .g-line { fill: none; stroke: var(--violet-soft); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s var(--ease); }
.growth .g-dot { fill: var(--white); stroke: var(--violet); stroke-width: 3; opacity: 0; transition: opacity .3s 1.8s; }
.growth.in .g-line { stroke-dashoffset: 0; }
.growth.in .g-area, .growth.in .g-dot { opacity: 1; }
.growth .g-ax { font-size: 11px; fill: rgba(255,255,255,.5); font-family: var(--f-body); }
.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease); }
.case-shot { position: relative; border-radius: var(--r-lg); padding: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 50px 90px -40px rgba(0,0,0,.8); }
.case-shot img { border-radius: 20px; width: 100%; }
.case-shot .float-chip { position: absolute; }
.float-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px; background: var(--white); color: var(--ink); font-weight: 600; font-size: .92rem; box-shadow: 0 20px 40px -18px rgba(20,23,66,.6); animation: float 5s ease-in-out infinite; white-space: nowrap; }
.float-chip .fi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--violet); color: var(--white); flex: none; }
.float-chip .fi svg { width: 17px; height: 17px; }
.float-chip small { display: block; font-weight: 500; font-size: .76rem; color: var(--steel); }
.float-chip.b { animation-delay: -2.5s; }
@media (max-width: 980px) { .case { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps-track { position: absolute; left: 24px; right: calc(25% - 24px); top: 24px; height: 2px; background: var(--line); }
.steps-track i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--violet), var(--violet-soft)); transition: transform 1.8s var(--ease); }
.steps.in .steps-track i { transform: scaleX(1); }
.step { padding: 0 24px 0 0; position: relative; }
.step .n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--line); color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; position: relative; z-index: 1; margin-bottom: 24px; transition: background .4s, color .4s, border-color .4s, transform .4s var(--spring); }
.steps.in .step .n { background: var(--violet); border-color: var(--violet); color: var(--white); }
.steps.in .step:nth-child(3) .n { transition-delay: .45s; } .steps.in .step:nth-child(4) .n { transition-delay: .9s; } .steps.in .step:nth-child(5) .n { transition-delay: 1.35s; }
.step:hover .n { transform: scale(1.12); }
.step h4 { margin-bottom: 8px; }
.step p { font-size: .98rem; margin: 0; }
.on-dark .step .n { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: var(--white); }
.on-dark .steps-track { background: rgba(255,255,255,.15); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps-track { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .steps-track i { transform-origin: top; transform: scaleY(0); }
  .steps.in .steps-track i { transform: scaleY(1); }
  .step { padding: 0 0 0 72px; }
  .step .n { position: absolute; left: 0; top: -6px; margin: 0; }
}
.steps.vertical { grid-template-columns: 1fr; gap: 30px; }
.steps.vertical .steps-track { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
.steps.vertical .steps-track i { transform-origin: top; transform: scaleY(0); }
.steps.vertical.in .steps-track i { transform: scaleY(1); }
.steps.vertical .step { padding: 0 0 0 72px; }
.steps.vertical .step .n { position: absolute; left: 0; top: -6px; margin: 0; }

/* ---------- Template cards ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.tpl { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; min-height: 300px; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.tpl:hover { border-color: var(--violet-soft); transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(102,26,255,.5); }
.tpl-top { position: relative; padding: 22px 24px; background: linear-gradient(135deg, var(--night), var(--indigo)); overflow: hidden; }
.tpl-top::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.2px); background-size: 16px 16px; }
.tpl-flow { position: relative; display: flex; align-items: center; gap: 0; }
.tpl-flow .t { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: var(--white); transition: transform .4s var(--spring), background .3s; }
.tpl-flow .t svg { width: 20px; height: 20px; }
.tpl-flow .t.ai { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 20px rgba(102,26,255,.6); }
.tpl-flow .dash { flex: 1; max-width: 34px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0 4px, transparent 4px 8px); background-size: 16px 2px; }
.tpl:hover .tpl-flow .dash { animation: dash-bg .6s linear infinite; }
@keyframes dash-bg { to { background-position: 16px 0; } }
.tpl:hover .tpl-flow .t { transform: translateY(-3px); }
.tpl:hover .tpl-flow .t:nth-child(3) { transition-delay: .06s; } .tpl:hover .tpl-flow .t:nth-child(5) { transition-delay: .12s; } .tpl:hover .tpl-flow .t:nth-child(7) { transition-delay: .18s; }
.tpl-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.tpl h3 { font-size: 1.28rem; margin-bottom: 10px; letter-spacing: -0.02em; transition: color .3s; }
.tpl:hover h3 { color: var(--violet); }
.tpl p { font-size: .96rem; margin: 0 0 18px; }
.tpl .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--mist); color: var(--graphite); font-size: .82rem; font-weight: 500; }
.chip.cat { background: rgba(102, 26, 255, .08); color: var(--violet); }
.chip svg { width: 15px; height: 15px; }
.tpl.soon { border-style: dashed; background: transparent; padding: 28px; justify-content: center; }
.tpl.soon:hover { transform: none; box-shadow: none; border-color: var(--steel); }
.tpl.soon .flask-big { width: 64px; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { border: 1.5px solid var(--line); background: var(--white); color: var(--ink); padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: .95rem; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.filter:hover { border-color: var(--ink); transform: translateY(-1px); }
.filter[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: var(--white); }
.tpl[hidden] { display: none; }
.tpl.pop-in { animation: pop-in .45s var(--ease) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.quote { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: clamp(26px, 3.4vw, 40px); display: flex; flex-direction: column; margin: 0; transition: border-color .3s, transform .4s var(--ease); }
.quote:hover { border-color: var(--lilac); transform: translateY(-4px); }
.quote blockquote { margin: 0 0 28px; color: var(--ink); font-size: 1.1rem; line-height: 1.55; }
.quote.feature { grid-row: span 2; background: var(--night); border-color: var(--night); color: rgba(255,255,255,.7); position: relative; overflow: hidden; }
.quote.feature::after { content: ""; position: absolute; width: 420px; height: 420px; right: -150px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(102,26,255,.5), transparent 65%); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }
.quote.feature blockquote { color: var(--white); font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.22; letter-spacing: -0.02em; font-weight: 600; position: relative; z-index: 1; }
.quote .mark { font-family: var(--f-display); font-size: 4.5rem; line-height: .6; color: var(--violet-soft); height: 34px; margin-bottom: 10px; position: relative; z-index: 1; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--lilac); color: var(--indigo); font-weight: 700; font-family: var(--f-display); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote cite { font-style: normal; display: block; font-weight: 600; color: var(--ink); }
.quote.feature cite { color: var(--white); }
.quote .role { font-size: .9rem; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } .quote.feature { grid-row: auto; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.team-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--indigo); aspect-ratio: 1; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.team-photo:hover img { transform: scale(1.04); }
.team-photo .tag { position: absolute; bottom: 18px; display: flex; flex-direction: column; background: rgba(255,255,255,.95); color: var(--ink); padding: 10px 16px; border-radius: 14px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); animation: float 5s ease-in-out infinite; }
.team-photo .tag b { font-weight: 700; font-size: .98rem; }
.team-photo .tag span { font-size: .8rem; color: var(--graphite); }
.team-photo .tag.l { left: 18px; }
.team-photo .tag.r { right: 18px; text-align: right; animation-delay: -2.5s; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); background: radial-gradient(600px 300px at 90% 0%, rgba(155,123,255,.5), transparent 60%), linear-gradient(135deg, var(--indigo), var(--night)); padding: clamp(44px, 7vw, 84px); color: rgba(255,255,255,.78); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; }
.cta-band h2 { color: var(--white); max-width: 16ch; position: relative; }
.cta-band p { margin: 18px 0 0; position: relative; }
.cta-band .btn-row { justify-content: flex-end; position: relative; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); transition: background .25s; border-radius: 14px; }
.faq details:hover { background: rgba(255,255,255,.6); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 12px; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--ink); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; transition: transform .3s var(--ease), background .2s, border-color .2s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] summary .pm { background: var(--violet); border-color: var(--violet); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: var(--white); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { padding: 0 72px 24px 12px; }
.faq details[open] .ans { animation: pop-in .35s var(--ease); }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- Photo collage (services hero) ---------- */
.collage { position: relative; aspect-ratio: 1 / .92; max-width: 560px; margin-left: auto; width: 100%; }
.collage .ph { position: absolute; margin: 0; border-radius: 22px; overflow: hidden; border: 5px solid rgba(255,255,255,.95); box-shadow: 0 40px 70px -30px rgba(0,0,0,.75); background: var(--indigo); transition: transform .6s var(--ease); }
.collage .ph img { width: 100%; height: 100%; object-fit: cover; }
.collage .ph1 { left: 0; top: 4%; width: 68%; aspect-ratio: 4 / 3; transform: rotate(-4deg); animation: drift1 9s ease-in-out infinite; z-index: 1; }
.collage .ph2 { right: 0; top: 0; width: 40%; aspect-ratio: 3 / 4; transform: rotate(5deg); animation: drift2 10s ease-in-out infinite; z-index: 2; }
.collage .ph3 { left: 18%; bottom: 0; width: 60%; aspect-ratio: 16 / 10; transform: rotate(2deg); animation: drift3 11s ease-in-out infinite; z-index: 3; }
@keyframes drift1 { 50% { transform: rotate(-3deg) translateY(-8px); } }
@keyframes drift2 { 50% { transform: rotate(6deg) translateY(10px); } }
@keyframes drift3 { 50% { transform: rotate(1deg) translateY(-6px); } }
.collage .float-chip { position: absolute; z-index: 4; }
.collage .fc1 { left: -4%; bottom: 14%; }
.collage .fc2 { right: -2%; top: 52%; }
@media (max-width: 980px) { .collage { margin: 10px auto 0; } }
@media (max-width: 520px) { .collage .fc1 { left: 0; } .collage .fc2 { right: 0; } .float-chip { font-size: .8rem; padding: 8px 12px; } .float-chip .fi { width: 26px; height: 26px; } }

/* ---------- Services page ---------- */
.svc-tabs { position: sticky; top: 70px; z-index: 30; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.svc-tabs .wrap { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.svc-tabs .wrap::-webkit-scrollbar { display: none; }
.svc-tabs a { display: inline-flex; align-items: center; gap: 8px; flex: none; text-decoration: none; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; font-size: .95rem; transition: background .25s, color .25s, border-color .25s; background: var(--white); }
.svc-tabs a svg { width: 18px; height: 18px; }
.svc-tabs a:hover { border-color: var(--violet-soft); }
.svc-tabs a.active { background: var(--violet); border-color: var(--violet); color: var(--white); }
.svc-tabs .bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--sp, 0)); background: var(--violet); }
.svc-block { scroll-margin-top: 140px; }
.svc-detail { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(36px, 6vw, 84px); }
.svc-detail .side { position: sticky; top: 150px; align-self: start; }
.svc-detail .side .num { font-family: var(--f-display); font-weight: 700; color: var(--violet); font-size: .95rem; margin-bottom: 12px; display: block; }
.on-dark .svc-detail .side .num { color: var(--violet-soft); }
.svc-detail h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 16px; }
.svc-detail .side .illus-wrap { margin: 6px 0 26px; padding: 18px 18px 4px; border-radius: var(--r-lg); background: var(--white); border: 1.5px solid var(--line); box-shadow: 0 30px 60px -40px rgba(44,52,121,.5); }
.on-dark .svc-detail .side .illus-wrap { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); box-shadow: none; }
.for { margin-top: 22px; padding: 16px 18px; background: rgba(102,26,255,.06); border-left: 3px solid var(--violet); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .97rem; }
.for b { color: var(--ink); }
.on-dark .for { background: rgba(255,255,255,.06); border-color: var(--violet-soft); }
.on-dark .for b { color: var(--white); }
.block { margin-bottom: 48px; }
.block:last-child { margin-bottom: 0; }
.block > h4 { margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.block > h4::before { content: ""; width: 18px; height: 2px; background: var(--violet); border-radius: 2px; }
.on-dark .block > h4::before { background: var(--violet-soft); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.checks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px; background: rgba(102,26,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23661AFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; }
.on-dark .checks li::before { background-color: rgba(155,123,255,.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9B8FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.checks li b { color: var(--ink); font-weight: 600; }
.on-dark .checks li b { color: var(--white); }
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.topic { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-md); transition: background .3s, border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.topic .ti { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--lilac-2); color: var(--violet); transition: background .3s, color .3s, transform .4s var(--spring); }
.topic .ti svg { width: 22px; height: 22px; }
.topic b { display: block; color: var(--ink); margin-bottom: 3px; line-height: 1.3; }
.topic span { font-size: .92rem; line-height: 1.5; display: block; }
.topic:hover { background: #FBF9FF; border-color: var(--violet-soft); transform: translateY(-4px); box-shadow: 0 20px 40px -26px rgba(102,26,255,.6); }
.topic:hover .ti { background: var(--violet); color: var(--white); transform: rotate(-8deg) scale(1.08); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }
.formats .chip { padding: 9px 15px; font-size: .9rem; background: var(--white); border: 1.5px solid var(--line); transition: border-color .25s, color .25s, background .25s, transform .25s; }
.formats .chip svg { color: var(--violet); }
.formats .chip:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.work { padding: 20px; border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.work:hover { background: rgba(255,255,255,.09); border-color: rgba(155,123,255,.55); transform: translateY(-4px); }
.work .wi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(155,123,255,.18); color: var(--lilac); margin-bottom: 14px; transition: background .3s, color .3s; }
.work:hover .wi { background: var(--violet); color: var(--white); }
.work .wi svg { width: 21px; height: 21px; }
.work b { display: block; color: var(--white); margin-bottom: 4px; }
.work span { font-size: .93rem; color: rgba(255,255,255,.7); }
.mini-case { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 18px; border-radius: var(--r-md); background: linear-gradient(135deg, rgba(102,26,255,.3), rgba(155,123,255,.1)); border: 1px solid rgba(155,123,255,.4); text-decoration: none; transition: transform .4s var(--ease); }
.mini-case:hover { transform: translateY(-4px); }
.mini-case img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; }
.mini-case b { color: var(--white); font-family: var(--f-display); font-size: 1.6rem; display: block; letter-spacing: -0.02em; }
.mini-case span { color: rgba(255,255,255,.75); font-size: .95rem; }
.org-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.org-chips .chip { background: var(--white); border: 1.5px solid var(--line); padding: 8px 14px; }
.roadmap { padding: 24px; border-radius: var(--r-lg); background: var(--white); border: 1.5px solid var(--line); box-shadow: 0 40px 70px -45px rgba(44,52,121,.6); }
.roadmap-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.roadmap-head b { color: var(--ink); font-family: var(--f-display); font-size: 1.15rem; }
.roadmap-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rm-col { padding: 14px; border-radius: var(--r-sm); background: var(--mist); }
.rm-col h5 { margin: 0 0 12px; font-size: .86rem; color: var(--ink); font-family: var(--f-body); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.rm-col h5 i { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.rm-col:nth-child(2) h5 i { background: var(--violet-soft); }
.rm-col:nth-child(3) h5 i { background: var(--lilac); }
.rm-card { padding: 9px 10px; border-radius: 9px; background: var(--white); border: 1px solid var(--line); font-size: .82rem; color: var(--graphite); margin-bottom: 8px; line-height: 1.35; transition: transform .3s var(--ease), border-color .3s; }
.rm-card:hover { transform: translateX(3px); border-color: var(--violet-soft); }
.rm-card:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail .side { position: static; }
  .topics, .work-grid { grid-template-columns: 1fr; }
  .roadmap-cols { grid-template-columns: 1fr; }
  .mini-case { grid-template-columns: 84px 1fr; }
}

/* ---------- About ---------- */
.about-visual { position: relative; max-width: 520px; margin-left: auto; width: 100%; }
.about-visual .blob { position: relative; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; overflow: hidden; aspect-ratio: 1; background: var(--indigo); box-shadow: 0 50px 90px -40px rgba(0,0,0,.8); animation: morph 12s ease-in-out infinite; }
.about-visual .blob img { width: 100%; height: 100%; object-fit: cover; }
@keyframes morph { 50% { border-radius: 55% 45% 42% 58% / 42% 58% 45% 55%; } }
.about-visual .float-chip { position: absolute; }
.about-visual .c1 { left: -6%; top: 16%; }
.about-visual .c2 { right: -4%; top: 44%; animation-delay: -1.6s; }
.about-visual .c3 { left: 6%; bottom: 4%; animation-delay: -3.2s; }
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); }
.story .big { font-family: var(--f-display); font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.22; color: var(--ink); letter-spacing: -0.025em; font-weight: 600; }
.profiles { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.profile { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1.5px solid var(--line); display: grid; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.profile:hover { border-color: var(--violet-soft); transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(102,26,255,.55); }
.profile .pic { position: relative; background: radial-gradient(circle at 50% 110%, var(--violet) 0%, var(--indigo) 45%, var(--night) 100%); height: 300px; overflow: hidden; }
.profile .pic::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.2px); background-size: 18px 18px; }
.profile .pic img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 100%; width: auto; max-width: none; transition: transform .6s var(--ease); }
.profile .pic img.cover { left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transform: none; }
.profile:hover .pic img { transform: translateX(-50%) scale(1.04); }
.profile:hover .pic img.cover { transform: scale(1.04); }
.profile .info { padding: 26px 28px 30px; }
.profile h3 { margin-bottom: 4px; }
.profile .role { color: var(--violet); font-weight: 600; font-size: .95rem; display: block; margin-bottom: 14px; }
.profile p { font-size: .98rem; }
.certs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.certs .chip { background: var(--lilac-2); color: var(--indigo); }
@media (max-width: 860px) { .profiles { grid-template-columns: 1fr; } }
.cert-fan { position: relative; height: 300px; max-width: 560px; margin: 0 auto; }
.cert-fan figure { position: absolute; left: 50%; top: 20px; width: 56%; margin: 0; border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(20,23,66,.5); transition: transform .6s var(--ease); }
.cert-fan figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.cert-fan figcaption { padding: 10px 14px; font-weight: 600; color: var(--ink); font-size: .92rem; }
.cert-fan .f1 { transform: translateX(-90%) rotate(-9deg); }
.cert-fan .f2 { transform: translateX(-50%) translateY(-10px); z-index: 2; }
.cert-fan .f3 { transform: translateX(-10%) rotate(9deg); }
.cert-fan:hover .f1 { transform: translateX(-130%) rotate(-5deg); }
.cert-fan:hover .f3 { transform: translateX(30%) rotate(5deg); }
.cert-fan:hover .f2 { transform: translateX(-50%) translateY(-22px) scale(1.04); }
.cert-fan figure:hover { z-index: 5; }
@media (max-width: 640px) {
  .cert-fan { height: auto; display: grid; gap: 14px; }
  .cert-fan figure, .cert-fan .f1, .cert-fan .f2, .cert-fan .f3, .cert-fan:hover figure { position: static; transform: none !important; width: 100%; }
}
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 18px; overflow: hidden; background: var(--mist); }
.gallery img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; color: var(--white); font-size: .84rem; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: rgba(20,23,66,.6); backdrop-filter: blur(6px); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.gallery figure:hover figcaption { opacity: 1; transform: none; }
.beliefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.belief { padding: 30px; border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.belief:hover { background: rgba(255,255,255,.09); border-color: rgba(155,123,255,.55); transform: translateY(-5px); }
.belief .bi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--violet); color: var(--white); margin-bottom: 22px; transition: transform .4s var(--spring); }
.belief:hover .bi { transform: rotate(-10deg) scale(1.08); }
.belief .bi svg { width: 24px; height: 24px; }
.belief h3 { margin-bottom: 10px; font-size: 1.4rem; }
.belief p { margin: 0; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .beliefs { grid-template-columns: 1fr; } }

/* ---------- Resources / template detail ---------- */
.res-visual { position: relative; padding: 20px; border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 50px 90px -40px rgba(0,0,0,.7); }
.res-visual .canvas-bar { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.res-visual .canvas-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.res-visual .canvas-bar b { font-weight: 500; color: rgba(255,255,255,.8); margin-left: 6px; }
.tpl-hero .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tpl-hero .chip { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.tpl-hero .chip.cat { background: rgba(155,123,255,.18); color: var(--lilac); }
.big-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; padding: 40px 24px; border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.big-flow .t { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: var(--white); animation: float 4s ease-in-out infinite; }
.big-flow .t:nth-of-type(2) { animation-delay: -1s; } .big-flow .t:nth-of-type(3) { animation-delay: -2s; } .big-flow .t:nth-of-type(4) { animation-delay: -3s; }
.big-flow .t svg { width: 32px; height: 32px; }
.big-flow .t.ai { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 40px rgba(102,26,255,.7); }
.big-flow .dash { width: 36px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 5px, transparent 5px 10px); background-size: 20px 2px; animation: dash-bg .7s linear infinite; }
.tpl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(36px, 5vw, 70px); align-items: start; }
.tpl-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 20px; }
.tpl-body > section + section { margin-top: 60px; }
.flowline { display: grid; padding: 0; margin: 0; }
.flowline li { list-style: none; display: grid; grid-template-columns: 44px 1fr; gap: 18px; position: relative; padding-bottom: 26px; }
.flowline li .fn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac-2); color: var(--violet); font-weight: 700; font-family: var(--f-display); position: relative; z-index: 1; transition: background .3s, color .3s, transform .4s var(--spring); }
.flowline li:hover .fn { background: var(--violet); color: var(--white); transform: scale(1.1); }
.flowline li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--lilac) 0 5px, transparent 5px 10px); }
.flowline li:last-child::after { display: none; }
.flowline li b { display: block; color: var(--ink); margin: 9px 0 4px; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feat { padding: 20px; border-radius: var(--r-md); border: 1.5px solid var(--line); transition: border-color .3s, transform .4s var(--ease), background .3s; }
.feat:hover { border-color: var(--violet-soft); background: #FBF9FF; transform: translateY(-3px); }
.feat b { display: block; color: var(--ink); margin-bottom: 6px; }
.feat span { font-size: .94rem; }
@media (max-width: 640px) { .feat-grid { grid-template-columns: 1fr; } }
.req { display: grid; gap: 10px; }
.req div { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r-sm); align-items: center; transition: border-color .25s; }
.req div:hover { border-color: var(--lilac); }
.req b { color: var(--ink); display: block; }
.req span { font-size: .92rem; }
.req em { font-style: normal; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--graphite); white-space: nowrap; }
.req em.must { background: rgba(102,26,255,.08); color: var(--violet); }
.dl-card { position: sticky; top: 100px; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 26px; background: var(--white); box-shadow: 0 30px 60px -40px rgba(20,23,66,.5); }
.dl-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.dl-card .btn { width: 100%; margin-top: 18px; }
.dl-card dl { margin: 20px 0 0; display: grid; }
.dl-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.dl-card dt { color: var(--steel); }
.dl-card dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.soon-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: #8A5A00; background: #FFF3D6; padding: 4px 10px; border-radius: 999px; }
.soon-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #E3A008; animation: pulse-dot 1.6s infinite; }
.dl-card .help { margin-top: 18px; font-size: .9rem; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .tpl-layout { grid-template-columns: 1fr; } .dl-card { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-card { position: relative; background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 3.6vw, 40px); color: var(--graphite); box-shadow: 0 50px 90px -40px rgba(0,0,0,.65); }
.contact-card .illus { margin: -6px 0 10px; }
.contact-card h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-bottom: 10px; }
.contact-card .btn { width: 100%; margin-top: 16px; }
.contact-lines { margin-top: 22px; display: grid; }
.contact-lines a { display: flex; align-items: center; gap: 14px; padding: 15px 8px; margin: 0 -8px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; border-radius: 12px; transition: background .2s, color .2s; }
.contact-lines a:hover { color: var(--violet); background: var(--lilac-2); }
.contact-lines .ci { width: 40px; height: 40px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; color: var(--indigo); flex: none; transition: background .2s, color .2s; }
.contact-lines a:hover .ci { background: var(--violet); color: var(--white); }
.contact-lines svg { width: 18px; height: 18px; }
.contact-lines small { display: block; color: var(--steel); font-weight: 400; font-size: .82rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(480px, calc(100% - 32px)); background: var(--white); color: var(--graphite); box-shadow: 0 50px 100px -30px rgba(10,12,40,.6); }
.modal::backdrop { background: rgba(14, 16, 48, .6); backdrop-filter: blur(4px); }
.modal[open] { animation: pop-in .3s var(--ease); }
.modal-inner { padding: 34px; }
.modal h3 { font-size: 1.5rem; margin-bottom: 8px; padding-right: 36px; }
.modal-close { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--ink); }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input { height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(102,26,255,.12); }
.modal .btn { width: 100%; margin-top: 22px; }
.form-msg { margin-top: 14px; font-size: .92rem; min-height: 1.2em; }
.form-msg.err { color: #C0263D; }
.modal .done { text-align: center; padding: 10px 0; }
.modal .done .tick { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: rgba(102,26,255,.1); display: grid; place-items: center; }
.modal .done .tick svg { width: 30px; height: 30px; stroke: var(--violet); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.modal .fine { font-size: .82rem; color: var(--steel); margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--night); color: rgba(255,255,255,.62); padding: 80px 0 34px; overflow: hidden; }
.site-footer .wrap { position: relative; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-top p { margin: 22px 0 0; font-size: .95rem; max-width: 34ch; }
.foot-col h4 { color: var(--white); font-size: .98rem; margin-bottom: 16px; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { text-decoration: none; font-size: .95rem; transition: color .2s, padding .2s; }
.foot-col a:hover { color: var(--white); padding-left: 4px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: .88rem; }
.foot-word { font-family: var(--f-logo); font-weight: 700; font-size: clamp(3.5rem, 15vw, 13rem); line-height: .8; letter-spacing: -0.04em; text-align: center; margin: 50px 0 -10px; user-select: none; white-space: nowrap; background: linear-gradient(180deg, rgba(155,123,255,.22), rgba(155,123,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-30px); }
.js [data-reveal="right"] { transform: translateX(30px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.nf h1 { font-size: clamp(5rem, 16vw, 11rem); }
.nf p { margin: 16px auto 32px; }
.nf .btn-row { justify-content: center; }

@media (max-width: 900px) {
  /* On phones, slide sections up instead of in from the side */
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(26px); }
  .case-shot .float-chip[style*="left"] { left: 10px !important; }
  .case-shot .float-chip[style*="right"] { right: 10px !important; }
  .split > *, .case > *, .story > *, .action > *, .team > *, .contact-grid > *, .svc-detail > *, .stats-grid > * { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .bubbles { display: none; }
}

/* =========================================================
   Template pages v3: animated flow, live demos, downloads
   ========================================================= */
.tpl-badge { position: absolute; top: 16px; right: 16px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: #22C55E; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .02em; box-shadow: 0 6px 16px -6px rgba(34,197,94,.8); }
.tpl-badge.inline { position: static; margin-left: 10px; box-shadow: none; }
.tpl-status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: #8A5A00; margin-bottom: 8px; }
.tpl-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E3A008; }
.tpl-status.ok { color: var(--ok); }
.tpl-status.ok::before { background: var(--ok); }

/* Animated flow diagram (template hero) */
.af-panel { padding: 18px 20px 26px; border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 50px 90px -40px rgba(0,0,0,.7); }
.af-panel .canvas-bar { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.af-panel .canvas-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.af-panel .canvas-bar b { font-weight: 500; color: rgba(255,255,255,.8); margin-left: 6px; }
.af-panel .canvas-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #7CF0B5; }
.af-panel .canvas-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse-dot 1.6s ease-in-out infinite; }
.auto-flow { display: flex; align-items: flex-start; justify-content: center; }
.af-step { flex: 0 0 auto; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.af-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: var(--white); transition: background .4s, border-color .4s, box-shadow .4s, transform .4s var(--spring); }
.af-ic svg { width: 28px; height: 28px; }
.af-ic.ai { background: rgba(102,26,255,.45); }
.af-lbl { font-size: .8rem; line-height: 1.3; color: rgba(255,255,255,.72); transition: color .3s; }
.af-step.on .af-ic { background: var(--violet); border-color: var(--violet-soft); box-shadow: 0 0 0 6px rgba(155,123,255,.18), 0 0 36px rgba(102,26,255,.75); transform: translateY(-4px) scale(1.06); }
.af-step.on .af-lbl { color: var(--white); }
.af-step.done .af-ic { border-color: rgba(124,240,181,.5); }
.af-link { flex: 1 1 auto; min-width: 14px; height: 2px; margin-top: 31px; position: relative; background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 5px, transparent 5px 10px); }
.af-link i { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--violet-soft); box-shadow: 0 0 10px var(--violet-soft); opacity: 0; }
.af-link.run i { animation: af-dot .7s linear forwards; }
@keyframes af-dot { 0% { left: 0; opacity: 1; } 100% { left: calc(100% - 9px); opacity: 1; } }
@media (max-width: 640px) {
  .auto-flow { flex-direction: column; align-items: stretch; }
  .af-step { width: auto; flex-direction: row; text-align: left; gap: 14px; }
  .af-ic { width: 52px; height: 52px; border-radius: 16px; flex: none; }
  .af-lbl { font-size: .95rem; }
  .af-link { width: 2px; height: 22px; min-width: 0; margin: 4px 0 4px 25px; flex: none; background: repeating-linear-gradient(180deg, rgba(255,255,255,.28) 0 5px, transparent 5px 10px); }
  .af-link i { left: 50%; top: 0; margin: 0 0 0 -4.5px; }
  .af-link.run i { animation: af-dot-v .7s linear forwards; }
  @keyframes af-dot-v { 0% { top: 0; opacity: 1; } 100% { top: calc(100% - 9px); opacity: 1; } }
}

/* "See it in action" */
.demo-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.demo-stage { display: flex; justify-content: center; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }

/* Phone + Telegram chat */
.phone { width: 340px; max-width: 100%; border-radius: 40px; padding: 12px; background: #0F1135; box-shadow: 0 50px 90px -40px rgba(20,23,66,.8), inset 0 0 0 2px rgba(255,255,255,.08); }
.ph-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 28px 28px 0 0; background: #1C2058; color: #fff; }
.ph-back { font-size: 1.6rem; line-height: 1; color: var(--violet-soft); margin-right: 2px; }
.ph-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(140deg, var(--violet), var(--indigo)); display: grid; place-items: center; flex: none; }
.ph-av svg { width: 17px; height: 26px; }
.ph-top b { display: block; font-size: .95rem; line-height: 1.2; }
.ph-top small { color: rgba(255,255,255,.55); font-size: .78rem; }
.ph-body { height: 470px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 12px; background: #E7E4F6 radial-gradient(rgba(44,52,121,.08) 1px, transparent 1.3px) 0 0 / 16px 16px; }
.ph-scroll { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 84%; padding: 9px 12px; border-radius: 16px; font-size: .86rem; line-height: 1.45; color: var(--ink); box-shadow: 0 1px 1px rgba(0,0,0,.06); animation: msg-in .35s var(--ease) both; }
.msg.me { align-self: flex-end; background: #DCD3FF; border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.js .phone .msg[data-step]:not(.show), .js .phone .msg.typing:not(.show) { display: none; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.msg.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); animation: typing 1.1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
.msg.post { padding: 6px; }
.msg.post p { margin: 8px 6px 4px; font-size: .82rem; }
.gen-img { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: flex; align-items: flex-end; padding: 14px; background: linear-gradient(150deg, #2C3479, #661AFF); }
.gen-img.instagram { background: linear-gradient(150deg, #FF7A59, #E1306C 45%, #661AFF); }
.gen-img b { position: relative; color: #fff; font-family: var(--f-display); font-size: 1.15rem; line-height: 1.1; letter-spacing: -0.02em; max-width: 80%; }
.gi-shape { position: absolute; border-radius: 50%; }
.gi-shape.a { width: 55%; aspect-ratio: 1; right: -10%; top: -12%; background: rgba(255,255,255,.18); }
.gi-shape.b { width: 26%; aspect-ratio: 1; right: 18%; top: 38%; background: rgba(255,255,255,.35); }
.gi-shape.c { width: 40px; height: 40px; left: 14px; top: 14px; border-radius: 12px; background: rgba(255,255,255,.9); }
.tg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.tg-btn { text-align: center; padding: 7px 6px; border-radius: 10px; background: var(--mist); font-weight: 600; font-size: .8rem; transition: background .25s, color .25s, transform .2s; }
.tg-btn.tapped { background: var(--violet); color: #fff; transform: scale(.96); }
.ph-input { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 0 0 28px 28px; background: #fff; color: var(--steel); font-size: .9rem; }
.ph-send { width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; }
.ph-send svg { width: 16px; height: 16px; }

/* Sheet + email demo */
.sheet-demo { position: relative; width: 100%; max-width: 480px; padding-bottom: 150px; }
.sd-sheet { background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 40px 70px -45px rgba(20,23,66,.6); overflow: hidden; }
.sd-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #E8F5EC; color: #137333; font-size: .9rem; }
.sd-bar svg { width: 18px; height: 18px; }
.sd-bar span { margin-left: auto; font-size: .78rem; color: #5F8F6E; }
.sd-sheet table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.sd-sheet th { text-align: left; font-weight: 600; color: var(--steel); background: var(--mist); padding: 8px 14px; font-size: .78rem; }
.sd-sheet td { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink); transition: background .3s; }
.sd-sheet td:nth-child(2) { color: var(--steel); }
.sd-sheet tr.active td { background: #F4F0FF; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: #FFF3D6; color: #8A5A00; transition: background .3s, color .3s; }
.pill.sent { background: #DDF5EA; color: #11794F; }
.sd-count { padding: 10px 14px; font-size: .8rem; color: var(--steel); border-top: 1px solid var(--line); }
.sd-mail { position: absolute; right: -6%; bottom: 0; width: 72%; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -25px rgba(20,23,66,.55); font-size: .85rem; transition: transform .45s var(--ease), opacity .45s; }
.sd-mail.swap { transform: translateY(14px); opacity: 0; }
.sd-mail-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sd-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #FCE8E6; color: #C5221F; flex: none; }
.sd-av svg { width: 17px; height: 17px; }
.sd-mail-top b { display: block; font-size: .88rem; color: var(--ink); }
.sd-mail-top small { color: var(--steel); }
.sd-mail p { margin: 0 0 8px; }
.sd-lines { display: grid; gap: 6px; }
.sd-lines i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.sd-lines i.s { width: 60%; }
.sd-btn { display: inline-block; margin: 4px 0 8px; padding: 6px 12px; border-radius: 8px; background: #1a73e8; color: #fff; font-size: .78rem; font-weight: 600; }
.sd-unsub { font-size: .72rem; color: var(--steel); margin: 0 !important; }
@media (max-width: 520px) { .sd-mail { right: 0; width: 86%; } }

/* What's included + download list */
.inc-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.inc-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--mist); }
.fi-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #EEE8FF; color: var(--violet); }
.fi-ic.xlsx { background: #E3F4E8; color: #137333; }
.fi-ic svg { width: 18px; height: 18px; }
.inc-list b { display: block; font-size: .92rem; color: var(--ink); line-height: 1.3; }
.inc-list small { font-size: .78rem; color: var(--steel); overflow-wrap: anywhere; }
.dl-files { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; text-align: left; }
.dl-files a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, background .2s, transform .2s; }
.dl-files a:hover { border-color: var(--violet); background: #FBF9FF; transform: translateY(-2px); }
.dl-files a > span:nth-child(2) { flex: 1; min-width: 0; }
.dl-files b { display: block; font-size: .95rem; }
.dl-files small { color: var(--steel); font-size: .8rem; overflow-wrap: anywhere; }
.nw { white-space: nowrap; }
.dl-files .go { width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; flex: none; }
.dl-files .go svg { width: 16px; height: 16px; }
.welcome-back { margin: 0 0 6px; font-size: .9rem; color: var(--steel); }

/* =========================================================
   About page v3
   ========================================================= */
.ab-duo { position: relative; max-width: 540px; width: 100%; margin-left: auto; aspect-ratio: 1 / .95; }
.ab-card { position: absolute; margin: 0; width: 54%; border-radius: 26px; overflow: hidden; border: 5px solid rgba(255,255,255,.95); background: var(--indigo); box-shadow: 0 45px 80px -35px rgba(0,0,0,.8); transition: transform .6s var(--ease); }
.ab-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.ab-card figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.94); color: var(--ink); }
.ab-card figcaption b { font-size: .95rem; }
.ab-card figcaption span { font-size: .78rem; color: var(--violet); font-weight: 600; }
.ab-card.a { left: 0; top: 0; transform: rotate(-4deg); z-index: 2; animation: drift1 9s ease-in-out infinite; }
.ab-card.k { right: 0; top: 14%; transform: rotate(4deg); animation: drift2 10s ease-in-out infinite; }
.ab-duo:hover .ab-card { animation-play-state: paused; }
.ab-duo .float-chip { position: absolute; z-index: 3; }
.ab-c1 { left: 30%; bottom: -2%; }
.ab-c2 { right: -3%; top: 2%; }
@media (max-width: 980px) { .ab-duo { margin: 20px auto 0; } }
@media (max-width: 520px) { .ab-c2 { right: 0; } .ab-c1 { left: 18%; } }

.ab-statement { padding-bottom: clamp(56px, 7vw, 90px); }
.ab-words { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.18; letter-spacing: -0.03em; color: var(--ink); max-width: 30ch; margin: 0; }
.ab-words .w { opacity: .14; transition: opacity .35s; }
.ab-words .w.lit { opacity: 1; }
.ab-words .w.hl.lit { color: var(--violet); }

.ab-numbers { padding: 0 0 clamp(56px, 7vw, 90px); }
.ab-nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ab-nums > div { padding: 30px 24px; display: flex; flex-direction: column; gap: 6px; }
.ab-nums > div + div { border-left: 1px solid var(--line); }
.ab-nums b { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ab-nums b::after { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; margin-top: 14px; background: var(--violet); }
.ab-nums > div > span { color: var(--graphite); font-size: .98rem; }
@media (max-width: 860px) { .ab-nums { grid-template-columns: 1fr 1fr; } .ab-nums > div:nth-child(3) { border-left: 0; } .ab-nums > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.founder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.founder + .founder { margin-top: clamp(64px, 9vw, 110px); }
.founder.rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.founder.rev .f-photo { order: 2; }
.f-photo { position: relative; max-width: 420px; width: 100%; justify-self: center; }
.f-frame { position: relative; border-radius: 30px; overflow: hidden; background: var(--indigo); box-shadow: 0 50px 80px -45px rgba(44,52,121,.8); }
.f-frame::before { content: ""; position: absolute; inset: -40%; z-index: 0; background: conic-gradient(from 0deg, var(--violet), var(--violet-soft), #C7B6FF, var(--violet)); animation: spin-ring 10s linear infinite; }
.f-frame img { position: relative; z-index: 1; display: block; width: calc(100% - 10px); height: auto; margin: 5px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 26px; transition: transform .8s var(--ease); }
.founder:hover .f-frame img { transform: scale(1.03); }
@keyframes spin-ring { to { transform: rotate(360deg); } }
.f-tag { position: absolute; z-index: 2; left: -14px; bottom: 28px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: var(--white); color: var(--ink); font-weight: 600; font-size: .92rem; box-shadow: 0 20px 40px -18px rgba(20,23,66,.6); animation: float 5s ease-in-out infinite; }
.f-tag svg { width: 18px; height: 18px; color: var(--violet); }
.founder.rev .f-tag { left: auto; right: -14px; }
.f-role { display: inline-block; color: var(--violet); font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.f-info h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -0.035em; margin-bottom: 18px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.f-chips .chip { background: var(--white); border: 1.5px solid var(--line); padding: 7px 13px; }
.f-certs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.f-certs-lbl { font-size: .88rem; color: var(--steel); margin-right: 4px; }
.f-certs a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 12px; background: var(--white); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .88rem; transition: border-color .2s, transform .2s; }
.f-certs a:hover { border-color: var(--violet); transform: translateY(-2px); }
.f-certs img { width: 44px; height: 32px; object-fit: cover; object-position: top; border-radius: 7px; border: 1px solid var(--line); }
.f-quote { margin: 0; padding: 18px 20px; border-radius: 18px; background: var(--white); border-left: 4px solid var(--violet); color: var(--ink); font-size: 1.02rem; line-height: 1.55; box-shadow: 0 20px 40px -32px rgba(44,52,121,.6); }
.f-quote cite { display: block; margin-top: 10px; font-style: normal; font-size: .88rem; color: var(--steel); font-weight: 600; }
@media (max-width: 860px) {
  .founder, .founder.rev { grid-template-columns: 1fr; }
  .founder.rev .f-photo { order: 0; }
  .f-photo { max-width: 340px; }
  .f-tag, .founder.rev .f-tag { left: 10px; right: auto; }
}

.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.journey::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 2px; background: linear-gradient(90deg, var(--violet), var(--violet-soft), rgba(155,123,255,.15)); }
.journey li { position: relative; padding: 0 8px 0 0; }
.j-ic { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--violet); color: #fff; box-shadow: 0 0 0 6px var(--night), 0 0 30px rgba(102,26,255,.6); margin-bottom: 22px; transition: transform .4s var(--spring); }
.journey li:hover .j-ic { transform: translateY(-4px) rotate(-6deg); }
.j-ic svg { width: 26px; height: 26px; }
.j-n { display: block; font-size: .85rem; font-weight: 600; color: var(--violet-soft); margin-bottom: 6px; }
.journey h3 { font-size: 1.35rem; margin-bottom: 8px; }
.journey p { margin: 0; font-size: .97rem; }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; gap: 30px; }
  .journey::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: linear-gradient(180deg, var(--violet), rgba(155,123,255,.15)); }
  .journey li { padding-left: 80px; }
  .j-ic { position: absolute; left: 0; top: 0; margin: 0; }
}

.ab-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ab-value { padding: 32px 28px; border-radius: var(--r-lg); background: var(--white); border: 1.5px solid var(--line); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.ab-value:hover { border-color: var(--violet-soft); transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(102,26,255,.6); }
.v-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--lilac-2); color: var(--violet); margin-bottom: 24px; transition: background .3s, color .3s, transform .4s var(--spring); }
.ab-value:hover .v-ic { background: var(--violet); color: #fff; transform: rotate(-8deg) scale(1.06); }
.v-ic svg { width: 26px; height: 26px; }
.ab-value h3 { font-size: 1.45rem; margin-bottom: 10px; }
.ab-value p { margin: 0; }
@media (max-width: 860px) { .ab-values { grid-template-columns: 1fr; } }

.ab-film-sec { padding-bottom: clamp(60px, 8vw, 100px); }
.film { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.film-track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.film:hover .film-track { animation-play-state: paused; }
.film figure { position: relative; margin: 0; height: 300px; border-radius: 22px; overflow: hidden; flex: none; background: var(--line); }
.film img { height: 100%; width: auto; display: block; transition: transform .8s var(--ease); }
.film figure:hover img { transform: scale(1.05); }
.film figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 10px; background: rgba(20,23,66,.62); backdrop-filter: blur(6px); color: #fff; font-size: .85rem; font-weight: 600; }
@media (max-width: 640px) { .film figure { height: 210px; } }

/* Home: founders duo (same design as About) */
.home-duo { margin: 0 auto 0 0; }
@media (max-width: 860px) { .home-duo { margin: 0 auto 30px; } }

/* Reel preview in chat demo + responsible-use note */
.gen-img.reel { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #111 0%, #25F4EE 120%), #111; background: linear-gradient(165deg, #1B1B2F, #FE2C55 140%); }
.gen-img.reel::after { content: ""; position: absolute; left: 50%; top: 42%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%23661AFF'/%3E%3C/svg%3E") center/26px no-repeat; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); }
.tpl-note { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 56px; padding: 18px 20px; border-radius: var(--r-md); background: #FFF7E6; border: 1px solid #F6D58E; color: #6B4A00; }
.tpl-note p { margin: 0; font-size: .96rem; }
.tpl-note b { color: #5A3E00; }
.tn-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #FDE7B0; color: #8A5A00; }
.tn-ic svg { width: 18px; height: 18px; }
.msg { overflow-wrap: anywhere; }

/* Invoice variant of the sheet demo */
.sheet-demo.inv .sd-sheet td:nth-child(2) { color: var(--ink); }
.sheet-demo.inv .sd-sheet td:nth-child(3) { font-variant-numeric: tabular-nums; color: var(--steel); }
.sd-att { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--mist); }
.sd-pdf { flex: none; width: 34px; height: 40px; border-radius: 6px; display: grid; place-items: center; background: #EA4335; color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .04em; }
.sd-att b { display: block; font-size: .82rem; color: var(--ink); }
.sd-att small { color: var(--steel); font-size: .74rem; }
.fi-ic.docx { background: #E5EEFC; color: #1A5DC8; }
.sheet-demo.inv .sd-sheet td { white-space: nowrap; }
@media (max-width: 520px) { .sheet-demo.inv .sd-sheet th, .sheet-demo.inv .sd-sheet td { padding-left: 10px; padding-right: 10px; } .sheet-demo.inv .sd-sheet table { font-size: .8rem; } }

/* =================================================================
   Resources: type tabs + groups
   ================================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rt-bar { display: flex; justify-content: center; margin-bottom: clamp(36px, 5vw, 56px); }
.rt-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); box-shadow: 0 18px 40px -28px rgba(20,23,66,.45); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.rt-tabs::-webkit-scrollbar { display: none; }
.rt-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .95rem; color: var(--graphite); padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; white-space: nowrap; }
.rt-tab span { font-size: .76rem; font-weight: 700; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--mist); color: var(--steel); transition: background .25s, color .25s; }
.rt-tab:hover { color: var(--ink); background: var(--mist); }
.rt-tab[aria-pressed="true"] { background: var(--night); color: var(--white); }
.rt-tab[aria-pressed="true"] span { background: var(--violet); color: var(--white); }
.res-group { scroll-margin-top: 96px; }
.res-group + .res-group { margin-top: clamp(64px, 8vw, 96px); }
.res-group[hidden] { display: none; }
.res-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: end; margin-bottom: 28px; }
.res-head > div { display: flex; align-items: center; gap: 14px; }
.res-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.res-head p { margin: 0; color: var(--graphite); }
.res-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--violet); color: var(--white); box-shadow: 0 12px 26px -12px rgba(102,26,255,.8); }
.res-ic svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .res-head { grid-template-columns: 1fr; } }

/* Promptbook card (resources) */
.pbk .tpl-top { padding: 22px 24px; }
.pbk-letters { position: relative; display: flex; gap: 8px; }
.cl { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: var(--white); transition: transform .4s var(--spring); }
.cl.c, .pc-row.c .pc-badge, .craft-tile.c .L { --cr: #4C5BE6; }
.cl.r, .pc-row.r .pc-badge, .craft-tile.r .L { --cr: #8B5CFF; }
.cl.a, .pc-row.a .pc-badge, .craft-tile.a .L { --cr: #D23F8C; }
.cl.f, .pc-row.f .pc-badge, .craft-tile.f .L { --cr: #12A07F; }
.cl.t, .pc-row.t .pc-badge, .craft-tile.t .L { --cr: #E08A12; }
.cl { background: var(--cr); box-shadow: 0 10px 22px -12px var(--cr); }
.pbk:hover .cl { transform: translateY(-4px); }
.pbk:hover .cl:nth-child(2) { transition-delay: .04s; } .pbk:hover .cl:nth-child(3) { transition-delay: .08s; }
.pbk:hover .cl:nth-child(4) { transition-delay: .12s; } .pbk:hover .cl:nth-child(5) { transition-delay: .16s; }

/* =================================================================
   Promptbook page
   ================================================================= */
.crumbs { flex-wrap: wrap; }
.crumbs [aria-current] { color: rgba(255,255,255,.85); }
.pb-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; }
.pb-facts li { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.75); font-size: .92rem; }
.pb-facts b { color: var(--white); }

.pb-mock { position: relative; padding: 66px 0 70px; }
.pm-card { position: relative; background: var(--white); color: var(--ink); border-radius: var(--r-md); padding: 20px; box-shadow: 0 50px 90px -40px rgba(0,0,0,.7); transform: rotate(-1.5deg); }
.pm-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.pm-top b { font-family: var(--f-display); font-size: 1.05rem; flex: 1; min-width: 0; }
.pm-copy { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--violet); color: var(--white); font-size: .8rem; font-weight: 700; }
.pm-copy svg { width: 14px; height: 14px; }
.pm-rows { display: grid; gap: 12px; padding-top: 14px; }
.pm-row { display: flex; gap: 12px; align-items: center; }
.pm-txt { flex: 1; display: grid; gap: 6px; }
.pm-txt b { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cr2, var(--steel)); }
.pm-txt i { display: block; height: 7px; border-radius: 4px; background: var(--line); }
.pm-txt i.s { width: 62%; }
.pm-row.c { --cr2: #4C5BE6; } .pm-row.r { --cr2: #8B5CFF; } .pm-row.a { --cr2: #D23F8C; } .pm-row.f { --cr2: #12A07F; } .pm-row.t { --cr2: #E08A12; }
.pm-row .pc-badge { background: color-mix(in srgb, var(--cr2) 14%, #fff); color: var(--cr2); }
.pb-mock .float-chip { position: absolute; z-index: 2; }
.pm-c1 { left: -18px; bottom: 0; }
.pm-c2 { right: 28px; top: 0; }
@media (max-width: 520px) { .pm-c1 { left: 0; } .pm-c2 { right: 0; } }

.craft-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.craft-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border-radius: var(--r-md); background: var(--white); border: 1.5px solid var(--line); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease); overflow: hidden; }
.craft-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--crt); }
.craft-tile:hover { transform: translateY(-6px); border-color: var(--crt); box-shadow: 0 26px 46px -30px var(--crt); }
.craft-tile .L { font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--cr); margin-bottom: 8px; }
.craft-tile b { font-family: var(--f-display); font-size: 1.1rem; }
.craft-tile span:last-child { color: var(--graphite); font-size: .95rem; }
.craft-tile.c { --crt: #4C5BE6; } .craft-tile.r { --crt: #8B5CFF; } .craft-tile.a { --crt: #D23F8C; } .craft-tile.f { --crt: #12A07F; } .craft-tile.t { --crt: #E08A12; }
@media (max-width: 980px) { .craft-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); } }

/* library */
.pb-intro { max-width: 760px; margin-bottom: 26px; }
.pb-intro h2 { margin-bottom: 10px; }
.pb-intro p { margin: 0; color: var(--graphite); }
mark.ph { background: #FFF1C2; color: #5A3E00; border-radius: 4px; padding: 0 3px; font-weight: 600; }
mark.ph.filled { background: transparent; color: var(--violet); border-bottom: 1.5px solid var(--violet); border-radius: 0; padding: 0; }
mark.hit { background: var(--violet); color: var(--white); border-radius: 3px; padding: 0 2px; }
.pb-tools { position: sticky; top: 78px; z-index: 6; display: flex; gap: 10px; padding: 10px; margin: 0 -10px 14px; border-radius: 18px; transition: background .3s, box-shadow .3s; }
.pb-tools.stuck { background: rgba(246,243,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 30px -24px rgba(20,23,66,.5); }
.pb-search { position: relative; flex: 1; min-width: 0; }
.pb-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--steel); pointer-events: none; }
.pb-search input { width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-size: 1rem; color: var(--ink); padding: 0 48px 0 46px; transition: border-color .2s, box-shadow .2s; }
.pb-search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(102,26,255,.14); }
.pb-search kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 600 .75rem var(--f-body); color: var(--steel); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; background: var(--mist); }
.pb-search input:not(:placeholder-shown) ~ kbd { display: none; }
.pb-btn { flex: none; height: 52px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.pb-btn:hover { border-color: var(--violet-soft); color: var(--violet); }
@media (max-width: 560px) { .pb-btn { display: none; } .pb-tools { top: 72px; } }

.pb-personal { background: var(--white); border: 1.5px solid var(--line); border-radius: 18px; margin-bottom: 30px; }
.pb-personal summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.pb-personal summary::-webkit-details-marker { display: none; }
.pb-personal summary b { display: block; }
.pb-personal summary small { display: block; color: var(--steel); font-size: .86rem; }
.pp-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #F1EBFF; color: var(--violet); }
.pp-ic svg { width: 20px; height: 20px; }
.pb-personal .pm { margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; }
.pb-personal .pm::before, .pb-personal .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; background: var(--ink); transform: translate(-50%, -50%); }
.pb-personal .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.pb-personal[open] .pm::after { transform: translate(-50%, -50%); }
.pp-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 16px 16px; }
.pp-fields label { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--steel); }
.pp-fields input { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--mist); font: 500 1rem var(--f-body); color: var(--ink); padding: 0 12px; letter-spacing: 0; text-transform: none; }
.pp-fields input:focus { outline: none; border-color: var(--violet); background: var(--white); }
.pp-fields p { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--graphite); }
@media (max-width: 760px) { .pp-fields { grid-template-columns: 1fr; } }

.pb-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.pb-rail { position: sticky; top: 156px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 176px); overflow-y: auto; scrollbar-width: thin; }
.pb-rail .rt { margin: 0 0 8px 12px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.pb-cat { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--graphite); font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.pb-cat .n { font-size: .74rem; font-weight: 700; color: var(--steel); width: 20px; font-variant-numeric: tabular-nums; }
.pb-cat .cnt { margin-left: auto; font-size: .74rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.8); color: var(--steel); }
.pb-cat:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.pb-cat.on { background: var(--night); color: var(--white); }
.pb-cat.on .n { color: var(--violet-soft); }
.pb-cat.on .cnt { background: var(--violet); color: var(--white); }
.pb-cat.none { opacity: .4; }
@media (max-width: 900px) {
  .pb-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pb-rail { position: sticky; top: 142px; z-index: 5; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; gap: 6px; padding: 4px 2px 8px; scrollbar-width: none; }
  .pb-rail::-webkit-scrollbar { display: none; }
  .pb-rail .rt { display: none; }
  .pb-cat { flex: none; white-space: nowrap; background: var(--white); border: 1.5px solid var(--line); }
  .pb-cat .n { display: none; }
}
@media (max-width: 560px) { .pb-rail { top: 134px; } }

.pb-status { margin: 0 0 14px; color: var(--graphite); font-size: .95rem; }
.pb-status b { color: var(--ink); }
.pb-sec { scroll-margin-top: 170px; margin-bottom: 44px; }
.pb-sec[hidden] { display: none; }
.pb-shead { display: flex; align-items: baseline; gap: 12px; }
.pb-shead .num { font-family: var(--f-display); font-weight: 800; color: var(--violet); font-variant-numeric: tabular-nums; }
.pb-shead h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.pb-sdesc { margin: 6px 0 16px; color: var(--graphite); max-width: 65ch; }
.pb-list { display: grid; gap: 12px; }

.pc { background: var(--white); border: 1.5px solid var(--line); border-radius: 18px; scroll-margin-top: 170px; transition: border-color .25s, box-shadow .3s var(--ease); }
.pc:hover { border-color: #CFC4FF; }
.pc.open { border-color: var(--violet-soft); box-shadow: 0 26px 50px -36px rgba(102,26,255,.6); }
.pc[hidden] { display: none; }
.pc-head { display: flex; align-items: flex-start; gap: 14px; padding: 16px 16px 16px 20px; cursor: pointer; }
.pc-main { flex: 1; min-width: 0; }
.pc-id { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--steel); font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.pc h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.pc-toggle { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; letter-spacing: inherit; }
.pc-toggle:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.pc-peek { margin: 5px 0 0; color: var(--graphite); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc.open .pc-peek { display: none; }
.pc-dots { display: flex; gap: 4px; margin-top: 10px; }
.pc-dots .cl { width: 20px; height: 5px; border-radius: 3px; font-size: 0; box-shadow: none; }
.pc-copy { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--violet); background: var(--violet); color: var(--white); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.pc-copy svg { width: 16px; height: 16px; }
.pc-copy:hover { background: var(--violet-hover); }
.pc-copy:active { transform: scale(.96); }
.pc-copy.done { background: #E6F7EF; border-color: var(--ok); color: #11794F; }
.pc-body { border-top: 1px dashed var(--line); padding: 4px 20px 18px; }
.js .pc:not(.open) .pc-body { display: none; }
.pc.open .pc-body { animation: pc-in .35s var(--ease); }
@keyframes pc-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pc-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-top: 14px; }
.pc-badge { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; }
.pc-row .pc-badge { background: color-mix(in srgb, var(--cr) 13%, #fff); color: var(--cr); }
.pc-k { font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--cr2); }
.pc-row.c { --cr2: #4C5BE6; } .pc-row.r { --cr2: #8B5CFF; } .pc-row.a { --cr2: #D23F8C; } .pc-row.f { --cr2: #12A07F; } .pc-row.t { --cr2: #E08A12; }
.pc-row p { margin: 2px 0 0; line-height: 1.65; }
.pc-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pc-ghost { height: 38px; padding: 0 14px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--white); font: inherit; font-weight: 600; font-size: .88rem; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.pc-ghost:hover { border-color: var(--violet-soft); color: var(--violet); }
@media (max-width: 520px) { .pc-head { padding: 14px 12px 14px 14px; } .pc-copy span { display: none; } .pc-copy { width: 40px; padding: 0; justify-content: center; } .pc-body { padding: 4px 14px 16px; } .pc-row { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; } .pc-badge { width: 30px; height: 30px; font-size: .9rem; } }

.pb-empty { padding: 40px 20px; text-align: center; border: 1.5px dashed var(--line); border-radius: 18px; background: rgba(255,255,255,.6); color: var(--graphite); }
.pb-empty b { display: block; font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); margin-bottom: 6px; }
.pb-tip { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 0; padding: 16px 18px; border-radius: 16px; background: #FFF7E6; border: 1px solid #F6D58E; color: #6B4A00; font-size: .95rem; }
.pb-tip svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.pb-toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 14px; background: var(--night); color: var(--white); font-weight: 600; box-shadow: 0 20px 40px -18px rgba(20,23,66,.8); transition: opacity .25s, transform .3s var(--ease); }
.pb-toast.show { opacity: 1; transform: translate(-50%, 0); }

.pb-related { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.pb-related h2 { margin-bottom: 14px; }
.tpl-grid.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .pb-related { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .pb-rail { margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 10px; background: rgba(246,243,255,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .pb-tools { background: rgba(246,243,255,.95); }
  .pb-sec, .pc { scroll-margin-top: 210px; }
}
@media (max-width: 560px) { .pb-rail { top: 140px; } }

/* =================================================================
   Free resources hub
   ================================================================= */
.foot-top { grid-template-columns: 1.3fr repeat(4, 1fr); }
@media (max-width: 1020px) { .foot-top { grid-template-columns: repeat(2, 1fr); } .foot-top > :first-child { grid-column: 1 / -1; } }
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .hub-grid { grid-template-columns: minmax(0, 1fr); } }
.hub-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; scroll-margin-top: 100px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.hub-card:hover { transform: translateY(-8px); border-color: var(--violet-soft); box-shadow: 0 36px 60px -34px rgba(102,26,255,.6); }
.hub-top { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 28px 26px; min-height: 150px; background: radial-gradient(360px 200px at 100% 0, rgba(155,123,255,.45), transparent 70%), linear-gradient(135deg, var(--night), var(--indigo)); overflow: hidden; }
.hub-top::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.2px); background-size: 16px 16px; }
.hub-ic { position: relative; width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; background: var(--violet); color: var(--white); box-shadow: 0 16px 34px -12px rgba(102,26,255,.9); transition: transform .5s var(--spring); }
.hub-ic svg { width: 30px; height: 30px; }
.hub-card:hover .hub-ic { transform: translateY(-6px) rotate(-6deg); }
.hub-count { position: relative; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: var(--white); font-weight: 600; font-size: .88rem; }
.hub-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.hub-body h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 10px; }
.hub-body p { color: var(--graphite); }
.hub-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; flex: 1; align-content: start; }
.hub-list li { display: flex; gap: 10px; align-items: baseline; font-size: .95rem; color: var(--ink); font-weight: 500; }
.hub-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--violet-soft); transform: translateY(-2px); }
.hub-card .text-link { align-self: flex-start; }
.hub-card:hover .text-link span { background-size: 100% 1.5px; }
.hub-card:hover .text-link svg { transform: translateX(4px); }

/* Tool card (links out to tools.clonelabs.in) */
.tool-card .tpl-top { display: flex; align-items: center; gap: 14px; }
.tool-ic { position: relative; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--violet); color: var(--white); box-shadow: 0 0 20px rgba(102,26,255,.6); }
.tool-ic svg { width: 20px; height: 20px; }
.tool-host { position: relative; display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); font-size: .85rem; font-weight: 600; }
.tool-host svg { width: 14px; height: 14px; }
