/* Craft&Code — портфолио.
   Своя тема: графит + оранжевый. Каждый кейс оформлен в цветах самого проекта. */

:root {
  --bg: #0c0c0d;
  --bg-2: #141416;
  --fg: #f2efe8;
  --muted: rgba(242, 239, 232, .82);
  --line: rgba(242, 239, 232, .13);
  --accent: #ff5c28;
  --ink: #0c0c0d;
  --paper: #f2efe8;

  --pad: clamp(16px, 4vw, 56px);
  --nav-h: 68px;
  --radius: 26px;

  --f-sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-disp: "Unbounded", "Onest", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --f-car: "Piazzolla", Georgia, serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; font-family: var(--f-sans); font-size: 16px; line-height: 1.5;
  background: var(--bg); color: var(--fg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: 80px; }
.case[id] { scroll-margin-top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
main > section, main > article, .footer { overflow-x: clip; }
::selection { background: var(--accent); color: var(--ink); }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 300; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }
.dots { display: inline-flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #d9dbe4; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; line-height: 1.5; background: #eef0f6; color: #2b2f45; font-weight: 500; white-space: nowrap; }
.pill--hot { background: #ffe9d6; color: #a4480b; }
.pill--team { background: #fdebe2; color: #8a3b14; }
.split-line { padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--f-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn span { display: inline-block; pointer-events: none; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #ff7a4d; }
.btn--line { border-color: rgba(242, 239, 232, .35); color: var(--fg); }
.btn--line:hover { border-color: var(--fg); background: var(--fg); color: var(--ink); }
.btn--dark { background: #111; color: #fff; }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn--wide { width: 100%; }

/* ---------- loader ---------- */
.loader {
  display: none; position: fixed; inset: 0; z-index: 250; background: var(--bg); color: var(--fg);
  align-items: center; justify-content: center;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
  animation: loaderFailsafe 0s 6s forwards;
}
.js .loader { display: flex; }
.seen .loader { display: none !important; }
.loader.is-done { transform: translateY(-100%); }
@keyframes loaderFailsafe { to { visibility: hidden; } }
.loader__mark { display: flex; align-items: baseline; gap: .08em; font-family: var(--f-disp); font-weight: 600; font-size: clamp(40px, 9vw, 130px); letter-spacing: -.04em; overflow: hidden; }
.loader__mark span, .loader__mark i { display: inline-block; animation: loaderIn .9s var(--ease-out) both; }
.loader__mark i { font-style: normal; color: var(--accent); animation-delay: .08s; }
.loader__mark span:last-child { animation-delay: .16s; }
@keyframes loaderIn { from { transform: translateY(110%); } to { transform: none; } }
.loader__count { position: absolute; right: var(--pad); bottom: 28px; font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.loader__count b { font-weight: 500; color: var(--fg); }

/* ---------- progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 90; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- nav ---------- */
.nav {
  --n-bg: rgba(12, 12, 13, .42); --n-fg: var(--fg); --n-line: transparent; --n-pill: #0c0c0d;
  position: fixed; inset: 0 0 auto; z-index: 80;
  display: flex; align-items: center; gap: 16px;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left));
  background: var(--n-bg); color: var(--n-fg); border-bottom: 1px solid var(--n-line);
  -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  transition: transform .5s var(--ease), background-color .4s, color .4s, border-color .4s;
}
.nav[data-theme="light"]  { --n-bg: rgba(243, 244, 250, .55); --n-fg: #0d0f1f; --n-pill: #f3f4fa; }
.nav[data-theme="sea"]    { --n-bg: rgba(11, 38, 41, .45); --n-fg: #efe5cf; --n-pill: #0b2629; }
.nav[data-theme="navy"]   { --n-bg: rgba(15, 34, 53, .45); --n-fg: #eef2f6; --n-pill: #0f2235; }
.nav[data-theme="accent"] { --n-bg: rgba(255, 92, 40, .6); --n-fg: #0c0c0d; --n-pill: #ff5c28; }
.nav.is-scrolled[data-theme="dark"]   { --n-bg: rgba(12, 12, 13, .74); --n-line: rgba(242, 239, 232, .08); }
.nav.is-scrolled[data-theme="light"]  { --n-bg: rgba(243, 244, 250, .86); --n-line: rgba(13, 15, 31, .08); }
.nav.is-scrolled[data-theme="sea"]    { --n-bg: rgba(11, 38, 41, .84); --n-line: rgba(239, 229, 207, .1); }
.nav.is-scrolled[data-theme="navy"]   { --n-bg: rgba(15, 34, 53, .86); --n-line: rgba(238, 242, 246, .1); }
.nav.is-scrolled[data-theme="accent"] { --n-bg: rgba(255, 92, 40, .94); --n-line: rgba(12, 12, 13, .1); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font-family: var(--f-disp); font-weight: 600; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; }
.nav__logo { width: 30px; height: 30px; transition: transform .6s var(--ease-out); }
.nav__brand:hover .nav__logo { transform: rotate(-12deg) scale(1.08); }
.nav__logo rect { fill: var(--accent); }
.nav__logo text { fill: var(--ink); font-family: var(--f-disp); font-weight: 700; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav__links a {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 99px;
  text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; opacity: .8;
  transition: opacity .25s, background-color .3s, color .3s;
}
.nav__links a:hover { opacity: 1; background: color-mix(in srgb, currentColor 11%, transparent); }
.nav__links a[aria-current="page"] { opacity: 1; background: var(--n-fg); color: var(--n-pill); }
.nav__links .l-short { display: none; }
.nav__num { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; font-family: var(--f-mono); font-size: 10.5px; opacity: .75; }
.nav__sep { width: 1px; height: 18px; margin: 0 8px; background: currentColor; opacity: .22; }
.nav__cta { display: inline-flex; align-items: center; justify-content: center; flex: none; height: 42px; padding: 0 20px; border-radius: 99px; background: var(--accent); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav__cta svg { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav[data-theme="accent"] .nav__cta { background: var(--ink); color: var(--accent); }

/* ---------- page curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; pointer-events: none;
  background: var(--cur-bg, var(--accent)); color: var(--cur-ink, var(--ink));
  clip-path: inset(100% 0 0 0);
}
.curtain-in .curtain { clip-path: inset(0 0 0 0); animation: curtainFailsafe 0s 2.6s forwards; }
@keyframes curtainFailsafe { to { visibility: hidden; } }
.curtain__word { margin: 0; padding: 0 var(--pad); font-family: var(--f-disp); font-weight: 600; font-size: clamp(40px, 9vw, 150px); line-height: 1; letter-spacing: -.055em; text-align: center; }

/* ---------- phone tab bar + projects sheet ---------- */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: rgba(16, 16, 18, .86); color: var(--fg); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.6) blur(22px); backdrop-filter: saturate(1.6) blur(22px);
}
.tabbar a, .tabbar button {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 3px 2px 2px; border: 0; border-radius: 14px; background: none; cursor: pointer;
  font-size: 11px; font-weight: 500; line-height: 1.2; text-decoration: none; color: inherit; opacity: .62;
  -webkit-tap-highlight-color: transparent; transition: opacity .3s, transform .25s var(--ease-out);
}
.tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar svg { width: 32px; height: 32px; padding: 4px; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: background-color .3s, color .3s; }
.tabbar [aria-current="page"], .tabbar .is-current { opacity: 1; color: var(--accent); }
.tabbar__cta { opacity: 1 !important; }
.tabbar__cta svg { padding: 6px; background: var(--accent); color: var(--ink); }
.tabbar a:active, .tabbar button:active { transform: scale(.9); }

.sheet { position: fixed; inset: 0; z-index: 120; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .4s; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 90svh; display: flex; flex-direction: column;
  padding-bottom: calc(14px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0;
  background: var(--bg-2); color: var(--fg); box-shadow: 0 -20px 60px rgba(0, 0, 0, .45);
  transform: translateY(102%); transition: transform .5s var(--ease-out);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__panel.is-drag { transition: none; }
.sheet__grip { display: grid; place-items: center; padding: 10px 0 2px; }
.sheet__grip span { width: 40px; height: 5px; border-radius: 3px; background: rgba(242, 239, 232, .25); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 6px max(var(--pad), env(safe-area-inset-right)) 14px max(var(--pad), env(safe-area-inset-left)); }
.sheet__head h2 { margin: 0; font-family: var(--f-disp); font-weight: 600; font-size: 24px; letter-spacing: -.04em; }
.sheet__head button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; }
.sheet__head svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sheet__list { display: grid; gap: 8px; overflow-y: auto; overscroll-behavior: contain; padding: 4px max(var(--pad), env(safe-area-inset-right)) 4px max(var(--pad), env(safe-area-inset-left)); }
.sheet__list a {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 8px 16px 8px 8px; border-radius: 18px; background: var(--env); color: var(--env-ink); text-decoration: none;
  transition: transform .25s var(--ease-out);
}
.sheet__list a:active { transform: scale(.97); }
.sheet__list a[aria-current="page"] { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--accent); }
.sheet__list img { grid-row: 1 / 3; width: 88px; height: 58px; object-fit: cover; object-position: left top; border-radius: 11px; }
.sheet__t { align-self: end; font-family: var(--f-disp); font-weight: 600; font-size: 19px; letter-spacing: -.03em; line-height: 1.15; }
.sheet__d { grid-column: 2; align-self: start; font-size: 13.5px; opacity: .8; }
.sheet__n { grid-column: 3; grid-row: 1 / 3; font-family: var(--f-mono); font-size: 12px; opacity: .7; }

/* ---------- next project ---------- */
.next {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label label" "main arrow";
  align-items: end; gap: 22px 32px; padding: clamp(72px, 10vw, 150px) var(--pad);
  background: var(--env); color: var(--env-ink); text-decoration: none; overflow: hidden;
}
.next__label { grid-area: label; position: relative; z-index: 1; font-size: 15px; font-weight: 500; opacity: .78; }
.next__main { grid-area: main; position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; min-width: 0; }
.next__n { margin-left: 10px; font-family: var(--f-mono); font-size: 13px; font-weight: 500; }
.next__title { font-family: var(--f-disp); font-weight: 600; font-size: clamp(46px, 9vw, 150px); line-height: .92; letter-spacing: -.055em; transition: transform .8s var(--ease-out); }
.next__kind { flex-basis: 100%; font-size: clamp(16px, 1.4vw, 20px); opacity: .82; }
.next__img {
  position: absolute; z-index: 0; top: clamp(40px, 6vw, 90px); right: calc(var(--pad) + clamp(64px, 7vw, 110px) + 48px);
  width: clamp(200px, 24vw, 400px); aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.next__img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 1s var(--ease-out); }
.next__arrow { grid-area: arrow; position: relative; z-index: 1; display: grid; place-items: center; width: clamp(64px, 7vw, 110px); aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color .4s, color .4s, transform .6s var(--ease-out); }
.next__arrow svg { width: 36%; height: 36%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.next:hover .next__title { transform: translateX(14px); }
.next:hover .next__img img { transform: scale(1.06); }
.next:hover .next__arrow { background: var(--env-ink); color: var(--env); transform: rotate(-45deg); }
.next:active .next__arrow { transform: scale(.94); }

/* ---------- first block of an inner page ---------- */
.page-first { padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(56px, 8vw, 120px)) !important; }
h1.sec-title { font-size: clamp(52px, 10vw, 176px); line-height: .9; }

/* ---------- home: short about + services list ---------- */
.about--home .about__statement { margin-bottom: 0; }
.about__more { margin-top: 48px; }
.skill a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .15em; }
.svc__link { text-decoration: none; color: inherit; }
.svc--links .svc__link { border-top: 1px solid var(--line); }
.svc__plus--go { display: grid; place-items: center; }
.svc__plus--go::before, .svc__plus--go::after { content: none; }
.svc__plus--go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc__link:hover .svc__plus--go { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: rotate(-45deg); }
.svc__link:hover .svc__name { transform: translateX(14px); color: var(--accent); }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 95; width: 104px; height: 104px; margin: -52px 0 0 -52px;
  border-radius: 50%; background: var(--accent); color: var(--ink);
  display: grid; place-items: center; font-weight: 600; font-size: 14px;
  pointer-events: none; transform: translate3d(-200px, -200px, 0); scale: 0;
  transition: scale .35s var(--ease-out);
}
.cursor.is-on { scale: 1; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; background: var(--bg);
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 24px) var(--pad) 28px;
}
.hero__wall {
  position: absolute; top: 0; bottom: 0; left: 42%; right: 0; perspective: 1600px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
}
.wall {
  position: absolute; top: -40%; left: -6%; width: 130%; height: 190%;
  display: flex; gap: 18px;
  transform: rotateX(calc(24deg + var(--ry, 0deg))) rotateY(calc(-14deg + var(--rx, 0deg))) rotateZ(10deg);
  transform-style: preserve-3d; will-change: transform;
}
.wall__col { flex: 1; display: flex; flex-direction: column; gap: 18px; animation: wallUp var(--dur, 60s) linear infinite; will-change: transform; }
.wall__col:nth-child(even) { animation-direction: reverse; }
.wall.is-paused .wall__col { animation-play-state: paused; }
.wall__item { border-radius: 12px; overflow: hidden; background: #1b1b1e; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.wall__item img { width: 100%; height: auto; }
.wall__item--phone { width: 62%; margin: 0 auto; border-radius: 22px; border: 5px solid #000; }
@keyframes wallUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.hero__content { position: relative; z-index: 2; align-self: center; max-width: 860px; }
.hero__title { margin: 0; font-weight: 600; font-size: clamp(42px, min(6.4vw, 10.5vh), 104px); line-height: .98; letter-spacing: -.05em; }
.hero__line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.hero__line > span { display: inline-block; }
.rot { color: var(--accent); white-space: nowrap; }
.hero__sub { max-width: 600px; margin: 26px 0 32px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__projects { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 40px; }
.hero__projects a {
  display: grid; grid-template-columns: 76px auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center;
  padding: 10px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none;
  background: rgba(21, 21, 23, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .3s, background-color .3s;
}
.hero__projects a.is-ready { transition: border-color .3s, transform .4s var(--ease), background-color .3s; }
.hero__projects a:hover { border-color: var(--accent); transform: translateY(-3px); }
.hero__projects img { grid-row: 1 / 3; width: 76px; height: 52px; object-fit: cover; object-position: left top; border-radius: 8px; }
.hp__n { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.hp__t { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp__d { grid-column: 2 / 4; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- RIBBONS ---------- */
.ribbons { position: relative; height: clamp(190px, 22vw, 320px); background: var(--bg); overflow: clip; z-index: 3; display: grid; align-items: center; justify-items: center; }
.ribbon { grid-area: 1 / 1; position: relative; width: 112%; padding: clamp(12px, 1.4vw, 22px) 0; overflow: hidden; }
.ribbon--front { z-index: 2; background: var(--accent); color: var(--ink); transform: rotate(-3.2deg); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.ribbon--back { z-index: 1; background: #1a1a1d; color: var(--fg); transform: rotate(3deg); }
.ribbon__track { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 44px); width: max-content; will-change: transform; }
.ribbon a {
  font-family: var(--f-disp); font-weight: 600; font-size: clamp(26px, 3.9vw, 58px); line-height: 1.1; letter-spacing: -.035em;
  text-decoration: none; white-space: nowrap; transition: color .25s, opacity .3s;
}
.ribbon--back a { color: transparent; -webkit-text-stroke: 1.3px rgba(242, 239, 232, .8); }
.ribbon--back a:hover { color: var(--fg); }
.ribbon--front a:hover { color: #fff; }
.ribbon.is-hover a { opacity: .5; }
.ribbon.is-hover a:hover { opacity: 1; }
.ribbon svg { flex: none; width: clamp(20px, 2.4vw, 36px); height: clamp(20px, 2.4vw, 36px); fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.ribbon i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }

/* ---------- section titles ---------- */
.sec-title { margin: 0 0 56px; font-family: var(--f-disp); font-weight: 600; font-size: clamp(40px, 6.4vw, 108px); line-height: .95; letter-spacing: -.05em; }

/* ---------- ABOUT ---------- */
.about { padding: 110px var(--pad) 140px; background: var(--bg); }
.about__statement { margin: 0 0 110px; max-width: 1180px; font-size: clamp(27px, 3.6vw, 60px); line-height: 1.15; letter-spacing: -.035em; font-weight: 500; }
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.skill { padding: 32px 28px 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg-2); transition: border-color .3s; }
.skill.is-ready { transition: transform .6s var(--ease-out), border-color .3s; }
.skill:hover { transform: translateY(-8px); border-color: rgba(255, 92, 40, .6); }
.skill__ico { width: 52px; height: 52px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.skill h3 { margin: 26px 0 12px; font-family: var(--f-disp); font-weight: 500; font-size: clamp(21px, 1.8vw, 28px); line-height: 1.1; letter-spacing: -.035em; }
.skill p { margin: 0; font-size: 16px; color: var(--muted); }
.tools { margin-top: 110px; }
.tools__title { margin: 0 0 32px; font-family: var(--f-disp); font-weight: 600; font-size: clamp(30px, 3.6vw, 56px); letter-spacing: -.045em; }
.tools__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tools__grid li {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2);
  transition: background-color .35s, border-color .35s, color .35s;
}
.tools__grid li.is-ready { transition: background-color .35s, border-color .35s, color .35s, transform .5s var(--ease-out); }
.tools__grid img { width: 28px; height: 28px; filter: invert(1); opacity: .92; transition: filter .35s; }
.tools__grid span { font-weight: 500; font-size: 16px; }
.tools__grid li:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-4px) rotate(-1.5deg); }
.tools__grid li:hover img { filter: none; }

/* ---------- WORK (stacked cards) ---------- */
.work { padding: 120px var(--pad) 80px; background: var(--bg); }
main > .work { overflow-x: visible; }
.cards { position: relative; }
.card {
  position: sticky; top: calc(var(--nav-h) + 18px + var(--i) * 16px);
  height: min(calc(100svh - var(--nav-h) - 110px), 720px); margin-bottom: 48px;
  display: flex; overflow: hidden; isolation: isolate; transform-origin: 50% 0;
  border-radius: var(--radius); text-decoration: none; color: #fff; cursor: pointer;
}
.card::after { content: ""; position: absolute; inset: 0; z-index: 6; background: #000; opacity: var(--dim, 0); pointer-events: none; }
.card--osota { background: #1f31e6; }
.card--site { background: #070a22; color: #e9ebff; }
.card--caretta { background: #0b2629; color: #efe5cf; }
.card--martin { background: #0f2235; color: #eef2f6; }
.card--film { background: #050507; color: #f2efe8; }
.card__win--video { aspect-ratio: 16 / 9; background: #000; }
.card__win--video video { width: 100%; height: 100%; object-fit: cover; }
.card__info { position: relative; z-index: 2; flex: 0 0 40%; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: 56px; }
.card__t { margin: 0; font-family: var(--f-disp); font-weight: 600; font-size: clamp(40px, 4.8vw, 84px); line-height: .95; letter-spacing: -.05em; }
.card__d { margin: 0; max-width: 34ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; opacity: .86; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.card__tags li { padding: 6px 12px; border-radius: 99px; border: 1px solid currentColor; font-size: 13px; opacity: .85; }
.card__status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.card__status i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); }
.card__status--wait i { background: #ffc83d; box-shadow: 0 0 0 4px rgba(255, 200, 61, .2); }
.card__media { position: relative; flex: 1; overflow: hidden; transform: perspective(1400px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .6s var(--ease-out); }
.card__win {
  position: absolute; top: 12%; left: 4%; width: 128%; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.card__win img { width: 100%; }
.card__phone {
  position: absolute; left: 2%; bottom: -8%; width: 22%; border-radius: 28px; overflow: hidden; z-index: 2;
  border: 6px solid #0c0c0d; box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.card__win img, .card__win video, .card__phone img { transition: transform 1.1s var(--ease-out); }
.card:hover .card__win img, .card:hover .card__win video { transform: scale(1.045); }
.card:hover .card__phone img { transform: scale(1.06); }
.has-cursor .card { cursor: none; }

/* ---------- CASE shared ---------- */
.case { position: relative; padding: 140px var(--pad) 128px; background: var(--c-bg); color: var(--c-fg); }
.case--osota   { --c-bg: #f3f4fa; --c-fg: #0d0f1f; --c-accent: #1f31e6; --c-on: #fff;    --c-line: rgba(13, 15, 31, .12); --c-muted: rgba(13, 15, 31, .78); }
.case--site    { --c-bg: #070a22; --c-fg: #e9ebff; --c-accent: #5c69ff; --c-on: #fff;    --c-line: rgba(233, 235, 255, .14); --c-muted: rgba(233, 235, 255, .8); }
.case--film    { --c-bg: #050507; --c-fg: #f2efe8; --c-accent: #2f43ff; --c-on: #fff;    --c-line: rgba(242, 239, 232, .14); --c-muted: rgba(242, 239, 232, .8); }
.case--caretta { --c-bg: #0b2629; --c-fg: #efe5cf; --c-accent: #d9c29b; --c-on: #0b2629; --c-line: rgba(239, 229, 207, .16); --c-muted: rgba(239, 229, 207, .82); }
.case--martin  { --c-bg: #0f2235; --c-fg: #eef2f6; --c-accent: #ffc83d; --c-on: #0f2235; --c-line: rgba(238, 242, 246, .14); --c-muted: rgba(238, 242, 246, .8); }
.case__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 72px; align-items: start; margin-bottom: 96px; }
.case__index { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; font-family: var(--f-disp); font-size: 15px; font-weight: 500; }
.case__index b { color: var(--c-accent); font-weight: 600; }
.case__index span { color: var(--c-muted); }
.case__title { grid-column: 1 / -1; margin: 0 0 12px; font-family: var(--f-disp); font-weight: 600; font-size: clamp(52px, 11vw, 196px); line-height: .9; letter-spacing: -.055em; }
.case__title em { font-family: var(--f-car); font-weight: 400; letter-spacing: -.03em; }
.case__lead { margin: 0; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.38; letter-spacing: -.01em; max-width: 36ch; }
.case__meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
.case__meta div { position: relative; padding-top: 14px; }
.case__meta div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--c-line); transform: scaleX(var(--ln, 1)); transform-origin: left; }
.case__meta dt { margin-bottom: 6px; font-size: 14px; color: var(--c-muted); }
.case__meta dd { margin: 0; font-size: 16px; line-height: 1.45; }
.case__link {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; height: 54px; padding: 0 26px;
  border-radius: 99px; background: var(--c-accent); color: var(--c-on); text-decoration: none; font-weight: 600; font-size: 15px;
}
.case__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.case__link:hover svg { transform: translate(3px, -3px); }
.case h3 { margin: 0 0 18px; font-weight: 600; font-size: clamp(28px, 3.1vw, 48px); line-height: 1.06; letter-spacing: -.035em; }

/* ---------- 01 OSOTA ---------- */
.osota__stage { max-width: 1280px; margin: 0 auto; perspective: 1800px; }
.window { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px rgba(13, 15, 31, .16), 0 0 0 1px rgba(13, 15, 31, .06); transform-origin: 50% 0; }
.window img { width: 100%; }
.osota__how { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; margin-top: 160px; }
.osota__how-text > p { margin: 0; font-size: 17px; color: var(--c-muted); }
.osota__steps { list-style: none; margin: 32px 0 0; padding: 0; }
.osota__steps li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--c-line); font-size: 16.5px; }
.osota__steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: #fff; font-size: 13px; }

.demo { display: grid; grid-template-columns: minmax(0, 1fr) 236px; grid-template-rows: auto 1fr; height: 560px; background: #fff; color: #15172a; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 100px rgba(13, 15, 31, .14), 0 0 0 1px rgba(13, 15, 31, .06); font-size: 14px; }
.demo__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; border-bottom: 1px solid #eceef5; }
.demo__app { font-weight: 600; font-size: 13px; }
.demo__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #1f31e6; background: #eef0ff; padding: 4px 10px; border-radius: 99px; }
.demo__live i { width: 6px; height: 6px; border-radius: 50%; background: #1f31e6; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.demo__chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.demo__who { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid #eceef5; }
.demo__ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e8e9f0; font-size: 12px; font-weight: 600; color: #3b3f55; }
.ch { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.ch--wa { background: #e3f6e8; color: #1a7f37; }
.demo__msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #f6f7fa; overscroll-behavior: contain; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; animation: msgIn .45s var(--ease-out) both; }
.msg small { display: block; margin-top: 6px; font-size: 11.5px; opacity: .7; }
.msg--in { align-self: flex-start; background: #fff; border: 1px solid #e4e6ef; border-bottom-left-radius: 6px; }
.msg--ai { align-self: flex-end; background: #0d0e15; color: #fff; border-bottom-right-radius: 6px; }
.msg--ai small { text-align: right; }
.msg--sys { align-self: center; max-width: 92%; text-align: center; background: #fdebe2; color: #8a3b14; border-radius: 10px; font-size: 13px; }
.typing { align-self: flex-end; display: flex; gap: 4px; padding: 13px 16px; background: #0d0e15; border-radius: 16px; border-bottom-right-radius: 6px; animation: msgIn .3s ease both; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.demo__controls { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid #eceef5; }
.demo__step { margin-left: auto; color: #6b6f85; font-size: 13px; }
.demo__record { border-left: 1px solid #eceef5; padding: 18px; }
.demo__record-title { margin: 0 0 6px; font-weight: 600; }
.demo__record dl { margin: 0; }
.demo__record dl div { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-bottom: 1px solid #f0f1f6; font-size: 13.5px; }
.demo__record dt { color: #6b6f85; font-size: 12.5px; }
.demo__record dd { margin: 0; font-weight: 500; border-radius: 6px; }
.demo__record dd.is-new { animation: flash 1.4s ease; }
@keyframes flash { 0% { background: #dfe3ff; } 100% { background: transparent; } }

.modules { margin-top: 160px; }
.modules__title { max-width: 18ch; }
.modules__list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.modules__list li { padding-top: 18px; border-top: 2px solid var(--c-fg); }
.modules__list b { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--c-accent); }
.modules__list h4 { margin: 18px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.modules__list p { margin: 0; font-size: 15.5px; color: var(--c-muted); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 72px; }
.facts > div { padding: 30px 28px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(13, 15, 31, .05); transition: box-shadow .3s; }
.facts > div.is-ready { transition: transform .5s var(--ease-out), box-shadow .3s; }
.facts > div:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(31, 49, 230, .14), 0 0 0 1px rgba(31, 49, 230, .2); }
.facts b { display: block; font-family: var(--f-disp); font-weight: 600; font-size: clamp(42px, 4.6vw, 76px); line-height: 1; letter-spacing: -.05em; color: var(--c-accent); }
.facts b span { display: inline; margin: 0; font-size: inherit; color: inherit; }
.facts > div > span { display: block; margin-top: 14px; font-size: 15.5px; color: var(--c-muted); }

/* ---------- scroll sequences (osota.app, Caretta) ---------- */
.seq { position: relative; height: 420vh; }
.seq__pin {
  position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
}
.seq__laptop { width: min(100%, 1180px, calc((100svh - var(--nav-h) - 130px) * 1.52)); }
.seq__phone { display: none; }
.seq canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.seq__bar { width: min(360px, 60%); height: 3px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.seq__bar i { display: block; height: 100%; background: var(--c-accent); transform: scaleX(0); transform-origin: left; }
.laptop { perspective: 2200px; }
.laptop__lid { padding: 1.5%; border-radius: 20px 20px 8px 8px; background: #1b1d26; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 120px rgba(0, 0, 0, .5); transform-origin: 50% 100%; }
.laptop__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: #000; }
.laptop__base { position: relative; height: 16px; margin: 0 -7%; border-radius: 0 0 18px 18px; background: #2b2e3a; }
.laptop__base::before { content: ""; position: absolute; left: 41%; right: 41%; top: 0; height: 6px; border-radius: 0 0 8px 8px; background: #1b1d26; }
.browser { border-radius: 16px; overflow: hidden; background: #08191b; border: 1px solid rgba(239, 229, 207, .14); box-shadow: 0 50px 120px rgba(0, 0, 0, .5); }
.browser__bar { display: flex; align-items: center; height: 38px; padding: 0 14px; background: #061315; }
.browser__bar .dots i { background: rgba(239, 229, 207, .3); }
.browser__screen { position: relative; aspect-ratio: 16 / 10; background: #0b2629; }
.handset { position: relative; aspect-ratio: 390 / 844; border-radius: 46px; border: 9px solid #000; background: #000; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 100px rgba(0, 0, 0, .5); }
.handset--img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 03 CARETTA live ---------- */
.caretta__live { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 88px; align-items: center; margin-top: 140px; }
.device { position: relative; width: 370px; height: 760px; border-radius: 54px; overflow: hidden; border: 11px solid #050f10; background: #050f10; box-shadow: 0 0 0 1px rgba(239, 229, 207, .16), 0 50px 110px rgba(0, 0, 0, .5); }
.device iframe { display: block; width: 100%; height: 100%; border: 0; background: #0b2629; border-radius: 43px; }
.caretta__side h3 { font-family: var(--f-car); font-weight: 400; letter-spacing: -.02em; max-width: 20ch; }
.caretta__side > p { margin: 0 0 24px; font-size: 17px; color: var(--c-muted); }
.caretta__chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
.caretta__chapters button {
  display: flex; align-items: baseline; gap: 12px; padding: 15px 18px; text-align: left; cursor: pointer;
  border: 1px solid var(--c-line); border-radius: 14px; background: transparent;
  font-family: var(--f-car); font-size: 19px; transition: background-color .3s, color .3s, border-color .3s;
}
.caretta__chapters button span { font-family: var(--f-mono); font-size: 12px; color: var(--c-accent); }
.caretta__chapters button:hover { border-color: var(--c-accent); transform: translateX(4px); }
.caretta__chapters button[aria-selected="true"] { background: var(--c-fg); color: var(--c-bg); border-color: var(--c-fg); }
.caretta__chapters button[aria-selected="true"] span { color: var(--c-bg); }

/* ---------- 04 MARTIN ---------- */
.mig { position: relative; height: 260vh; }
.mig__pin { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.mig__text p { margin: 0 0 36px; max-width: 46ch; font-size: 17px; color: var(--c-muted); }
.mig__nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.mig__nums > div { padding: 18px 0; border-top: 1px solid var(--c-line); }
.mig__nums b { display: block; font-family: var(--f-disp); font-weight: 600; font-size: clamp(40px, 4.6vw, 80px); line-height: 1; letter-spacing: -.05em; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.mig__nums span { display: block; margin-top: 8px; font-size: 15.5px; }
.mig__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; width: min(100%, calc(100svh - var(--nav-h) - 80px)); justify-self: center; }
.mig__tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: rgba(238, 242, 246, .05); box-shadow: inset 0 0 0 1px rgba(238, 242, 246, .1); transition: background-color .5s; }
.mig__tile img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(40%) scale(.5) rotate(-12deg); transition: opacity .5s, transform .8s var(--ease-out); }
.mig__tile.is-on { background: #fff; }
.mig__tile.is-on img { opacity: 1; transform: none; }

.tour { position: relative; height: 480vh; margin-top: 80px; }
.tour__pin { position: sticky; top: calc(var(--nav-h) + 10px); height: calc(100svh - var(--nav-h) - 20px); display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 48px; align-items: center; }
.tour__side > p { margin: 0 0 24px; font-size: 16.5px; color: var(--c-muted); }
.tour__list { list-style: none; margin: 0; padding: 0; }
.tour__list button { display: block; width: 100%; padding: 14px 0 14px 18px; border: 0; border-top: 1px solid var(--c-line); background: none; text-align: left; cursor: pointer; position: relative; opacity: .5; transition: opacity .35s, padding-left .4s var(--ease-out); }
.tour__list button::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--c-accent); transform: scaleY(0); transition: transform .4s var(--ease-out); }
.tour__list b { display: block; font-family: var(--f-disp); font-weight: 500; font-size: 18px; letter-spacing: -.02em; }
.tour__list span { display: block; margin-top: 4px; font-size: 15px; color: var(--c-muted); }
.tour__list li.is-on button { opacity: 1; padding-left: 26px; }
.tour__list li.is-on button::before { transform: scaleY(1); }
.tour__list li.is-on b { color: var(--c-accent); }
.tour__list button:hover { opacity: 1; }

.tour .arow { grid-template-columns: 46px minmax(0, 1fr) 84px 56px 92px; }
.tour .arow .c-cat { display: none; }
.martin__real { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: end; margin-top: 140px; }
.realshot { border-radius: 14px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .35); }
.realshot img { width: 100%; }

/* admin mock (palette of the real admin) */
.adm { background: #f4f6f9; color: #1b2430; border-radius: 16px; overflow: hidden; font-size: 14px; line-height: 1.4; box-shadow: 0 50px 120px rgba(0, 0, 0, .4); }
.adm__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #e6eaef; border-bottom: 1px solid #dbe1e8; }
.adm__url { flex: 1; text-align: center; font-size: 12px; color: #5b6573; padding-right: 50px; }
.adm__body { display: grid; grid-template-columns: 224px minmax(0, 1fr); height: clamp(500px, calc(100svh - var(--nav-h) - 120px), 640px); }
.adm__side { background: #173651; color: #fff; padding: 18px 12px; overflow-y: auto; }
.adm__logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 8px; font-weight: 600; }
.adm__logo-mark { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #fff; color: #173651; font-size: 12px; font-weight: 700; }
.adm__nav p { margin: 16px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.adm__nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: rgba(255, 255, 255, .86); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; white-space: nowrap; transition: background-color .2s; }
.adm__nav button:hover { background: rgba(255, 255, 255, .07); }
.adm__nav button.is-active { background: rgba(255, 255, 255, .13); color: #fff; box-shadow: inset 3px 0 0 #ffc83d; }
.adm__nav svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.adm__nav em { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: #ffc83d; color: #173651; font-style: normal; font-size: 11px; font-weight: 700; }
.adm__main { overflow-y: auto; padding: 24px 28px; overscroll-behavior: contain; }
.adm__view { animation: admIn .45s var(--ease-out) both; }
@keyframes admIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.adm__h { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; }
.adm__h h4 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.adm__muted { color: #5b6573; font-size: 13px; font-weight: 400; }
.abtn { height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: #173651; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.adm__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.acard { display: flex; flex-direction: column; gap: 4px; padding: 16px; text-align: left; cursor: pointer; background: #fff; border: 1px solid #e1e6ec; border-radius: 12px; transition: border-color .2s, transform .3s var(--ease); }
.acard:hover { border-color: #173651; transform: translateY(-2px); }
.acard b { font-size: 30px; font-weight: 600; line-height: 1; color: #173651; }
.acard span { margin-top: 10px; font-weight: 600; }
.acard small { color: #5b6573; font-size: 12.5px; }
.adm__split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.abox { background: #fff; border: 1px solid #e1e6ec; border-radius: 12px; padding: 16px; }
.abox h5 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.abox h5 small { margin-left: 6px; font-weight: 400; color: #5b6573; }
.alist, .atimeline { list-style: none; margin: 0; padding: 0; }
.alist li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #eef1f4; }
.alist img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; border: 1px solid #eef1f4; background: #fff; flex: none; }
.alist span { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.stock--low { background: #fdecea; color: #b42318; }
.stock--ok { background: #e7f6ec; color: #1a7f37; }
.atimeline li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid #eef1f4; font-size: 13.5px; }
.atimeline b { flex: none; width: 42px; color: #5b6573; font-weight: 500; font-variant-numeric: tabular-nums; }
.adm__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 12px; }
.adm__tools input { flex: 1 1 220px; height: 38px; padding: 0 12px; border: 1px solid #d6dde5; border-radius: 9px; background: #fff; font: inherit; color: inherit; }
.adm__tools input:focus { outline: 2px solid #173651; outline-offset: 0; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid #d6dde5; background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
.chips button.is-on { background: #173651; border-color: #173651; color: #fff; }
.atable { background: #fff; border: 1px solid #e1e6ec; border-radius: 12px; overflow: hidden; }
.arow { display: grid; grid-template-columns: 46px minmax(0, 1fr) 130px 90px 70px 96px; gap: 12px; align-items: center; padding: 9px 14px; border-top: 1px solid #eef1f4; animation: msgIn .3s var(--ease-out) both; }
.arow:first-child { border-top: 0; }
.arow--h { background: #f8fafc; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #5b6573; padding-block: 10px; animation: none; }
.arow img { width: 46px; height: 46px; border-radius: 8px; object-fit: contain; border: 1px solid #eef1f4; }
.arow strong { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow small { display: none; color: #5b6573; font-size: 12px; }
.arow .num { font-variant-numeric: tabular-nums; }
.arow .c-cat { color: #4c5664; font-size: 13px; }
.st { justify-self: start; font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #e7f6ec; color: #1a7f37; }
.st--draft { background: #eef1f4; color: #5b6573; }
.aempty { padding: 28px; text-align: center; color: #5b6573; margin: 0; }
.atree { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #e1e6ec; border-radius: 12px; overflow: hidden; }
.atree li { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid #eef1f4; }
.atree > li:first-child { border-top: 0; }
.atree li > span { padding: 11px 16px; font-weight: 600; }
.atree li > em { padding: 11px 16px; font-style: normal; color: #5b6573; font-variant-numeric: tabular-nums; }
.atree ul { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; }
.atree ul li > span { padding-left: 40px; font-weight: 400; color: #3a4452; }
.ares { display: grid; gap: 10px; }
.rcard { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid #e1e6ec; border-radius: 12px; }
.rcard img { width: 52px; height: 52px; border-radius: 8px; object-fit: contain; border: 1px solid #eef1f4; }
.rcard strong { display: block; font-weight: 600; }
.rcard span { display: block; color: #4c5664; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard small { color: #5b6573; font-size: 12px; }
.rcard__act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rs { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.rs--0 { background: #e8f0fb; color: #1d5fb0; }
.rs--1 { background: #efe8fb; color: #6b3fb5; }
.rs--2 { background: #fff1d6; color: #8a5300; }
.rs--3 { background: #e7f6ec; color: #1a7f37; }
.rcard button { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid #d6dde5; background: #f8fafc; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rcard button:disabled { opacity: .45; cursor: default; }
.kanban { display: grid; grid-template-columns: repeat(6, minmax(168px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.kcol { background: #eaeef3; border-radius: 12px; padding: 10px; min-height: 380px; }
.kcol h6 { display: flex; justify-content: space-between; gap: 8px; margin: 2px 2px 10px; font-size: 12px; font-weight: 600; }
.kcol h6 span { color: #5b6573; font-weight: 500; }
.kcard { background: #fff; border: 1px solid #e1e6ec; border-radius: 10px; padding: 10px; margin-bottom: 8px; font-size: 13px; animation: msgIn .35s var(--ease-out) both; }
.kcard b { display: block; font-size: 11.5px; font-weight: 500; color: #5b6573; }
.kcard strong { display: block; font-weight: 600; margin: 2px 0; }
.kcard button { width: 100%; height: 28px; margin-top: 8px; border-radius: 7px; border: 1px solid #d6dde5; background: #f8fafc; font-size: 12px; font-weight: 600; cursor: pointer; }
.kcard button:hover { border-color: #173651; }
.arent { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.arent__bikes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bike { display: flex; align-items: center; gap: 12px; padding: 10px; text-align: left; background: #fff; border: 1px solid #e1e6ec; border-radius: 12px; cursor: pointer; }
.bike img { width: 60px; height: 60px; border-radius: 8px; object-fit: contain; flex: none; }
.bike strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.bike span { font-size: 12.5px; color: #5b6573; }
.bike.is-sel { border-color: #173651; box-shadow: 0 0 0 1px #173651; }
.arange { display: block; margin-bottom: 14px; }
.arange span { display: block; margin-bottom: 8px; font-size: 13px; }
.arange input { width: 100%; accent-color: #173651; }
.arent__sum { margin: 0; }
.arent__sum div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #eef1f4; font-size: 13.5px; }
.arent__sum dt { color: #5b6573; }
.arent__sum dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.arent__total dd, .arent__total dt { font-weight: 700; color: #1b2430; font-size: 16px; }
.arent__calc .adm__muted { margin: 10px 0 0; font-size: 12px; }
.achart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; height: 220px; padding-top: 8px; }
.amonth { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.abars { flex: 1; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid #e1e6ec; }
.abars i { flex: 1; height: 0; border-radius: 3px 3px 0 0; transition: height .9s var(--ease-out); }
.abars i:nth-child(1) { background: #2e6e96; }
.abars i:nth-child(2) { background: #5a8f5a; }
.abars i:nth-child(3) { background: #d79a35; }
.amonth span { text-align: center; font-size: 12px; color: #5b6573; }
.alegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: #4c5664; }
.k::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.k--1::before { background: #2e6e96; }
.k--2::before { background: #5a8f5a; }
.k--3::before { background: #d79a35; }
.adm__toast { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: #173651; color: #fff; font-size: 13px; animation: msgIn .3s var(--ease-out) both; }

/* ---------- SERVICES ---------- */
.services { position: relative; padding: 140px var(--pad) 140px; background: var(--bg); }
.svc { border-bottom: 1px solid var(--line); }
.svc__item { border-top: 1px solid var(--line); }
.svc__row { width: 100%; display: grid; grid-template-columns: 72px minmax(0, 1fr) 44px; align-items: center; padding: 30px 0; border: 0; background: none; cursor: pointer; text-align: left; }
.svc__row b { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--accent); }
.svc__name { font-family: var(--f-disp); font-weight: 500; font-size: clamp(24px, 3.4vw, 54px); line-height: 1.05; letter-spacing: -.04em; transition: transform .5s var(--ease-out), color .3s; }
.svc__row:hover .svc__name { transform: translateX(14px); color: var(--accent); }
.svc__plus { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: transform .5s var(--ease-out), background-color .3s, border-color .3s; }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; }
.svc__plus::after { transform: rotate(90deg); }
.svc__item.is-open .svc__plus { transform: rotate(135deg); background: var(--accent); border-color: var(--accent); color: var(--ink); }
.svc__item.is-open .svc__name { color: var(--accent); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.svc__item.is-open .svc__body { grid-template-rows: 1fr; }
.svc__body > div { overflow: hidden; }
.svc__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: start; padding: 4px 0 44px 72px; }
.svc__lead { margin: 0 0 24px; max-width: 34ch; font-size: clamp(19px, 1.6vw, 25px); line-height: 1.35; letter-spacing: -.015em; color: var(--fg); }
.svc__list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.svc__list li { position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.4; color: var(--fg); }
.svc__list li::before { content: ""; position: absolute; left: 0; top: .12em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.svc__list li::after { content: ""; position: absolute; left: 6px; top: calc(.12em + 4px); width: 5px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.svc__example {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 12px; align-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); text-decoration: none; color: inherit;
  transition: border-color .3s, transform .6s var(--ease-out);
}
.svc__example:hover { border-color: var(--accent); transform: translateY(-4px); }
.svc__shot { grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #1b1b1e; }
.svc__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 1s var(--ease-out); }
.svc__example:hover .svc__shot img { transform: scale(1.06); }
.svc__ex { padding-left: 4px; }
.svc__ex b { display: block; font-family: var(--f-disp); font-weight: 500; font-size: 19px; letter-spacing: -.02em; }
.svc__ex i { font-style: normal; font-size: 15px; color: var(--muted); }
.svc__arrow { width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--fg); color: var(--ink); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: background-color .3s, transform .5s var(--ease-out); }
.svc__example:hover .svc__arrow { background: var(--accent); transform: rotate(45deg); }
.svc__lead, .svc__list li, .svc__cta, .svc__example { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .8s var(--ease-out), border-color .3s; }
.svc__item.is-open .svc__lead, .svc__item.is-open .svc__list li, .svc__item.is-open .svc__cta, .svc__item.is-open .svc__example { opacity: 1; transform: none; }
.svc__item.is-open .svc__lead { transition-delay: .08s; }
.svc__item.is-open .svc__list li:nth-child(1) { transition-delay: .14s; }
.svc__item.is-open .svc__list li:nth-child(2) { transition-delay: .19s; }
.svc__item.is-open .svc__list li:nth-child(3) { transition-delay: .24s; }
.svc__item.is-open .svc__list li:nth-child(4) { transition-delay: .29s; }
.svc__item.is-open .svc__list li:nth-child(5) { transition-delay: .34s; }
.svc__item.is-open .svc__cta { transition-delay: .4s; }
.svc__item.is-open .svc__example { transition-delay: .2s; }
.svc__item.is-open .svc__example:hover { transform: translateY(-4px); transition-delay: 0s; }
.svc__preview { position: fixed; left: 0; top: 0; z-index: 60; width: 340px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0; scale: .85; transition: opacity .35s, scale .5s var(--ease-out); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.svc__preview.is-on { opacity: 1; scale: 1; }
.svc__preview img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* ---------- PROCESS ---------- */
.process { padding: 140px var(--pad) 140px; background: var(--paper); color: var(--ink); }
.steps-wrap { position: relative; }
.steps__line { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: rgba(12, 12, 13, .14); }
.steps__line i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { position: relative; padding-top: 44px; }
.steps__dot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid rgba(12, 12, 13, .3); transition: background-color .4s, border-color .4s, transform .4s var(--ease-out); }
.steps li.is-on .steps__dot { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.steps b { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--accent); }
.steps h3 { margin: 14px 0 10px; font-family: var(--f-disp); font-weight: 500; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.035em; }
.steps p { margin: 0; font-size: 16.5px; color: rgba(12, 12, 13, .74); }

/* ---------- CONTACT ---------- */
.contact { padding: 150px var(--pad) 120px; background: var(--accent); color: var(--ink); }
.contact__title { margin: 0; font-family: var(--f-disp); font-weight: 600; font-size: clamp(50px, 9.6vw, 172px); line-height: .92; letter-spacing: -.055em; }
.contact__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 64px; }
.contact__text { margin: 0; max-width: 46ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; }
.contact__btn {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 220px; height: 220px; border-radius: 50%; background: var(--ink); color: var(--accent); text-decoration: none;
  font-family: var(--f-disp); font-weight: 600; font-size: 22px; letter-spacing: -.02em;
  transition: background-color .3s, color .3s;
}
.contact__btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact__btn:hover { background: #fff; color: var(--ink); }

/* ---------- FOOTER ---------- */
.footer { padding: 0 var(--pad); background: var(--bg); color: var(--fg); overflow: hidden; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.footer__row nav { display: flex; gap: 24px; }
.footer__row a { text-decoration: none; transition: color .2s; }
.footer__row a:hover { color: var(--fg); }
.footer__word { margin: 0; padding: 24px 0 calc(8px + env(safe-area-inset-bottom)); font-family: var(--f-disp); font-weight: 600; font-size: 12.4vw; line-height: .9; letter-spacing: -.065em; white-space: nowrap; }
.footer__word i { font-style: normal; color: var(--accent); }

/* ---------- FILM ---------- */
.film { max-width: 1320px; margin: 0 auto; }
.film__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 60px 140px rgba(47, 67, 255, .22); }
.film__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.film__full { background: #000; object-fit: contain !important; }
.film__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 16px; padding: 10px 28px 10px 10px; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(255, 255, 255, .94); color: #0b0b10; font-size: 16px; font-weight: 600; white-space: nowrap;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .4s, scale .5s var(--ease-out);
}
.film__play:hover { scale: 1.05; }
.film__play-ico { position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--c-accent); display: grid; place-items: center; }
.film__play-ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-accent); animation: ring 2.2s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.film__play-ico svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; }
.film__play-txt b { margin-left: 6px; font-weight: 500; color: rgba(11, 11, 16, .6); }
.film.is-playing .film__play { opacity: 0; pointer-events: none; }
.film.is-playing .film__teaser { opacity: 0; }
.reel { margin: 96px calc(var(--pad) * -1) 0; overflow: hidden; }
.anim .reel__track { will-change: transform; }
html:not(.anim) .reel { overflow-x: auto; }
.reel__track { display: flex; gap: 16px; width: max-content; padding: 0 var(--pad); }
.reel__track img { width: clamp(240px, 26vw, 440px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }

/* ---------- text roll on hover ---------- */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.2; }
.roll > i { display: block; font-style: normal; transition: transform .55s var(--ease-out); }
.roll > i + i { position: absolute; left: 0; top: 100%; }
a:hover > .roll > i, a:hover > span > .roll > i, button:hover > span > .roll > i, a:focus-visible .roll > i { transform: translateY(-100%); }

/* ---------- footer letters ---------- */
.footer__word .fch { display: inline-block; }
.footer__word .fch > span { display: inline-block; transition: transform .6s var(--ease-out), color .3s; }
.footer__word .fch:hover > span { transform: translateY(-10%) rotate(-4deg); color: var(--accent); }
.caretta__chapters button.is-ready { transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-out); }

/* ---------- about grid update ---------- */
.skills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tools__grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.tools__grid li { flex-direction: column; align-items: flex-start; gap: 22px; padding: 20px 18px; }
.tools__grid img { width: 30px; height: 30px; }
.hero__projects { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- responsive ---------- */
/* ---------- hero without the intro line ---------- */
.hero__ctas { margin-top: clamp(28px, 4.4vh, 48px); }

/* ---------- nav: which project is under the bar ---------- */
.nav__sub { display: none; padding: 3px 9px 4px; border-radius: 99px; background: color-mix(in srgb, currentColor 14%, transparent); font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0; }
.nav__sub.is-on { display: inline-block; }

/* ---------- case header: my work first, the product second ---------- */
.case { --c-label: var(--c-accent); }
.case--film { --c-label: #8f9bff; }
.case__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 32px clamp(40px, 6vw, 110px); }
.case__intro { display: grid; gap: 34px; align-content: start; justify-items: start; min-width: 0; }
.case__intro .case__meta { width: 100%; }
.did { min-width: 0; }
.case .did__title { margin: 4px 0 16px; line-height: 1.3; font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-label); }
.did__list { list-style: none; margin: 0; padding: 0; }
.did__list li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: baseline; padding: 17px 0 18px; }
.did__list li::before, .did__list li:last-child::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--c-line); transform: scaleX(var(--ln, 1)); transform-origin: left; }
.did__list li:last-child::after { top: auto; bottom: 0; }
.did__list b { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--c-label); }
.did__list span { font-size: clamp(19px, 1.6vw, 26px); line-height: 1.28; letter-spacing: -.02em; font-weight: 500; text-wrap: pretty; }

/* ---------- projects page: index ---------- */
.pj { padding: 0 var(--pad) clamp(80px, 10vw, 140px); background: var(--bg); }
.pj .sec-title { margin-bottom: clamp(36px, 5vw, 64px); }
.pj__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.pj__list a {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 56px 136px minmax(0, 1fr) minmax(0, 1fr) 52px;
  align-items: center; gap: 0 28px; padding: 22px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: color .4s;
}
.pj__list a::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--pad) * -1); background: var(--env); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); }
.pj__n { font-family: var(--f-mono); font-size: 14px; font-weight: 500; color: var(--accent); transition: color .4s; }
.pj__img { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #1b1b1e; }
.pj__img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .9s var(--ease-out); }
.pj__t { font-family: var(--f-disp); font-weight: 600; font-size: clamp(28px, 3.4vw, 54px); line-height: 1; letter-spacing: -.045em; transition: transform .7s var(--ease-out); }
.pj__d { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.4; }
.pj__go { display: grid; place-items: center; width: 52px; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transform: rotate(90deg); transition: transform .6s var(--ease-out), background-color .3s, color .3s; }
.pj__go svg { width: 40%; height: 40%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .pj__list a:hover { color: var(--env-ink); }
  .pj__list a:hover::before { transform: scaleY(1); }
  .pj__list a:hover .pj__n { color: inherit; }
  .pj__list a:hover .pj__t { transform: translateX(12px); }
  .pj__list a:hover .pj__img img { transform: scale(1.08); }
  .pj__list a:hover .pj__go { background: var(--env-ink); color: var(--env); transform: rotate(90deg) translateX(4px); }
}
.pj__list a:active .pj__go { transform: rotate(90deg) scale(.92); }

/* ---------- globe: where the orders come from ---------- */
.geo {
  --g-sphere: #161618; --g-line: rgba(242, 239, 232, .16); --g-dot: #f2efe8; --g-acc: #ff5c28;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 48px clamp(40px, 6vw, 100px);
  padding: clamp(90px, 10vw, 150px) var(--pad); background: var(--bg); color: var(--fg); overflow: hidden;
}
.geo__text { min-width: 0; }
.geo .sec-title { margin-bottom: 28px; }
.geo__lead { margin: 0 0 44px; max-width: 32ch; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.38; letter-spacing: -.01em; }
.geo__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 560px; margin-bottom: 40px; }
.geo__stats > div { display: grid; align-content: start; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.geo__stats b { font-family: var(--f-disp); font-weight: 600; font-size: clamp(56px, 6vw, 96px); line-height: .9; letter-spacing: -.05em; color: var(--accent); }
.geo__stats > div > span { font-size: 17px; line-height: 1.35; }
.geo__places { display: flex; flex-wrap: wrap; gap: 10px; }
.geo__places button { height: 46px; padding: 0 20px; border-radius: 99px; border: 1px solid var(--line); background: none; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .3s, border-color .3s, color .3s, transform .4s var(--ease-out); }
.geo__places button:hover { border-color: var(--fg); }
.geo__places button:active { transform: scale(.95); }
.geo__places button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.geo__globe { position: relative; justify-self: center; width: 100%; max-width: 680px; aspect-ratio: 1; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.geo__globe.is-drag { cursor: grabbing; }
.geo__globe canvas { width: 100%; height: 100%; }
.geo__labels { position: absolute; inset: 0; pointer-events: none; }
.geo__label {
  position: absolute; left: 0; top: 0; margin: -15px 0 0 14px; padding: 5px 11px 6px; border-radius: 99px;
  background: rgba(12, 12, 13, .78); color: var(--fg); font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .35s, color .35s; will-change: transform, opacity;
}
.geo__label.is-on { background: var(--accent); color: var(--ink); }

@media (max-width: 1024px) {
  /* one column: description, then the work, then the details */
  .case__intro { display: contents; }
  .case__intro > .case__lead { order: 1; }
  .did { order: 2; margin-top: 8px; }
  .case__intro > .case__meta { order: 3; }
  .case__intro > .case__link { order: 4; justify-self: start; }
  .geo { grid-template-columns: 1fr; }
  .geo__globe { max-width: 560px; }
  .pj__list a { grid-template-columns: 44px 120px minmax(0, 1fr) 44px; grid-template-areas: "n img t go" "n img d go"; gap: 6px 22px; }
  .pj__n { grid-area: n; } .pj__img { grid-area: img; } .pj__t { grid-area: t; align-self: end; } .pj__d { grid-area: d; align-self: start; } .pj__go { grid-area: go; width: 44px; }
}
@media (max-width: 819px) {
  .geo { padding: 84px var(--pad) 92px; gap: 36px; }
  .geo__lead { margin-bottom: 32px; }
  .geo__stats { gap: 16px; margin-bottom: 30px; }
  .geo__stats > div > span { font-size: 16px; }
  .geo__label { font-size: 13px; margin: -14px 0 0 11px; padding: 4px 9px 5px; }
  .did__list li { grid-template-columns: 38px minmax(0, 1fr); padding: 14px 0 15px; }
  .did__list span { font-size: 19px; }
  .case__intro { gap: 26px; }
  .pj__list a { grid-template-columns: 26px 92px minmax(0, 1fr) 34px; gap: 4px 14px; padding: 16px 0; }
  .pj__t { font-size: 24px; }
  .pj__d { font-size: 15px; line-height: 1.35; }
  .pj__go { width: 34px; }
}

@media (max-width: 1100px) {
  .nav { gap: 10px; }
  .nav__links a { padding: 0 11px; }
}
@media (max-width: 1200px) {
  .tools__grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .hero__projects { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .svc__inner { grid-template-columns: 1fr; }
  .svc__example { max-width: 520px; }
  .modules__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .caretta__live { gap: 56px; }
  .device { width: 340px; height: 700px; }
  .adm__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__info { padding: 40px; }
}

@media (max-width: 1100px) {
  .hero { min-height: auto; display: block; padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + 36svh); padding-bottom: 32px; }
  .hero__wall { left: 0; bottom: auto; height: 50svh; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
  .wall { top: -30%; left: -30%; width: 165%; height: 190%; gap: 12px; transform: rotateX(calc(20deg + var(--ry, 0deg))) rotateZ(12deg); }
  .wall__col { gap: 12px; }
}

@media (max-width: 1024px) {
  .case__head { grid-template-columns: 1fr; }
  .osota__how { grid-template-columns: 1fr; gap: 48px; }
  .caretta__live { grid-template-columns: 1fr; justify-items: center; }
  .caretta__side { width: 100%; }
  .mig { height: auto; }
  .mig__pin { position: static; height: auto; grid-template-columns: 1fr; gap: 40px; }
  .mig__grid { width: 100%; }
  .tour { height: auto; }
  .tour__pin { position: static; height: auto; display: block; }
  .tour__list { display: none; }
  .tour__side { margin-bottom: 28px; }
  .adm__body { height: 600px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps__line { display: none; }
  .arow { grid-template-columns: 46px minmax(0, 1fr) 90px 70px 96px; }
  .arow .c-cat { display: none; }
  .card { flex-direction: column; }
  .card__media { order: -1; }
  .card__info { flex: none; padding: 28px 32px 32px; gap: 12px; }
  .card__win { top: 10%; left: 6%; width: 110%; }
  .card__phone { width: 20%; bottom: -14%; }
}

@media (max-width: 819px) {
  :root { --nav-h: 60px; --radius: 20px; }
  :root { --tab-h: calc(62px + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--tab-h); }
  .nav__links, .nav__cta { display: none; }
  .nav__word { display: inline !important; }
  .nav.is-hidden { transform: none; }
  .tabbar { display: flex; }
  .seq__pin { height: calc(100svh - var(--nav-h) - var(--tab-h)); }
  .seq__phone { width: min(76vw, calc((100svh - var(--nav-h) - var(--tab-h) - 70px) * .462)) !important; }
  .next { grid-template-columns: minmax(0, 1fr) auto; padding-top: 64px; padding-bottom: 64px; gap: 16px 18px; }
  .next__img { display: none; }
  .next__title { font-size: clamp(38px, 12.5vw, 64px); }
  .next__arrow { width: 56px; }
  .curtain__word { font-size: clamp(36px, 12vw, 64px); }
  .cursor, .svc__preview { display: none; }

  .hero { padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + 39svh); }
  .hero__wall { height: 52svh; }
  .hero__title { font-size: clamp(38px, 11.4vw, 60px); }
  .hero__sub { margin: 22px 0 28px; font-size: 16px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__projects { display: flex; overflow-x: auto; margin: 36px calc(var(--pad) * -1) 0; padding: 0 var(--pad) 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hero__projects::-webkit-scrollbar { display: none; }
  .hero__projects a { flex: 0 0 76%; scroll-snap-align: start; }

  .ribbons { height: 170px; }
  .ribbon--front { transform: rotate(-4deg); }
  .ribbon--back { transform: rotate(4deg); }

  .sec-title { margin-bottom: 36px; }
  .about { padding: 80px var(--pad) 96px; }
  .about__statement { margin-bottom: 72px; }
  .skills { grid-template-columns: 1fr !important; gap: 10px; }
  .skill { padding: 24px 22px 26px; }
  .skill h3 { margin-top: 18px; }
  .tools { margin-top: 80px; }
  .tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
  .tools__grid li { flex-direction: row; align-items: center; padding: 14px; gap: 10px; }
  .tools__grid img { width: 26px; height: 26px; }
  .film__frame { border-radius: 14px; margin-inline: calc(var(--pad) * -.5); }
  .film__play { padding: 7px 18px 7px 7px; gap: 10px; font-size: 14px; }
  .film__play-ico { width: 44px; height: 44px; }
  .film__play-ico svg { width: 18px; height: 18px; }
  .reel { margin-top: 56px; }
  .reel__track img { width: 62vw; border-radius: 10px; }
  .tools__grid span { font-size: 15px; }

  .work { padding: 88px var(--pad) 40px; }
  .card { top: calc(var(--nav-h) + 12px + var(--i) * 10px); height: min(calc(100svh - var(--nav-h) - var(--tab-h) - 40px), 640px); margin-bottom: 28px; }
  .card__info { padding: 22px 22px 24px; gap: 10px; }
  .card__t { font-size: clamp(34px, 10vw, 52px); }
  .card__d { font-size: 15.5px; }
  .card__tags li { font-size: 12px; padding: 5px 10px; }
  .card__phone { width: 30%; border-radius: 20px; border-width: 4px; bottom: -18%; }

  .case { padding: 96px var(--pad) 88px; }
  .case__head { margin-bottom: 56px; gap: 22px; }
  .case__title { font-size: clamp(46px, 15vw, 96px); }
  .case__meta { grid-template-columns: 1fr; gap: 0; }
  .case__meta div { padding: 12px 0; }
  .case__link { width: 100%; justify-content: center; }

  .window { border-radius: 12px; }
  .osota__how { margin-top: 96px; }
  .demo { grid-template-columns: 1fr; height: auto; margin-inline: calc(var(--pad) * -.5); }
  .demo__msgs { height: 380px; flex: none; padding: 14px; }
  .msg { max-width: 88%; }
  .demo__record { border-left: 0; border-top: 1px solid #eceef5; padding: 16px; }
  .demo__record dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .modules { margin-top: 96px; }
  .modules__list { grid-template-columns: 1fr; gap: 0; }
  .modules__list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; padding: 16px 0; border-top-width: 1px; }
  .modules__list li b { grid-row: 1 / 3; padding-top: 4px; }
  .modules__list h4 { margin: 0 0 4px; font-size: 18px; }
  .facts { margin-top: 48px; gap: 10px; }
  .facts > div { padding: 22px 18px; border-radius: 16px; }

  .seq { height: 340vh; }
  .seq__laptop { display: none; }
  .seq__phone { display: block; width: min(76vw, calc((100svh - var(--nav-h) - 80px) * .462)); border-width: 7px; border-radius: 40px; }
  .seq__pin { gap: 18px; }

  .caretta__live { display: none; }

  .mig__text p { font-size: 16px; }
  .mig__nums b { font-size: clamp(36px, 11vw, 56px); }
  .mig__grid { gap: 5px; }
  .mig__tile { border-radius: 7px; }
  .mig__tile:nth-child(n + 41) { display: none; }
  .tour { margin-top: 64px; }
  .adm { margin-inline: calc(var(--pad) * -.5); border-radius: 12px; }
  .adm__url { padding-right: 0; }
  .adm__body { grid-template-columns: 1fr; height: auto; }
  .adm__side { padding: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .adm__side::-webkit-scrollbar { display: none; }
  .adm__logo, .adm__nav p { display: none; }
  .adm__nav { display: flex; gap: 4px; }
  .adm__nav button { width: auto; padding: 9px 12px; gap: 8px; font-size: 13px; }
  .adm__nav button.is-active { box-shadow: inset 0 -2px 0 #ffc83d; }
  .adm__nav em { margin-left: 2px; }
  .adm__main { height: 560px; padding: 16px; }
  .adm__h h4 { font-size: 19px; }
  .adm__cards { gap: 8px; }
  .acard { padding: 12px; }
  .acard b { font-size: 26px; }
  .acard span { font-size: 13px; margin-top: 6px; }
  .acard small { font-size: 11.5px; }
  .adm__split { grid-template-columns: 1fr; }
  .arow { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 9px 12px; }
  .arow img { width: 44px; height: 44px; }
  .arow--h { display: none; }
  .arow .c-stock, .arow .c-st { display: none; }
  .arow small { display: block; }
  .rcard { grid-template-columns: 44px minmax(0, 1fr); }
  .rcard img { width: 44px; height: 44px; }
  .rcard__act { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .kanban { grid-template-columns: repeat(6, 76%); scroll-snap-type: x mandatory; }
  .kcol { scroll-snap-align: start; min-height: 340px; }
  .arent { grid-template-columns: 1fr; }
  .arent__bikes { grid-template-columns: 1fr; }
  .achart { gap: 8px; height: 200px; }
  .martin__real { grid-template-columns: 1fr; margin-top: 72px; gap: 32px; }
  .martin__real-phone { width: 62%; margin: 0 auto; }

  .services { padding: 96px var(--pad); }
  .svc__row { grid-template-columns: 40px minmax(0, 1fr) 40px; padding: 22px 0; }
  .svc__plus { width: 40px; height: 40px; }
  .svc__inner { grid-template-columns: 1fr; gap: 28px; padding: 0 0 32px; }
  .svc__list { grid-template-columns: 1fr; }
  .svc__cta { width: 100%; }
  .svc__row:hover .svc__name { transform: none; }

  .process { padding: 96px var(--pad); }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .steps li { padding-top: 0; padding-left: 36px; }
  .steps__dot { top: 4px; }

  .contact { padding: 104px var(--pad) 96px; }
  .contact__title { font-size: clamp(36px, 11vw, 60px); }
  .contact__row { flex-direction: column; align-items: stretch; margin-top: 40px; }
  .contact__btn { width: 100%; height: 76px; flex-direction: row; border-radius: 99px; font-size: 20px; }

  .footer__row { flex-wrap: wrap; }
  .footer__row nav { order: 3; width: 100%; gap: 18px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .wall__col { animation: none; }
}
