:root {
  --bg: #0a0a0a;
  --fg: #f2efe9;
  --muted: #8d877e;
  --line: rgba(242, 239, 233, .14);
  --accent: #ff5b1f;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --gut: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-loading { overflow: hidden; }
body { font-family: var(--sans); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #000; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.serif-up { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.label { color: var(--muted); display: inline-flex; gap: 10px; align-items: center; }
.label::before { content: ''; width: 7px; height: 7px; background: var(--accent); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; }

/* film greni */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

#world { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }
main, .foot { position: relative; z-index: 2; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; cursor: default; }
.loader__c { position: relative; }
.loader__num { font-family: var(--serif); font-size: clamp(7rem, 26vw, 22rem); line-height: .8; color: var(--accent); font-variant-numeric: tabular-nums; }
.loader__t { position: absolute; left: -.2em; top: -2.2em; color: var(--muted); }
.loader__tag { position: absolute; left: 100%; top: 0; margin-left: 18px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.loader__tag i { width: 7px; height: 7px; background: var(--accent); }
.loader__brand { position: absolute; left: var(--gut); bottom: var(--gut); }
.loader__enter { position: absolute; left: 50%; bottom: var(--gut); transform: translateX(-50%); color: var(--accent); opacity: .45; white-space: nowrap; }
.loader.is-skip > * { visibility: hidden; }
.loader__enter.ready { opacity: 1; cursor: pointer; animation: blink 1.4s ease-in-out infinite; }
.loader.ready { cursor: pointer; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- nav & menu ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gut); transition: transform .6s cubic-bezier(.7, 0, .2, 1); }
.nav.is-hidden { transform: translateY(-120%); }
.nav__brand { font-size: 30px; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; align-items: center; gap: 4px; padding: 0 12px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: rgba(10, 10, 10, .4); backdrop-filter: blur(10px); color: var(--muted); }
.lang button { font: inherit; color: inherit; padding: 4px 2px; transition: color .3s; }
.lang button.is-on { color: var(--accent); }
.lang button:hover { color: var(--fg); }
.hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.upwork { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: rgba(10, 10, 10, .45); backdrop-filter: blur(8px); transition: border-color .3s; }
.upwork:hover { border-color: var(--accent); }
.upwork b { color: var(--accent); font-weight: 500; }
.upwork em { font-style: normal; color: var(--muted); }
.nav__menu { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(10, 10, 10, .4); backdrop-filter: blur(10px); font-family: var(--serif); font-size: 18px; }
.nav__menu i { position: relative; width: 22px; height: 8px; }
.nav__menu i::before, .nav__menu i::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s; }
.nav__menu i::before { top: 0; } .nav__menu i::after { bottom: 0; }
.menu-open .nav__menu i::before { transform: translateY(3.25px) rotate(45deg); }
.menu-open .nav__menu i::after { transform: translateY(-3.25px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 35; background: rgba(10, 10, 10, .96); backdrop-filter: blur(16px); display: flex; flex-direction: column; justify-content: center; padding: 90px var(--gut) var(--gut); clip-path: inset(0 0 100% 0); transition: clip-path .8s cubic-bezier(.7, 0, .2, 1); }
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu a { font-family: var(--serif); font-style: italic; font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 1.02; display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--line); transition: color .3s, padding .4s; }
.menu a:hover { color: var(--accent); padding-left: 16px; }
.menu a .mono { color: var(--muted); font-style: normal; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; background: var(--fg); color: #0a0a0a; padding: 6px 18px 6px 6px; border-radius: 6px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; white-space: nowrap; transition: background .3s; }
.btn:hover { background: #fff; }
.btn__ic { width: 34px; height: 34px; border-radius: 4px; background: var(--accent); display: grid; place-items: center; transition: transform .4s cubic-bezier(.7, 0, .2, 1); }
.btn:hover .btn__ic { transform: rotate(-45deg); }
.btn--lg { font-size: 15px; padding: 8px 24px 8px 8px; }
.btn--lg .btn__ic { width: 44px; height: 44px; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; padding: 96px var(--gut) 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.hero__tags { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; padding-top: 12px; }
.hero__tags i { color: var(--accent); font-style: normal; }
.hero__title { font-size: clamp(4.5rem, 15.5vw, 17rem); line-height: .84; text-transform: uppercase; display: flex; flex-direction: column; }
.line--r { text-align: right; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero__intro { max-width: 34ch; color: var(--muted); font-size: 15px; line-height: 1.5; }
.hero__scroll { color: var(--muted); }

/* ---------- work / carousel ---------- */
.work { height: 420vh; position: relative; background: var(--bg); }
.work__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#carousel { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
#carousel:active { cursor: grabbing; }
.work__head { position: absolute; top: 92px; left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.work__head h2 { font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: .9; }
.work__meta { position: absolute; bottom: 28px; left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; pointer-events: none; }
.work__cat { color: var(--accent); display: block; margin-bottom: 6px; }
.work__title { font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: .95; }
.work__count { display: flex; align-items: center; gap: 10px; }
.work__bar { position: relative; width: min(220px, 30vw); height: 1px; background: var(--line); margin-left: 8px; }
.work__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- about ---------- */
.about { padding: 22vh var(--gut) 18vh; }
.about__text { font-size: clamp(2.3rem, 5.4vw, 5.4rem); line-height: 1.02; max-width: 14.5em; margin-top: 28px; }
.about__text .w { display: inline-block; }
.about__text, .about__grid { max-width: min(62vw, 14.5em); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 10vh; align-items: end; max-width: 62%; }
.about__body { font-family: var(--mono); font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 52ch; }
.person { display: flex; align-items: center; gap: 16px; }
.person__img { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--accent), #3a1a0c); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: #000; flex: none; }
.person__img img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-size: 24px; }
.person__role { color: var(--muted); margin-top: 2px; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 2.6vh 0; overflow: hidden; background: var(--bg); }
.marquee__track { display: flex; width: max-content; animation: mq 36s linear infinite; font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: 1; }
.marquee__track span { padding: 0 .35em; white-space: nowrap; }
.marquee__track b { color: var(--accent); font-weight: 400; font-style: normal; font-size: .5em; align-self: center; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- services ---------- */
.services { padding: 18vh var(--gut) 20vh; }
.services__head { margin-bottom: 8vh; }
.services__head h2 { font-size: clamp(3rem, 8vw, 7.5rem); line-height: .9; margin-top: 18px; }
.services__list { margin-left: 46%; }
.svc { border-top: 1px solid var(--line); padding: 5.5vh 0; opacity: .3; transition: opacity .6s; }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc.is-active { opacity: 1; }
.svc__n { color: var(--accent); }
.svc__t { font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: .95; margin: 14px 0 16px; }
.svc__d { color: var(--muted); line-height: 1.55; max-width: 46ch; }
.svc__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.svc__tags li { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; }

/* ---------- reel ---------- */
.reel { height: 300vh; position: relative; background: var(--bg); }
.reel__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.reel__frame { position: absolute; inset: 0; clip-path: inset(30% 33% 30% 33% round 16px); will-change: clip-path; }
.reel__frame video, .reel__frame img { width: 100%; height: 100%; object-fit: cover; }
.reel__ph { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 18px; color: var(--muted);
  background: radial-gradient(60% 60% at 30% 30%, rgba(255, 91, 31, .55), transparent 70%), radial-gradient(50% 60% at 80% 80%, rgba(90, 60, 255, .35), transparent 70%), #141414; }
.reel__play { width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); display: grid; place-items: center; color: #fff; font-size: 22px; }
.reel__title { position: relative; z-index: 2; font-size: clamp(4.5rem, 15vw, 14rem); line-height: 1; mix-blend-mode: difference; pointer-events: none; }

/* ---------- process ---------- */
.process { height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; background: var(--bg); }
.process__track { display: flex; gap: 22px; padding: 0 var(--gut); width: max-content; align-items: stretch; }
.process__intro { width: min(520px, 80vw); display: flex; flex-direction: column; justify-content: space-between; padding-right: 4vw; }
.process__intro h2 { font-size: clamp(3.2rem, 7vw, 7rem); line-height: .9; }
.process__intro p { color: var(--muted); max-width: 30ch; line-height: 1.5; }
.step { width: min(400px, 78vw); height: min(480px, 64vh); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, #151515, #0d0d0d); }
.step__n { font-family: var(--serif); font-size: clamp(5rem, 9vw, 8rem); line-height: .8; color: var(--accent); }
.step h3 { font-size: 2.4rem; line-height: 1; margin-bottom: 12px; }
.step p { color: var(--muted); line-height: 1.55; }

/* ---------- stats ---------- */
.stats { padding: 18vh var(--gut); background: var(--bg); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { border-top: 1px solid var(--line); padding-top: 20px; }
.stat__v { display: block; font-family: var(--serif); font-size: clamp(4rem, 8vw, 8rem); line-height: .9; font-variant-numeric: tabular-nums; }
.stat .mono { color: var(--muted); }

/* ---------- cta ---------- */
.cta { min-height: 130vh; padding: 16vh var(--gut); display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta__t { font-size: clamp(3.4rem, 11vw, 11rem); line-height: .9; }
.cta__mid { flex: 1; min-height: 34vh; }
.cta__phone { margin-top: 22px; color: var(--fg); letter-spacing: .08em; transition: color .3s; }
.cta__phone em { font-style: normal; color: var(--muted); margin-right: 8px; }
.cta__phone:hover { color: var(--accent); }
.cta__text {color: var(--muted); max-width: 40ch; line-height: 1.55; margin: 28px 0 32px; }

/* ---------- footer ---------- */
.foot { padding: 0 var(--gut) 24px; background: var(--bg); border-top: 1px solid var(--line); }
.foot__big { font-size: 25vw; line-height: .8; text-transform: uppercase; overflow: hidden; display: flex; justify-content: center; padding-top: 4vh; }
.foot__big span { display: inline-block; }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; color: var(--muted); }
.foot__social { display: flex; gap: 18px; }
.foot__row a:hover { color: var(--fg); }

/* ---------- cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 200; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--fg); mix-blend-mode: difference; pointer-events: none; display: grid; place-items: center; opacity: 0; transition: width .35s, height .35s, margin .35s, background .35s, opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); mix-blend-mode: normal; }
.cursor.is-label span { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .hero__row { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
  .hero__title { font-size: 19vw; }
  .about__grid { grid-template-columns: 1fr; max-width: none; }
  .about__text { max-width: none; }
  .services__list { margin-left: 0; }
  .services__head { margin-bottom: 28vh; }
  .svc { background: rgba(10, 10, 10, .55); backdrop-filter: blur(6px); }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .work__head { top: 80px; }
  .work__count .work__bar { display: none; }
  .loader__tag { left: 0; top: 100%; margin: 18px 0 0; }
  .nav__brand { font-size: 26px; }
  .nav__right { gap: 8px; }
  .lang { padding: 0 10px; }
  .nav__menu span { display: none; }
  .nav__menu { height: 42px; }
  .loader__brand { left: 50%; transform: translateX(-50%); bottom: calc(var(--gut) + 30px); color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track, body::after { animation: none; }
}
