/* =============================================================================
   NEXTEC — Design system
   Editorial B2B tech. Light, spacious, Swiss-grotesk. One restrained accent.
   Original implementation; craft level aimed at premium consultancy sites.
   Vanilla CSS, no framework. JS contract (IDs/classes) preserved from js/main.js.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700;14..32,800;14..32,900&display=swap');

/* ---------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------ */
:root {
  --paper:        #ffffff;
  --tint:         #eaeef6;   /* soft blue-gray section */
  --tint-2:       #f4f6fb;   /* lighter section */
  --ink:          #0d0e12;   /* near-black text + dark sections */
  --ink-2:        #14161c;   /* dark section bg */
  --ink-3:        #1c1f27;   /* dark elevated */
  --muted:        #565f6e;   /* secondary text on light */
  --muted-2:      #5c6573;   /* tertiary label — AA 4.5:1 on light */
  --muted-inv:    #9aa3b2;   /* secondary text on dark */
  --line:         #e2e7ef;   /* hairline on light */
  --line-2:       #d3dae6;   /* stronger hairline */
  --line-inv:     rgba(255,255,255,.14);

  --accent:       #2438f0;   /* electric ultramarine — used sparingly, flat */
  --accent-strong:#1a2ac2;
  --accent-ink:   #ffffff;
  --accent-soft:  #eceffe;
  --accent-bright:#818dff;   /* accent TEXT on dark bg — AA 4.5:1 */
  --accent-2:     #4d5cf6;   /* companion gradient hue — tracks the accent in gradients/glows */
  --accent-rgb:   36,56,240; /* raw triplet so rgba(var(--accent-rgb), a) glows re-hue with the accent */

  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --dur: .5s;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------------------------------------------------------------------------
   Per-page accent ramp — opt-in via [data-accent] on <body> (or a <section>).
   No attribute = brand ultramarine defaults above, byte-for-byte unchanged.
   Every var(--accent*) consumer re-hues for free; JS is untouched.
   ------------------------------------------------------------------------ */
[data-accent="indigo"] {
  --accent:       #202ad0;   /* same hue as brand blue, deeper — reads structural/solid */
  --accent-strong:#171da0;
  --accent-soft:  #eaebfb;
  --accent-bright:#7c86f2;   /* accent TEXT on dark bg — AA on --ink-2 */
  --accent-2:     #3b46e6;
  --accent-rgb:   32,42,208;
}

/* Dual-context role tokens — accent-as-TEXT and the focus ring auto-flip to the
   AA-safe bright variant under a dark surface, so no component ever has to choose
   between --accent and --accent-bright. Zero change on light (they equal --accent). */
:root { --accent-text: var(--accent); --focus: var(--accent); }

/* ---------------------------------------------------------------------------
   Surface axis — opt-in via [data-theme="dark"] on <body> OR any <section>.
   Re-scopes the SEMANTIC tokens only; the raw --ink-2/--ink-3 stay as the dark
   values they reference. One re-scope replaces ~40 hand-written .section--ink
   overrides for any subtree it wraps. (Phase 2: applied to the AI hero.)
   ------------------------------------------------------------------------ */
[data-theme="dark"] {
  color-scheme: dark;
  --paper:   var(--ink-2);
  --tint:    var(--ink-2);
  --tint-2:  var(--ink-3);
  --ink:     #f3f5f9;
  --muted:   var(--muted-inv);
  --muted-2: var(--muted-inv);
  --line:    var(--line-inv);
  --line-2:  var(--line-inv);
  --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent);
  --accent-text: var(--accent-bright);
  --focus:   var(--accent-bright);
  color: var(--ink);
}

/* ---------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* clip off-canvas mobile nav (translateX off-screen) — sticky-safe on root */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

/* ---------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------ */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }

.display { font-size: clamp(2.85rem, 7.4vw, 7rem); font-weight: 800; line-height: .98; letter-spacing: -0.035em; }
.h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.0; }
.h2 { font-size: clamp(1.9rem, 3.8vw, 3.3rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 700; letter-spacing: -0.015em; }
.h4 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.45rem); line-height: 1.5; color: var(--muted); font-weight: 400; max-width: 46ch; }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--line-2); }
.eyebrow--accent { color: var(--accent-text); }
.eyebrow--accent::before { background: var(--accent-text); }
.eyebrow--inv { color: var(--muted-inv); }
.eyebrow--inv::before { background: var(--line-inv); }

.muted { color: var(--muted); }
.small { font-size: .9rem; }
.accent-text { color: var(--accent); }

/* ---------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.section--tint-2 { background: var(--tint-2); }
.section--ink { background: var(--ink-2); color: #f3f5f9; }

.rule { height: 1px; background: var(--line); border: 0; }
.section--ink .rule { background: var(--line-inv); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stack-sm > * + * { margin-top: .75rem; }
.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2rem; }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head__intro { max-width: 54ch; }
.section-head--split { grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 768px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Buttons & links
   ------------------------------------------------------------------------ */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem; font-size: .98rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--fg); background: var(--bg); border: 1.5px solid var(--bd);
  border-radius: var(--radius-pill);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { --bg: var(--accent); --fg: var(--accent-ink); --bd: var(--accent); }
.btn--accent:hover { --bg: var(--accent-strong); --bd: var(--accent-strong); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--on-ink { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--on-ink-ghost { --bg: transparent; --fg: #fff; --bd: var(--line-inv); }
.btn--on-ink-ghost:hover { --bd: #fff; }
.btn--sm { padding: .62rem 1.15rem; font-size: .9rem; }
.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.arrow-link { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; letter-spacing: -0.01em; border-bottom: 1.5px solid transparent; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.arrow-link svg { transition: transform var(--dur) var(--ease); }
.arrow-link:hover { border-color: currentColor; }
.arrow-link:hover svg { transform: translateX(4px); }
.arrow-link--accent { color: var(--accent); }

/* ---------------------------------------------------------------------------
   Skip link
   ------------------------------------------------------------------------ */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------------------
   Header / nav
   ------------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 100; background: transparent; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.22rem; letter-spacing: -0.03em; }
.brand__mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; }
.brand__mark svg { width: 18px; height: 18px; }

.site-nav__list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.site-nav__link { font-size: .96rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; padding: .35rem 0; position: relative; }
.site-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.site-nav__link:hover::after, .site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__link.is-active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: .9rem; }
.lang-switch { font-size: .9rem; font-weight: 600; color: var(--muted); padding: .3rem .5rem; letter-spacing: .02em; }
.lang-switch:hover { color: var(--ink); }

/* Header over a dark hero (opt-in: <body data-hero="dark">). While the header is
   still transparent — at the top, sitting over the dark hero — its content goes
   light; once .is-scrolled turns it into a solid light bar, it reverts by itself. */
body[data-hero="dark"] .site-header:not(.is-scrolled) { background: var(--ink-2); }
body[data-hero="dark"] .site-header:not(.is-scrolled) .brand__logo { filter: brightness(0) invert(1); }
body[data-hero="dark"] .site-header:not(.is-scrolled) .site-nav__link { color: #fff; }
body[data-hero="dark"] .site-header:not(.is-scrolled) .lang-switch { color: rgba(255,255,255,.74); }
body[data-hero="dark"] .site-header:not(.is-scrolled) .lang-switch:hover { color: #fff; }
body[data-hero="dark"] .site-header:not(.is-scrolled) .nav-toggle { border-color: rgba(255,255,255,.32); }
body[data-hero="dark"] .site-header:not(.is-scrolled) .nav-toggle__bar { background: #fff; }

.nav-item { position: relative; }
.nav-item__toggle { display: inline-flex; align-items: center; gap: .35rem; }
.nav-item__toggle svg { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }
.nav-item:hover .nav-item__toggle svg, .nav-item:focus-within .nav-item__toggle svg { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .7rem; min-width: 320px; box-shadow: 0 24px 60px -24px rgba(13,14,18,.28); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur); }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
@media (min-width: 769px) { .nav-dropdown { display: none; } } /* desktop uses full-width mega-menu instead */
.nav-dropdown a { display: block; padding: .7rem .85rem; border-radius: 10px; font-size: .95rem; font-weight: 500; transition: background var(--dur) var(--ease); }
.nav-dropdown a small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; margin-top: .1rem; }
.nav-dropdown a:hover { background: var(--tint-2); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle__bar { width: 20px; height: 1.8px; background: var(--ink); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(13,14,18,.4); z-index: 90; opacity: 0; transition: opacity var(--dur) var(--ease); }

/* ---------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------ */
.hero { background: var(--tint); position: relative; overflow: hidden; }
.hero__inner { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 6vw, 5rem); position: relative; z-index: 1; }

/* ---- Hero ambient glow — restrained drifting orbs + faint dot-grid in the
   negative space. Low-opacity, never competes with the headline. ---- */
.hero__aside { position: absolute; top: 0; right: 0; bottom: 0; width: min(54%, 760px); z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 92%); mask-image: linear-gradient(to bottom, #000 52%, transparent 92%);
  /* bloom-in po načtení stránky (za preloaderem); pak přejde do driftu orbů */
  transform-origin: 68% 34%; animation: heroAsideIn 1.6s var(--ease) 2s both; }
.no-preloader .hero__aside { animation-delay: .35s; }
@keyframes heroAsideIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
.hero__aside::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(var(--accent-rgb),.16) 1.1px, transparent 1.5px); background-size: 24px 24px; opacity: .6; -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 42%); mask-image: linear-gradient(100deg, transparent 0%, #000 42%); animation: heroGrid 34s linear infinite; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(54px); }
.hero__orb--1 { width: 420px; height: 420px; top: -100px; right: -70px; background: radial-gradient(circle at 42% 40%, rgba(var(--accent-rgb),.5), rgba(var(--accent-rgb),0) 68%); animation: heroOrb1 18s var(--ease) infinite alternate; }
.hero__orb--2 { width: 320px; height: 320px; bottom: -70px; right: 40px; background: radial-gradient(circle at 50% 50%, rgba(106,77,246,.4), rgba(106,77,246,0) 66%); animation: heroOrb2 23s var(--ease) infinite alternate; }
.hero__orb--3 { width: 240px; height: 240px; top: 40%; right: 40%; background: radial-gradient(circle at 50% 50%, rgba(90,120,255,.3), rgba(90,120,255,0) 64%); animation: heroOrb3 27s var(--ease) infinite alternate; }
/* drift + jemné „nadechnutí" (scale/opacity) — každý orb v jiném rytmu = organická živá záře */
@keyframes heroOrb1 { 0% { transform: translate(0,0) scale(1); opacity: .85; } 100% { transform: translate(-28px, 32px) scale(1.1); opacity: 1; } }
@keyframes heroOrb2 { 0% { transform: translate(0,0) scale(1.06); opacity: 1; } 100% { transform: translate(26px, -32px) scale(.96); opacity: .82; } }
@keyframes heroOrb3 { 0% { transform: translate(0,0) scale(.94); opacity: .72; } 100% { transform: translate(-18px, -22px) scale(1.14); opacity: 1; } }
/* nepatrný diagonální posun tečkované mřížky — loop po jedné dlaždici (24px) = plynulé */
@keyframes heroGrid { from { background-position: 0 0; } to { background-position: 24px 24px; } }
@media (max-width: 900px) { .hero__aside { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__orb, .hero__aside::before, .hero__aside { animation: none; } }
.hero__title { max-width: 17ch; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lower { margin-top: clamp(3rem, 8vw, 6.5rem); display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: end; padding-top: 2rem; border-top: 1px solid var(--line-2); }
.hero__lead { font-size: 1.05rem; color: var(--ink); max-width: 36ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero__meta-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: .6rem; }
.hero__pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border: 1px solid var(--line-2); border-radius: var(--radius-pill); font-size: .85rem; font-weight: 500; color: var(--muted); background: rgba(255,255,255,.5); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.trustbar { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.25rem, 4vw, 3rem); padding-block: 1.6rem; }
.trustbar__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); }
.trustbar__item { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); font-size: .96rem; }
.trustbar__item svg { width: 17px; height: 17px; color: var(--accent); }

/* ---------------------------------------------------------------------------
   Data-flow visual (pure HTML/CSS)
   ------------------------------------------------------------------------ */
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem, 2.5vw, 2rem); align-items: center; }
.flow__col { display: grid; gap: .6rem; }
.flow__node { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; font-weight: 500; }
.flow__node svg { width: 16px; height: 16px; color: var(--muted-2); flex: none; }
.flow__engine { display: grid; place-items: center; text-align: center; gap: .3rem; padding: 1.4rem 1.2rem; min-width: 150px; background: var(--ink); color: #fff; border-radius: 16px; }
.flow__engine strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.flow__engine span { font-size: .78rem; color: var(--muted-inv); }
.flow__engine-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-bottom: .3rem; }
.section--ink .flow__node { background: var(--ink-3); border-color: var(--line-inv); color: #eef1f6; }
.section--ink .flow__engine { background: #fff; color: var(--ink); }
.section--ink .flow__engine span { color: var(--muted); }
@media (max-width: 620px) { .flow { grid-template-columns: 1fr; } .flow__engine { min-width: 0; } }

/* ---------------------------------------------------------------------------
   Service list — big title links (editorial)
   ------------------------------------------------------------------------ */
.svc-list { border-top: 1px solid var(--line-2); }
.svc-row { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: clamp(1rem,3vw,2.5rem); align-items: center; padding: clamp(1.5rem, 3vw, 2.4rem) 0; border-bottom: 1px solid var(--line); transition: padding-left var(--dur) var(--ease); }
.svc-row:hover { padding-left: .6rem; }
.svc-row__idx { font-size: .85rem; color: var(--muted-2); font-variant-numeric: tabular-nums; padding-top: .3rem; }
.svc-row__title { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.svc-row__desc { color: var(--muted); font-size: .98rem; margin-top: .5rem; max-width: 62ch; }
.svc-row__go { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); flex: none; }
.svc-row__go svg { width: 20px; height: 20px; transition: transform var(--dur) var(--ease); }
.svc-row:hover .svc-row__go { background: var(--ink); color: #fff; border-color: var(--ink); }
.svc-row:hover .svc-row__go svg { transform: translateX(3px); }

/* ---------------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------ */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.2vw, 2rem); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); height: 100%; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 60px -34px rgba(13,14,18,.22); }
.card__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card__ico svg { width: 22px; height: 22px; color: var(--ink); }
.card__title { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: .5rem; }
.card__text { color: var(--muted); font-size: .96rem; }
.card__idx { font-size: .82rem; color: var(--muted-2); font-variant-numeric: tabular-nums; margin-bottom: 1rem; }
.section--tint .card { background: var(--paper); }
.section--ink .card { background: var(--ink-3); border-color: var(--line-inv); }
.section--ink .card__title { color: #fff; }
.section--ink .card__text { color: var(--muted-inv); }
.section--ink .card__ico { background: rgba(255,255,255,.08); }
.section--ink .card__ico svg { color: #fff; }

/* problem list */
.plist { display: grid; }
.plist__item { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.plist__num { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.plist__item p { color: var(--muted); }

/* stats */
.stat__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: .6rem; }
.stat__num { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.04em; line-height: .9; }
.stat__sub { color: var(--muted); font-size: .92rem; margin-top: .5rem; }
.section--ink .stat__num { color: #fff; }

/* value pillars */
.value-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,3vw,3rem); padding: clamp(1.5rem,3vw,2.4rem) 0; border-top: 1px solid var(--line); align-items: start; }
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-row__benefit { color: var(--muted); }
.value-row__benefit strong { color: var(--ink); font-weight: 600; }
@media (max-width: 768px) { .value-row { grid-template-columns: 1fr; gap: .8rem; } }

/* ---------------------------------------------------------------------------
   Pillar band (Startup/MVP) — dark
   ------------------------------------------------------------------------ */
.pillar { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pillar__list { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; margin-top: 1.5rem; }
.pillar__list li { display: flex; gap: .55rem; align-items: baseline; color: var(--muted-inv); font-size: .95rem; }
.pillar__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
@media (max-width: 768px) { .pillar__list { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Comparison table
   ------------------------------------------------------------------------ */
.ctable-wrap { overflow-x: auto; border-top: 1px solid var(--line-2); }
.ctable { width: 100%; border-collapse: collapse; min-width: 640px; }
.ctable th, .ctable td { text-align: left; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctable thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 600; }
.ctable tbody th { font-weight: 700; letter-spacing: -0.01em; width: 22%; }
.ctable td { color: var(--muted); font-size: .96rem; }
.ctable td.is-with { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------------------
   Process timeline
   ------------------------------------------------------------------------ */
.timeline { display: grid; }
.tl-step { display: grid; grid-template-columns: 4rem 1fr; gap: clamp(1rem,2.5vw,2rem); padding: clamp(1.5rem,3vw,2.2rem) 0; border-top: 1px solid var(--line); }
.tl-step:last-child { border-bottom: 1px solid var(--line); }
.tl-step__n { font-size: .95rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.tl-step__body p { color: var(--muted); margin-top: .5rem; max-width: 62ch; }
.tl-step__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.tl-step__tags span { font-size: .82rem; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .28rem .7rem; }

/* ---------------------------------------------------------------------------
   Calculator
   ------------------------------------------------------------------------ */
.calc { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 2rem); }
.calc__field { border: 0; padding: 0; margin: 0; }
.calc__field legend { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 600; margin-bottom: .7rem; padding: 0; }
.calc__opts { display: grid; gap: .4rem; }
.calc__opt { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: .92rem; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.calc__opt:hover { border-color: var(--line-2); }
.calc__opt input { appearance: none; -webkit-appearance: none; width: 17px; height: 17px; border: 1.5px solid var(--line-2); border-radius: 50%; flex: none; display: grid; place-items: center; transition: border-color var(--dur) var(--ease); }
.calc__opt input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform var(--dur) var(--ease); }
.calc__opt input:checked { border-color: var(--accent); }
.calc__opt input:checked::after { transform: scale(1); }
.calc__opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.calc__result { position: sticky; top: 100px; background: var(--ink-2); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); }
.calc__result-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-inv); }
.calc__tier { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin-top: .3rem; }
.calc__amount { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; margin-top: .3rem; color: #fff; }
.calc__bar { height: 6px; background: rgba(255,255,255,.12); border-radius: 999px; margin: 1.2rem 0; overflow: hidden; }
.calc__bar-fill { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .6s var(--ease); }
.calc__result.is-active .calc__tier, .calc__result.is-active .calc__amount { animation: rise .5s var(--ease); }
.calc__disclaimer { font-size: .84rem; color: var(--muted-inv); margin-top: 1.2rem; line-height: 1.5; }
.calc__cta { margin-top: 1.4rem; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .calc__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Case studies
   ------------------------------------------------------------------------ */
.case { display: grid; gap: 1rem; padding: clamp(1.5rem,2.5vw,2rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); height: 100%; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.case:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(13,14,18,.2); }
.case__tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.case__row { display: grid; gap: .2rem; }
.case__row dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.case__row dd { color: var(--ink); }
.case__row dd.is-result { font-weight: 600; }

/* ---------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__question { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.3rem 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.faq-item__icon { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; position: relative; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; width: 13px; height: 1.8px; background: var(--ink); transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-item__icon { background: var(--accent); border-color: var(--accent); }
.faq-item.is-open .faq-item__icon::before, .faq-item.is-open .faq-item__icon::after { background: #fff; }
.faq-item.is-open .faq-item__icon::after { transform: rotate(0); }
.faq-item__answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.faq-item__answer-inner { overflow: hidden; }
.faq-item.is-open .faq-item__answer { grid-template-rows: 1fr; }
.faq-item__answer p { color: var(--muted); padding-bottom: 1.4rem; max-width: 76ch; }

/* ---------------------------------------------------------------------------
   Contact form
   ------------------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); }
.form-field { display: grid; gap: .45rem; margin-bottom: 1.2rem; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.form-field .req { color: var(--accent); }
.input, .textarea, .select { width: 100%; padding: .85rem 1rem; background-color: var(--paper); border: 1.5px solid var(--line-2); border-radius: 11px; font-size: 1rem; color: var(--ink); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.textarea { min-height: 130px; resize: vertical; }
/* custom-styled select — kill native OS chrome + brand chevron (light bg) */
.select { appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer; padding-right: 2.9rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565f6e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.05rem center; background-size: 16px 16px; }
.select::-ms-expand { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field.has-error .input, .form-field.has-error .textarea, .form-field.has-error .select { border-color: #d1283b; box-shadow: 0 0 0 4px rgba(209,40,59,.1); }
.form-error { color: #d1283b; font-size: .82rem; min-height: 1em; }
.form-success { display: none; flex-direction: column; gap: .6rem; text-align: left; padding: 2rem; background: var(--accent-soft); border: 1px solid #c9d0fb; border-radius: var(--radius-lg); }
.form-success.is-visible { display: flex; }
.form-success__ico { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.form-note { font-size: .84rem; color: var(--muted-2); margin-top: .5rem; }
/* form on dark sections (contact) — labels light, inputs dark, accent focus */
.section--ink .form-field label { color: #fff; }
.section--ink .form-field .req { color: var(--accent-bright); }
.section--ink .input, .section--ink .textarea, .section--ink .select { background-color: var(--ink-3); border-color: var(--line-inv); color: #fff; }
.section--ink .input:hover, .section--ink .textarea:hover, .section--ink .select:hover { border-color: rgba(255,255,255,.3); }
.section--ink .input::placeholder, .section--ink .textarea::placeholder { color: var(--muted-inv); }
/* light chevron for select on dark sections */
.section--ink .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.section--ink .select option { color: var(--ink); background: #fff; }
.section--ink .input:focus, .section--ink .textarea:focus, .section--ink .select:focus { border-color: var(--accent-bright); box-shadow: 0 0 0 4px rgba(129,141,255,.22); }
.section--ink .form-note { color: var(--muted-inv); }
.section--ink .form-success { background: var(--ink-3); border-color: var(--line-inv); }
.section--ink .form-success h3 { color: #fff; }
.section--ink .form-success__ico { background: var(--accent); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------ */
.site-footer { background: var(--ink-2); color: #d7dce4; padding-top: clamp(4rem, 8vw, 7rem); }
.site-footer a { color: #c3cad5; transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(2rem,4vw,3rem); padding-bottom: clamp(3rem,6vw,5rem); }
.footer-brand .brand { color: #fff; font-size: 1.4rem; }
.footer-brand__text { color: var(--muted-inv); margin-top: 1.1rem; max-width: 34ch; font-size: .95rem; }
.footer-col__title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-inv); margin-bottom: 1.1rem; }
.footer-col__links { display: grid; gap: .7rem; font-size: .96rem; }
.footer-word { font-size: clamp(3.5rem, 14vw, 12rem); font-weight: 800; letter-spacing: -0.05em; line-height: .85; color: #fff; padding: clamp(1.5rem,3vw,2.5rem) 0; border-top: 1px solid var(--line-inv); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2rem; border-top: 1px solid var(--line-inv); color: var(--muted-inv); font-size: .88rem; }
.footer-bottom a { color: var(--muted-inv); }

/* ---------------------------------------------------------------------------
   Page hero (subpages)
   ------------------------------------------------------------------------ */
.page-hero { background: var(--tint); padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
/* Restrained ambient motif in the negative space — inherits the page --accent,
   static (no motion), always well below the headline. Gives subpage heroes the
   same premium depth as the homepage hero; each page differs ONLY by hue/surface. */
.page-hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; z-index: 0;
  width: min(50%, 660px); pointer-events: none;
  background-image:
    radial-gradient(58% 58% at 80% 22%, rgba(var(--accent-rgb),.13), transparent 72%),
    radial-gradient(rgba(var(--accent-rgb),.14) 1px, transparent 1.6px);
  background-size: 100% 100%, 24px 24px;
  background-repeat: no-repeat, repeat;
  -webkit-mask-image: linear-gradient(102deg, transparent 6%, #000 58%);
  mask-image: linear-gradient(102deg, transparent 6%, #000 58%);
}
.page-hero > .wrap { position: relative; z-index: 1; }
@media (max-width: 760px) { .page-hero::before { display: none; } }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted-2); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--ink); }
.page-hero__title { max-width: 20ch; }
.page-hero__lead { margin-top: 1.5rem; }

/* O nás — dvoudílný hero + split */
.onas-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,4rem); align-items: start; margin-top: clamp(1rem,3vw,2rem); }
.onas-hero__alt { color: var(--ink); }
.onas-hero__tag { max-width: 42ch; margin-top: clamp(2rem,5vw,3.2rem); }
@media (max-width:820px) { .onas-hero { grid-template-columns: 1fr; gap: 1rem; } }
.onas-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem,5vw,5rem); }
@media (max-width:820px) { .onas-split { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------------------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }
/* reveal + scale-in (abstract media bands) */
.reveal-scale { opacity: 0; transform: perspective(1400px) rotateX(5deg) scale(.94) translateY(28px); transform-origin: center bottom; transition: opacity .9s var(--ease), transform 1.05s var(--ease); will-change: transform, opacity; }
.reveal-scale.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-scale { opacity: 1; transform: none; } }

/* ===========================================================================
   PAGE-LOAD PRELOADER — kreslené „N" (jednou za session)
   ======================================================================== */
.preloader { position: fixed; inset: 0; z-index: 9999; background: var(--ink); color: #fff; display: grid; place-items: center; animation: preHide .7s var(--ease) 1.2s forwards; }
.preloader__mark { display: grid; place-items: center; gap: 1.1rem; }
.preloader__n { width: clamp(74px, 12vw, 132px); height: auto; }
.preloader__n path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: nDraw 1.1s cubic-bezier(.66,.02,.34,1) forwards; }
.preloader__word { font-weight: 800; letter-spacing: -0.03em; font-size: 1.1rem; opacity: 0; animation: preWord .5s var(--ease) .95s forwards; }
@keyframes nDraw { to { stroke-dashoffset: 0; } }
@keyframes preWord { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes preHide { to { opacity: 0; visibility: hidden; } }
.no-preloader .preloader { display: none; }
@media (prefers-reduced-motion: reduce) {
  .preloader { animation: none; opacity: 0; visibility: hidden; }
  .preloader__n path { animation: none; stroke-dashoffset: 0; }
  .preloader__word { animation: none; opacity: 1; }
}

/* Nav logo — reálný „nextec" wordmark. Na load se „napíše" zleva doprava (clip wipe).
   1. návštěva: reveal až po odejití preloaderu (plynulá návaznost); další načtení (.no-preloader): hned. */
.brand__logo { display: block; height: 25px; width: auto; }
.site-header .brand__logo { animation: brandWipe .75s cubic-bezier(.66,.02,.34,1) 1.95s both; }
.no-preloader .site-header .brand__logo { animation-delay: .18s; }
@keyframes brandWipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .site-header .brand__logo { animation: none; clip-path: none; }
}

/* Strikethrough „hláška" — přeškrtnutá slova (animace) */
.strike { position: relative; color: var(--muted); white-space: nowrap; }
.strike::after { content: ""; position: absolute; left: -.04em; right: -.04em; top: 52%; height: .08em; background: var(--accent); border-radius: 3px; transform: scaleX(0); transform-origin: left; }
.strike.is-struck::after { transform: scaleX(1); transition: transform .55s var(--ease); }
.section--ink .strike { color: var(--muted-inv); }
@media (prefers-reduced-motion: reduce) { .strike.is-struck::after { transition: none; } }

/* ===========================================================================
   VISUAL LAYER — ribbon, hero product panel, mockups, cover-art, blog, article
   ======================================================================== */

/* Announcement ribbon */
.ribbon { background: var(--ink); color: #fff; font-size: .88rem; }
.ribbon[hidden] { display: none; }
.ribbon__inner { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .6rem var(--gutter); position: relative; }
.ribbon a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.ribbon a .kbd { color: var(--muted-inv); font-weight: 400; }
.ribbon a svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.ribbon a:hover svg { transform: translateX(4px); }
.ribbon__tag { color: var(--accent-bright); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }
.ribbon__close { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); color: var(--muted-inv); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.ribbon__close:hover { color: #fff; background: rgba(255,255,255,.1); }
@media (max-width: 680px) { .ribbon__close { display: none; } .ribbon__inner { padding-inline: 1rem; } }

/* Accent keyword highlight in prose */
.kw { color: var(--accent-text); }

/* Big faded section number */
.section-num { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.section-num b { color: var(--ink); }

/* ---- Device / browser frame ---- */
.device { border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line-inv); box-shadow: 0 40px 80px -40px rgba(13,14,18,.45); overflow: hidden; }
.device__bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line-inv); }
.device__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.device__addr { margin-left: .6rem; font-size: .72rem; color: var(--muted-inv); background: rgba(255,255,255,.06); padding: .2rem .7rem; border-radius: 999px; }
.device__body { padding: 1.1rem; }

/* ---- Animated dashboard (hero "video-like" element) ---- */
.dash { display: grid; gap: .8rem; color: #eef1f6; }
.dash__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.dash__kpi { background: var(--ink-3); border: 1px solid var(--line-inv); border-radius: 12px; padding: .8rem .9rem; }
.dash__kpi .l { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-inv); }
.dash__kpi .v { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; margin-top: .2rem; }
.dash__kpi .v em { font-style: normal; color: var(--accent-bright); }
.dash__chart { background: var(--ink-3); border: 1px solid var(--line-inv); border-radius: 12px; padding: 1rem; position: relative; }
.dash__chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .7rem; }
.dash__chart-head .t { font-size: .78rem; font-weight: 600; }
.dash__chart-head .d { font-size: .68rem; color: var(--muted-inv); }
.dash__svg { width: 100%; height: 90px; display: block; }
.dash__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 620; stroke-dashoffset: 620; animation: dashDraw 2.6s var(--ease) forwards; }
.dash__area { fill: url(#dashGrad); opacity: 0; animation: dashFade 1.2s var(--ease) 1.8s forwards; }
.dash__pt { fill: #fff; opacity: 0; animation: dashFade .4s ease 2.4s forwards; }
.dash__bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; align-items: end; height: 66px; margin-top: .3rem; }
.dash__bar { background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-radius: 3px 3px 0 0; height: 0; animation: barGrow .9s var(--ease) forwards; opacity: .85; }
.dash__flowline { position: absolute; }
@keyframes dashDraw { to { stroke-dashoffset: 0; } }
@keyframes dashFade { to { opacity: 1; } }
@keyframes barGrow { to { height: var(--h, 40%); } }
.dash__live { display: inline-flex; align-items: center; gap: .4rem; font-size: .66rem; color: var(--muted-inv); }
.dash__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #35d399; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(53,211,153,.5); } 50% { opacity: .5; box-shadow: 0 0 0 5px rgba(53,211,153,0); } }

/* ---- Hero restructure (stage with panel) ---- */
.hero__stage { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: clamp(2.5rem, 6vw, 5rem); }
@media (max-width: 900px) { .hero__stage { grid-template-columns: 1fr; } }

/* ---- Generic UI mockup card (service pages) ---- */
.uimock { background: var(--ink-2); border: 1px solid var(--line-inv); border-radius: 16px; padding: 1rem; color: #eef1f6; box-shadow: 0 30px 70px -40px rgba(13,14,18,.4); }
.uimock__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.uimock__title { font-size: .82rem; font-weight: 600; }
.uimock__tag { font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-bright); border: 1px solid var(--line-inv); border-radius: 999px; padding: .15rem .55rem; }
.uimock__rows { display: grid; gap: .5rem; }
.uimock__rowline { display: flex; align-items: center; gap: .6rem; background: var(--ink-3); border-radius: 9px; padding: .55rem .7rem; font-size: .76rem; }
.uimock__rowline .ic { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; }
.uimock__rowline .ic svg { width: 13px; height: 13px; color: var(--muted-inv); }
.uimock__rowline .grow { flex: 1; }
.uimock__rowline .st { font-size: .64rem; color: #35d399; border: 1px solid rgba(53,211,153,.3); border-radius: 999px; padding: .1rem .5rem; }
.uimock__rowline .st--muted { color: var(--muted-inv); border-color: var(--line-inv); }

/* ---- Cover-art (original CSS/SVG, no photos) ---- */
.cover { display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink-2); }
.post-card__media { display: block; }
.cover--flat { aspect-ratio: 16 / 9; }
.cover__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover__label { position: absolute; left: 1.1rem; bottom: 1rem; color: #fff; font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.2rem, 2.4vw, 2rem); max-width: 80%; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.cover__kicker { position: absolute; left: 1.1rem; top: 1rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: rgba(255,255,255,.85); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.4px); background-size: 22px 22px; opacity: .5; mix-blend-mode: soft-light; pointer-events: none; }
.cover::before { content: ""; position: absolute; right: -14%; top: -30%; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.16); box-shadow: 0 0 0 26px rgba(255,255,255,.05) inset; pointer-events: none; }
.cover--a { background: radial-gradient(130% 130% at 18% 8%, #2f45ff 0%, #1a2ac2 34%, #12142a 72%); }
.cover--b { background: radial-gradient(110% 130% at 82% 0%, #6a4df6 0%, var(--accent) 42%, #0f1120 82%); }
.cover--c { background: linear-gradient(135deg, var(--accent) 0%, #171a35 68%); }
.cover--d { background: radial-gradient(130% 130% at 50% 128%, var(--accent) 0%, #14161c 62%); }
.cover--e { background: linear-gradient(120deg, #1a2ac2 0%, #14161c 72%); }
.cover--f { background: linear-gradient(205deg, #33459a 0%, #14161c 70%); }
/* decorative motif lines inside covers */
.cover__art { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- Trust / rating ---- */
.trust-card { display: inline-flex; align-items: center; gap: .7rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem; box-shadow: 0 8px 24px -16px rgba(13,14,18,.25); }
.trust-card__stars { color: var(--accent); letter-spacing: 1px; font-size: .9rem; }
.trust-card__num { font-weight: 800; letter-spacing: -0.02em; }
.trust-card__sub { font-size: .8rem; color: var(--muted); }

/* Logos / proof strip */
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); opacity: .8; }
.proof__item { font-weight: 700; letter-spacing: -0.02em; color: var(--muted); font-size: 1.05rem; }

/* ---- Numbered capability pills (service pages) ---- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 820px) { .caps { grid-template-columns: 1fr; } }
.cap-group { display: grid; gap: .5rem; align-content: start; }
.cap-group__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: .3rem; }
.cap { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 999px; font-size: .92rem; font-weight: 500; background: var(--tint-2); border: 1px solid var(--line); }
.cap__n { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 700; flex: none; }
.cap-group--a .cap { background: #efeafc; border-color: #e2d9f7; }
.cap-group--b .cap { background: #e9f0fe; border-color: #d5e2fb; }
.cap-group--c .cap { background: #e8f5ef; border-color: #d4ecdf; }

/* ---- Blog: cards + featured ---- */
/* Blog category filter pills (separator between hero and articles) */
.filter-pills { display: flex; flex-wrap: wrap; gap: .6rem; padding-bottom: clamp(1.6rem,3vw,2.4rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem,4vw,3.2rem); }
.filter-pill { padding: .55rem 1.15rem; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); font-size: .9rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); background: transparent; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.filter-pill:hover { border-color: var(--ink); }
.filter-pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.work-card[hidden], .post-featured[hidden], .post-card[hidden] { display: none !important; }

.post-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .post-featured { grid-template-columns: 1fr; } }
.post-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--accent); }
.post-featured__title { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: .8rem 0; }
.post-featured__excerpt { color: var(--muted); max-width: 46ch; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: grid; gap: .9rem; }
.post-card__media { border-radius: var(--radius-lg); overflow: hidden; }
.post-card .cover { transition: transform var(--dur) var(--ease); }
.post-card:hover .cover { transform: scale(1.02); }
.post-card__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.post-card:hover .post-card__title { color: var(--accent); }
.post-card__excerpt { color: var(--muted); font-size: .95rem; }
.byline { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--muted); }
.byline__avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; font-weight: 700; font-size: .72rem; color: var(--ink); flex: none; }
.byline__sep { color: var(--muted-2); }

/* ---- Article / prose ---- */
.article__cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.article__head { max-width: 760px; }
.article__title { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.03; margin: 1rem 0; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; color: var(--muted); font-size: .9rem; }
.prose { max-width: 720px; }
.prose > * + * { margin-top: 1.35rem; }
.prose p { color: #2b2f38; font-size: 1.12rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; margin-top: 2.8rem; }
.prose h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.2rem; color: #2b2f38; font-size: 1.08rem; line-height: 1.65; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.5rem; margin-top: .6rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose ol { padding-left: 1.4rem; } .prose ol li { margin-top: .6rem; }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.pull-quote { border-left: 3px solid var(--accent); padding: .3rem 0 .3rem 1.4rem; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); }
.prose figure.callout { background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; }
.prose figure.callout .l { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 600; margin-bottom: .5rem; }
.article__related { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2rem); }
@media (max-width: 760px) { .article__related { grid-template-columns: 1fr; } }

/* ===========================================================================
   INFINUM-STYLE LAYER v2 — mega-menu, simple hero, media/showcase, logo wall,
   image-led work/blog cards, icon-less tiles
   ======================================================================== */

/* ---- Mega-menu (full-width panel) ---- */
.megamenu {
  position: fixed; left: 0; right: 0; top: 0; z-index: 98;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(13,14,18,.2);
  padding: 96px var(--gutter) clamp(2rem,4vw,3.5rem);
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility var(--dur);
}
.megamenu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.megamenu__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem,5vw,5rem); max-width: var(--wrap); margin-inline: auto; }
.megamenu__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); margin-bottom: 1.4rem; }
.megamenu__services { display: grid; gap: .1rem; }
.megamenu__svc { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.megamenu__svc .t { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.025em; transition: color var(--dur) var(--ease); }
.megamenu__svc .d { font-size: .88rem; color: var(--muted); max-width: 24ch; text-align: right; }
.megamenu__svc:hover .t { color: var(--accent); }
.megamenu__side { display: grid; gap: .6rem; align-content: start; }
.megamenu__side a { display: flex; align-items: center; gap: .5rem; font-weight: 500; padding: .35rem 0; color: var(--muted); transition: color var(--dur) var(--ease); }
.megamenu__side a:hover { color: var(--ink); }
.megamenu__side a svg { width: 15px; height: 15px; opacity: .5; transition: transform var(--dur) var(--ease); }
.megamenu__side a:hover svg { transform: translateX(3px); opacity: 1; }
.megamenu-backdrop { position: fixed; inset: 0; z-index: 97; background: rgba(13,14,18,.25); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur); }
.megamenu-backdrop.is-open { opacity: 1; visibility: visible; }
.nav-item__toggle.is-open svg { transform: rotate(180deg); }
@media (max-width: 768px) { .megamenu { display: none; } }

/* ---- Simple hero row ---- */
.hero__row { margin-top: clamp(3rem, 8vw, 6rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: end; padding-top: 2rem; border-top: 1px solid var(--line-2); }
.hero__row .hero__lead { font-size: 1.1rem; color: var(--ink); max-width: 40ch; }
.hero__rating { display: flex; align-items: center; gap: .7rem; }
.hero__rating .stars { color: var(--accent); letter-spacing: 1px; }
.hero__rating .txt { font-size: .95rem; color: var(--muted); max-width: 26ch; }
@media (max-width: 768px) { .hero__row { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---- Media slot (image / video / live) ---- */
.media { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); aspect-ratio: 16/10; }
.media--wide { aspect-ratio: 16/8; }
.media--tall { aspect-ratio: 4/5; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media video { opacity: 0; z-index: 2; transition: opacity .5s var(--ease); }
.media.is-playing video { opacity: 1; }
.media.is-playing .media__play { opacity: 0; }
.media__cap { position: absolute; left: 1.2rem; bottom: 1.1rem; right: 1.2rem; color: #fff; z-index: 3; }
.media__cap .k { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: rgba(255,255,255,.82); }
.media__cap .t { display: block; font-size: clamp(1.1rem,2vw,1.6rem); font-weight: 800; letter-spacing: -0.02em; margin-top: .3rem; }
.media__play { position: absolute; z-index: 3; left: 1.2rem; top: 1.1rem; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.media__play svg { width: 16px; height: 16px; color: #fff; margin-left: 2px; }
.media:hover .media__play { transform: scale(1.08); background: var(--accent); border-color: var(--accent); }
/* "hover to play" — looping sheen/scan that is paused until hover */
.media__scene { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.media__scene::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.10), transparent); animation: sheen 2.6s linear infinite; animation-play-state: paused; }
.media:hover .media__scene::before, .media.is-playing .media__scene::before { animation-play-state: running; }
@keyframes sheen { to { left: 120%; } }
/* cinematic / duotone photo treatment (masks stock, on-brand editorial look) */
.media--cine img { filter: grayscale(.42) contrast(1.05) brightness(.82); }
.media--cine::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(155deg, rgba(var(--accent-rgb),.30), rgba(11,12,20,.74)); pointer-events: none; }
.media--soft img, .media--soft video { filter: saturate(.92) contrast(1.03); }
.media--soft::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,14,18,0) 40%, rgba(13,14,18,.42)); pointer-events: none; }
.media--frame { border: 1px solid var(--line); }

/* Abstract full-width band (autoplay abstract video + caption + scale-in) */
.band { position: relative; display: block; width: 100%; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 6.5; background: var(--ink-2); box-shadow: 0 40px 100px -55px rgba(13,14,18,.5); }
.band video, .band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.82); }
.band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(150deg, rgba(var(--accent-rgb),.5), rgba(11,12,20,.52)); pointer-events: none; }
.band__cap { position: absolute; left: clamp(1.4rem,3vw,2.6rem); bottom: clamp(1.3rem,3vw,2.1rem); z-index: 2; color: #fff; max-width: 62%; }
.band__cap .k { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: rgba(255,255,255,.85); }
.band__cap .t { display: block; font-size: clamp(1.2rem,2.4vw,2.1rem); font-weight: 800; letter-spacing: -0.025em; margin-top: .35rem; line-height: 1.08; }
@media (max-width: 700px) { .band { aspect-ratio: 16 / 10; } .band__cap { max-width: 84%; } }
/* floating device over a media band */
.showcase__stack { position: relative; }
.showcase__device { position: absolute; z-index: 4; right: clamp(1rem,4vw,4rem); bottom: clamp(-1rem,-2vw,-2rem); width: min(52%, 560px); }
.showcase__stack .media__cap { right: auto; max-width: 52%; }
@media (max-width: 760px) { .showcase__device { position: static; width: 100%; margin-top: 1rem; } .showcase__stack .media__cap { max-width: 80%; } }

/* ---- Scroll-scale hero media (zoom into next section, Infinum-style) ---- */
.scaler { position: relative; height: 240vh; background: var(--tint); }
.scaler__pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.scaler__media { position: relative; width: 62vw; height: 60vh; border-radius: 24px; overflow: hidden; background: var(--ink-2); box-shadow: 0 50px 120px -50px rgba(13,14,18,.55); will-change: width, height, border-radius; }
.scaler__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scaler__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(165deg, rgba(var(--accent-rgb),.12), rgba(11,12,20,.55)); pointer-events: none; }
.scaler__cap { position: absolute; left: clamp(1.2rem,3vw,2.6rem); bottom: clamp(1.2rem,3vw,2.2rem); z-index: 2; color: #fff; max-width: 62%; }
.scaler__cap .k { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: rgba(255,255,255,.85); }
.scaler__cap .t { display: block; font-size: clamp(1.3rem,2.6vw,2.4rem); font-weight: 800; letter-spacing: -0.025em; margin-top: .4rem; line-height: 1.05; }
.scaler__hint { position: absolute; left: 50%; bottom: 1.3rem; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.72); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .5rem; transition: opacity var(--dur) var(--ease); }
.scaler__hint svg { width: 14px; height: 14px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.scaler.is-full .scaler__hint { opacity: 0; }
@media (max-width: 760px) { .scaler { height: auto; } .scaler__pin { position: static; height: auto; padding-block: 1rem; } .scaler__media { width: 100%; height: 58vh; } .scaler__hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .scaler { height: auto; } .scaler__pin { position: static; height: auto; } .scaler__media { width: 100%; height: 60vh; } .scaler__hint { display: none; } }

/* ---- Showcase (scroll-reveal product visual) ---- */
.showcase { display: grid; gap: clamp(1.5rem,3vw,2.5rem); }
.showcase__frame { transform: perspective(1600px) rotateX(6deg) translateY(28px) scale(.97); opacity: 0; transition: transform 1s var(--ease), opacity .8s var(--ease); transform-origin: center bottom; }
.showcase__frame.is-in { transform: perspective(1600px) rotateX(0) translateY(0) scale(1); opacity: 1; }
.showcase__cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }

/* ---- Logo wall (fictional placeholders) ---- */
.logowall { display: grid; gap: clamp(1.5rem,3vw,2.5rem); }
.logowall__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.logowall__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1rem,2.5vw,2rem); align-items: center; }
@media (max-width: 900px) { .logowall__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logowall__grid { grid-template-columns: repeat(2, 1fr); } }
.logo-ph { display: grid; place-items: center; height: 46px; color: var(--muted-2); font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; opacity: .8; transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease); text-align: center; }
.logo-ph:hover { color: var(--ink); opacity: 1; }
.logo-ph--serif { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: 0; }
.logo-ph--wide { letter-spacing: .18em; font-weight: 700; font-size: .95rem; }
.logo-ph--thin { font-weight: 500; }

/* ---- Image-led work/blog cards (big media, big title, less text) ---- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem,3vw,3rem) clamp(1.5rem,3vw,3.5rem); }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { display: grid; gap: 1.1rem; }
.work-card__media { border-radius: var(--radius-lg); overflow: hidden; }
.work-card__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.work-card__title { font-size: clamp(1.35rem,2.4vw,1.9rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; max-width: 20ch; background: linear-gradient(currentColor, currentColor) 0 100% / 0% 2px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease); }
.work-card:hover .work-card__title { background-size: 100% 2px; }
.work-card__cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted-2); white-space: nowrap; padding-top: .4rem; }
.work-card__go { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; transition: transform var(--dur) var(--ease); }
.work-card:hover .work-card__go { transform: translateX(4px); }
.work-card__go svg { width: 18px; height: 18px; }

/* ---- Icon-less tiles (replaces icon-boxes) ---- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
.tile { padding: clamp(2.4rem,4vw,3.2rem) clamp(2rem,3vw,2.8rem) clamp(2.4rem,4vw,3.2rem) 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.tiles > .tile:not(:nth-child(3n+1)) { padding-left: clamp(1.8rem,2.6vw,2.4rem); }
.tiles > .tile:nth-child(3n) { border-right: 0; }
@media (max-width: 820px) {
  .tiles > .tile { padding-left: 0; border-right: 1px solid var(--line); }
  .tiles > .tile:nth-child(2n) { padding-left: clamp(1.8rem,2.6vw,2.4rem); border-right: 0; }
}
@media (max-width: 520px) { .tiles > .tile { padding-left: 0 !important; border-right: 0 !important; } }
.tile__n { font-size: .8rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 1rem; }
.tile__title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: .5rem; }
.tile__text { color: var(--muted); font-size: .96rem; }
.section--ink .tile { border-color: var(--line-inv); }
.section--ink .tile__title { color: #fff; }
.section--ink .tile__text { color: var(--muted-inv); }

/* ---------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 1000px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .pillar, .calc, .contact { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .hero__lower { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 380px); z-index: 95; background: var(--paper); padding: 6rem 1.75rem 2rem; transform: translateX(105%); visibility: hidden; transition: transform var(--dur) var(--ease), visibility var(--dur); box-shadow: -30px 0 60px -30px rgba(13,14,18,.3); overflow-y: auto; }
  .nav-open .site-nav { transform: none; visibility: visible; }
  .site-nav__list { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .site-nav__link { font-size: 1.25rem; font-weight: 600; padding: .6rem 0; }
  .nav-dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: .3rem 0 .3rem 1rem; min-width: 0; }
  .nav-toggle { display: flex; }
  .nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
  .nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .hero__lower { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 1fr auto; }
  .svc-row__idx { display: none; }
  .ctable tbody th { width: auto; }
}
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===========================================================================
   REFERENCE / REALIZACE — Infinum-style work index + case-detail layer
   Client-eyebrow case cards with the signature Infinum hover (image-zoom
   scale(1.04) + left→right title underline-wipe, NO lift/shadow), a filter +
   grid⇄list toolbar, count-up outcome metrics, testimonial (name/role) with an
   honest empty-state, an "illustrative" disclaimer chip, and a case-detail
   template. Nextec keeps its blue accent (#2438f0 — Infinum's own is red);
   only the STRUCTURE is borrowed. Reuses .work-grid/.work-card/.media/
   .logowall/.svc-*/.stat/.tiles wherever possible.
   ======================================================================== */

/* ---- Illustrative disclaimer chip (Infinum's own "data is illustrative") ---- */
.disclaimer { display: inline-flex; align-items: center; gap: .55rem; font-size: .82rem; line-height: 1.4; color: var(--muted-2); border: 1px solid var(--line); background: var(--tint-2); border-radius: var(--radius-pill); padding: .45rem .95rem; }
.disclaimer svg { width: 14px; height: 14px; color: var(--muted-2); flex: none; }
.section--tint .disclaimer, .section--tint-2 .disclaimer { background: var(--paper); }
.section--ink .disclaimer { color: var(--muted-inv); border-color: var(--line-inv); background: rgba(255,255,255,.05); }
.section--ink .disclaimer svg { color: var(--muted-inv); }

/* ---- Reference toolbar: filter pills + grid⇄list view toggle ---- */
.ref-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-bottom: clamp(1.4rem, 2.5vw, 2rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.ref-toolbar .filter-pills { border: 0; padding: 0; margin: 0; }
.ref-toolbar__end { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }
.ref-count { font-size: .85rem; color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* toolbar controls: border ≥3:1 on white for WCAG 1.4.11 non-text contrast */
.ref-toolbar .filter-pill { border-color: #8d97a8; }
.ref-view { display: inline-flex; gap: .2rem; border: 1.5px solid #8d97a8; border-radius: var(--radius-pill); padding: .22rem; }
.ref-view__btn { width: 40px; height: 32px; border-radius: 999px; display: grid; place-items: center; color: var(--muted-2); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.ref-view__btn svg { width: 17px; height: 17px; }
.ref-view__btn:hover { color: var(--ink); }
.ref-view__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 560px) { .ref-view { display: none; } .ref-toolbar__end { margin-left: 0; } }

/* ---- Reference card = client eyebrow + outcome title + SIGNATURE hover ----
   Scoped to .work-card--ref so blog/homepage .work-card usages are untouched. */
/* block flow (NOT grid) so the title stays inline and the underline-wipe can
   grow per line via box-decoration-break: clone */
.work-card--ref .work-card__body { display: block; max-width: 40ch; }
.work-grid.is-list .work-card--ref .work-card__body { max-width: 56ch; }
.work-card--ref .work-card__client { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: .55rem; }
.work-card--ref .work-card__title { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.14; }
.work-card--ref .work-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.work-card--ref .work-card__tags span { font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .22rem .7rem; }
/* signature 1 — media zoom (base .media img has no transition; add scoped) */
.work-card--ref .work-card__media { overflow: hidden; border-radius: var(--radius-lg); }
.work-card--ref .work-card__media img,
.work-card--ref .work-card__media .cover { transition: transform .6s var(--ease); }
/* lighter duotone for reference cards — text sits BELOW media, no dark overlay needed */
.work-card--ref .media--cine img { filter: grayscale(.34) contrast(1.03) brightness(.92); }
.work-card--ref .media--cine::after { background: linear-gradient(155deg, rgba(var(--accent-rgb),.20), rgba(11,12,20,.34)); }
.work-card--ref:hover .work-card__media img,
.work-card--ref:focus-within .work-card__media img,
.work-card--ref:hover .work-card__media .cover,
.work-card--ref:focus-within .work-card__media .cover { transform: scale(1.04); }
/* signature 2 — title underline-wipe (overrides the base text-decoration hover) */
.work-card--ref .work-card__title { background: linear-gradient(currentColor, currentColor) 0 100% / 0% 2px no-repeat; padding-bottom: 3px; transition: background-size .3s cubic-bezier(.79,.01,.22,.99); }
.work-card--ref:hover .work-card__title,
.work-card--ref:focus-within .work-card__title { background-size: 100% 2px; text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  .work-card--ref .work-card__media img, .work-card--ref .work-card__media .cover { transition: none; }
  .work-card--ref:hover .work-card__media img, .work-card--ref:hover .work-card__media .cover { transform: none; }
  .work-card__title, .work-card--ref .work-card__title { transition: none; }
}

/* list view — Infinum work/list toggle (media | body | arrow rows) */
.work-card--ref .work-card__go { display: none; }
.work-grid.is-list { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.work-grid.is-list .work-card--ref { grid-template-columns: clamp(140px, 20vw, 260px) 1fr auto; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); padding: clamp(1.3rem, 2.4vw, 2rem) 0; border-bottom: 1px solid var(--line); }
.work-grid.is-list .work-card--ref .media { aspect-ratio: 16/10; }
.work-grid.is-list .work-card--ref .media__cap { display: none; }
.work-grid.is-list .work-card--ref .work-card__go { display: grid; }
@media (max-width: 620px) { .work-grid.is-list .work-card--ref { grid-template-columns: 96px 1fr; } .work-grid.is-list .work-card--ref .work-card__go { display: none; } }

/* featured full-width lead card (Infinum "HIGHLIGHTED WORK" first slot) */
.work-grid__feature { grid-column: 1 / -1; }
.work-card--feature { gap: clamp(1.2rem, 2vw, 1.6rem); }
.work-card--feature .media { aspect-ratio: 16/7; }
/* wider text column so the big title stretches to ~2 lines under the full-width
   media (default 40ch is computed in the small body font → far too narrow here) */
.work-card--feature .work-card__body { max-width: min(52rem, 90%); }
.work-card--feature .work-card__title { font-size: clamp(1.9rem, 3.6vw, 3rem); }
@media (max-width: 700px) { .work-card--feature .media { aspect-ratio: 16/9; } }

/* ---- Outcomes / count-up metrics ---- */
.outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.8rem, 4vw, 3.5rem); border-top: 1px solid var(--line-2); padding-top: clamp(2.4rem, 5vw, 3.5rem); }
@media (min-width: 760px) { .outcomes { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
@media (max-width: 460px) { .outcomes { grid-template-columns: 1fr; } }
.section--ink .outcomes { border-color: var(--line-inv); }
.metric__num { display: flex; align-items: baseline; gap: .12em; font-size: clamp(2.8rem, 6.5vw, 5rem); font-weight: 800; letter-spacing: -.045em; line-height: .88; font-variant-numeric: tabular-nums; }
.metric__num .u { font-size: .4em; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.section--ink .metric__num { color: #fff; }
.section--ink .metric__num .u { color: var(--accent-bright); }
.metric__label { color: var(--muted); margin-top: .7rem; font-size: .98rem; max-width: 24ch; }
.section--ink .metric__label { color: var(--muted-inv); }

/* ---- Testimonial (name + role) + honest empty placeholder ---- */
.testimonial { max-width: 60ch; }
.testimonial__quote { font-size: clamp(1.45rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.18; text-wrap: balance; }
.testimonial__quote .kw { color: var(--accent); }
.testimonial__author { display: flex; align-items: center; gap: .9rem; margin-top: clamp(1.4rem, 3vw, 2rem); }
.testimonial__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--tint); color: var(--ink); display: grid; place-items: center; font-weight: 800; letter-spacing: -.02em; flex: none; }
.testimonial__name { font-weight: 700; letter-spacing: -.01em; }
.testimonial__role { color: var(--muted); font-size: .9rem; }
.section--ink .testimonial__quote { color: #fff; }
.section--ink .testimonial__role { color: var(--muted-inv); }
.section--ink .testimonial__avatar { background: var(--ink-3); color: #fff; }
/* honest empty-state quote slot — cannot read as a real quote */
.quote-slot { border: 1px dashed var(--line-2); border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.2vw, 2rem); }
.quote-slot .testimonial__quote { color: var(--muted-2); font-weight: 600; }
.quote-slot .testimonial__quote .kw { color: var(--muted); }
.quote-slot .testimonial__avatar { background: transparent; border: 1.5px dashed var(--line-2); color: var(--muted-2); }
.quote-slot .testimonial__avatar svg { width: 20px; height: 20px; }
.quote-slot .testimonial__name, .quote-slot .testimonial__role { color: var(--muted-2); }

/* ---- Mobile app showcase — phone mockup + platform chips (Infinum "app on device") ---- */
.mobile-showcase { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 820px) { .mobile-showcase { grid-template-columns: 1fr; gap: 2.5rem; } }
.mobile-showcase__list { display: grid; gap: .7rem; margin-top: 1.4rem; }
.mobile-showcase__list li { display: flex; gap: .6rem; align-items: baseline; color: var(--muted); }
.mobile-showcase__list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.mobile-showcase__list li strong { color: var(--ink); font-weight: 600; }
.section--ink .mobile-showcase__list li { color: var(--muted-inv); }
.section--ink .mobile-showcase__list li strong { color: #fff; }

.phone { position: relative; width: min(266px, 82%); margin-inline: auto; aspect-ratio: 9 / 18.5; background: var(--ink-2); border: 1px solid var(--line-inv); border-radius: 40px; padding: 11px; box-shadow: 0 50px 90px -45px rgba(13,14,18,.5); animation: phoneFloat 6.5s var(--ease) infinite alternate; }
.phone::before { content: ""; position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 36%; height: 21px; background: var(--ink); border-radius: 999px; z-index: 3; }
.phone__screen { position: relative; height: 100%; border-radius: 30px; overflow: hidden; color: #eef1f6; display: flex; flex-direction: column;
  background: radial-gradient(130% 66% at 50% -8%, #1b2450 0%, #0b0d16 62%), #0a0c14; }
/* status bar */
.phone__status { display: flex; align-items: center; justify-content: space-between; padding: 11px 20px 2px; font-size: 10px; color: #fff; }
.phone__status b { font-weight: 700; letter-spacing: .02em; }
.phone__status span { display: inline-flex; align-items: center; gap: 4px; }
.phone__status svg { height: 10px; width: auto; color: #fff; }
/* scrollless body */
.phone__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 8px 13px 0; }
/* top bar */
.phone__topbar { display: flex; align-items: center; gap: 9px; }
.phone__avatar2 { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent-bright)); display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; flex: none; }
.phone__greet { display: grid; line-height: 1.2; }
.phone__greet .g { font-size: 8.5px; color: rgba(255,255,255,.5); }
.phone__greet .n { font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; }
.phone__bell { margin-left: auto; position: relative; width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; }
.phone__bell svg { width: 15px; height: 15px; color: #d7dce4; }
.phone__bell::after { content: ""; position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #35d399; border: 1.5px solid #0b0d16; }
/* hero KPI card */
.phone__hero { position: relative; overflow: hidden; border-radius: 16px; padding: 12px 13px 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2) 52%, #6a4df6); box-shadow: 0 14px 28px -16px rgba(var(--accent-rgb),.75); }
.phone__hero::after { content: ""; position: absolute; right: -22px; top: -34px; width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,.13); }
.phone__hero > * { position: relative; z-index: 1; }
.phone__hero-top { display: flex; align-items: center; justify-content: space-between; }
.phone__hero-top .l { font-size: 9px; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.82); font-weight: 600; }
.phone__trend { display: inline-flex; align-items: center; gap: 2px; font-size: 8.5px; font-weight: 700; color: #d3ffe8; background: rgba(255,255,255,.17); padding: 2px 6px; border-radius: 999px; }
.phone__trend svg { width: 8px; height: 8px; }
.phone__hero-num { font-size: 29px; font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-top: 4px; }
.phone__hero-num span { font-size: 11px; font-weight: 600; letter-spacing: -.01em; color: rgba(255,255,255,.78); }
.phone__spark { display: block; width: 100%; height: 26px; margin-top: 6px; overflow: visible; }
/* filter chips */
.phone__chips { display: flex; gap: 6px; }
.phone__chip { font-size: 9px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.06); }
.phone__chip.is-on { background: #fff; color: #10132a; border-color: #fff; }
/* section header */
.phone__sec { display: flex; align-items: center; justify-content: space-between; }
.phone__sec .t { font-size: 10.5px; font-weight: 700; letter-spacing: -.01em; }
.phone__sec .a { font-size: 9px; font-weight: 600; color: var(--accent-bright); }
/* list */
.phone__list { display: flex; flex-direction: column; gap: 7px; }
.phone__item { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); border-radius: 13px; padding: 8px 9px; }
.phone__item-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.phone__item-ic svg { width: 15px; height: 15px; color: #fff; }
.phone__item-ic--a { background: linear-gradient(135deg, var(--accent-2), var(--accent-bright)); }
.phone__item-ic--b { background: linear-gradient(135deg, #10b981, #35d399); }
.phone__item-ic--c { background: linear-gradient(135deg, #e0912a, #f6c34d); }
.phone__item-tx { display: grid; line-height: 1.25; min-width: 0; flex: 1; }
.phone__item-tx .t { font-size: 11px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__item-tx .s { font-size: 8.5px; color: rgba(255,255,255,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__pill { font-size: 8px; font-weight: 700; padding: 3px 7px; border-radius: 999px; white-space: nowrap; flex: none; }
.phone__pill--ok { color: #35d399; background: rgba(53,211,153,.14); border: 1px solid rgba(53,211,153,.3); }
.phone__pill--go { color: #a5adff; background: rgba(129,141,255,.14); border: 1px solid rgba(129,141,255,.32); }
.phone__pill--new { color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
/* floating action button */
.phone__fab { position: absolute; right: 14px; bottom: 64px; width: 42px; height: 42px; border-radius: 15px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; box-shadow: 0 10px 22px -8px rgba(var(--accent-rgb),.9); z-index: 3; }
.phone__fab svg { width: 18px; height: 18px; color: #fff; }
/* bottom tab bar */
.phone__tabbar { margin-top: auto; display: flex; align-items: center; justify-content: space-around; height: 54px; padding-bottom: 6px; background: linear-gradient(180deg, rgba(10,12,20,0), rgba(10,12,20,.94) 45%); border-top: 1px solid rgba(255,255,255,.07); }
.phone__tab { display: grid; justify-items: center; gap: 3px; color: rgba(255,255,255,.4); }
.phone__tab svg { width: 18px; height: 18px; }
.phone__tab span { font-size: 7.5px; font-weight: 600; letter-spacing: .01em; }
.phone__tab.is-on { color: var(--accent-bright); }
@keyframes phoneFloat { from { transform: translateY(4px); } to { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }
/* glow behind the phone on dark section + lighter frame so it pops */
.mobile-showcase__device { position: relative; display: grid; place-items: center; }
.mobile-showcase__device::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb),.42), rgba(var(--accent-rgb),0) 68%); filter: blur(46px); z-index: 0; pointer-events: none; }
.mobile-showcase__device .phone { position: relative; z-index: 1; }
.section--ink .phone { background: #14161f; border-color: rgba(255,255,255,.14); }
/* platform tech chips (iOS / Android / cross-platform) */
.plat-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.plat-chips span { font-size: .82rem; font-weight: 500; padding: .35rem .8rem; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--tint-2); }
.section--ink .plat-chips span { border-color: var(--line-inv); background: var(--ink-3); color: #eef1f6; }

/* ---- Cascading Gantt timeline (Infinum strategy-design staircase) ---- */
.gantt__title { margin-bottom: 1.4rem; }
.gantt__track { position: relative; display: grid; grid-template-columns: max-content 1fr 1fr 1fr max-content; align-items: start; column-gap: clamp(.6rem, 1.5vw, 1.4rem); }
.gantt__grid { position: absolute; inset: 1.9rem 0 0; z-index: 0; pointer-events: none; background-image: repeating-linear-gradient(to right, var(--line-2) 0 1px, transparent 1px 30px); opacity: .35; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent); }
.gantt__edge { position: relative; z-index: 1; align-self: start; padding-top: .15rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted-2); white-space: nowrap; }
.gantt__edge--start { grid-column: 1; }
.gantt__edge--end { grid-column: 5; text-align: right; }
.gantt__group { position: relative; z-index: 1; display: flex; flex-direction: column; }
.gantt__group--a { grid-column: 2; }
.gantt__group--b { grid-column: 3; }
.gantt__group--c { grid-column: 4; }
.gantt__group-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--ink); margin-bottom: 1rem; padding-left: .1rem; }
.gantt__bar { position: relative; display: flex; align-items: center; gap: .6rem; height: 50px; border-radius: 999px; padding: 0 1.1rem 0 .4rem; font-size: .92rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; width: 72%; margin-left: calc(var(--i, 0) * 9%); margin-top: 9px; border: 1px solid rgba(13,14,18,.05); box-shadow: 0 10px 22px -14px rgba(13,14,18,.3); transition: transform var(--dur) var(--ease); }
.gantt__group > .gantt__bar:first-of-type { margin-top: 0; }
.gantt__bar:hover { transform: translateX(5px); }
.gantt__n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.gantt__label { overflow: hidden; text-overflow: ellipsis; }
.gantt__group--a .gantt__bar { background: #d9cef0; }
.gantt__group--b .gantt__bar { background: #cddcf7; }
.gantt__group--c .gantt__bar { background: #cce4d7; }
@media (max-width: 860px) {
  .gantt__track { grid-template-columns: 1fr; row-gap: 1.8rem; }
  .gantt__edge { display: none; }
  .gantt__group--a, .gantt__group--b, .gantt__group--c { grid-column: 1; }
  .gantt__bar { width: 78%; margin-left: calc(var(--i, 0) * 7%); }
}
@media (prefers-reduced-motion: reduce) { .gantt__bar:hover { transform: none; } }

/* ---- Scrollytelling process timeline (scroll-linked spine + node activation) ---- */
.proctl { position: relative; --pad: clamp(1.6rem, 3.2vw, 2.6rem); }
.proctl__spine { position: absolute; left: 22px; top: 0; width: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; z-index: 0; }
.proctl__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--accent), #6a4df6); border-radius: 2px; }
.proctl__comet { position: absolute; left: 23px; top: 0; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.16), 0 0 14px 2px rgba(var(--accent-rgb),.6); transform: translateY(-50%); opacity: 0; z-index: 2; pointer-events: none; }
.proctl__steps { display: grid; }
.proctl__step { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: clamp(1rem, 3vw, 2.2rem); padding-block: var(--pad); align-items: start; }
.proctl__step + .proctl__step { border-top: 1px solid var(--line); }
.proctl__node { position: relative; z-index: 1; justify-self: start; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: border-color .45s var(--ease), background .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease); }
.proctl__num { font-size: .92rem; font-weight: 700; color: var(--muted-2); font-variant-numeric: tabular-nums; transition: color .3s var(--ease), opacity .3s var(--ease); }
.proctl__check { position: absolute; width: 20px; height: 20px; color: #fff; opacity: 0; transform: scale(.5); transition: opacity .3s var(--ease), transform .35s var(--ease); }
.proctl__body { padding-top: .35rem; opacity: .48; transform: translateY(3px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.proctl__body h3 { letter-spacing: -.02em; }
.proctl__body p { color: var(--muted); margin-top: .5rem; max-width: 60ch; }
/* done + active */
.proctl__step.is-done .proctl__node, .proctl__step.is-active .proctl__node { background: var(--accent); border-color: var(--accent); }
.proctl__step.is-done .proctl__num { opacity: 0; }
.proctl__step.is-done .proctl__check { opacity: 1; transform: scale(1); }
.proctl__step.is-active .proctl__node { transform: scale(1.09); box-shadow: 0 0 0 6px var(--accent-soft), 0 12px 26px -8px rgba(var(--accent-rgb),.5); animation: proctlPop .55s var(--ease); }
.proctl__step.is-active .proctl__num { color: #fff; }
.proctl__step.is-done .proctl__body { opacity: 1; transform: none; }
.proctl__step.is-active .proctl__body { opacity: 1; transform: translateX(9px); }
@keyframes proctlPop { 0% { transform: scale(1); } 42% { transform: scale(1.2); } 100% { transform: scale(1.09); } }
@media (max-width: 560px) {
  .proctl__step { grid-template-columns: 42px 1fr; gap: 1rem; }
  .proctl__node { width: 42px; height: 42px; }
  .proctl__spine { left: 20px; } .proctl__comet { left: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .proctl__node, .proctl__body, .proctl__num, .proctl__check { transition: none; }
  .proctl__step.is-active .proctl__node { animation: none; }
}

/* ---- Case-detail template ---- */
.case-hero__title { font-size: clamp(2.3rem, 5.4vw, 4.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.0; max-width: 20ch; }
.case-summary { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.case-summary__lead { font-size: clamp(1.35rem, 2.6vw, 2.15rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.case-meta__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); font-weight: 600; margin-bottom: .8rem; }
.case-services { display: grid; gap: .3rem; margin-top: clamp(1.4rem, 3vw, 2rem); }
.case-services li { font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 820px) { .case-summary { grid-template-columns: 1fr; gap: 2rem; } }
.case-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.case-block__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.case-block h3 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; }
.case-block p { color: var(--muted); margin-top: 1rem; max-width: 54ch; }
.case-block--flip .case-block__media { order: -1; }
@media (max-width: 820px) { .case-block { grid-template-columns: 1fr; gap: 1.5rem; } .case-block--flip .case-block__media { order: 0; } }
