/* ============================================================
   EM2 v2 — design system, v5 DNA
   Light-first: white/bone base, slate-950 dark accent sections,
   EM2 crimson #CC333E. Montserrat everywhere, black weights,
   tight tracking, italic-light crimson accents.
   No Tailwind CDN — hand-written for CWV.
   ============================================================ */

:root {
  --ink-950: #16181d;
  --ink-900: #2f333c;
  --ink-800: #3a3f4a;
  --ink-700: #4d5260;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;
  --ink-200: #e5e7eb;
  --ink-100: #f3f4f6;
  --bone: #fbfaf8;
  --crimson-800: #7a2730;
  --crimson-700: #9b333d;
  --crimson-600: #cc333e;
  --crimson-500: #e23b48;
  --crimson-400: #ed5762;
  --crimson-100: #fce8ea;
  --font: 'Montserrat', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Monaco, 'Cascadia Mono', monospace;
  --wrap: 1400px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: #fff; color: var(--ink-900);
  font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
}
/* Hide the native pointer ONLY once the custom cursor is actually running.
   main.js adds .custom-cursor when it initialises the dot/ring, which it skips
   under prefers-reduced-motion or on touch. Hiding the pointer unconditionally
   left it invisible for reduced-motion users on every page and for everyone on
   the pages that don't load main.js at all (impressum, privacy, 404, estimator).
   Keeping the two coupled means a JS failure degrades to the native pointer. */
body.custom-cursor { cursor: none; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul { list-style: none; }

::selection { background: var(--crimson-600); color: #fff; }
:focus-visible { outline: 2px solid var(--crimson-600); outline-offset: 4px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 10001; background: var(--crimson-600); color: #fff; padding: .6rem 1rem; font-size: 13px; font-weight: 700; }
.skip-link:focus { left: 0; }

/* ---------- type ---------- */
.display    { font-weight: 900; letter-spacing: -0.045em; line-height: 0.92; }
.display-md { font-weight: 900; letter-spacing: -0.03em; line-height: 1.0; }
.display-sm { font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; }
.eyebrow { font-weight: 700; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; }
.accent { font-style: italic; font-weight: 300; color: var(--crimson-600); }
.accent-light { font-style: italic; font-weight: 300; color: var(--crimson-400); }
.mono-tag { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

h2.sec-title { color: var(--ink-950); font-size: clamp(40px, 4.6vw, 64px); }
.sec-eyebrow { color: var(--crimson-600); margin-bottom: 20px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.grid-12 { display: grid; gap: 48px; }
@media (min-width: 1024px) { .grid-12 { grid-template-columns: repeat(12, 1fr); } }
@media (max-width: 1023px) { .grid-12 > * { grid-column: 1 / -1 !important; } }
/* Case-study result figures. Was an inline 3/4-column grid with no breakpoint, which pushed
   "Diljem EU-a" and "80%" past the edge of a phone. */
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.metric-grid-4 { grid-template-columns: repeat(4, 1fr); }
.metric-grid > * { min-width: 0; }
@media (max-width: 900px) { .metric-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .metric-grid, .metric-grid-4 { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s cubic-bezier(.6,.2,.2,1), visibility .7s;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-mark {
  font-size: 80px; font-weight: 900; letter-spacing: -0.06em; color: var(--ink-900);
  transform: scale(.7); opacity: 0;
  animation: preMark 1.1s cubic-bezier(.2,.7,.2,1) forwards;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.preloader-mark .dot {
  width: 12px; height: 12px; background: var(--crimson-600); border-radius: 50%;
  align-self: flex-end; margin-bottom: 14px; opacity: 0; transform: scale(0);
  animation: preDot .45s cubic-bezier(.2,.9,.2,1) .5s forwards;
}
@keyframes preMark { 0% { transform: scale(.7); opacity: 0; } 55% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes preDot { to { opacity: 1; transform: scale(1); } }

/* ---------- custom cursor ---------- */
.cursor-dot {
  position: fixed; left: 0; top: 0; width: 8px; height: 8px;
  background: var(--crimson-600); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transition: width .25s cubic-bezier(.2,.7,.2,1), height .25s cubic-bezier(.2,.7,.2,1), background .25s;
  will-change: transform;
}
.cursor-ring {
  position: fixed; left: 0; top: 0; width: 36px; height: 36px;
  border: 1.5px solid rgba(204,51,62,.45); border-radius: 50%;
  pointer-events: none; z-index: 9997;
  transition: width .3s cubic-bezier(.2,.7,.2,1), height .3s cubic-bezier(.2,.7,.2,1), opacity .3s, border-color .3s;
  will-change: transform;
}
body.cursor-hover .cursor-dot { width: 14px; height: 14px; }
body.cursor-hover .cursor-ring { width: 60px; height: 60px; border-color: rgba(204,51,62,.8); }
body.cursor-text .cursor-dot { width: 2px; height: 22px; border-radius: 1px; }
body.cursor-text .cursor-ring { opacity: 0; }
body.cursor-dark .cursor-dot { background: #fff; }
body.cursor-dark .cursor-ring { border-color: rgba(255,255,255,.6); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none !important; } }

/* ---------- utility bar ---------- */
.utility-bar { background: var(--ink-950); color: #fff; font-size: 12.5px; position: relative; z-index: 40; }
.utility-bar .inner { max-width: var(--wrap); margin-inline: auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; }
.utility-bar .right { display: none; gap: 20px; opacity: .8; font-weight: 500; align-items: center; }
@media (min-width: 768px) { .utility-bar .right { display: flex; } }
.utility-bar a:hover { color: var(--crimson-500); }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--crimson-500); margin-right: 8px; animation: pulseSoft 1.6s ease-in-out infinite; }
@keyframes pulseSoft { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.85); } }

/* ---------- nav ---------- */
#nav { position: sticky; top: 0; z-index: 50; transition: background .35s, backdrop-filter .35s, border-color .35s; border-bottom: 1px solid transparent; }
#nav.nav-scrolled {
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(255,255,255,.88); border-bottom-color: rgba(47,51,60,.08);
}
#nav .inner { max-width: var(--wrap); margin-inline: auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; position: relative; }
#nav.nav-scrolled .inner { padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo .logo-img { height: 32px; width: auto; display: block; }
.logo .mark { font-size: 24px; font-weight: 900; letter-spacing: -0.06em; color: var(--ink-950); }
.logo .sub { font-weight: 700; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-500); transition: color .3s; }
.logo:hover .sub { color: var(--crimson-600); }
.nav-links { display: none; align-items: center; gap: 36px; font-size: 14px; font-weight: 600; color: var(--ink-950); }
@media (min-width: 900px) { .nav-links { display: flex; } }
.link-crimson { position: relative; }
.link-crimson::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  background: var(--crimson-600); transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.link-crimson:hover::after { transform: scaleX(1); }
#nav-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--crimson-600), var(--crimson-500));
  transform: scaleX(0); transform-origin: left; transition: transform .15s linear;
}
.nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink-200); border-radius: 10px; color: var(--ink-950); }
@media (min-width: 900px) { .nav-toggle { display: none; } }
.mobile-menu {
  position: fixed; inset: 0 0 auto 0; top: 0; z-index: 49; padding: 110px 24px 40px;
  background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-200);
  display: grid; gap: 22px; font-size: 19px; font-weight: 700; color: var(--ink-950);
  transform: translateY(-105%); transition: transform .4s cubic-bezier(.2,.7,.2,1); visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-weight: 700; font-size: 13.5px; padding: 14px 28px; transition: background .35s, color .35s, border-color .35s, box-shadow .35s; }
.btn .arrow { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-crimson { background: var(--crimson-600); color: #fff; }
.btn-crimson:hover { background: var(--ink-950); box-shadow: 0 18px 40px -16px rgba(204,51,62,.55); }
.btn-crimson.inverse:hover { background: #fff; color: var(--ink-950); }
.btn-outline-dark { border: 2px solid var(--ink-950); color: var(--ink-950); }
.btn-outline-dark:hover { background: var(--ink-950); color: #fff; }
.btn-outline-light { border: 1px solid rgba(255,255,255,.3); color: #fff; font-weight: 600; }
.btn-outline-light:hover { border-color: var(--crimson-500); color: var(--crimson-400); }
.btn-white { background: #fff; color: var(--ink-950); }
.btn-white:hover { background: var(--crimson-600); color: #fff; }
.btn-sm { padding: 10px 20px; }
.magnetic { transition: transform .25s cubic-bezier(.2,.7,.2,1); will-change: transform; }

/* ---------- hero ---------- */
#hero { position: relative; overflow: hidden; background: var(--ink-950); min-height: calc(100vh - 82px); min-height: calc(100svh - 82px); display: flex; align-items: center; }
.hero-fallback { position: absolute; inset: 0; background: linear-gradient(125deg, #16181d 0%, #2f333c 55%, #3a3f4a 100%); z-index: 0; }
.hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity 1.2s ease; transform: translateZ(0); will-change: opacity; }
.hero-vid.show { opacity: .5; }
@media (max-width: 820px) { .hero-vid { display: none; } }
.hero-mesh {
  position: absolute; inset: -10%; z-index: 1; pointer-events: none; opacity: .65;
  background:
    radial-gradient(circle at 22% 28%, rgba(204,51,62,.45) 0%, transparent 35%),
    radial-gradient(circle at 78% 72%, rgba(204,51,62,.32) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(22,24,29,.7) 0%, transparent 50%);
  filter: blur(40px);
  animation: meshDrift 28s ease-in-out infinite alternate;
  will-change: transform, opacity; /* promote so drift + scroll-opacity composite, not re-raster */
}
@keyframes meshDrift {
  0% { transform: translate(0,0) rotate(0) scale(1); }
  50% { transform: translate(-3%,2%) rotate(8deg) scale(1.08); }
  100% { transform: translate(2%,-2%) rotate(-6deg) scale(1.04); }
}
/* static grain — no blend mode / animation so the video keeps its own
   compositor layer and scrolling over the hero stays smooth */
.grain-overlay {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .1;
  background-image:
    radial-gradient(rgba(255,255,255,.7) .5px, transparent .5px),
    radial-gradient(rgba(255,255,255,.4) .4px, transparent .4px);
  background-size: 3px 3px, 5px 5px; background-position: 0 0, 1px 2px;
}
@keyframes grainShift {
  0% { background-position: 0 0, 1px 2px; } 20% { background-position: -2px 1px, 0 0; }
  40% { background-position: 1px -1px, 2px 1px; } 60% { background-position: -1px 2px, 1px -2px; }
  80% { background-position: 2px 0, -1px 1px; } 100% { background-position: 0 1px, 0 0; }
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 40%, rgba(22,24,29,.55) 90%, rgba(22,24,29,.85) 100%),
    linear-gradient(180deg, rgba(22,24,29,.25) 0%, transparent 30%, transparent 70%, rgba(22,24,29,.65) 100%);
}
.hero-content { position: relative; z-index: 10; width: 100%; padding-block: 40px 40px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 2fr 1fr; } }
.hero-eyebrow { color: var(--crimson-400); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hero-eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--crimson-500); }
#hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 5.6rem); margin-bottom: 24px; }
#hero h1 .line-accent { color: var(--crimson-500); font-style: italic; font-weight: 300; }
.hero-lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: rgba(255,255,255,.75); max-width: 640px; margin-bottom: 28px; }
.hero-lead strong { color: #fff; font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* char reveal */
.char { display: inline-block; opacity: 0; transform: translateY(60%) rotateX(-40deg); transform-origin: 50% 100%; animation: charIn 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.char.space { width: .28em; }
@keyframes charIn { to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }

/* floating badges */
.badge-stack { position: relative; min-height: 420px; }
@media (max-width: 1023px) { .badge-stack { display: none; } }
.badge-float { opacity: 0; transform: translateY(20px) scale(.96); animation: badgeIn 1s cubic-bezier(.2,.7,.2,1) forwards; position: absolute; border-radius: 16px; }
@keyframes badgeIn { to { opacity: 1; transform: none; } }
/* frosted look without a live backdrop-filter (which would re-blur the playing
   video every frame): a light gradient over a smoky-dark base reads as glass. */
.badge-glass { background: linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.05)), rgba(22,24,29,.55); border: 1px solid rgba(255,255,255,.15); color: #fff; padding: 20px; }
.badge-white { background: #fff; color: var(--ink-950); padding: 20px; box-shadow: 0 25px 60px -12px rgba(0,0,0,.45); }
.badge-crimson { background: var(--crimson-600); color: #fff; padding: 16px; }

/* idea->live timeline */
.tl { position: absolute; left: 50%; transform: translateX(-50%); bottom: 100px; width: 100%; max-width: var(--wrap); padding: 0 24px; z-index: 10; }
.tl-cap { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.tl-cap i { width: 6px; height: 6px; border-radius: 50%; background: var(--crimson-600); box-shadow: 0 0 10px 1px rgba(204,51,62,.7); }
.tl-rail { position: relative; height: 2px; background: rgba(255,255,255,.14); border-radius: 2px; margin: 0 6px; }
.tl-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--crimson-700), var(--crimson-600)); box-shadow: 0 0 12px rgba(204,51,62,.6); transition: width .15s linear; }
.tl-spark { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translate(-50%,-50%); box-shadow: 0 0 0 4px rgba(204,51,62,.3), 0 0 20px 5px rgba(204,51,62,.7); opacity: 0; transition: left .15s linear, opacity .3s; z-index: 2; }
.tl-nodes { position: absolute; inset: 0; display: flex; justify-content: space-between; }
.tl-node { position: relative; top: -5px; }
.tl-node .pin { width: 12px; height: 12px; border-radius: 50%; background: #31353f; border: 2px solid rgba(255,255,255,.22); transition: background .3s, border-color .3s, box-shadow .3s; }
.tl-node .lbl { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.4); transition: color .3s; }
.tl-node.a1 .lbl { left: 0; transform: none; }
.tl-node.a4 .lbl { left: auto; right: 0; transform: none; }
.tl-node.on .pin { background: var(--crimson-600); border-color: var(--crimson-600); box-shadow: 0 0 12px 2px rgba(204,51,62,.6); }
.tl-node.on.a4 .pin { box-shadow: 0 0 0 5px rgba(204,51,62,.18), 0 0 16px 3px rgba(204,51,62,.8); }
.tl-node.on .lbl { color: #fff; }
@media (max-width: 820px) { .tl { display: none; } }

.scroll-cue { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 10; animation: cueBob 2.2s ease-in-out infinite; }
/* Pinned to the hero's bottom edge, so wherever the hero content reaches that edge — every phone,
   and short laptop windows — the line ran straight through "Pogledaj projekte". It is a hint for
   desktop visitors; on touch everyone scrolls anyway. */
@media (max-width: 767px), (max-height: 760px) { .scroll-cue { display: none; } }
@keyframes cueBob { 0%,100% { transform: translate(-50%,0); opacity: .85; } 50% { transform: translate(-50%,6px); opacity: 1; } }
.scroll-cue-line { position: relative; width: 1px; height: 56px; background: rgba(255,255,255,.25); overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; top: -100%; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, transparent, rgba(204,51,62,.95)); animation: cueLine 2.2s ease-in-out infinite; }
@keyframes cueLine { 0% { top: -50%; } 100% { top: 100%; } }

/* ---------- scroll fade-up ---------- */
.fu { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.fu.in { opacity: 1; transform: none; }

/* ---------- marquee ---------- */
.marquee-section { border-block: 1px solid var(--ink-200); background: #fff; padding-block: 36px; overflow: hidden; }
.marquee-head { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.marquee-track { display: flex; width: max-content; animation: marquee 56s linear infinite; will-change: transform; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-group { display: flex; align-items: center; gap: 64px; padding-inline: 32px; white-space: nowrap; }
.marquee-group img { height: 58px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .25s ease, opacity .25s ease; }
.marquee-group img:hover { filter: none; opacity: 1; }
.mq-1 { font-size: 28px; font-weight: 900; letter-spacing: -.04em; color: var(--ink-950); }
.mq-2 { font-size: 26px; font-weight: 300; font-style: italic; color: var(--ink-700); }
.mq-3 { font-size: 28px; font-weight: 800; color: var(--ink-950); }
.mq-4 { font-size: 27px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; color: var(--ink-950); }
.mq-5 { font-size: 26px; font-weight: 600; color: var(--ink-700); }
.mq-6 { font-size: 27px; font-weight: 700; color: var(--ink-950); }
.mq-bank { font-family: var(--mono); font-size: 16px; text-transform: uppercase; letter-spacing: .3em; color: var(--ink-500); }

/* ---------- mesh backgrounds ---------- */
.mesh-bg { position: relative; isolation: isolate; }
.mesh-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(204,51,62,.10) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(47,51,60,.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(204,51,62,.06) 0%, transparent 50%);
  animation: meshSlow 32s ease-in-out infinite alternate;
}
@keyframes meshSlow { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-2%,1%) scale(1.05); } 100% { transform: translate(1%,-1%) scale(1.02); } }
.mesh-dark { position: relative; isolation: isolate; }
.mesh-dark::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 25% 40%, rgba(204,51,62,.18) 0%, transparent 40%),
    radial-gradient(circle at 75% 60%, rgba(204,51,62,.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(0,0,0,.4) 0%, transparent 50%);
  animation: meshSlow 30s ease-in-out infinite alternate;
}
.mesh-dark > * { position: relative; z-index: 1; }

/* ---------- metrics ---------- */
.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 1024px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); gap: 48px; } }
.metric-number { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.metric .num { font-size: clamp(56px, 6vw, 88px); color: var(--ink-950); }
.metric .num .plus { color: var(--crimson-600); }
.metric .num .unit { font-size: clamp(32px, 3.5vw, 52px); }
.metric .m-label { font-size: 14px; color: var(--ink-700); font-weight: 600; margin-top: 10px; }
.metric .m-sub { font-size: 12px; color: var(--ink-500); margin-top: 2px; }

/* ---------- work cards ---------- */
.tilt { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; transform-style: preserve-3d; will-change: transform; }
.zoom-wrap { overflow: hidden; }
.zoom-img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.zoom-wrap:hover .zoom-img { transform: scale(1.07); }

.feature-card { border-radius: 24px; overflow: hidden; background: var(--ink-950); color: #fff; position: relative; margin-bottom: 40px; }
.feature-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: opacity .5s; }
.feature-card:hover .feature-media { opacity: .68; }
.feature-scrim { position: absolute; inset: 0; background: linear-gradient(to right, var(--ink-950) 0%, rgba(22,24,29,.8) 45%, transparent 100%); }
.feature-inner { position: relative; display: grid; gap: 40px; padding: clamp(40px, 5vw, 64px); min-height: 520px; align-items: end; }
@media (min-width: 1024px) { .feature-inner { grid-template-columns: 5fr 7fr; align-items: center; } }
.pill { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .24em; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.pill-crimson { background: var(--crimson-600); color: #fff; }
.stat-glass { background: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.03)), rgba(22,24,29,.35); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 20px; }
.stat-glass .cap { font-size: 10px; text-transform: uppercase; letter-spacing: .22em; color: var(--crimson-400); font-weight: 700; margin-bottom: 8px; }

.mosaic { display: grid; gap: 24px; }
@media (min-width: 768px) { .mosaic { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .mosaic { grid-template-columns: 1fr 1fr 1fr; } }
.work-card { border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--ink-200); display: block; }
.work-card.dark { background: var(--ink-950); color: #fff; border-color: var(--ink-800); }
.work-card .media { aspect-ratio: 4 / 3; position: relative; }
.work-card .media img, .work-card .media video { width: 100%; height: 100%; object-fit: cover; }
.work-card .chip { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); font-size: 10px; text-transform: uppercase; letter-spacing: .2em; font-weight: 700; color: var(--ink-950); padding: 5px 12px; border-radius: 999px; }
.work-card .chip.dark { background: var(--ink-950); color: #fff; }
.work-card .body { padding: 24px; }
.work-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.work-card p { font-size: 14px; color: var(--ink-500); line-height: 1.55; margin-bottom: 16px; }
.work-card.dark p { color: rgba(255,255,255,.7); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); background: var(--ink-100); padding: 4px 8px; border-radius: 6px; }
.work-card.dark .tag { color: rgba(255,255,255,.8); background: rgba(255,255,255,.1); }

/* ---------- story ---------- */
#story { background: var(--ink-950); color: #fff; position: relative; }
.sticky-story { height: 240vh; }
.story-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.scene-bg { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; background-size: cover; background-position: center; }
.scene { opacity: 0; transform: translateY(14px); transition: opacity .4s cubic-bezier(.2,.7,.2,1), transform .4s cubic-bezier(.2,.7,.2,1); pointer-events: none; position: absolute; inset: 0; }
.scene.active { opacity: 1; transform: none; pointer-events: auto; }
.scene h3 { font-size: clamp(44px, 5.5vw, 72px); line-height: .95; margin-bottom: 24px; }
.scene p { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: rgba(255,255,255,.75); max-width: 640px; }
.scene-dots { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); z-index: 20; display: none; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .scene-dots { display: flex; } }
.scene-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); transition: all .3s; }

/* ---------- process ---------- */
.h-scroll { scroll-snap-type: x mandatory; scrollbar-width: none; overflow-x: auto; padding-block: 14px 24px; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > .rail { display: flex; gap: 24px; padding-inline: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); min-width: min-content; }
.h-scroll .rail > * { scroll-snap-align: start; }
.step-card { width: 340px; flex: none; background: var(--bone); border: 1px solid var(--ink-200); border-radius: 24px; padding: 32px; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.step-card.active { border-color: var(--crimson-500); transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(204,51,62,.4); }
#approach .tl-dot { transition: opacity .3s ease; }
/* pinned approach: vertical scroll scrubs the rail + timeline together (desktop, motion OK)
   ------------------------------------------------------------------------------------------
   The `min-height` condition is load-bearing, added 2026-08-04 after Hrvoje reported he could not
   read the bottom of the phase cards. The panel is sticky at top:0 and the page's vertical scroll is
   spent driving the rail sideways, so ANY content taller than the viewport hangs below the fold with
   no way to reach it — the section eats the very gesture you would use to scroll down.

   Measured: the panel wanted 912px (256px of .section padding + 206 heading + 96 timeline + 355
   rail). Anything shorter than ~915px of viewport clipped the cards, which is most laptops. It
   looked fine on a tall monitor, which is exactly why it survived this long.

   Two fixes and both are needed:
   1. padding-block becomes vh-relative here, so the panel's own chrome shrinks with the viewport
      instead of spending a fixed 256px. Brings the requirement to roughly 720-740px.
   2. Below 780px of viewport height the pin is switched off entirely and the section falls back to
      the ordinary swipeable .h-scroll rail used on mobile — degraded, but readable.
   If you change the heading size, the timeline height or the card padding, re-measure
   .approach-pin.scrollHeight against innerHeight and move the 780px threshold to match.
   main.js gates the scrub on this SAME query — update both or the rail will scrub while unpinned. */
@media (min-width: 900px) and (min-height: 780px) and (prefers-reduced-motion: no-preference) {
  .approach-track { height: 280vh; }
  .approach-pin { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
                  padding-block: clamp(24px, 4vh, 88px); }
  .approach-track .h-scroll { overflow-x: hidden; scroll-snap-type: none; }
}
.step-card.dark { background: var(--ink-950); color: #fff; border-color: var(--ink-800); position: relative; overflow: hidden; }
.step-card.dark::before { content: ""; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; background: rgba(204,51,62,.2); border-radius: 50%; filter: blur(48px); }
.step-card .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.step-card .head .meta { text-align: right; line-height: 1.6; padding-top: 8px; }
.step-card .n { font-size: 64px; font-weight: 900; letter-spacing: -.045em; line-height: 1; color: var(--crimson-600); }
.step-card.dark .n { color: var(--crimson-500); }
.step-card .meta { color: var(--ink-400); }
.step-card.dark .meta { color: rgba(255,255,255,.4); }
.step-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.step-card p { font-size: 14.5px; color: var(--ink-500); line-height: 1.6; }
.step-card.dark p { color: rgba(255,255,255,.7); }
.draw-path { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2.5s cubic-bezier(.2,.7,.2,1); }
.fu.in .draw-path { stroke-dashoffset: 0; }

/* ---------- vitals ---------- */
.vitals-card { background: var(--ink-950); color: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 48px); }
.vitals-grid { display: grid; gap: 32px; margin-top: 28px; }
@media (min-width: 768px) { .vitals-grid { grid-template-columns: repeat(3, 1fr); } }
.vital .vname { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.vital .vname b { font-family: var(--mono); font-size: 12px; letter-spacing: .15em; color: var(--crimson-400); }
.vital .vname span { font-size: 11px; color: rgba(255,255,255,.4); }
.vital .val { font-size: 40px; font-weight: 900; letter-spacing: -.03em; }
.vital .val.good { color: #6FCF8E; }
.vital .bar { position: relative; height: 5px; border-radius: 4px; background: rgba(255,255,255,.12); margin-block: 12px 8px; overflow: hidden; }
.vital .bar i { position: absolute; inset: 0; transform-origin: left; background: #6FCF8E; border-radius: 4px; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.7,.2,1); display: block; }
.vital .cmp { font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.5; }
.vital .cmp b { color: var(--crimson-400); }

/* ---------- reviews (Clutch) ---------- */
.reviews-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { background: #fff; border: 1px solid var(--ink-200); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 18px; height: 18px; fill: #E62415; } /* Clutch red */
.review-card blockquote { font-size: 15.5px; line-height: 1.65; color: var(--ink-700); flex: 1; margin-bottom: 24px; }
.review-card blockquote::before { content: "“"; display: block; font-family: Georgia, serif; font-size: 44px; line-height: .6; color: var(--crimson-600); margin-bottom: 12px; }
.review-who b { display: block; font-size: 14px; font-weight: 800; color: var(--ink-950); }
.review-who span { font-size: 12.5px; color: var(--ink-500); }
.clutch-bar { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; padding: 20px 32px; background: var(--ink-950); color: #fff; border-radius: 999px; width: fit-content; margin-inline: auto; }
.clutch-bar .score { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.clutch-bar .of { font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- estimator ---------- */
.estimator { background: var(--ink-950); color: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.estimator::before { content: ""; position: absolute; top: -60px; right: -60px; width: 240px; height: 240px; background: rgba(204,51,62,.25); border-radius: 50%; filter: blur(64px); pointer-events: none; }
.est-grid { display: grid; gap: 40px; position: relative; }
@media (min-width: 1024px) { .est-grid { grid-template-columns: 7fr 5fr; } }
.est-q { margin-bottom: 24px; }
.est-q .ql { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.45); margin-bottom: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  padding: 10px 18px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.75);
  transition: background .25s, color .25s, border-color .25s;
}
.seg button:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.seg button.active { background: var(--crimson-600); border-color: var(--crimson-600); color: #fff; font-weight: 700; }
.est-out { border-left: 1px solid rgba(255,255,255,.12); padding-left: 40px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 1023px) { .est-out { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 32px; } }
.est-out .cap { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--crimson-400); margin-bottom: 12px; }
.est-range { font-size: clamp(40px, 4vw, 56px); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-bottom: 12px; transition: opacity .3s; }
.est-range.swap { opacity: 0; }
.est-note { font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 1.6; margin-bottom: 24px; min-height: 3.2em; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.tier { background: #fff; border: 1px solid var(--ink-200); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; }
/* No overflow:hidden here on purpose. It used to be, to contain the shine — but it also
   clipped .flag, which sits at top:-12px to straddle the card edge, so the "Recommended"
   pill came out sliced in half. The clipping now lives on .shine instead. */
.tier.featured { background: var(--ink-950); color: #fff; border: 1px solid var(--crimson-700); position: relative; z-index: 10; }
@media (min-width: 1024px) { .tier.featured { transform: scale(1.04); } }
.tier.featured .shine {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
}
.tier.featured .shine::after {
  content: ""; position: absolute; top: -50%; left: -50%; width: 60%; height: 200%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  transform: rotate(15deg); animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer { 0% { left: -60%; } 60% { left: 120%; } 100% { left: 120%; } }
.tier .flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--crimson-600); color: #fff; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.tier h3 { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.tier .price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.tier .price .big { font-size: 52px; font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.tier .price .sep { font-size: 36px; font-weight: 300; color: var(--ink-200); }
.tier.featured .price .sep { color: rgba(255,255,255,.4); }
.tier .price .cur { font-size: 20px; font-weight: 700; color: var(--ink-500); }
.tier.featured .price .cur { color: rgba(255,255,255,.6); }
.tier .terms { font-size: 13.5px; color: var(--ink-500); margin-bottom: 32px; }
.tier.featured .terms { color: rgba(255,255,255,.6); }
.tier ul { display: grid; gap: 12px; font-size: 14px; color: var(--ink-700); margin-bottom: 32px; flex: 1; }
.tier.featured ul { color: rgba(255,255,255,.8); }
.tier ul li { display: flex; gap: 12px; }
.tier ul li::before { content: "✓"; color: var(--crimson-600); font-weight: 700; }
.tier.featured ul li::before { color: var(--crimson-500); }

/* ---------- banking block ---------- */
.bank-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--ink-950); display: grid; place-items: center; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--ink-200); }
.faq details:last-child { border-bottom: 1px solid var(--ink-200); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-weight: 700; font-size: 16.5px; color: var(--ink-950); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--crimson-600); transition: transform .3s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-500); font-size: 15px; line-height: 1.65; max-width: 52em; }

/* ---------- contact ---------- */
.contact-card { background: #fff; border: 1px solid var(--ink-200); border-radius: 24px; padding: clamp(32px, 4vw, 40px); box-shadow: 0 30px 80px -40px rgba(47,51,60,.18); }
.f-grid { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 768px) { .f-grid { grid-template-columns: 1fr 1fr; } }
.f-field label { display: block; margin-bottom: 8px; color: var(--ink-500); }
.f-field input, .f-field select, .f-field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink-200); background: transparent;
  padding: 12px 0; font: inherit; font-size: 15px; color: var(--ink-900);
  transition: border-color .3s; border-radius: 0;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; border-bottom-color: var(--crimson-600); }
.f-field textarea { resize: vertical; min-height: 100px; }
.form-status { font-size: 13px; color: #3f9d63; font-weight: 600; min-height: 1.4em; }
.contact-points { display: grid; gap: 12px; font-size: 14px; color: var(--ink-700); }
.contact-points > div { display: flex; align-items: center; gap: 12px; }
.contact-points i { width: 6px; height: 6px; border-radius: 50%; background: var(--crimson-600); flex: none; }

/* ---------- footer ---------- */
footer.site { background: var(--ink-950); color: #fff; padding-block: 80px; position: relative; overflow: hidden; }
.footer-wave { position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background: radial-gradient(circle at 10% 20%, rgba(204,51,62,.5), transparent 30%),
              radial-gradient(circle at 90% 80%, rgba(204,51,62,.3), transparent 35%);
  animation: meshSlow 40s ease-in-out infinite alternate; }
footer.site .cols { display: grid; gap: 40px; margin-bottom: 64px; position: relative; }
@media (min-width: 1024px) { footer.site .cols { grid-template-columns: 5fr 3fr 2fr 2fr; } }
footer.site .eyebrow { color: rgba(255,255,255,.4); margin-bottom: 16px; }
footer.site ul { display: grid; gap: 8px; font-size: 14px; }
footer.site a:hover { color: var(--crimson-400); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 12.5px; color: rgba(255,255,255,.4); position: relative; }

/* The mock chat widget's styles lived here (#chatRoot / #chatToggle / #chatPanel),
   removed 2026-08-03 with the widget itself. `.live-dot` was NOT removed — it is
   shared with the hero's "New clients" badge. */

/* ---------- sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 39; display: none; padding: 12px 24px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--ink-200); transform: translateY(110%); transition: transform .35s ease; }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (max-width: 720px) { .sticky-cta { display: block; } }

/* ---------- helpers ---------- */
.text-dim { color: var(--ink-500); }
.bg-bone { background: var(--bone); }
.bg-white { background: #fff; }
.bg-dark { background: var(--ink-950); color: #fff; }
.tac { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-6 { margin-top: 64px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; } .mb-6 { margin-bottom: 64px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
  /* the client-logo marquee stays alive by explicit request — it is gentle, decorative motion */
  .marquee-track { animation-duration: 56s !important; animation-iteration-count: infinite !important; }
  .hero-vid, .cursor-dot, .cursor-ring { display: none !important; }
  body { cursor: auto; }
  .fu, .rise, .badge-float, .char { opacity: 1 !important; transform: none !important; }
  .tl-fill { width: 100% !important; } .tl-spark { display: none; }
  .tl-node .pin { background: var(--crimson-600); border-color: var(--crimson-600); }
  .tl-node .lbl { color: #fff; }
  .scene { position: relative; opacity: 1; transform: none; pointer-events: auto; }
  .sticky-story { height: auto !important; }
  .story-stage { position: relative; height: auto; padding-block: 80px; }
  .draw-path { stroke-dashoffset: 0; }
}

/* ---------- mobile degradation (matches v5) ---------- */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .tilt { transform: none !important; }
  .display { letter-spacing: -0.035em; }
}

/* ---------- websites strip (quiet portfolio) ---------- */
.sites-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.site-card { display: block; border: 1px solid var(--ink-200); border-radius: 16px; overflow: hidden; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.site-card:hover { transform: translateY(-4px); border-color: var(--crimson-500); box-shadow: 0 18px 40px -22px rgba(22,24,29,.35); }
.site-card .shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--ink-100); }
.site-card .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-card .meta { padding: 14px 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.site-card .dom { font-weight: 800; font-size: 14.5px; color: var(--ink-950); }
.site-card .what { font-size: 12.5px; color: var(--ink-500); text-align: right; }
@media (max-width: 900px) { .sites-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sites-grid { grid-template-columns: 1fr; } }

/* ---------- pricing journey (how we work & what it costs) ---------- */
.journey { position: relative; padding: 24px 0 8px; }
.j-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: var(--ink-200); }
.j-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--crimson-400), var(--crimson-600)); }
.j-comet { position: absolute; left: 50%; top: 0; width: 14px; height: 14px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--crimson-500); box-shadow: 0 0 0 6px rgba(204,51,62,.14), 0 0 30px 8px rgba(204,51,62,.5); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.j-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 30px 0; }
.j-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink-200); z-index: 2; transition: background .45s cubic-bezier(.2,.7,.2,1), border-color .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s cubic-bezier(.2,.7,.2,1); }
.j-step.on .j-dot { background: var(--crimson-600); border-color: var(--crimson-600); box-shadow: 0 0 0 9px rgba(204,51,62,.12); }
.j-num { grid-column: 2; grid-row: 1; justify-self: start; margin-left: 64px; font-size: clamp(110px, 15vw, 210px); font-weight: 900; line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--ink-200); user-select: none; transition: -webkit-text-stroke-color .7s ease, color .7s ease; will-change: transform; }
.j-card { grid-column: 1; grid-row: 1; width: min(460px, 100%); justify-self: end; margin-right: 64px; }
.j-step.rev .j-num { grid-column: 1; justify-self: end; margin-left: 0; margin-right: 64px; }
.j-step.rev .j-card { grid-column: 2; justify-self: start; margin-right: 0; margin-left: 64px; }
.j-step.on .j-num { -webkit-text-stroke-color: var(--crimson-600); color: rgba(204,51,62,.05); }
.j-step.on .j-card { border-color: rgba(204,51,62,.4); box-shadow: 0 26px 64px rgba(22,24,29,.11); }

.path-card { background: #fff; border: 1px solid var(--ink-200); border-radius: 24px; padding: 30px 28px 26px; display: flex; flex-direction: column; transition: border-color .6s ease, box-shadow .6s ease; }
.path-card .path-chip { transform: scale(.88); opacity: .55; transition: transform .55s cubic-bezier(.34,1.56,.64,1) .12s, opacity .4s ease .12s; }
.j-step.on .path-chip { transform: none; opacity: 1; }
.path-chip { align-self: flex-start; font-weight: 800; font-size: 13px; letter-spacing: .01em; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.path-chip.free { background: rgba(46,125,79,.1); color: #2e7d4f; }
.path-chip.fixed { background: rgba(204,51,62,.1); color: var(--crimson-600); }
.path-chip.dark { background: var(--ink-950); color: #fff; }
.path-card h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.path-card .pdesc { font-size: 14px; color: var(--ink-500); line-height: 1.65; margin-bottom: 20px; flex: 1; }
.path-card ul { display: grid; gap: 8px; font-size: 13px; color: var(--ink-700); border-top: 1px solid var(--ink-200); padding-top: 16px; }
.path-card ul li { display: flex; gap: 10px; }
.path-card ul li::before { content: "✓"; color: var(--crimson-600); font-weight: 700; }

@media (max-width: 1023px) {
  .j-line { left: 25px; transform: none; }
  /* No .j-comet override here on purpose: it is positioned inside the 2px .j-line, so its
     base left:50% already tracks the line. Setting left:25px moved it 25px right OF the
     line — the "scrolling dot is not in line on mobile" report. */
  .j-step { grid-template-columns: 1fr; padding: 20px 0; }
  .j-dot { left: 25px; top: 44px; }
  .j-card, .j-step.rev .j-card { grid-column: 1; width: auto; justify-self: stretch; margin: 0 0 0 60px; position: relative; z-index: 1; }
  .j-num, .j-step.rev .j-num { grid-column: 1; grid-row: 1; justify-self: end; align-self: start; margin: -14px 6px 0 0; font-size: 84px; -webkit-text-stroke-width: 1.5px; opacity: .55; z-index: 0; }
}
@media (max-width: 1023px) { .guar-grid { grid-template-columns: 1fr !important; } }
@media (prefers-reduced-motion: reduce) {
  .j-fill { height: 100% !important; }
  .j-comet { display: none; }
  .j-step .j-dot { background: var(--crimson-600); border-color: var(--crimson-600); }
  .j-step .j-num { -webkit-text-stroke-color: var(--crimson-600); color: rgba(204,51,62,.05); transform: none !important; }
  .path-card .path-chip { transform: none; opacity: 1; }
}

/* ---------- narrow-viewport fixes (header CTA + journey) ---------- */
#nav .inner .btn { white-space: nowrap; }
@media (max-width: 480px) {
  #nav .inner { padding: 14px 16px; }
  #nav .inner .btn-sm { padding: 9px 14px; font-size: 12.5px; gap: 6px; }
  #nav .inner .btn-sm .arrow { display: none; }
}
@media (max-width: 340px) {
  #nav .inner .btn-sm { display: none; }
}
@media (max-width: 480px) {
  .journey .j-line { left: 13px; }  /* .j-comet deliberately excluded — see note above. */
  .journey .j-dot { left: 13px; width: 15px; height: 15px; }
  .j-card, .j-step.rev .j-card { margin-left: 38px; }
  .path-card { padding: 22px 18px 20px; }
  .path-chip { font-size: 12px; padding: 5px 12px; }
  .path-card h3 { font-size: 19px; }
  .j-num, .j-step.rev .j-num { font-size: 64px; margin-top: -8px; opacity: .45; }
}
/* The chat-FAB-vs-sticky-CTA collision rules lived here. Both the widget and the
   collision it caused went with it on 2026-08-03 — the sticky CTA now owns that corner. */

/* ---------- nav: sections vs places (added 2026-08-04) ----------
   The estate has three properties (em2.hr, /studio/, /startups/) and the old nav mixed
   in-page anchors and cross-property links in one undifferentiated row. On /startups/ all
   four nav links silently left the page; on /studio/ none of them did. So "Pricing" and
   "Studio" looked identical and behaved completely differently — that is the getting-lost.
   Now every page reads: [this page's sections] │ [the other places]. Sentence-case links
   scroll, uppercase links travel. */
.nav-links { gap: 20px; }
@media (min-width: 1200px) { .nav-links { gap: 26px; } }
.nav-sep { width: 1px; height: 15px; background: var(--ink-200); flex: 0 0 auto; }
.nav-place { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); white-space: nowrap; transition: color .25s; }
.nav-place:hover { color: var(--crimson-600); }

/* ---------- language switcher (added 2026-08-06) ----------
   Deliberately placed next to the CTA rather than inside .nav-links, because .nav-links is
   display:none below 900px — a switcher in there would be unreachable on a phone unless you opened
   the burger menu, and language is not a navigation choice you should have to hunt for. Both
   languages are always shown, with the inactive one as the link, so a visitor can see the choice
   exists rather than having to guess from a single ambiguous label. */
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; }
.lang-switch a { color: var(--ink-400); transition: color .25s; }
.lang-switch a:hover { color: var(--crimson-600); }
.lang-switch .on { color: var(--ink-950); }
.lang-switch .sep { color: var(--ink-200); font-weight: 400; }
/* The estimator header is dark-on-bone and tighter; keep the switcher from crowding its one link. */
.est-top .lang-switch { margin-left: auto; margin-right: 18px; }
/* No dark-nav variant needed: #nav is sticky ABOVE the hero, never overlaying it, so the bar's
   backdrop is always the light body — verified on the homepage, whose hero is --ink-950. */
/* Mobile menu gets the same split, with a labelled rule instead of a divider. */
.mm-places { border-top: 1px solid var(--ink-200); padding-top: 20px; display: grid; gap: 18px; }
.mm-places .mm-label { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-400); }

/* Cookie consent (assets/js/consent.js). Accept and Reject are deliberately the same size and
   weight — a banner that makes "no" harder than "yes" does not collect valid consent. */
.consent {
  position: fixed; z-index: 9000; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); margin-inline: auto; max-width: 560px;
  background: var(--ink-950); color: #fff; border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); font-size: 14.5px; line-height: 1.55;
}
.consent-title { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.consent-body { color: rgba(255,255,255,.75); }
.consent-body a { color: #fff; }
.consent-actions { display: flex; gap: 10px; margin-top: 16px; }
.consent-btn {
  flex: 1; font: inherit; font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55);
}
.consent-btn:hover, .consent-btn:focus-visible { background: #fff; color: var(--ink-950); border-color: #fff; }
.consent-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
@media print { .consent { display: none; } }
