/* ==========================================================================
   v2 — "Keys & Cream": ponomar-style structure + filatov-style 3D objects
   ========================================================================== */
:root {
  --cream: #EFECE6;
  --cream-2: #E5E1D9;
  --paper: #F8F6F2;
  --ink: #121212;
  --ink-2: #1C1C1C;
  --ink-3: #262626;
  --muted: #77736C;
  --line: rgba(18, 18, 18, .12);
  --orange: #FF5A1F;
  --orange-deep: #D9430F;
  --d-muted: #8E8B86;
  --d-line: rgba(255, 255, 255, .12);
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 3.4vw, 40px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.5 var(--sans); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: lowercase; }
.muted { color: var(--muted); }
.o { color: var(--orange); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* reveal */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .08s; } .rv[data-d="2"] { transition-delay: .16s; } .rv[data-d="3"] { transition-delay: .24s; }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.pill:hover { transform: translateY(-2px); }
.pill--dark { background: var(--ink); color: #fff; }
.pill--light { background: #fff; color: var(--ink); }
.pill--light:hover { background: var(--ink); color: #fff; }
.pill--orange { background: var(--orange); color: #fff; padding-right: 6px; }
.pill--orange .arr { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--orange); display: grid; place-items: center; }
.pill--ghost { border: 1px solid var(--line); }
.pill--ghost:hover { background: var(--ink); color: #fff; }
.arr svg { width: 18px; height: 18px; }

/* ---------- header capsule + bottom dock (from the previous site) ---------- */
.site-hdr { position: fixed; inset: 0 0 auto; z-index: 60; display: flex; justify-content: center; padding: 14px var(--gut) 0; pointer-events: none; }
.capsule {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 14px; padding: 6px 6px 6px 8px; border-radius: 999px; color: #fff;
  background: rgba(16, 16, 19, .74); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 16px 44px rgba(0, 0, 0, .5);
}
.brand { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.brand-ava { width: 1.5em; height: 1.5em; flex: none; }
/* small avatars (header, dock) match the headline one: dark-orange disc, darker ring, head centred */
.mini-ava { position: relative; display: block; border-radius: 50%; overflow: hidden; background: #B9360F; box-shadow: 0 0 0 1.5px #7C2007; }
.dock-ava .mini-ava { width: 100%; height: 100%; }
.mini-ava img { position: absolute; width: 104%; height: 104%; left: 11%; top: 0; max-width: none; object-fit: cover; }
.brand-swap { display: inline-grid; align-items: center; }
.brand-swap > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .34em; white-space: nowrap; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.brand-home { opacity: 0; transform: translateY(5px); pointer-events: none; }
.brand-home svg { width: .86em; height: .86em; flex: none; }
.brand:hover .brand-label, .brand:focus-visible .brand-label { opacity: 0; transform: translateY(-5px); }
.brand:hover .brand-home, .brand:focus-visible .brand-home { opacity: 1; transform: none; }
.avail-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13px; font-weight: 500; white-space: nowrap; }
.avail-dot { width: 15px; height: 15px; border-radius: 50%; background: rgba(53, 255, 77, .15); display: grid; place-items: center; flex: none; }
.avail-dot i { width: 7px; height: 7px; border-radius: 50%; background: #0EDF4D; box-shadow: 0 0 8px 1px rgba(14, 223, 77, .6); }
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 4px 4px 4px 18px; border-radius: 999px; background: #fff; color: var(--ink);
  font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; transition: background .25s, color .25s, transform .2s var(--ease);
}
.btn-cta .cta-ic { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background .25s, color .25s; }
.btn-cta .cta-ic svg { width: 15px; height: 15px; }
.btn-cta:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn-cta:hover .cta-ic { background: #fff; color: var(--ink); }
/* hover: outer orange gradient ring (the hero's palette) on buttons that turn black — a masked ring, so stacking order can't cover the button */
.btn-cta, .pill--light, .pill--line { position: relative; }
.btn-cta::after, .pill--light::after, .pill--line::after {
  content: ""; position: absolute; inset: -4px; padding: 3px; border-radius: 999px; pointer-events: none;
  background: linear-gradient(120deg, #FF8A50, #F2541A 40%, #B92E0B 75%, #FF6A2E);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .25s;
}
.btn-cta:hover::after, .pill--light:hover::after, .pill--line:hover::after { opacity: 1; }
.btn-cta:hover, .pill--light:hover, .pill--line:hover { box-shadow: 0 12px 30px -10px rgba(242, 84, 26, .75); }
.dock { position: fixed; left: 50%; bottom: clamp(14px, 2.5vw, 24px); z-index: 70; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 20px); }
.dock-item {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 18px; border-radius: 999px; color: #C8C8CC; font-weight: 600; font-size: 14px;
  background: rgba(16, 16, 19, .74); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 16px 44px rgba(0, 0, 0, .5); transition: background .25s, color .25s, transform .2s var(--ease);
}
.dock-item:hover { background: rgba(30, 30, 35, .85); color: #fff; transform: translateY(-1px); }
.dock-ic { display: grid; place-items: center; }
.dock-ic svg { width: 19px; height: 19px; }
.dock .btn-cta { padding: 5px 5px 5px 18px; font-size: 14px; box-shadow: 0 16px 44px rgba(0, 0, 0, .5); }
.dock-ava { position: relative; display: inline-grid; width: 22px; height: 22px; border-radius: 50%; background: #292930; }
.dock-ava > img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.dock-badge { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; }
.dock-badge img { width: 100%; height: 100%; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }

/* ---------- hero (ponomar) ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(60% 55% at 50% 38%, #F5683A 0%, rgba(240, 90, 40, 0) 70%),
    radial-gradient(120% 90% at 50% 100%, #A82409 0%, #DE3F17 55%, #EC4E24 100%);
}
.hero::before { /* film grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3BD671; box-shadow: 0 0 0 4px rgba(59, 214, 113, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(59, 214, 113, 0); } }
.hero-copy {
  position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-top: 96px; padding-bottom: calc(clamp(76px, 9vw, 170px) * .86 + 40px); pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.hero h1 { margin-top: 0; max-width: 12ch; font-size: clamp(54px, 6.3vw, 116px); font-weight: 500; letter-spacing: -.055em; line-height: .92; }
.h1-ava { position: relative; display: inline-block; width: .84em; height: .84em; margin: 0 .05em; vertical-align: -.1em; }
.h1-ava-in { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #B9360F; box-shadow: 0 0 0 .045em #7C2007; }
.h1-ava-in img { position: absolute; width: 104%; height: 104%; left: 11%; top: 0%; max-width: none; object-fit: cover; }
.h1-mark { position: absolute; right: -.07em; bottom: -.04em; width: .32em; height: .32em; filter: drop-shadow(0 .02em .05em rgba(0, 0, 0, .35)); }
/* 3D carousel of work (desktop): curved cards built from strips on a cylinder; drag to spin, click to open */
.ring3d {
  position: absolute; z-index: 1; top: 0; bottom: 0; left: 34%; right: 0; display: grid; place-items: center; perspective: 1700px; perspective-origin: calc(50% + 6vw) 50%;
  cursor: grab; touch-action: pan-y; -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 20%, #000 54%, #000 93%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, transparent 20%, #000 54%, #000 93%, transparent 100%);
}
.ring3d.is-drag { cursor: grabbing; }
.r3-rows { display: grid; gap: clamp(10px, 2.2vh, 26px); margin-left: 11vw; margin-top: -1vh; }
.r3-tilt { display: grid; place-items: center; height: var(--rh, 220px); transform-style: preserve-3d; transform: rotateX(calc(-5deg + var(--ty, 0deg))) rotateY(var(--tx, 0deg)); transition: transform .8s var(--ease); }
.r3-track { position: relative; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.r3-card { position: absolute; transform-style: preserve-3d; }
/* one background image per strip (no nested <img>): far fewer layers to paint while spinning */
.r3-strip { position: absolute; background-color: #1A1A1A; background-repeat: no-repeat; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.r3-strip.first { border-radius: 14px 0 0 14px; }
.r3-strip.first::before { content: ""; position: absolute; left: 12px; top: 4.5%; width: 34px; height: 8px; translate: 0 -50%;
  background: radial-gradient(circle at 4px 4px, #3C3C3C 3.5px, transparent 4px) 0 0 / 13px 8px repeat-x; }
.r3-strip.last { border-radius: 0 14px 14px 0; }
.r3-strip.has-url { transform-style: preserve-3d; }
.r3-url { position: absolute; left: 50%; top: 5.5%; translate: -50% -50%; transform: translateZ(2px); backface-visibility: hidden; -webkit-backface-visibility: hidden; white-space: nowrap; font: 11px/1 var(--mono); color: #8A8A8A; background: #2A2A2A; padding: 4px 10px; border-radius: 5px; }
.r3-cursor { flex-direction: column; gap: 2px; }
.r3-cursor small { font: 500 10px/1 var(--mono); opacity: .85; letter-spacing: .04em; }
.hero-copy > p { margin-top: 24px; max-width: 40ch; font-size: 18px; line-height: 1.45; opacity: .92; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.pill--line { border: 1.5px solid rgba(255, 255, 255, .75); color: #fff; }
.pill--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero-name { position: absolute; z-index: 2; left: 0; right: 0; bottom: -.14em; font-size: clamp(76px, 9vw, 170px); font-weight: 500; letter-spacing: -.055em; line-height: 1; white-space: nowrap; overflow: hidden; pointer-events: none; }
.marquee { display: inline-flex; animation: marquee 32s linear infinite; }
.marquee span { padding-right: .35em; }
.marquee svg { width: .7em; height: .7em; margin-left: .22em; vertical-align: 0; overflow: visible; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- intro + stats (ponomar) ---------- */
.intro { padding: clamp(80px, 11vw, 160px) 0 clamp(64px, 8vw, 120px); }
.intro-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; }
.statement { font-size: clamp(26px, 3.4vw, 50px); line-height: 1.12; font-weight: 500; letter-spacing: -.035em; }
.statement .muted { color: #A39E95; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(56px, 7vw, 104px); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.stat b sup { color: var(--orange); font-size: .32em; vertical-align: 1.6em; margin-left: 4px; }
.stat b.word { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; padding: .18em 0 .2em; letter-spacing: -.04em; }
.stat span { display: block; margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 22ch; }

/* ---------- 3D keycaps (filatov) ---------- */
.key {
  --kf1: #F7F5F1; --kf2: #D8D4CC; --ks: #A6A097; --kt1: #FFFFFF; --kt2: #ECE8E2; --kl: #1A1A1A;
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--k); height: var(--k); border-radius: calc(var(--k) * .17);
  background: linear-gradient(180deg, var(--kf1), var(--kf2));
  box-shadow: 0 calc(var(--k) * .09) 0 var(--ks), 0 calc(var(--k) * .22) calc(var(--k) * .3) rgba(0, 0, 0, .42);
  transition: transform .12s ease, box-shadow .12s ease; cursor: pointer; user-select: none; -webkit-user-select: none;
}
.key::before {
  content: ""; position: absolute; inset: calc(var(--k) * .07) calc(var(--k) * .09) calc(var(--k) * .14);
  border-radius: calc(var(--k) * .12); background: linear-gradient(165deg, var(--kt1), var(--kt2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 1px 3px rgba(0, 0, 0, .14);
}
.key > * { position: relative; transform: translateY(-.06em); }
.key > span { font: 500 calc(var(--k) * .34)/1 var(--mono); color: var(--kl); text-transform: uppercase; }
.key > svg, .key > img { width: 44%; height: 44%; object-fit: contain; }
.key.is-down { transform: translateY(calc(var(--k) * .07)); box-shadow: 0 calc(var(--k) * .02) 0 var(--ks), 0 calc(var(--k) * .08) calc(var(--k) * .14) rgba(0, 0, 0, .42); }
.key--o { --kf1: #FF7A45; --kf2: #E2470F; --ks: #9A2C05; --kt1: #FF8250; --kt2: #F2561A; --kl: #fff; }
.key--b { --kf1: #3A3A3A; --kf2: #1B1B1B; --ks: #050505; --kt1: #353535; --kt2: #222; --kl: #F2F2F2; }
.key--b::before { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 3px rgba(0, 0, 0, .4); }
.key--ava > img { width: 62%; height: 62%; border-radius: 50%; }

/* ---------- why me (dark, compact keys + four reasons) ---------- */
.dark { background: var(--ink); color: #fff; }
.approach { padding: clamp(72px, 8vw, 120px) 0; }
.eyebrow { display: flex; gap: 14px; align-items: baseline; color: var(--muted); margin-bottom: 22px; }
.dark .eyebrow { color: var(--d-muted); }
.h2 { font-size: clamp(48px, 8vw, 128px); font-weight: 500; letter-spacing: -.06em; line-height: .9; }
.dark .h2 .o { color: var(--orange); }
.approach .h2 { font-size: clamp(44px, 6vw, 92px); }
.approach-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.keys { --k: min(56px, calc((100vw - 2 * var(--gut) - 6 * 8px) / 7)); display: grid; gap: calc(var(--k) * .3); justify-items: start; perspective: 900px; padding-bottom: 10px; }
.keys-row { display: flex; gap: 8px; transform: rotateX(14deg); }
.keys-row:nth-child(2) { margin-left: calc(var(--k) * .55); }
.whys { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--d-line); }
.why { padding: 26px 24px 0; border-left: 1px solid var(--d-line); display: flex; flex-direction: column; gap: 12px; }
.why:first-child { border-left: 0; padding-left: 0; }
.why .mono { color: var(--orange); }
.why h3 { font-size: 21px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.why p { color: var(--d-muted); font-size: 15px; line-height: 1.5; }

/* ---------- section head ---------- */
.sec { padding: clamp(90px, 11vw, 160px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head p { max-width: 34ch; color: var(--muted); font-size: 16px; }

/* ---------- services (filatov programme list) ---------- */
.acc-item { border-top: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: grid; grid-template-columns: 90px 1fr 28px; gap: 16px; align-items: center; padding: 26px 0; text-align: left; }
.acc-head .mono { color: var(--muted); }
.acc-name { font-size: clamp(24px, 3vw, 40px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; transition: color .25s; }
.acc-head:hover .acc-name { color: var(--orange); }
.plus { position: relative; width: 22px; height: 22px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.plus::after { transform: rotate(90deg); }
.is-open .plus::after { transform: rotate(0); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.is-open > .acc-body { grid-template-rows: 1fr; }
.acc-in { overflow: hidden; }
.svc { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 16px; padding: 0 0 36px; }
.svc-txt { grid-column: 2; display: flex; flex-direction: column; gap: 18px; padding-right: 24px; }
.svc-txt > p { font-size: 18px; line-height: 1.45; max-width: 46ch; }
.svc-txt > p + p { color: var(--muted); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 7px 13px; border-radius: 999px; background: var(--cream-2); font-size: 13px; font-weight: 500; }
.dark .tags span { background: var(--ink-3); color: #ddd; }
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 15px; }
.incl li { display: flex; gap: 10px; }
.incl li::before { content: "✳"; color: var(--orange); }
.svc-img { border-radius: 20px; overflow: hidden; background: var(--cream-2); aspect-ratio: 4 / 3; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-cta { margin-top: 40px; }

/* ---------- cases (ponomar mockups) ---------- */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(56px, 6vw, 90px) clamp(20px, 3vw, 44px); }
.cases > :nth-child(even) { margin-top: clamp(0px, 9vw, 140px); margin-bottom: calc(-1 * clamp(0px, 9vw, 140px)); }
.case { display: flex; flex-direction: column; gap: 18px; }
.browser { border-radius: 16px; overflow: hidden; background: #1A1A1A; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); transition: transform .5s var(--ease); }
.case:hover .browser { transform: translateY(-6px) rotate(-.4deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3C3C3C; }
.browser-bar span { margin: 0 auto; transform: translateX(-16px); background: #2A2A2A; color: #9a9a9a; font: 11px/1 var(--mono); padding: 5px 14px; border-radius: 6px; }
.browser-shot { aspect-ratio: 16 / 10; overflow: hidden; background: #222; }
.browser-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.case:hover .browser-shot img { transform: scale(1.04); }
.browser-shot { position: relative; }
.browser-shot .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease, transform 1.2s var(--ease); }
.browser-shot .alt.is-on { opacity: 1; }
/* story-style progress over the screenshot while hovered */
.shot-bars { position: absolute; z-index: 2; left: 12px; right: 12px; top: 10px; display: flex; gap: 5px; opacity: 0; transition: opacity .3s; }
.case:hover .shot-bars { opacity: 1; }
.shot-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.shot-bars i::after { content: ""; display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.shot-bars i.is-done::after { transform: none; }
.shot-bars i.is-on::after { transform: none; transition: transform var(--shot-ms, 1400ms) linear; }
.case-cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 104px; height: 104px; margin: -52px 0 0 -52px;
  border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; gap: 4px;
  font-weight: 500; font-size: 16px; letter-spacing: -.02em; box-shadow: 0 16px 40px rgba(255, 90, 31, .35);
  scale: 0; transition: scale .25s var(--ease);
}
.case-cursor svg { width: 15px; height: 15px; }
.case-cursor.is-on { scale: 1; }
@media (hover: hover) and (pointer: fine) { .case .browser { cursor: none; } }
.case-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.case h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.case-go { font-size: 14px; white-space: nowrap; border-bottom: 1px solid currentColor; }
.case-cat { color: var(--muted); font-size: 14px; margin-top: -10px; }
.case-desc { font-size: 15px; line-height: 1.5; max-width: 52ch; }
.figma-row { display: flex; flex-wrap: wrap; gap: 10px; margin: calc(-1 * clamp(16px, 3vw, 40px)) 0 clamp(48px, 6vw, 80px); }
.figma-row .pill { gap: 10px; }
.fig-ic svg { width: 12px; height: 18px; }
.cases-all { text-align: center; margin-top: clamp(140px, 14vw, 220px); }

/* ---------- process: bike-computer screen, four laps ---------- */
.laps { position: relative; overflow: hidden; background: var(--ink); padding: clamp(72px, 8vw, 120px) 0; }
.laps-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.laps .h2 { font-size: clamp(44px, 6vw, 92px); }
.laps-copy > p { margin-top: 22px; max-width: 36ch; color: var(--d-muted); font-size: 16px; }
.lap-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.lap-tab { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: #fff; background: rgba(255, 255, 255, .04); border: 1px solid var(--d-line); transition: background .25s, color .25s; }
.lap-tab .mono { color: var(--d-muted); }
.lap-tab:hover { background: rgba(255, 255, 255, .1); }
.lap-tab.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.lap-tab.is-on .mono { color: var(--orange); }
.bc { width: min(560px, 100%); justify-self: end; }
.bc-body {
  position: relative; border-radius: 34px; padding: 16px 16px 12px;
  background: linear-gradient(160deg, #FFFFFF, #EEEBE6 55%, #D8D4CD);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), 0 0 60px -10px rgba(255, 90, 31, .18), inset 0 1px 1px #fff, inset 0 -5px 12px rgba(0, 0, 0, .12);
}
.bc-side { position: absolute; right: -6px; top: 26%; width: 8px; height: 44px; border-radius: 4px; background: linear-gradient(90deg, #C9C5BD, #F4F2EE); }
.bc-screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 100% at 20% 0%, #222, #070707 62%); box-shadow: 0 0 0 3px #CFCBC3, inset 0 0 0 2px #000, inset 0 0 40px rgba(0, 0, 0, .8);
}
.bc-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(255, 255, 255, .1), transparent 40%); pointer-events: none; }
.bc-status { position: absolute; left: 20px; right: 20px; top: 14px; display: flex; justify-content: space-between; align-items: center; color: #8A8A8A; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.bc-status span:first-child { display: flex; align-items: center; gap: 6px; }
.bc-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: pulse-o 1.6s infinite; }
@keyframes pulse-o { 50% { opacity: .25; } }
.bc-lap { color: #fff; }
.bc-batt { position: relative; width: 24px; height: 11px; border: 1.5px solid #8A8A8A; border-radius: 3px; }
.bc-batt::after { content: ""; position: absolute; inset: 1.5px 6px 1.5px 1.5px; border-radius: 1px; background: #3BD671; }
.bc-slide { position: absolute; inset: 54px 20px 34px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.bc-slide.is-on { opacity: 1; transform: none; }
.bc-slide > .mono { color: var(--orange); }
.bc-slide b { font-size: clamp(30px, 3.8vw, 50px); font-weight: 500; letter-spacing: -.045em; line-height: .95; }
.bc-slide p { font-size: clamp(13px, 1.15vw, 15px); color: #B4B4B4; line-height: 1.45; max-width: 42ch; }
.bc-field { margin-top: auto; display: flex; gap: 10px; align-items: baseline; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .14); font-size: 14px; font-weight: 500; }
.bc-field .mono { color: #8A8A8A; }
.bc-progress { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; gap: 6px; }
.bc-progress i { flex: 1; height: 5px; border-radius: 3px; background: #2A2A2A; transition: background .4s, box-shadow .4s; }
.bc-progress i.is-on { background: var(--orange); box-shadow: 0 0 8px rgba(255, 90, 31, .5); }
.bc-controls { display: flex; align-items: center; justify-content: space-between; padding: 12px 6px 2px; }
.bc-controls .mono { color: #9A968E; }
.bc-controls button {
  height: 34px; min-width: 76px; padding: 0 14px; border-radius: 10px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em;
  color: #3A3A3A; background: linear-gradient(180deg, #FFFFFF, #E4E1DB); box-shadow: 0 3px 0 #B9B4AB, inset 0 1px 0 #fff; transition: transform .12s, box-shadow .12s;
}
.bc-controls button[data-next] { color: #fff; background: linear-gradient(180deg, #FF7A45, #E2470F); box-shadow: 0 3px 0 #9A2C05, inset 0 1px 0 rgba(255, 255, 255, .35); }
.bc-controls button.is-down { transform: translateY(3px); box-shadow: 0 0 0 transparent; }
.bc-mount { width: 30%; height: 16px; margin: -2px auto 0; border-radius: 0 0 12px 12px; background: linear-gradient(#D6D3CC, #9F9A91); }

/* ---------- experience ---------- */
.xp .acc-head { grid-template-columns: 200px 1fr 28px; }
.xp-role { display: block; font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.xp-role em { font-style: normal; color: var(--orange); }
.xp-sum { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.xp-body { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding-bottom: 32px; }
.xp-body > div { grid-column: 2; display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.xp-facts li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.xp-facts li::before { content: "→"; color: var(--orange); }

/* dark variant (experience sits on ink) */
.dark .acc-item { border-color: var(--d-line); }
.dark .acc-head .mono, .dark .xp-sum, .dark .sec-head p { color: var(--d-muted); }
.dark .xp-facts li { border-bottom-color: var(--d-line); }
.dark .pill--ghost { border-color: var(--d-line); color: #fff; }
.dark .pill--ghost:hover { background: #fff; color: var(--ink); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(300px, 38vw, 540px); gap: 16px; overflow-x: auto; padding: 4px var(--gut) 24px; margin: 0 calc(-1 * var(--gut)); scrollbar-width: none; }
.quotes::-webkit-scrollbar { display: none; }
.quotes { cursor: grab; }
.quotes.is-drag { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.quote { margin: 0; background: var(--paper); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.quote .key { --k: 44px; align-self: flex-start; }
.quote p { font-size: 17px; line-height: 1.5; color: var(--muted); }
.quote p b { color: var(--ink); font-weight: 500; }
.quote footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.quote footer { display: flex; align-items: center; gap: 14px; }
.quote .q-ava { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 500 15px/1 var(--mono); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 6px 14px -6px var(--c); }
.quote footer b { display: block; font-weight: 600; }
.quote footer b + span { display: block; font-size: 14px; color: var(--muted); }

/* ---------- contact (dark): copy on the left, photo with floating contact chips on the right ---------- */
.contact { position: relative; overflow: hidden; padding: clamp(72px, 8vw, 120px) 0 0; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.contact .h2 { font-size: clamp(44px, 5.8vw, 96px); }
.contact-lead { margin: 22px 0 30px; color: var(--d-muted); max-width: 44ch; }
.contact-cta span { font-size: 1.1em; }
.contact-art { --d: min(400px, 74vw); position: relative; display: grid; place-items: end center; padding-top: calc(var(--d) * .5); }
.disc { position: relative; width: var(--d); aspect-ratio: 1; }
.disc::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FF8A4F, var(--orange) 55%, var(--orange-deep)); }
/* photo clipped to the disc's lower half, head breaks out above it */
.disc-clip { position: absolute; inset: auto 0 0; height: 150%; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: 0 0 calc(var(--d) / 2) calc(var(--d) / 2); }
.disc-clip img { width: 78%; }
.chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; color: #fff; white-space: nowrap;
  background: rgba(16, 16, 19, .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  animation: bob 6s ease-in-out infinite; transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { background: #fff; color: var(--ink); border-color: #fff; }
.chip-ic { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.chip-ic svg { width: 19px; height: 19px; }
.chip-tx b { display: block; font-size: 15px; font-weight: 600; line-height: 1.15; }
.chip-tx span { font-size: 12px; color: var(--d-muted); }
.chip:hover .chip-tx span { color: var(--muted); }
.chip-go { width: 16px; height: 16px; flex: none; }
.chip--tl { left: 2%; top: 18%; }
.chip--tr { right: 0; top: 30%; animation-delay: -1.5s; }
.chip--ml { left: -2%; top: 56%; animation-delay: -3s; }
.chip--mr { right: 2%; top: 72%; animation-delay: -4.5s; }
.foot { position: relative; padding-top: 70px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--d-muted); padding-bottom: 20px; }
.foot-row a:hover { color: #fff; }
.giant { font-size: clamp(64px, 15.2vw, 270px); font-weight: 500; letter-spacing: -.065em; line-height: .78; color: var(--cream); white-space: nowrap; margin-bottom: -.04em; text-align: center; overflow: hidden; }
.giant span { color: var(--orange); }
@keyframes bob { 50% { translate: 0 -10px; } }

/* ---------- contact modal ---------- */
.cmodal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; transition: visibility 0s .4s; }
.cmodal.is-open { visibility: visible; transition: none; }
.cmodal-bg { position: absolute; inset: 0; background: rgba(18, 18, 18, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s; }
.cmodal.is-open .cmodal-bg { opacity: 1; }
.cmodal-panel {
  position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: hidden auto; isolation: isolate;
  background: var(--ink); color: #fff; border-radius: 32px; padding: 26px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: translateY(28px) scale(.96); opacity: 0; transition: transform .5s var(--ease), opacity .3s;
}
.cmodal-panel::before { /* orange glow + asterisk */
  content: "✳"; position: absolute; z-index: -1; top: -90px; right: -70px; width: 300px; height: 300px; border-radius: 50%;
  display: grid; place-items: center; font-size: 150px; color: rgba(255, 255, 255, .1);
  background: radial-gradient(circle, rgba(255, 90, 31, .55), rgba(255, 90, 31, 0) 68%);
}
.cmodal.is-open .cmodal-panel { transform: none; opacity: 1; }
.cm-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cm-me { display: flex; align-items: center; gap: 12px; }
.cm-me b { display: block; font-weight: 500; font-size: 15px; }
.cm-me .mono { color: #3BD671; }
.cm-ava { position: relative; width: 48px; height: 48px; flex: none; }
.cm-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--orange); }
.cm-ava i { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #3BD671; box-shadow: 0 0 0 3px var(--ink); }
.cmodal-x { width: 44px; height: 44px; border-radius: 50%; background: var(--ink-3); color: #fff; display: grid; place-items: center; transition: background .2s, transform .3s var(--ease); }
.cmodal-x:hover { background: var(--orange); transform: rotate(90deg); }
.cmodal-x svg { width: 16px; height: 16px; }
.cmodal-panel h2 { margin-top: 34px; font-size: clamp(48px, 9vw, 72px); font-weight: 500; letter-spacing: -.06em; line-height: .9; }
.cmodal-panel > p { color: var(--d-muted); margin: 14px 0 24px; font-size: 15px; max-width: 36ch; }
.cm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-card {
  position: relative; display: flex; flex-direction: column; gap: 26px; padding: 16px 16px 18px; border-radius: 22px;
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .05); transition: background .25s, transform .3s var(--ease);
  opacity: 0; transform: translateY(12px);
}
.cmodal.is-open .cm-card { opacity: 1; transform: none; transition: background .25s, transform .5s var(--ease), opacity .4s; }
.cmodal.is-open .cm-card:nth-child(2) { transition-delay: 0s, .06s, .06s; }
.cmodal.is-open .cm-card:nth-child(3) { transition-delay: 0s, .12s, .12s; }
.cmodal.is-open .cm-card:nth-child(4) { transition-delay: 0s, .18s, .18s; }
.cm-card .key { --k: 52px; }
.cm-card .key svg { width: 50%; height: 50%; }
.cm-card:hover { background: var(--orange); }
.cm-card:hover .key { transform: translateY(calc(var(--k) * .07)); box-shadow: 0 calc(var(--k) * .02) 0 var(--ks), 0 calc(var(--k) * .08) calc(var(--k) * .14) rgba(0, 0, 0, .3); }
.cm-tx b { display: block; font-weight: 500; font-size: 20px; letter-spacing: -.03em; }
.cm-tx span { font-size: 13px; color: var(--d-muted); transition: color .25s; }
.cm-card:hover .cm-tx span { color: rgba(255, 255, 255, .85); }
.cm-go { position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; color: var(--d-muted); transition: color .25s, transform .3s var(--ease); }
.cm-card:hover .cm-go { color: #fff; transform: translate(2px, -2px); }
.cm-mail { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--ink-2); border: 1px dashed rgba(255, 255, 255, .14); }
.cm-mail .mono { color: var(--d-muted); }
.cm-mail b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 15px; }
.cm-copy { height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.cm-copy:hover, .cm-copy.is-done { background: var(--orange); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .intro-grid { grid-template-columns: 1fr; }
  .whys { grid-template-columns: 1fr 1fr; }
  .why:nth-child(3) { border-left: 0; padding-left: 0; }
  .why:nth-child(n + 3) { margin-top: 26px; border-top: 1px solid var(--d-line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { margin-top: 28px; border-top: 1px solid var(--line); }
  .svc { grid-template-columns: 1fr; }
  .svc-txt { grid-column: 1; padding: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-art { margin-top: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .sec-head { grid-template-columns: 1fr; }
  .chip-tx span, .chip-go { display: none; }
  .chip { padding-right: 16px; }
  .chip--tl { left: 0; top: 14%; } .chip--tr { right: 0; top: 26%; } .chip--ml { left: 0; top: 62%; } .chip--mr { right: 0; top: 74%; }
  .whys { grid-template-columns: 1fr; }
  .why, .why:nth-child(3) { border-left: 0; padding-left: 0; }
  .why:nth-child(n + 2) { margin-top: 22px; border-top: 1px solid var(--d-line); }
  .acc-head { grid-template-columns: 44px 1fr 22px; padding: 22px 0; }
    .incl { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .cases > :nth-child(even) { margin: 0; }
  .cases-all { margin-top: 64px; }
  .xp .acc-head { grid-template-columns: 1fr 22px; }
  .xp .acc-head .mono { grid-column: 1 / -1; }
  .xp-body { grid-template-columns: 1fr; }
  .xp-body > div { grid-column: 1; }
  .laps-grid { grid-template-columns: 1fr; }
  .bc { justify-self: stretch; }
  .bc-screen { aspect-ratio: auto; height: 300px; }
  .lap-tabs { margin-top: 20px; }
  .cmodal { place-items: end center; padding: 0; }
  .cmodal-panel { border-radius: 28px 28px 0 0; padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(100%); }
  .cm-mail .mono { display: none; }
  /* phone: the whole modal fits one screen, no scroll */
  .cmodal-panel { padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); }
  .cmodal-panel::before { width: 200px; height: 200px; top: -70px; right: -50px; font-size: 96px; }
  .cm-ava { width: 40px; height: 40px; }
  .cmodal-x { width: 40px; height: 40px; }
  .cmodal-panel h2 { margin-top: 16px; font-size: 44px; }
  .cmodal-panel > p { margin: 8px 0 14px; font-size: 14px; }
  .cm-grid { gap: 8px; }
  .cm-card { flex-direction: row; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; }
  .cm-card .key { --k: 36px; }
  .cm-tx { min-width: 0; }
  .cm-tx b { font-size: 16px; }
  .cm-tx span { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cm-go { display: none; }
  .cm-mail { margin-top: 8px; padding: 6px 6px 6px 16px; }
  .cm-mail b { font-size: 14px; }
  .cm-copy { height: 36px; padding: 0 14px; }
}
@media (max-width: 680px) {
  .site-hdr { padding: 10px 12px 0; }
  .capsule { width: 100%; justify-content: space-between; padding: 5px 5px 5px 8px; }
  .brand { font-size: 17px; }
  .avail-pill { display: none; }
  .dock { gap: 7px; }
  .dock-item { padding: 8px 12px; font-size: 13px; gap: 6px; }
  .dock .btn-cta { padding: 4px 4px 4px 14px; font-size: 13px; }
  .dock .btn-cta .cta-ic { width: 28px; height: 28px; }
}
/* tablet + phone hero: the same text-first hero as desktop, without the carousel */
@media (max-width: 1000px) {
  .ring3d { display: none; }
  .hero-copy { padding-top: 110px; padding-bottom: calc(76px * .86 + 100px); }
  .hero h1 { font-size: clamp(44px, 11vw, 80px); max-width: 11ch; }
  .hero-copy > p { font-size: 16px; }
  .hero-name { font-size: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}
