/* ==========================================================================
   HALFEE — design system
   One family (Onest), one accent (brand yellow), one 12-column grid.
   Type scale: display (hero only) → h2 (every section title) → statement →
   h3 → body → small. Nothing else.
   ========================================================================== */

:root {
  /* colour */
  --ink: #1F1F1F;            /* brand dark (logo) */
  --ink-soft: #55514B;
  --ink-mute: #8C877F;
  --paper: #F4F2EE;          /* page */
  --paper-2: #EAE6DF;        /* quiet surface */
  --sand: #E4DED5;
  --white: #FFFFFF;
  --accent: #FED060;         /* brand yellow (logo "e.") */
  --line: rgba(31, 31, 31, .12);
  --line-strong: rgba(31, 31, 31, .24);
  --line-light: rgba(255, 255, 255, .14);
  --error: #B4472F;

  /* layout */
  --frame: clamp(6px, .7vw, 12px);           /* hero / footer inset */
  --gutter: clamp(16px, 3.4vw, 60px);        /* page side margin */
  --gap: clamp(12px, 1.5vw, 24px);           /* grid gap */
  --section: clamp(104px, 11vw, 200px);      /* vertical rhythm */
  --hdr-h: 60px;

  /* shape */
  --r-xl: clamp(20px, 2.1vw, 36px);
  --r-l: clamp(14px, 1.3vw, 22px);
  --r-m: 12px;

  /* type */
  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(64px, 13vw, 252px);
  --fs-h2: clamp(40px, 5.1vw, 92px);
  --fs-statement: clamp(28px, 3.25vw, 58px);
  --fs-h3: clamp(20px, 1.6vw, 28px);
  --fs-body: clamp(15px, 1.05vw, 17px);
  --fs-small: 13px;

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-hover: .6s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scrollbar-gutter: stable; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }

/* ---------- type ---------- */
.h2 {
  font-size: var(--fs-h2);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 400;
  text-wrap: balance;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 500;
}
.statement {
  font-size: var(--fs-statement);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 400;
}
.body { font-size: var(--fs-body); line-height: 1.6; color: var(--ink-soft); max-width: 44ch; }
.muted { color: var(--ink-mute); }

/* split-text masks (JS wraps words) */
.sw { display: inline-block; overflow: clip; vertical-align: top; padding-block: .14em; margin-block: -.14em; }
.swi { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
[data-t] { display: inline-block; overflow: clip; vertical-align: top; line-height: 1.3; }
.roll__in { display: inline-block; text-shadow: 0 1.3em currentColor; transition: transform var(--t-hover) var(--ease-out); }
a:hover .roll__in, button:hover .roll__in, .roll:hover .roll__in { transform: translateY(-1.3em); }

.btn {
  --bg: var(--ink); --fg: #fff; --fill: var(--accent); --fill-fg: var(--ink);
  --ic-bg: #fff; --ic-fg: var(--ink);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: color .5s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--fill);
  border-radius: 50% 50% 0 0 / 120% 120% 0 0;
  transform: translateY(102%);
  transition: transform .7s var(--ease-out), border-radius .7s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn:hover { color: var(--fill-fg); }
.btn--arrow { padding-right: 8px; }
.btn__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ic-bg);
  color: var(--ic-fg);
  overflow: hidden;
  transition: background .5s var(--ease-out), color .5s var(--ease-out);
}
.btn__icon svg { width: 18px; height: 18px; }
.btn:hover .btn__icon svg { animation: arrow-through .7s var(--ease-out); }
.btn:hover .btn__icon { background: var(--ink); color: var(--accent); }
@keyframes arrow-through {
  0% { transform: translateX(0); }
  45% { transform: translateX(140%); }
  46% { transform: translateX(-140%); }
  100% { transform: translateX(0); }
}
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--light { --bg: #fff; --fg: var(--ink); --ic-bg: var(--ink); --ic-fg: #fff; }
.btn--accent { --bg: var(--accent); --fg: var(--ink); --fill: #fff; --ic-bg: var(--ink); --ic-fg: var(--accent); }
.btn--accent:hover .btn__icon { background: var(--ink); color: #fff; }

.round {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 13px; font-weight: 500;
  transition: background .5s var(--ease-out), color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.round svg { width: 18px; height: 18px; }
.round:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.round--light { border-color: rgba(255,255,255,.35); color: #fff; }
.round--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.link {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -.01em;
  padding-block: 4px;
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  transition: background-size .6s var(--ease-out);
}
.link:hover { background-size: 100% 1px; background-position: 0 100%; }
.link svg { width: 16px; height: 16px; transition: transform .6s var(--ease-out); }
.link:hover svg { transform: translateX(4px); }
.link--light { color: #fff; }

.glass {
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .24);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  color: #fff;
}

.lang { display: inline-flex; gap: 12px; font-size: 14px; }
.lang b { font-weight: 500; }
.lang a { opacity: .55; transition: opacity .4s; }
.lang a:hover { opacity: 1; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--paper);
}
.preloader__logo { width: clamp(150px, 18vw, 260px); height: auto; overflow: visible; }
.no-js .preloader, .reduced .preloader { display: none; }

/* ---------- header ---------- */
.hdr {
  position: fixed;
  z-index: 60;
  top: calc(var(--frame) + 12px);
  left: calc(var(--frame) + 12px);
  right: calc(var(--frame) + 12px);
  transition: transform .7s var(--ease-out);
}
.hdr.is-hidden { transform: translateY(calc(-100% - 40px)); }
.hdr__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--hdr-h);
  padding: 0 8px 0 24px;
  border-radius: 999px;
  background: rgba(244, 242, 238, .78);
  border: 1px solid rgba(31, 31, 31, .07);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  color: var(--ink);
  transition: background .6s var(--ease-out), color .6s var(--ease-out), border-color .6s var(--ease-out);
}
.hdr.is-light .hdr__bar { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); color: #fff; }
.hdr__logo svg { width: 106px; height: 27px; }
.hdr__nav { display: flex; gap: clamp(18px, 2vw, 34px); font-size: 15px; letter-spacing: -.01em; }
.hdr__right { display: flex; align-items: center; gap: 18px; }
.hdr__phone { font-size: 15px; letter-spacing: -.01em; }
.hdr__cta { --bg: var(--ink); --fg: #fff; }
.hdr.is-light .hdr__cta { --bg: #fff; --fg: var(--ink); }
.hdr__burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
}
.hdr.is-light .hdr__burger { background: #fff; }
.hdr__burger i {
  position: absolute; left: 14px; right: 14px; height: 1.5px;
  background: #fff;
  transition: transform .6s var(--ease-out), top .6s var(--ease-out);
}
.hdr.is-light .hdr__burger i { background: var(--ink); }
.hdr__burger i:first-child { top: 18px; }
.hdr__burger i:last-child { top: 24px; }
.menu-open .hdr__burger i:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .hdr__burger i:last-child { top: 21px; transform: rotate(-45deg); }
.menu-open .hdr .hdr__bar { background: rgba(244, 242, 238, .9); color: var(--ink); border-color: var(--line); }
.menu-open .hdr .hdr__burger { background: var(--ink); }
.menu-open .hdr .hdr__burger i { background: #fff; }

.js:not(.reduced) .hdr { opacity: 0; }

/* ---------- menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--paper);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__inner {
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hdr-h) + 64px) var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom));
}
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: block; overflow: clip;
  font-size: clamp(40px, 9vw, 92px);
  line-height: 1.05; letter-spacing: -.045em;
  padding-block: .04em;
}
.menu__nav a span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out); }
.menu-open .menu__nav a span { transform: none; }
.menu__nav a:hover span { color: var(--ink-mute); }
.menu__foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.menu__foot > div { display: flex; flex-direction: column; gap: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; padding: var(--frame); }
.hero__frame {
  position: relative;
  height: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  background: #CBBFB1;
  color: #fff;
  transform-origin: 50% 0;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media { z-index: -2; transform-origin: 50% 60%; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(24, 20, 16, .42) 0%, rgba(24, 20, 16, 0) 30%),
    linear-gradient(0deg, rgba(24, 20, 16, .55) 0%, rgba(24, 20, 16, 0) 52%);
}
.hero__lines {
  position: absolute; inset: 0; z-index: -1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-inline: var(--gutter);
  pointer-events: none;
}
.hero__lines i { border-left: 1px solid rgba(255, 255, 255, .1); transform-origin: 50% 0; }
.hero__lines i:last-child { border-right: 1px solid rgba(255, 255, 255, .1); }
.hero__top {
  position: absolute;
  top: calc(var(--hdr-h) + 64px);
  left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
}
.hero__intro { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 34ch; }
.hero__stats { display: flex; flex-direction: column; gap: 10px; width: 216px; }
.hero__stats .glass { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 16px; border-radius: 18px; }
.hero__stats b { font-size: 34px; line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.hero__stats span { font-size: 13px; color: rgba(255, 255, 255, .8); }
.hero__bottom { position: absolute; left: var(--gutter); bottom: clamp(18px, 2.6vw, 40px); right: 380px; }
.hero__lead { font-size: var(--fs-h3); letter-spacing: -.025em; line-height: 1.2; margin-bottom: .1em; }
.hero__title { font-weight: 400; }
.rot {
  display: grid;
  /* the longest word ("закохував.") is ~4.55em wide: never let it run under the CTA tab */
  font-size: min(var(--fs-display), calc((100vw - 2 * var(--gutter) - 380px) / 4.6));
  line-height: .9;
  letter-spacing: -.06em;
  overflow: clip;
  padding: .04em .12em .12em;
  margin: -.04em -.12em -.12em -.17em;
}
.rot__w { grid-area: 1 / 1; display: flex; white-space: nowrap; }
.rot__w .ch { display: inline-block; will-change: transform; }
.ch--dot { color: var(--accent); }
.hero__tab {
  --r: var(--r-xl);
  position: absolute; right: 0; bottom: 0; z-index: 3;
  padding: 14px 0 0 14px;
  background: var(--paper);
  border-top-left-radius: var(--r);
}
.hero__tab::before, .hero__tab::after {
  content: "";
  position: absolute;
  width: var(--r); height: var(--r);
  background: radial-gradient(circle at 0 0, transparent calc(var(--r) - .5px), var(--paper) var(--r));
}
.hero__tab::before { right: 0; top: calc(-1 * var(--r)); }
.hero__tab::after { left: calc(-1 * var(--r)); bottom: 0; }
.hero__tab .btn { height: 64px; padding-left: 32px; padding-right: 10px; font-size: 16px; }
.hero__tab .btn__icon { width: 46px; height: 46px; }

.js:not(.reduced) [data-hero-fade] { opacity: 0; }

/* ---------- ticker ---------- */
.ticker {
  display: grid; grid-template-columns: minmax(150px, 22%) 1fr; align-items: center;
  padding-block: clamp(32px, 3.4vw, 52px);
  border-bottom: 1px solid var(--line);
}
.ticker__label { padding-left: var(--gutter); padding-right: 24px; font-size: 14px; line-height: 1.4; color: var(--ink-soft); max-width: 22ch; }
.ticker__track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__row { display: flex; align-items: center; width: max-content; }
.ticker__row span { font-size: clamp(26px, 2.6vw, 44px); letter-spacing: -.035em; white-space: nowrap; padding-inline: clamp(20px, 2.2vw, 40px); }
.ticker__row i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.fallback .ticker__row { animation: marquee 60s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- manifesto ---------- */
.manifesto__text { grid-column: 3 / -1; text-indent: 16.6%; }
.pill {
  display: inline-block;
  width: 2.15em; height: .86em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: -.06em;
  margin-inline: .02em;
  text-indent: 0;
  background: var(--paper-2);
}
.pill img { width: 100%; height: 100%; object-fit: cover; }
.manifesto__row { margin-top: clamp(72px, 8vw, 140px); align-items: end; row-gap: 40px; }
.manifesto__img { border-radius: var(--r-l); overflow: hidden; background: var(--paper-2); }
.manifesto__img img { width: 100%; height: 100%; object-fit: cover; }
.manifesto__img--a { grid-column: 1 / span 3; aspect-ratio: 4 / 5; }
.manifesto__img--b { grid-column: 4 / span 3; aspect-ratio: 4 / 5; margin-bottom: 18%; }
.manifesto__col { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.manifesto__col--a { grid-column: 7 / span 3; padding-right: 12px; }
.manifesto__col--b { grid-column: 10 / span 3; }

/* ---------- section head ---------- */
.shead { align-items: end; margin-bottom: clamp(48px, 5.5vw, 96px); row-gap: 28px; }
.shead__title { grid-column: 1 / span 7; }
.shead__aside { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-bottom: .5em; }

/* ---------- services stack ---------- */
.stack { display: flex; flex-direction: column; gap: var(--gap); padding-inline: var(--gutter); }
.scard {
  --dim: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  min-height: min(calc(100svh - 120px), 820px);
  padding: clamp(22px, 2.6vw, 44px);
  border-radius: var(--r-xl);
  transform-origin: 50% 0;
  overflow: hidden;
  isolation: isolate;
}
.scard::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim); pointer-events: none; z-index: 5; }
.scard--light { background: #fff; }
.scard--dark { background: var(--ink); color: #fff; }
.scard--dark .body { color: rgba(255, 255, 255, .7); }
.scard--sand { background: var(--sand); }
.scard__body { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-block: 8px; }
.scard__title { margin-bottom: auto; padding-bottom: 32px; }
.scard__list { width: 100%; margin-block: 6px 12px; }
.scard__list li {
  display: flex; align-items: center; gap: 14px;
  padding-block: 13px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.scard--dark .scard__list li { border-color: var(--line-light); }
.scard__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.scard__media { grid-column: 6 / -1; position: relative; min-height: 360px; }
.scard__main { position: absolute; inset: 0; border-radius: var(--r-l); overflow: hidden; background: var(--paper-2); }
.scard__main img { width: 100%; height: 100%; object-fit: cover; }
.scard__detail {
  position: absolute; left: clamp(-56px, -3vw, -24px); bottom: clamp(20px, 3vw, 48px);
  width: 30%; aspect-ratio: 3 / 4;
  border-radius: var(--r-l); overflow: hidden;
  border: 6px solid #fff;
  z-index: 2;
}
.scard--dark .scard__detail { border-color: var(--ink); }
.scard--sand .scard__detail { border-color: var(--sand); }
.scard__detail img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- works ---------- */
.works { padding-bottom: calc(var(--section) * .6); }
.works__pin { display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px) { .js:not(.reduced) .works__pin { height: 100vh; height: 100svh; } }
.works__track { display: flex; align-items: flex-start; gap: var(--gap); width: max-content; padding-inline: var(--gutter); }
.wcard { --h: min(60vh, 620px); display: flex; flex-direction: column; gap: 18px; flex: none; }
.wcard__img { height: var(--h); border-radius: var(--r-l); overflow: hidden; background: var(--paper-2); }
.wcard--l .wcard__img { aspect-ratio: 16 / 11; }
.wcard--p .wcard__img { aspect-ratio: 4 / 5; }
.wcard__img img { width: 116%; max-width: none; height: 100%; margin-left: -8%; object-fit: cover; transition: scale 1.4s var(--ease-out); }
.wcard:hover .wcard__img img { scale: 1.06; }
.wcard__cap { display: flex; flex-direction: column; gap: 6px; width: 0; min-width: 100%; }
.wcard__cap p { font-size: 14px; color: var(--ink-mute); }
.wcard--more {
  height: var(--h); aspect-ratio: 3 / 4;
  border-radius: var(--r-l);
  border: 1px solid var(--line-strong);
  align-items: center; justify-content: center; gap: 28px;
  text-align: center;
  transition: background .6s var(--ease-out), border-color .6s var(--ease-out);
}
.wcard__more-circle {
  display: grid; place-items: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--ink); color: #fff;
  transition: background .6s var(--ease-out), color .6s var(--ease-out), scale .8s var(--ease-out);
}
.wcard__more-circle svg { width: 28px; height: 28px; }
.wcard--more:hover { background: #fff; border-color: transparent; }
.wcard--more:hover .wcard__more-circle { background: var(--accent); color: var(--ink); scale: 1.08; }
.works__progress { margin: clamp(32px, 3.4vw, 52px) var(--gutter) 0; height: 1px; background: var(--line); }
.works__progress i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- process ---------- */
.process__grid { align-items: start; }
.process__aside { grid-column: 1 / span 5; align-self: stretch; }
.process__sticky { position: sticky; top: calc(var(--hdr-h) + 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.process__img { width: 78%; aspect-ratio: 5 / 4; max-height: calc(100svh - 470px); min-height: 200px; border-radius: var(--r-l); overflow: hidden; margin-top: 12px; background: var(--paper-2); }
.process__img img { width: 100%; height: 100%; object-fit: cover; }
.steps { grid-column: 7 / span 6; border-bottom: 1px solid var(--line); }
.step {
  position: relative;
  display: grid; gap: 12px;
  padding: clamp(28px, 3.4vw, 52px) 0 clamp(28px, 3.4vw, 52px) 34px;
  border-top: 1px solid var(--line);
  opacity: .3;
  transition: opacity .7s var(--ease-out);
}
.step::before {
  content: "";
  position: absolute; left: 0; top: calc(clamp(28px, 3.4vw, 52px) + .55em);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform .7s var(--ease-out);
}
.step.is-active, .reduced .step { opacity: 1; }
.step.is-active::before { transform: scale(1); }

/* ---------- pricing ---------- */
.pkgs { margin-bottom: var(--gap); row-gap: var(--gap); }
.pkg {
  grid-column: span 4;
  display: flex; flex-direction: column;
  padding: 10px;
  border-radius: var(--r-l);
  background: #fff;
  text-align: left;
  transition: background .6s var(--ease-out), color .6s var(--ease-out);
}
.pkg__img { display: block; aspect-ratio: 16 / 10; border-radius: calc(var(--r-l) - 5px); overflow: hidden; background: var(--paper-2); }
.pkg__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease-out); }
.pkg:hover .pkg__img img { scale: 1.06; }
.pkg__body { display: grid; gap: 10px; padding: 24px 14px 12px; }
.pkg__desc { font-size: 15px; color: var(--ink-soft); transition: color .6s var(--ease-out); }
.pkg__price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; font-size: 15px; color: var(--ink-soft); transition: color .6s var(--ease-out); }
.pkg__price b { font-size: clamp(30px, 2.6vw, 44px); font-weight: 400; letter-spacing: -.04em; color: var(--ink); transition: color .6s var(--ease-out); }
.pkg.is-active { background: var(--ink); color: #fff; }
.pkg.is-active .pkg__desc, .pkg.is-active .pkg__price { color: rgba(255, 255, 255, .65); }
.pkg.is-active .pkg__price b { color: var(--accent); }

.calc {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px;
  align-items: end;
  padding: clamp(26px, 3vw, 52px);
  border-radius: var(--r-xl);
  background: var(--ink); color: #fff;
}
.calc__area { grid-column: 1 / span 4; display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 22px; }
.calc__label { font-size: 14px; color: rgba(255, 255, 255, .6); }
.calc__value { font-size: var(--fs-h3); letter-spacing: -.025em; }
.calc__area .range, .calc__scale { grid-column: 1 / -1; }
.calc__scale { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .4); margin-top: -10px; }
.calc__result { grid-column: 6 / span 4; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.calc__sum { font-size: clamp(36px, 3.9vw, 68px); line-height: .95; letter-spacing: -.045em; white-space: nowrap; }
.calc__sum b { font-weight: 400; color: var(--accent); }
.calc__actions { grid-column: 10 / span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.calc__note { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: var(--fs-small); color: rgba(255, 255, 255, .5); }

.range {
  --p: 18%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--p), rgba(255, 255, 255, .18) var(--p)); }
.range::-moz-range-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--p), rgba(255, 255, 255, .18) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -12px; border-radius: 50%; background: #fff; border: 0; transition: transform .4s var(--ease-out); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; }
.range:active::-webkit-slider-thumb { transform: scale(1.18); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(254, 208, 96, .45); }

/* ---------- why / bento ---------- */
.bento { row-gap: var(--gap); }
.cell {
  grid-column: span 4;
  display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
  min-height: clamp(270px, 23vw, 380px);
  padding: clamp(24px, 2.4vw, 38px);
  border-radius: var(--r-l);
  background: #fff;
}
.cell > div { display: grid; gap: 10px; }
.cell__num { font-size: var(--fs-h2); line-height: .9; letter-spacing: -.05em; font-weight: 400; }
.cell--dark { background: var(--ink); color: #fff; }
.cell--dark .body { color: rgba(255, 255, 255, .65); }
.cell--dark .cell__num { color: var(--accent); }
.cell--img { grid-column: 9 / span 4; grid-row: 1 / span 2; position: relative; padding: 0; overflow: hidden; color: #fff; justify-content: flex-end; background: var(--paper-2); }
.cell--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cell--img figcaption {
  position: relative; display: grid; gap: 10px;
  padding: clamp(24px, 2.4vw, 38px);
  background: linear-gradient(0deg, rgba(20, 18, 16, .62), rgba(20, 18, 16, 0));
}
.cell--img figcaption p { color: rgba(255, 255, 255, .82); max-width: 34ch; }

/* ---------- founder ---------- */
.founder__grid { align-items: end; row-gap: 48px; }
.founder__photo { grid-column: 1 / span 4; position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-l); overflow: hidden; background: var(--paper-2); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__body { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: clamp(40px, 4vw, 72px); }
.founder__sign { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.founder__sign b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.founder__sign span { font-size: 15px; }
.play {
  position: absolute; left: 20px; bottom: 20px;
  display: grid; place-items: center;
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  transition: background .6s var(--ease-out), color .6s var(--ease-out), border-color .6s var(--ease-out);
}
.play svg { width: 24px; height: 24px; margin-left: 3px; }
.play:hover, .rev:hover .play { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.play--sm { width: 64px; height: 64px; }
.play--sm svg { width: 20px; height: 20px; }
.founder__team { margin: clamp(72px, 8vw, 140px) var(--gutter) 0; }
.founder__team picture { display: block; aspect-ratio: 2200 / 914; border-radius: var(--r-xl); overflow: hidden; background: #fff; }
.founder__team img { width: 100%; height: 100%; object-fit: cover; }
.founder__teamcap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 24px; }
.founder__teamcap span { grid-column: 9 / span 4; font-size: var(--fs-body); color: var(--ink-soft); }

/* ---------- reviews ---------- */
.revs { row-gap: 40px; }
.rev { grid-column: span 4; display: flex; flex-direction: column; gap: 22px; text-align: left; }
.rev__img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-l); overflow: hidden; background: var(--paper-2); }
.rev__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease-out); }
.rev:hover .rev__img img { scale: 1.06; }
.rev__body { display: grid; gap: 4px; }
.rev__body .muted { font-size: 14px; }
.rev__text { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }

/* ---------- team ---------- */
.team__nav { display: flex; gap: 10px; }
.team__viewport {
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.team__viewport::-webkit-scrollbar { display: none; }
.team__viewport.is-dragging { cursor: grabbing; }
.team__viewport.is-dragging .member { pointer-events: none; }
.team__track { display: flex; gap: var(--gap); width: max-content; padding-inline: var(--gutter); }
.member { width: clamp(220px, 19vw, 310px); display: flex; flex-direction: column; gap: 4px; user-select: none; }
.member__img { aspect-ratio: 3 / 4; border-radius: var(--r-l); overflow: hidden; margin-bottom: 14px; background: var(--paper-2); }
.member__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease-out); }
.member:hover .member__img img { scale: 1.05; }
.member b { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.member span { font-size: 14px; color: var(--ink-mute); }

/* ---------- contact ---------- */
.contact__grid { align-items: stretch; row-gap: 56px; }
.contact__body { grid-column: 1 / span 6; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.form { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 24px; margin-top: 18px; }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; border: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center;
  height: 44px; padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 15px;
  transition: background .5s var(--ease-out), color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.field { position: relative; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%;
  padding: 24px 0 12px;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent;
  font-size: 18px; letter-spacing: -.01em;
  outline: none;
  resize: none;
}
.field label {
  position: absolute; left: 0; top: 24px;
  color: var(--ink-mute);
  font-size: 18px;
  transform-origin: 0 0;
  pointer-events: none;
  transition: transform .5s var(--ease-out), color .5s var(--ease-out);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-24px) scale(.72); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid input { border-color: var(--error); }
.field.is-invalid label { color: var(--error); }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form__note { font-size: var(--fs-small); color: var(--ink-mute); max-width: 32ch; line-height: 1.45; }
.form__status { grid-column: 1 / -1; font-size: 15px; min-height: 1.5em; }
.form__status.is-ok { color: var(--ink); }
.form__status.is-err { color: var(--error); }
.contact__img { grid-column: 8 / span 5; position: relative; min-height: 640px; border-radius: var(--r-xl); overflow: hidden; background: var(--paper-2); }
.contact__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__card { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 14px 14px 22px; border-radius: 20px; font-size: 15px; }
.contact__msgs { display: flex; gap: 8px; }

/* ---------- seo ---------- */
.seo { padding-bottom: var(--section); }
.seo__inner { grid-column: 3 / span 8; padding-top: 40px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.seo__text {
  max-height: 150px; overflow: hidden;
  font-size: 15px; color: var(--ink-soft); line-height: 1.65;
  -webkit-mask-image: linear-gradient(#000 30%, transparent);
  mask-image: linear-gradient(#000 30%, transparent);
  transition: max-height 1s var(--ease-io);
}
.seo__cols { columns: 2; column-gap: calc(var(--gap) * 2); }
.seo__text p { margin-bottom: 1em; }
.seo__text h3 { font-size: 16px; font-weight: 500; color: var(--ink); margin: 1.2em 0 .5em; break-after: avoid; }
.seo__inner.is-open .seo__text { -webkit-mask-image: none; mask-image: none; }
.seo__more svg { transform: rotate(90deg); }
.seo__inner.is-open .seo__more svg { transform: rotate(-90deg); }

/* ---------- footer ---------- */
.footer {
  margin: 0 var(--frame) var(--frame);
  padding-top: clamp(72px, 8vw, 140px);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.footer__cta { align-items: end; row-gap: 32px; }
.footer__cta .h2 { grid-column: 1 / span 7; }
.footer__cta-aside { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.footer__phone { font-size: var(--fs-h3); letter-spacing: -.025em; background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px; transition: background-size .6s var(--ease-out); }
.footer__phone:hover { background-size: 100% 1px; background-position: 0 100%; }
.footer__cols { margin-top: clamp(72px, 8vw, 128px); padding-top: 40px; border-top: 1px solid var(--line-light); row-gap: 40px; }
.footer__cols { border: 0; position: relative; }
.footer__cols::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-light); }
.footer__col { grid-column: span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 15px; }
.footer__col .muted { color: rgba(255, 255, 255, .45); }
.footer__h { font-size: var(--fs-small); color: rgba(255, 255, 255, .45); margin-bottom: 10px; }
.footer__bar { margin-top: clamp(56px, 6vw, 96px); align-items: center; font-size: 14px; color: rgba(255, 255, 255, .6); row-gap: 14px; }
.footer__bar > :nth-child(1) { grid-column: 1 / span 6; }
.footer__bar > :nth-child(2) { grid-column: 7 / span 3; color: #fff; }
.footer__bar > :nth-child(3) { grid-column: 10 / span 3; justify-self: end; }
.footer__mark { padding: clamp(28px, 3vw, 48px) var(--gutter) clamp(14px, 1.6vw, 28px); }
.footer__mark svg { width: 100%; height: auto; color: #fff; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; visibility: hidden; pointer-events: none; transition: visibility 0s .6s; }
.modal.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(18, 17, 15, .86); opacity: 0; transition: opacity .6s var(--ease-out); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__box { position: relative; width: min(1120px, 92vw); display: flex; flex-direction: column; align-items: flex-end; gap: 16px; opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__frame { width: 100%; aspect-ratio: 16 / 9; max-height: 80vh; border-radius: var(--r-l); overflow: hidden; background: #000; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__close { position: absolute; top: 20px; right: 20px; font-size: 16px; }

/* ---------- cursor label ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 110; pointer-events: none; }
.cursor span {
  position: absolute; left: -50px; top: -50px;
  display: grid; place-items: center;
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  transform: scale(0);
  transition: transform .5s var(--ease-out);
}
.cursor.is-on span { transform: scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- reveal initial states (only while motion is on) ---------- */
.js:not(.reduced) [data-fade] { opacity: 0; transform: translateY(44px); }
.js:not(.reduced) [data-reveal-img] { clip-path: inset(100% 0 0 0); }
.js:not(.reduced) [data-split] { visibility: hidden; }
.js:not(.reduced) [data-split].is-split { visibility: visible; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .hdr__phone { display: none; }
}

@media (max-width: 1100px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__burger { display: block; }
  .hdr__bar { padding-left: 20px; padding-right: 8px; }
}

@media (max-width: 1023px) {
  .hero__bottom { right: var(--gutter); bottom: 104px; }
  .rot { font-size: calc((100vw - 2 * var(--gutter)) / 4.75); }
  .shead__title { grid-column: 1 / -1; }
  .shead__aside { grid-column: 1 / span 8; }
  .manifesto__text { grid-column: 1 / -1; text-indent: 12%; }
  .manifesto__img--a { grid-column: 1 / span 6; }
  .manifesto__img--b { grid-column: 7 / span 6; margin-bottom: 0; }
  .manifesto__col--a { grid-column: 1 / span 6; }
  .manifesto__col--b { grid-column: 7 / span 6; }

  .scard { min-height: 0; row-gap: 28px; }
  .scard__body { grid-column: 1 / -1; order: 2; }
  .scard__title { margin-bottom: 0; padding-bottom: 0; }
  .scard__media { grid-column: 1 / -1; aspect-ratio: 4 / 3; min-height: 0; }
  .scard__detail { left: auto; right: 16px; bottom: -28px; width: 26%; }

  .works__pin { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
  .works__pin::-webkit-scrollbar { display: none; }
  .wcard { --h: auto; scroll-snap-align: start; }
  .wcard__img { width: 78vw; height: auto; aspect-ratio: 4 / 5 !important; }
  .wcard--more { width: 60vw; height: auto; aspect-ratio: 3 / 4; align-self: stretch; }
  .works__progress { display: none; }

  .process__aside { grid-column: 1 / -1; }
  .process__sticky { position: static; }
  .process__img { width: 100%; max-height: none; aspect-ratio: 16 / 10; }
  .steps { grid-column: 1 / -1; margin-top: 56px; }
  .step { opacity: 1; }
  .step::before { transform: scale(1); }

  .pkg { grid-column: 1 / -1; display: grid; grid-template-columns: 38% 1fr; gap: 10px; }
  .pkg__img { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .pkg__body { padding: 14px 10px; }
  .calc__area { grid-column: 1 / -1; }
  .calc__result { grid-column: 1 / span 7; }
  .calc__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 22px; }

  .cell { grid-column: span 6; }
  .cell--img { grid-column: 1 / -1; grid-row: auto; min-height: 120vw; max-height: 640px; }

  .founder__photo { grid-column: 1 / span 6; }
  .founder__body { grid-column: 1 / -1; }
  .founder__teamcap span { grid-column: 1 / -1; }

  .rev { grid-column: span 6; }
  .rev:last-child { grid-column: 1 / span 6; }

  .contact__body { grid-column: 1 / -1; }
  .contact__img { grid-column: 1 / -1; min-height: 0; aspect-ratio: 4 / 5; max-height: 720px; }

  .seo__inner { grid-column: 1 / -1; }

  .footer__cta .h2, .footer__cta-aside { grid-column: 1 / -1; }
  .footer__col { grid-column: span 6; }
  .footer__bar > :nth-child(1) { grid-column: 1 / -1; }
  .footer__bar > :nth-child(2) { grid-column: 1 / span 6; }
  .footer__bar > :nth-child(3) { grid-column: 7 / span 6; }
}

@media (max-width: 700px) {
  :root { --hdr-h: 56px; }
  .hdr__logo svg { width: 92px; height: 24px; }
  .hero { min-height: 560px; }
  .hero__top { top: calc(var(--hdr-h) + 40px); flex-direction: column; gap: 18px; }
  .hero__intro { font-size: 14px; }
  .hero__stats { flex-direction: row; width: auto; }
  .hero__stats .glass { padding: 12px 14px; border-radius: 14px; }
  .hero__stats b { font-size: 24px; }
  .hero__stats span { font-size: 12px; }
  .hero__bottom { bottom: 92px; }
  .hero__tab .btn { height: 56px; padding-left: 24px; font-size: 15px; }
  .hero__tab .btn__icon { width: 40px; height: 40px; }
  .hero__lines { grid-template-columns: repeat(2, 1fr); }

  .ticker { grid-template-columns: 1fr; gap: 16px; }
  .ticker__label { max-width: none; }

  .manifesto__text { text-indent: 0; }
  .manifesto__img--a, .manifesto__img--b { grid-column: span 6; }
  .manifesto__col--a, .manifesto__col--b { grid-column: 1 / -1; }

  .scard { padding: 16px 16px 26px; }
  .scard__detail { display: none; }

  .pkg { grid-template-columns: 1fr; }
  .pkg__img { aspect-ratio: 16 / 9; min-height: 0; }
  .calc__result { grid-column: 1 / -1; }

  .cell { grid-column: 1 / -1; min-height: 0; gap: 36px; }

  .founder__photo { grid-column: 1 / -1; aspect-ratio: 4 / 5; }

  .rev, .rev:last-child { grid-column: 1 / -1; }

  .form { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }

  .seo__cols { columns: 1; }

  .footer__col { grid-column: span 6; }
  .footer__col:nth-child(3) { grid-column: 1 / -1; }
  .footer__col:nth-child(4) { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; column-gap: 20px; }
  .footer__col:nth-child(4) .footer__h { width: 100%; }
  .footer__bar > :nth-child(2), .footer__bar > :nth-child(3) { grid-column: span 6; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
