/* ==========================================================================
   Jakub Tomoszek — portfolio & nabídka
   Layout: centered 1180px column, off-white ground, white cards with large
   radius, one dark card per screen, red reserved for the intro and details.
   ========================================================================== */

@font-face { font-family: "Lufga"; src: url("fonts/Lufga-ExtraLight.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Lufga"; src: url("fonts/Lufga-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Lufga"; src: url("fonts/Lufga-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lufga"; src: url("fonts/Lufga-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lufga"; src: url("fonts/Lufga-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lufga"; src: url("fonts/Lufga-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --surface-2: #efefef;
  --ink: #121212;
  --ink-2: #4a4a47;
  --ink-3: #8c8c87;
  --line: rgba(18, 18, 18, 0.08);
  --line-strong: rgba(18, 18, 18, 0.16);
  --accent: #e30613;
  --accent-soft: #fde8ea;
  --yellow: #ffd60a;   /* studio accent: black + yellow */
  --yellow-ink: #121212;
  --dark: #111111;
  --dark-2: #1c1c1c;
  --on-dark: #f4f4f1;
  --on-dark-2: #b5b5b0;

  --font: "Lufga", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-pill: 999px;

  --w: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--w), 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--ink-3); }
.strong { font-weight: 600; }
.tnum { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Buttons & pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-dark { background: var(--dark); color: var(--on-dark); box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.btn-dark:hover { background: #000; }
.btn-light { background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0,0,0,.25); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-block { width: 100%; height: 52px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
  background: var(--surface); color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pill-yellow { background: var(--yellow); color: var(--yellow-ink); box-shadow: none; font-weight: 600; }
.pill-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #3ab45a; }

.eyebrow {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: #8a5b16; box-shadow: inset 0 0 0 1px rgba(170, 120, 40, .45); background: transparent;
}

/* --------------------------------------------------------------------------
   Intro — "portfolio" letters on a measured grid
   -------------------------------------------------------------------------- */
/* glass intro: the page is visible (blurred) underneath; on leave the glass dissolves */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  display: grid; place-items: center;
  overflow: hidden;
  transition: opacity 1.1s var(--ease-io), -webkit-backdrop-filter 1.1s var(--ease-io), backdrop-filter 1.1s var(--ease-io), visibility 0s linear 1.1s;
}
.intro.leave { opacity: 0; -webkit-backdrop-filter: blur(0) saturate(1); backdrop-filter: blur(0) saturate(1); visibility: hidden; }
.intro.leave .intro-stage { transform: translate(-50%, -50%) scale(var(--s, 1)) translateY(-24px); filter: blur(8px); transition: transform 1.1s var(--ease-io), filter 1.1s var(--ease-io); }
.intro.gone { display: none; }
.intro-stage {
  /* absolutely centred: the 1120px layout box must not push the scaled drawing down on short screens */
  position: absolute; left: 50%; top: calc(50% - 30px);
  width: 640px; height: 1120px;
  transform: translate(-50%, -50%) scale(var(--s, 1));
  transform-origin: center center;
  font-family: var(--font);
}
.intro-grid { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.intro-grid line { stroke: rgba(18,18,18,.18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.intro-grid .gl { transform-origin: 0 0; animation: gridIn 1.4s var(--ease) both; }
.intro-grid .gl.v { transform: scaleY(0); transform-box: fill-box; transform-origin: top; }
.intro-grid .gl.h { transform: scaleX(0); transform-box: fill-box; transform-origin: left; }
@keyframes gridIn { to { transform: scale(1); } }

.intro-letter {
  position: absolute;
  font-size: 300px; line-height: 1; font-weight: 500; letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0;
  animation: letterIn 1s var(--ease) both;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
}
@keyframes letterIn {
  from { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)); }
  to { opacity: 1; transform: translate(0, 0); }
}

.intro-cap {
  position: absolute;
  font-size: 13px; letter-spacing: .14em; color: var(--ink-2);
  opacity: 0; animation: capIn .8s var(--ease) both; animation-delay: var(--d, 0s);
  white-space: nowrap;
}
@keyframes capIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.intro-credit {
  position: absolute; left: 404px; top: 1020px;
  font-size: 12.5px; letter-spacing: .12em; line-height: 1.9; color: var(--ink-2);
  opacity: 0; animation: capIn .8s var(--ease) both; animation-delay: var(--d, 0s);
}

/* dimension markers */
.dim { position: absolute; color: #6f6f6b; font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.dim .ln { position: absolute; background: #6f6f6b; }
.dim .lb { position: absolute; opacity: 0; animation: capIn .5s var(--ease) both; animation-delay: calc(var(--d, 0s) + .35s); }
.dim.v { width: 12px; }
.dim.v .ln { left: 5px; top: 0; width: 1px; height: 100%; transform: scaleY(0); transform-origin: top; animation: dimV .6s var(--ease) both; animation-delay: var(--d, 0s); }
.dim.v::before, .dim.v::after { content: ""; position: absolute; left: 0; width: 12px; height: 1px; background: #6f6f6b; opacity: 0; animation: capIn .3s both; animation-delay: var(--d, 0s); }
.dim.v::before { top: 0; } .dim.v::after { bottom: 0; animation-delay: calc(var(--d, 0s) + .5s); }
.dim.v .lb { left: 20px; top: 50%; transform: translateY(-50%); }
.dim.v.lbl-left .lb { left: auto; right: 20px; }
.dim.h { height: 12px; }
.dim.h .ln { top: 5px; left: 0; height: 1px; width: 100%; transform: scaleX(0); transform-origin: left; animation: dimH .6s var(--ease) both; animation-delay: var(--d, 0s); }
.dim.h::before, .dim.h::after { content: ""; position: absolute; top: 0; height: 12px; width: 1px; background: #6f6f6b; opacity: 0; animation: capIn .3s both; animation-delay: var(--d, 0s); }
.dim.h::before { left: 0; } .dim.h::after { right: 0; animation-delay: calc(var(--d, 0s) + .5s); }
.dim.h .lb { left: 50%; top: -20px; transform: translateX(-50%); }
.dim.h.lbl-below .lb { top: 16px; }
@keyframes dimV { to { transform: scaleY(1); } }
@keyframes dimH { to { transform: scaleX(1); } }

.intro-skip {
  position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 13px; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  opacity: 0; animation: capIn .6s .8s var(--ease) both;
}
.intro-skip:hover { background: var(--surface); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 60;
  pointer-events: none;
}
.nav .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.nav > .wrap > * { pointer-events: auto; }
/* logo sits on the page (absolute, scrolls away); only the buttons stay fixed */
.brand-bar { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 54; pointer-events: none; }
.brand-bar .wrap { display: flex; align-items: center; min-height: 46px; }
.brand-bar .brand { pointer-events: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  height: auto; padding: 0; border-radius: 0;
  background: none;
  font-weight: 500; font-size: 14px;
}
.brand img { height: 58px; width: auto; display: block; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--dark); color: var(--on-dark);
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  overflow: hidden; flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-actions { display: flex; gap: 8px; }
.nav-actions .btn { height: 46px; }
.nav-actions .btn-light { background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.menu-btn .plus { width: 16px; height: 16px; position: relative; }
.menu-btn .plus::before, .menu-btn .plus::after { content: ""; position: absolute; background: currentColor; left: 50%; top: 50%; transform: translate(-50%,-50%); transition: transform .4s var(--ease); }
.menu-btn .plus::before { width: 14px; height: 1.5px; }
.menu-btn .plus::after { width: 1.5px; height: 14px; }
body.menu-open .menu-btn .plus::after { transform: translate(-50%,-50%) rotate(90deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(255,255,255,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s linear .4s;
}
body.menu-open .menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu ul { display: grid; gap: 6px; text-align: center; }
.menu a {
  display: block; font-size: clamp(30px, 5vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2;
  color: var(--ink-3); transition: color .25s, transform .5s var(--ease);
  transform: translateY(14px); opacity: 0;
}
body.menu-open .menu a { transform: none; opacity: 1; }
.menu a:hover { color: var(--ink); }
.menu li:nth-child(1) a { transition-delay: .05s; } .menu li:nth-child(2) a { transition-delay: .1s; }
.menu li:nth-child(3) a { transition-delay: .15s; } .menu li:nth-child(4) a { transition-delay: .2s; }
.menu li:nth-child(5) a { transition-delay: .25s; } .menu li:nth-child(6) a { transition-delay: .3s; }
.menu-foot { margin-top: 36px; text-align: center; font-size: 14px; color: var(--ink-3); }
.menu-foot a { font-size: 14px; color: var(--ink); display: inline; transform: none; opacity: 1; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(130px, 18vh, 190px); text-align: center; overflow: hidden; }
.hero-badge { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-badge .meta { font-size: 13px; color: var(--ink-3); }
.hero h1 {
  margin: 26px auto 0; max-width: 16ch;
  font-size: clamp(38px, 6.6vw, 76px);
  font-weight: 400;
}
.hero h1 b { font-weight: 600; }
.hero-lead { margin: 22px auto 0; max-width: 46ch; font-size: clamp(15px, 1.4vw, 17px); color: var(--ink-2); }
.cta-row { display: flex; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }

/* staged entrance (plays after intro leaves) */
.hero .stage-in { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
body.hero-in .hero .stage-in { opacity: 1; transform: none; }
body.hero-in .hero .stage-in:nth-child(2) { transition-delay: .08s; }
body.hero-in .hero .stage-in:nth-child(3) { transition-delay: .16s; }
body.hero-in .hero .stage-in:nth-child(4) { transition-delay: .24s; }
body.hero-in .hero .hero-stage { transition-delay: .3s; }

/* hero stage: straight marquee of mockups + glass card + progressive blur */
.hero-stage { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: clamp(40px, 6vw, 70px); height: clamp(330px, 40vw, 640px); overflow: hidden; }
.marquee { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%); }
/* progressive blur on the left and right edge of the card strip (same build as the bottom edge) */
.edge-blur { position: absolute; top: 0; bottom: 0; width: clamp(80px, 17vw, 280px); z-index: 6; pointer-events: none; }
.edge-blur.l { left: 0; }
.edge-blur.r { right: 0; }
.edge-blur span { position: absolute; inset: 0; }
.edge-blur.l span:nth-child(1) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 20%); mask-image: linear-gradient(to left, transparent 0%, #000 20%); }
.edge-blur.l span:nth-child(2) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(to left, transparent 15%, #000 35%); mask-image: linear-gradient(to left, transparent 15%, #000 35%); }
.edge-blur.l span:nth-child(3) { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); -webkit-mask-image: linear-gradient(to left, transparent 30%, #000 50%); mask-image: linear-gradient(to left, transparent 30%, #000 50%); }
.edge-blur.l span:nth-child(4) { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask-image: linear-gradient(to left, transparent 45%, #000 65%); mask-image: linear-gradient(to left, transparent 45%, #000 65%); }
.edge-blur.l span:nth-child(5) { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(to left, transparent 60%, #000 85%); mask-image: linear-gradient(to left, transparent 60%, #000 85%); }
.edge-blur.l span:nth-child(6) { -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); -webkit-mask-image: linear-gradient(to left, transparent 75%, #000 100%); mask-image: linear-gradient(to left, transparent 75%, #000 100%); }
.edge-blur.r span:nth-child(1) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 20%); mask-image: linear-gradient(to right, transparent 0%, #000 20%); }
.edge-blur.r span:nth-child(2) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(to right, transparent 15%, #000 35%); mask-image: linear-gradient(to right, transparent 15%, #000 35%); }
.edge-blur.r span:nth-child(3) { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); -webkit-mask-image: linear-gradient(to right, transparent 30%, #000 50%); mask-image: linear-gradient(to right, transparent 30%, #000 50%); }
.edge-blur.r span:nth-child(4) { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask-image: linear-gradient(to right, transparent 45%, #000 65%); mask-image: linear-gradient(to right, transparent 45%, #000 65%); }
.edge-blur.r span:nth-child(5) { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(to right, transparent 60%, #000 85%); mask-image: linear-gradient(to right, transparent 60%, #000 85%); }
.edge-blur.r span:nth-child(6) { -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); -webkit-mask-image: linear-gradient(to right, transparent 75%, #000 100%); mask-image: linear-gradient(to right, transparent 75%, #000 100%); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--speed, 70s) linear infinite; will-change: transform; }
.hero-stage:hover .marquee-track { animation-play-state: running; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mcard {
  flex: none; width: clamp(280px, 34vw, 560px); aspect-ratio: 16 / 10; margin-right: clamp(14px, 1.6vw, 26px);
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2);
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px rgba(0,0,0,.35);
}
.mcard img { width: 100%; height: 100%; object-fit: cover; }

.glass {
  position: absolute; left: 50%; top: 12px; bottom: 64px; transform: translateX(-50%);
  width: clamp(340px, 50vw, 800px); z-index: 7;
  border-radius: var(--r-xl); overflow: hidden;
  background: rgba(226,226,222,.62);   /* light grey glass, so the card stands out on the white page */
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 2px 6px -2px rgba(0,0,0,.08), 0 28px 48px -28px rgba(0,0,0,.38);
  display: grid; place-items: center;
}
.glass-copy {
  position: relative; z-index: 2;
  width: min(54%, 440px);
  display: grid; justify-items: center; gap: clamp(10px, 1.2vw, 18px);
  text-align: center;
}
.glass h2 { font-size: clamp(24px, 3.2vw, 50px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.06; color: var(--ink); }
.glass h2 b { font-weight: 600; }
.glass-sub { font-size: clamp(15px, 1.4vw, 21px); color: var(--ink-2); letter-spacing: -0.01em; margin-top: -4px; }
.glass-sub .heart { color: var(--yellow); -webkit-text-stroke: .6px var(--ink); }
.glass-name { display: grid; gap: 2px; font-size: clamp(13px, 1vw, 15px); line-height: 1.3; }
.glass-name b { font-weight: 600; color: var(--ink); }
.glass-name span { color: var(--ink-3); font-size: .88em; letter-spacing: .02em; }
.glass .portrait {
  position: absolute; right: -60%; top: -3%; width: 118%; height: auto; max-width: none; z-index: 1;
  pointer-events: none; user-select: none;
  filter: drop-shadow(-12px 0 24px rgba(0,0,0,.18));
}

/* signature: filled outline revealed by three masked pen strokes */
.signature { width: clamp(110px, 11vw, 180px); height: auto; overflow: visible; color: var(--ink); }
.signature g[mask] path { fill: currentColor; }
.sig-stroke { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
body.hero-in .sig-s1 { animation: sigDraw 1.5s cubic-bezier(.55,.1,.35,1) 1.1s forwards; }
body.hero-in .sig-s2 { animation: sigDraw .9s cubic-bezier(.55,.1,.35,1) 2.65s forwards; }
body.hero-in .sig-s3 { animation: sigDraw .7s cubic-bezier(.6,0,.2,1) 3.6s forwards; }
@keyframes sigDraw { to { stroke-dashoffset: 0; } }

/* client logos under the hero stage */
.clients { grid-column: 1 / -1; margin-top: clamp(36px, 5vw, 64px); display: grid; justify-items: center; gap: 22px; min-width: 0; }
/* logo marquee: content width only, logos fade out at the left edge and fade in at the right */
.clients-marquee { width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%); }
.clients-track { display: flex; align-items: center; width: max-content; animation: marquee var(--speed, 60s) linear infinite; will-change: transform; }
.clients-label { font-size: 13px; letter-spacing: .02em; color: var(--ink-3); }
.clients-track li { flex: none; display: grid; place-items: center; height: 48px; margin-right: clamp(56px, 7vw, 112px); }
.clients-track img { width: auto; max-width: 150px; opacity: .26; transition: opacity .35s; }
.clients-track img:hover { opacity: .6; }

/* progressive blur along the bottom edge of the viewport, across the whole site */
.page-blur { position: fixed; left: 0; right: 0; bottom: 0; height: clamp(70px, 11vh, 130px); z-index: 50; pointer-events: none; }
.page-blur span { position: absolute; inset: 0; }
.page-blur span:nth-child(1) { -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%); mask-image: linear-gradient(to bottom, transparent 0%, #000 20%); }
.page-blur span:nth-child(2) { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); -webkit-mask-image: linear-gradient(to bottom, transparent 15%, #000 35%); mask-image: linear-gradient(to bottom, transparent 15%, #000 35%); }
.page-blur span:nth-child(3) { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 50%); mask-image: linear-gradient(to bottom, transparent 30%, #000 50%); }
.page-blur span:nth-child(4) { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask-image: linear-gradient(to bottom, transparent 45%, #000 65%); mask-image: linear-gradient(to bottom, transparent 45%, #000 65%); }
.page-blur span:nth-child(5) { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(to bottom, transparent 60%, #000 85%); mask-image: linear-gradient(to bottom, transparent 60%, #000 85%); }
.page-blur span:nth-child(6) { -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); -webkit-mask-image: linear-gradient(to bottom, transparent 75%, #000 100%); mask-image: linear-gradient(to bottom, transparent 75%, #000 100%); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(70px, 10vw, 130px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head h2 { margin-top: 18px; font-size: clamp(30px, 4.2vw, 48px); max-width: 20ch; }
.section-head p { margin-top: 14px; max-width: 52ch; color: var(--ink-2); }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center h2 { max-width: 24ch; }

/* reveal on scroll */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* "O mně" band: dark intro card + four stat cards on a light grey strip */
.about-band { background: var(--surface); padding-block: clamp(64px, 8vw, 120px); margin-top: clamp(40px, 6vw, 80px); margin-bottom: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; align-items: stretch; }
.about-dark {
  background: var(--dark); color: var(--on-dark); border-radius: var(--r-xl);
  padding: clamp(24px, 2.4vw, 34px);
  display: flex; flex-direction: column; gap: 14px; min-height: 100%;
  box-shadow: 0 50px 70px -40px rgba(0,0,0,.45);
}
.about-dark-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.about-dark h2 { font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; flex: 0 1 auto; }
.about-dark-photo {
  flex: none; width: clamp(64px, 6vw, 84px); aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: #2a2a2a; display: grid; place-items: center; font-weight: 600;
  box-shadow: 0 16px 30px -14px rgba(0,0,0,.7); position: relative; z-index: 1;
}
.about-dark-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-dark p { color: var(--on-dark-2); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; max-width: 40ch; }
.about-dark-btn { margin-top: auto; width: 100%; height: 54px; border-radius: 16px; background: #fff; color: var(--ink); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 2.4vw, 34px); display: grid; align-content: start; gap: 22px; min-height: clamp(220px, 22vw, 330px); }
.stat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.stat-top b { font-size: clamp(52px, 6vw, 88px); font-weight: 500; letter-spacing: -0.045em; line-height: .95; color: var(--ink); }
.stat-top span { font-size: clamp(16px, 1.4vw, 20px); color: var(--ink-2); }
/* stat numbers: light up from blur to sharp over 2 s and rise 5 px */
.js .stat-top b { opacity: 0; filter: blur(14px); transform: translateY(0); transition: opacity 2s ease-out, filter 2s ease-out, transform 2s cubic-bezier(.2,.7,.2,1); will-change: opacity, filter, transform; }
.js .stats.lit .stat-top b { opacity: 1; filter: blur(0); transform: translateY(-5px); }
.js .stats.lit .stat:nth-child(2) .stat-top b { transition-delay: .15s; }
.js .stats.lit .stat:nth-child(3) .stat-top b { transition-delay: .3s; }
.js .stats.lit .stat:nth-child(4) .stat-top b { transition-delay: .45s; }
.stat p { color: var(--ink-3); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.5; max-width: 38ch; }

/* lecture card in "Více o mně" */
.lecture { margin-top: 26px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); display: grid; gap: 8px; }
.lecture-l { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lecture h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.lecture p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* services */
/* services: dark band, sticky heading left, cards stacking on scroll right */
.services-dark { background: #0b0b0b; color: var(--on-dark); padding-block: clamp(80px, 10vw, 140px); }
.services-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.services-intro { position: sticky; top: calc(120px + env(safe-area-inset-top, 0px)); display: grid; justify-items: start; gap: 22px; }
.services-intro h2 { font-size: clamp(32px, 4vw, 54px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.06; color: #fff; max-width: 14ch; }
.services-intro p { color: var(--on-dark-2); font-size: 17px; max-width: 40ch; }
.eyebrow-gold { color: #f2c94c; box-shadow: inset 0 0 0 1.5px rgba(242,201,76,.75); height: 36px; padding: 0 16px; font-size: 13px; text-transform: none; letter-spacing: .01em; }
.btn-white { background: #fff; color: var(--ink); height: 54px; padding: 0 24px; border-radius: 16px; margin-top: 8px; }
.svc-stack { display: grid; gap: 28px; padding-bottom: 8vh; }
.svc {
  position: sticky; top: calc(110px + var(--i) * 22px + env(safe-area-inset-top, 0px));
  background: #1a1a1a; border-radius: var(--r-xl);
  padding: clamp(24px, 2.4vw, 34px);
  display: grid; gap: 16px;
  box-shadow: 0 -1px 0 rgba(255,255,255,.06) inset, 0 -24px 50px -20px rgba(0,0,0,.6);
  transform-origin: 50% 0;
  transition: transform .25s linear, filter .25s linear;
  transform: scale(var(--scale, 1)); filter: brightness(var(--dim, 1));
}
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.svc-ico { width: 60px; height: 60px; border-radius: 15px; display: grid; place-items: center; color: #fff; box-shadow: 0 14px 26px -12px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.svc-ico svg { width: 30px; height: 30px; }
.svc-gold { background: linear-gradient(160deg, #f0c419, #b98a00); }
.svc-indigo { background: linear-gradient(160deg, #6f6cf3, #3b2fc4); }
.svc-green { background: linear-gradient(160deg, #3fcf8e, #12855a); }
.svc-coral { background: linear-gradient(160deg, #ff7a59, #d6402a); }
.svc-plus { width: 38px; height: 38px; color: rgba(255,255,255,.75); display: grid; place-items: center; transition: color .2s, transform .4s var(--ease); }
.svc-plus svg { width: 34px; height: 34px; }
.svc-plus:hover { color: #fff; transform: rotate(90deg); }
.svc h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.025em; color: #fff; }
.svc p { color: #9b9b97; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.svc-tags li { height: 36px; padding: 0 14px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); color: #e9e9e6; font-size: 14px; display: inline-flex; align-items: center; }


/* projects */
/* case studies: one per row — info panel left, large mockup right (overlapping the panel) */
.projects { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 72px); }
.project { display: grid; grid-template-columns: minmax(300px, 34%) 1fr; align-items: stretch; }
.project-body {
  position: relative; z-index: 1;
  background: var(--surface); border-radius: var(--r-xl);
  padding: clamp(24px, 2.4vw, 34px); padding-right: calc(clamp(24px, 2.4vw, 34px) + 28px);
  margin-right: -28px;
  margin-block: 25px;   /* the cover sticks out 25 px above and below the panel */
  display: flex; flex-direction: column; gap: 14px;
}
.project-ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 600; font-size: 22px; letter-spacing: -0.02em;
  box-shadow: 0 12px 22px -12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25);
  margin-bottom: 10px;
}
.project h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.025em; }
.project p { color: var(--ink-3); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; }
.meta { display: grid; }
.meta div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.meta dt { color: var(--ink-3); flex: none; }
.meta dd { margin: 0; text-align: right; font-weight: 500; color: var(--ink); }
.project .meta { margin-top: 10px; }
.project .meta div { padding: 16px 0; font-size: 15px; }
.project .meta div:first-child { border-top: 0; }
.projects-more { margin-top: clamp(40px, 5vw, 72px); }
.projects-more[hidden] { display: none; }
.more-row { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.more-row[hidden] { display: none; }
.more-btn { height: 56px; padding: 0 28px; border-radius: 16px; gap: 12px; box-shadow: none; }
.more-btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.more-btn.open svg { transform: rotate(180deg); }
.project .btn { margin-top: auto; height: 54px; border-radius: 16px; box-shadow: none; }
.project-body > .meta { margin-bottom: 28px; }
.project-media {
  position: relative; z-index: 2; display: block;
  border-radius: var(--r-xl); overflow: hidden; background: var(--dark);
  min-width: 0;
}
/* spacer keeps a 16:11 minimum height without widening the column; grows if the panel is taller */
.project-media::before { content: ""; display: block; padding-top: 68.75%; }
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.project:hover .project-media img { transform: scale(1.035); }


/* --------------------------------------------------------------------------
   Offer (built on the template's Now Working On / How it Works / FAQs)
   -------------------------------------------------------------------------- */
.badge-logo { height: 13px; width: auto; display: inline-block; margin-left: 2px; position: relative; top: 1px; }
.badge-sep { opacity: .5; margin: 0 2px; }

.nw-panel { position: relative; height: clamp(440px, 46vw, 600px); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; display: grid; place-items: center; }
.nw-bg { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); display: flex; gap: 14px; width: max-content; }
.nw-tile { width: clamp(170px, 17vw, 230px); aspect-ratio: 4 / 3; background: #fff; border-radius: 18px; padding: 16px; display: grid; align-content: space-between; box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(0,0,0,.35); }
.nw-tile img { height: 14px; width: auto; }
.nw-tile .l { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.nw-tile b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-top: -10px; }
.nw-tile:nth-child(even) { transform: translateY(26px); }
.nw-card {
  position: relative; z-index: 2; width: min(400px, calc(100% - 32px));
  background: #fff; border-radius: 24px; padding: clamp(20px, 2vw, 28px);
  display: grid; gap: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.35), 0 0 0 1px var(--line);
}
.nw-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.nw-status i { width: 7px; height: 7px; border-radius: 50%; background: #f2c94c; box-shadow: 0 0 0 4px rgba(242,201,76,.2); }
.nw-logo { height: 26px; width: auto; margin-top: 6px; }
.nw-card h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.nw-card p { color: var(--ink-3); font-size: 15px; line-height: 1.55; }
.nw-card .btn { margin-top: 10px; height: 52px; border-radius: 16px; box-shadow: none; }

.get-section, .price-section { padding-top: 0; }
/* timeline scrollytelling (horizontal) */
.tl-section { position: relative; }
.tl-section.tl-live { height: calc(100vh + var(--n, 4) * 42vh); height: calc(100svh + var(--n, 4) * 42svh); }
.tl-sticky { padding-block: clamp(40px, 6vw, 80px); }
.tl-live .tl-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-block: 90px 40px; overflow: hidden; }
.tl-wrap { display: grid; gap: clamp(36px, 5vw, 64px); }
.tl-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tl-intro { display: grid; justify-items: start; gap: 16px; min-width: 0; }
.tl-intro h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.06; max-width: 14ch; }
.tl-intro p { color: var(--ink-2); max-width: 44ch; }
.tl-counter { display: flex; align-items: baseline; gap: 10px; flex: none; }
.tl-counter { align-items: flex-end; }
.tl-counter > span { font-size: clamp(16px, 1.6vw, 22px); color: var(--ink-3); line-height: 1; padding-bottom: .15em; }
.tl-counter i { font-style: normal; }
.tl-roll { position: relative; height: .74em; width: 1.18em; font-size: clamp(130px, 18vw, 260px); line-height: 1; }
.tl-roll b { position: absolute; right: 0; bottom: 0; font-weight: 200; letter-spacing: -0.05em; line-height: .74; white-space: nowrap; }
.tl-roll b.in-up { animation: rollInUp .65s var(--ease) both; }
.tl-roll b.in-down { animation: rollInDown .65s var(--ease) both; }
.tl-roll b.out-up { animation: rollOutUp .55s var(--ease) both; }
.tl-roll b.out-down { animation: rollOutDown .55s var(--ease) both; }
@keyframes rollInUp { from { transform: translateY(55%); opacity: 0; filter: blur(14px); } to { transform: none; opacity: 1; filter: blur(0); } }
@keyframes rollInDown { from { transform: translateY(-55%); opacity: 0; filter: blur(14px); } to { transform: none; opacity: 1; filter: blur(0); } }
@keyframes rollOutUp { to { transform: translateY(-55%); opacity: 0; filter: blur(14px); } }
@keyframes rollOutDown { to { transform: translateY(55%); opacity: 0; filter: blur(14px); } }

.tl-rail { position: relative; min-width: 0; }
.tl-track { position: relative; transition: transform .5s var(--ease); will-change: transform; }
.tl-line { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-strong); }
.tl-line i { position: absolute; left: 0; top: -0.5px; height: 2px; width: 0; background: var(--ink); }
.tl-static .tl-line i { width: 100%; }
.tl-steps { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); position: relative; }
.tl-step { display: grid; gap: 22px; align-content: start; }
.tl-node { position: relative; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background .4s, box-shadow .4s, transform .5s var(--ease); z-index: 1; }
.tl-ico, .tl-check { display: none; }
.tl-body { display: grid; gap: 6px; transition: opacity .5s, transform .6s var(--ease); }
.tl-wk { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tl-body h3 { font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.tl-text p { color: var(--ink-3); font-size: 14.5px; line-height: 1.55; padding-top: 4px; max-width: 34ch; transition: opacity .5s; }
/* states */
.tl-live .tl-step.is-future .tl-body { opacity: .28; transform: translateY(8px); }
.tl-step.is-past .tl-node { background: var(--ink); box-shadow: none; }
.tl-step.is-active .tl-node { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 6px rgba(255,214,10,.35); transform: scale(1.25); }
.tl-live .tl-step.is-past .tl-body { opacity: .55; }




/* what you get */
.get-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.get-card { background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 2vw, 26px); display: grid; gap: 8px; align-content: start; }
.get-ico { width: 42px; height: 42px; border-radius: 11px; background: #fff; display: grid; place-items: center; margin-bottom: 12px; box-shadow: 0 6px 14px -8px rgba(0,0,0,.25); }
.get-ico svg { width: 20px; height: 20px; }
.get-card h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.get-card p { color: var(--ink-3); font-size: 15px; line-height: 1.5; }

/* bonus: design style for AI agents (dark box with animated schema) */
.ai-box { margin-top: 12px; background: #0b0b0b; color: #fff; border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 52px); display: grid; gap: clamp(24px, 3vw, 40px); }
.ai-head { display: grid; gap: 14px; max-width: 760px; }
.ai-badge { justify-self: start; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; }
.ai-head h3 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.ai-head p { color: #a7a7a2; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.55; }
.ai-figure { width: 100%; }
.ai-schema { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font); }
.ai-schema.v { display: none; max-width: 460px; margin-inline: auto; }
.ai-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.ai-steps li { counter-increment: s; background: #161616; border-radius: var(--r-lg); padding: 20px 22px; display: grid; gap: 6px; }
.ai-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #111; font-size: 13px; font-weight: 600; display: grid; place-items: center; margin-bottom: 8px; }
.ai-steps b { font-weight: 500; font-size: 16px; }
.ai-steps span { color: #9b9b97; font-size: 14px; line-height: 1.5; }

/* price: a client coin rolls from 50k and bounces off the 100k wall */
.price-card { background: var(--surface); border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 52px); display: grid; gap: clamp(28px, 4vw, 48px); overflow: hidden; }
.price-figures { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.price-figures div { display: grid; gap: 4px; }
.price-figures span { font-size: 14px; color: var(--ink-3); }
.price-figures b { font-size: clamp(40px, 6vw, 84px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.price-figures .arrow { font-size: clamp(28px, 4vw, 54px); color: var(--ink-3); align-self: center; }
.price-track { position: relative; height: clamp(250px, 26vw, 340px); margin-top: 40px; --coin: 40px; --pad: 12px; --padh: 76px; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.price-track.playing { touch-action: none; cursor: none; }
.pz { position: absolute; top: 0; bottom: 0; border-radius: 18px; display: flex; align-items: flex-end; padding: 12px 14px; font-size: 12.5px; line-height: 1.35; }
.pz span { max-width: 26ch; }
.pz-low { left: 0; width: calc(33.333% - 4px); color: var(--ink-3); background: repeating-linear-gradient(135deg, #ececea 0 10px, #f4f4f2 10px 20px); }
.pz-ok { left: 33.333%; width: 33.333%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font-weight: 500; }
.pz-high { left: calc(66.667% + 4px); right: 0; color: #b0141c; background: repeating-linear-gradient(135deg, #fbe3e4 0 10px, #fdf0f0 10px 20px); }
.pwall { position: absolute; left: calc(66.667% - 6px); width: 12px; top: -34px; bottom: -10px; background: var(--ink); border-radius: 6px; z-index: 3; transition: transform .12s; }
.pwall.hit { transform: translateX(3px); }
.pwall span { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ppaddle { position: absolute; left: calc(33.333% - var(--pad) / 2); top: 0; width: var(--pad); height: var(--padh); border-radius: 6px; background: var(--ink); z-index: 3; will-change: transform; }
.ppaddle.hit { background: #e20714; }
.pcoin { position: absolute; left: 0; top: 0; width: var(--coin); height: var(--coin); z-index: 2; will-change: transform; pointer-events: none; }
.pcoin i { position: absolute; inset: 0; border-radius: 50%; background: #e20714; box-shadow: 0 10px 18px -8px rgba(226,7,20,.6); }
.pcoin i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; background: #fff; transform: translate(-50%, -50%); border-radius: 2px; }
.pcoin.out { transition: opacity .6s; opacity: 0; }
.pscore { position: absolute; left: calc(33.333% + 16px); top: 12px; z-index: 4; font-size: 12px; color: var(--ink-3); pointer-events: none; }
.pscore b { color: var(--ink); font-size: 14px; margin-left: 4px; }
.pplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6;
  width: min(360px, calc(100% - 24px)); padding: 20px 22px; border-radius: 20px; background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.4), 0 0 0 1px var(--line);
  display: grid; gap: 8px; text-align: center; cursor: pointer; transition: opacity .3s, transform .4s var(--ease);
}
.pplay b { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.pplay span { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
.pplay em { font-style: normal; justify-self: center; margin-top: 6px; height: 42px; padding: 0 22px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; }
.pplay:hover em { background: #000; }
.price-track.playing .pplay, .pplay[hidden] { opacity: 0; pointer-events: none; transform: translate(-50%, -46%); }
.price-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: -18px; }
.price-scale span:nth-child(3), .price-scale span:nth-child(5) { color: var(--ink); font-weight: 600; }

/* capacity card under the price */
.cap-card { margin-top: 12px; background: var(--surface); border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.cap-text { display: grid; justify-items: start; gap: 14px; }
.cap-l { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cap-text h3 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.cap-text p { color: var(--ink-2); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.55; max-width: 46ch; }
.cap-btn { margin-top: 8px; height: 52px; border-radius: 16px; box-shadow: none; }
.cap-visual { display: grid; gap: 40px; }
.cap-battery { position: relative; height: 64px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); padding: 6px; }
.cap-battery::after { content: ""; position: absolute; right: -9px; top: 50%; width: 6px; height: 22px; transform: translateY(-50%); border-radius: 0 4px 4px 0; background: var(--ink); }
.cap-fill { height: 100%; width: 0; border-radius: 11px; background: var(--ink); color: #fff; display: flex; align-items: center; padding-left: 16px; font-weight: 500; font-size: 15px; transition: width 2.2s cubic-bezier(.2,.7,.2,1) .6s; overflow: hidden; white-space: nowrap; }
/* appears only when the card is in the upper part of the screen (above the bottom blur) */
.js .cap-card { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .cap-card.on { opacity: 1; transform: none; }
.cap-card.on .cap-fill, html:not(.js) .cap-fill { width: 97%; }
.cap-coffee { position: absolute; right: 0; top: calc(100% + 8px); font-style: normal; font-size: 12px; color: var(--ink-3); opacity: 0; transition: opacity .5s 2.6s; }
.cap-card.on .cap-coffee { opacity: 1; }
.cap-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cap-m { border-radius: 14px; padding: 14px 14px 16px; display: grid; gap: 4px; min-height: 92px; align-content: start; }
.cap-m b { font-size: 15px; font-weight: 600; }
.cap-m span { font-size: 12.5px; line-height: 1.35; }
.cap-m.full { background: repeating-linear-gradient(135deg, #ececea 0 8px, #f3f3f1 8px 16px); color: var(--ink-3); }
.cap-m.full b { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cap-m.free { background: var(--yellow); box-shadow: none; color: var(--ink); position: relative; }
.cap-m.free::before { content: ""; position: absolute; right: 12px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: capPulse 1.8s ease-out infinite; }
@keyframes capPulse { 0% { box-shadow: 0 0 0 0 rgba(18,18,18,.4); } 100% { box-shadow: 0 0 0 10px rgba(18,18,18,0); } }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; border-radius: var(--r-xl); background: var(--surface-2); overflow: hidden; position: relative; display: grid; place-items: center; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-photo .big { font-size: clamp(80px, 12vw, 140px); font-weight: 500; letter-spacing: -0.06em; color: var(--ink); line-height: 1; }
.about-photo .tag { position: absolute; left: 18px; bottom: 18px; }
.about-text h2 { font-size: clamp(30px, 4vw, 46px); }
.about-text p { margin-top: 18px; color: var(--ink-2); font-size: 17px; max-width: 58ch; }

/* --------------------------------------------------------------------------
   Final CTA & footer
   -------------------------------------------------------------------------- */
.cta-final { text-align: center; padding-block: clamp(60px, 9vw, 110px) clamp(40px, 6vw, 70px); }
.cta-final h2 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 400; max-width: 18ch; margin-inline: auto; }
.cta-final h2 b { font-weight: 600; }
.cta-final p { margin: 18px auto 0; max-width: 50ch; color: var(--ink-2); }
.cta-final .email { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.cta-final .email button { height: 30px; padding: 0 10px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 12px; font-weight: 500; }
.footer { background: #0b0b0b; color: #fff; padding-block: 44px calc(clamp(70px, 11vh, 130px) + 36px + env(safe-area-inset-bottom, 0px)); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px 28px; flex-wrap: wrap; font-size: 15px; color: rgba(255,255,255,.72); }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { color: #fff; }
.footer nav a:hover { color: rgba(255,255,255,.7); }
.footer .replay { color: rgba(255,255,255,.72); }
.footer .replay:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Case study page
   -------------------------------------------------------------------------- */
/* Case detail (like the template): sticky info panel left, manual pages scrolling right */
.case-layout {
  display: grid; grid-template-columns: minmax(360px, 39%) minmax(0, 1fr); gap: 12px; align-items: start;
  padding: calc(96px + env(safe-area-inset-top, 0px)) 12px 0 clamp(16px, 2.8vw, 56px);
}
.case-panel {
  position: sticky; top: calc(96px + env(safe-area-inset-top, 0px));
  height: calc(100vh - 108px - env(safe-area-inset-top, 0px)); min-height: 560px;
  background: var(--surface); border-radius: 36px;
  padding: clamp(18px, 1.6vw, 26px) clamp(18px, 1.6vw, 26px) 12px;
  display: flex; flex-direction: column; gap: 12px; overflow: auto; scrollbar-width: none;
  z-index: 51;   /* above the bottom-edge blur, so the story box stays readable */
}
.case-panel::-webkit-scrollbar { display: none; }
.case-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: 20px; box-shadow: 0 12px 22px -12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25); margin-bottom: 6px; flex: none; }
.case-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.case-head .case-ico { margin-bottom: 0; }
.case-back { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: var(--r-pill); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; box-shadow: inset 0 0 0 1px var(--line); }
.case-back svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.case-back:hover svg { transform: translateX(-3px); }
.case-panel h1 { font-size: clamp(36px, 3.2vw, 60px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.case-lead { color: var(--ink-2); font-size: clamp(14px, 1vw, 16px); line-height: 1.5; max-width: 60ch; }
.case-facts { display: grid; margin-top: 8px; }
.case-facts div { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.case-facts div:first-child { border-top: 0; }
.case-facts dt { color: var(--ink-3); flex: none; }
.case-facts dd { margin: 0; text-align: right; color: var(--ink); }
.case-facts a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.case-facts a svg { width: 15px; height: 15px; }
.case-facts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.case-swatches { display: inline-flex; gap: 6px; }
.case-swatches i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); }
/* real brand icons in the icon tiles */
.ico-img { background: #fff; padding: 9px; overflow: hidden; }
.ico-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ico-img.is-tile { background: transparent; padding: 0; }
.ico-img.is-tile img { object-fit: cover; }
.ico-img.is-round { border-radius: 50%; }
.case-story { margin-top: auto; background: #fff; border-radius: 20px; padding: 16px 18px; }
.case-story p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.case-pages { display: grid; gap: 12px; min-width: 0; }
.case-page { margin: 0; cursor: zoom-in; border-radius: 36px; overflow: hidden; background: var(--surface-2); }
.case-page img { width: 100%; height: auto; display: block; }
.case-page.is-white { border-radius: 0; background: #fff; }
@media (min-width: 1025px) and (max-height: 840px) { .case-facts .opt { display: none; } }
.case-more { padding-block: clamp(80px, 10vw, 140px) clamp(40px, 6vw, 80px); }
.case-more h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 500; letter-spacing: -0.03em; margin-bottom: clamp(28px, 4vw, 48px); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(18,18,18,.92); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; cursor: zoom-out; }
.lightbox.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox img { max-width: min(1400px, 100%); max-height: 86vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox .cap { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--on-dark-2); font-size: 14px; text-align: center; max-width: 80ch; padding-inline: 16px; }

.case-empty { padding-block: 160px 80px; text-align: center; }
.case-empty h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 400; }
.case-empty h1 b { font-weight: 600; }
.case-empty p { margin-top: 14px; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .about { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .tl-intro p, .tl-intro .eyebrow { display: none; }
  .tl-intro h2 { font-size: clamp(26px, 6.5vw, 36px); }
  .tl-roll { font-size: 96px; }
  .tl-track { width: max-content; transition: none; }
  .tl-live .tl-step.is-past .tl-body, .tl-live .tl-step.is-future .tl-body { opacity: .14; }
  .tl-steps { grid-template-columns: repeat(var(--n, 4), 72vw); gap: 24px; }
  .tl-live .tl-sticky { padding-block: 76px 24px; }
  .get-grid { grid-template-columns: 1fr 1fr; }
  .cap-card { grid-template-columns: 1fr; }
  .ai-steps { grid-template-columns: 1fr; }
  .case-layout { grid-template-columns: 1fr; padding: calc(88px + env(safe-area-inset-top, 0px)) var(--gutter) 0; gap: 12px; }
  .case-panel { position: static; height: auto; min-height: 0; overflow: visible; }
  .case-story { margin-top: 12px; }
  .case-page { border-radius: 24px; }
  .about-dark { min-height: 0; }
  .about-dark-btn { margin-top: 18px; }
  .about-photo { max-width: 420px; }
}
@media (max-width: 720px) {
  .brand img { height: 44px; }
  .nav-actions .btn-light { display: none; }
  .project { grid-template-columns: 1fr; }
  .project-media { order: -1; }
  .project-media::before { padding-top: 62.5%; }
  .project-body { margin: -28px 14px 0; padding-right: clamp(24px, 2.4vw, 34px); padding-top: calc(clamp(24px, 2.4vw, 34px) + 28px); }
  .svc { top: calc(84px + var(--i) * 14px); }
  .svc-top { margin-bottom: 12px; }
  .hero-stage { height: 320px; }
  .clients-track li { margin-right: 44px; }
  .clients-track img { max-width: 104px; }
  .mcard { width: 260px; }
  .glass { width: calc(100% - 32px); }
  .glass-copy { width: 62%; margin-right: 18%; }
  .glass h2 { font-size: 21px; }
  .signature { width: 100px; }
  .glass .portrait { width: 112%; right: -58%; }
  .stats { grid-template-columns: 1fr; }
  .get-grid { grid-template-columns: 1fr; }
  .ai-schema.h { display: none; }
  .ai-schema.v { display: block; }
  .price-track { height: 260px; --coin: 32px; --padh: 60px; }
  .pz { font-size: 11px; padding: 10px; }
  .pz span { max-width: none; }
  .price-scale span:nth-child(even) { visibility: hidden; }
  .stat { min-height: 0; }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .intro { display: none !important; }
  .marquee-track, .clients-track { animation: none !important; }
  .js .cap-card { opacity: 1; transform: none; }
  .cap-m.free::before { animation: none; }
  .tl-roll b { animation: none !important; }
  .tl-roll b.out-up, .tl-roll b.out-down { display: none; }
  .ai-schema circle[r="5.5"] { display: none; }
  .nw-tile:nth-child(even) { transform: none; }
  .js .stat-top b { opacity: 1 !important; filter: none !important; transform: none !important; }
  .svc { transform: none !important; filter: none !important; }
  .sig-stroke { stroke-dashoffset: 0 !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero .stage-in { opacity: 1; transform: none; }
}
