/* ====================================================================
   liteshop2 — branding agency clone | HEADER + HERO
   Rebuilt from measured tokens of the live site (liteshop2.taptop.site)
   ==================================================================== */

/* --- real self-hosted fonts (downloaded from the site) --- */
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../fonts/PPNeueMontreal-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBMPlexMono Medium';
  src: url('../fonts/IBMPlexMono-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
/* fallback for © (U+00A9) — custom fonts lack this glyph, use system serif */
@font-face {
  font-family: 'PP Neue Montreal';
  src: local('Arial'), local('Helvetica Neue'), local('sans-serif');
  font-weight: 700; font-style: normal;
  unicode-range: U+00A9;
}
@font-face {
  font-family: 'IBMPlexMono Medium';
  src: local('Arial'), local('Helvetica Neue'), local('sans-serif');
  font-weight: 500; font-style: normal;
  unicode-range: U+00A9;
}

:root {
  --bg: #FFFFFF;
  --ink: #000000;
  --bg-dark: #0C0C0C;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.5);
  --muted-ink: rgba(0, 0, 0, 0.5);

  --acid: #E0FF00;
  --lime: #EEFDB4;
  --red: #DE4137;
  --blue: #3766DE;
  --indigo: #4654AF;

  --font-grotesk: 'PP Neue Montreal', 'General Sans', 'Inter', sans-serif;
  --font-mono: 'IBMPlexMono Medium', 'IBM Plex Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --pad-x: 2.2rem;
}

/* Fluid rem like the original (1rem ≈ 0.733vw on the live site) */
html { font-size: clamp(8px, 0.7333vw, 15px); -webkit-text-size-adjust: 100%; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-grotesk);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-overflow-hidden { overflow: hidden; height: 100vh; }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.06em;
  line-height: 1;
  text-transform: uppercase;
}

/* ====================================================================
   PRELOADER
   ==================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  will-change: transform;
}
.preloader__center { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.preloader__lottie {
  position: relative; width: 9rem; height: 6rem;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.preloader__lottie svg path { fill: currentColor; }
.preloader__lottie.has-lottie .preloader__mark { display: none; }
.preloader__mark { width: 100%; height: auto; animation: markPulse 1.4s ease-in-out infinite; }
@keyframes markPulse {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-0.4rem); }
}
/* the live site centers id + counter together at the very bottom */
.preloader__bottom {
  position: absolute; left: 0; right: 0; bottom: 5.5rem;
  display: flex; justify-content: center; align-items: baseline; gap: 1.4rem;
}
.preloader__id { color: var(--muted-ink); }
.preloader__counter { color: var(--ink); }

/* ====================================================================
   CUSTOM CURSOR
   ==================================================================== */
.custom-cursor-text {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  will-change: transform; display: flex; align-items: center; height: 3rem;
}
.cursor-bg {
  position: absolute; inset: 0; width: 0;
  background: var(--cursor-color, #000); border-radius: 2rem; overflow: hidden;
}
.cursor-text-wr { position: relative; width: 0; overflow: hidden; display: flex; align-items: center; height: 100%; }
.cursor-text {
  display: block; white-space: nowrap; padding: 0 1.3rem;
  font-family: var(--font-mono); font-weight: 500; font-size: 1.2rem;
  letter-spacing: -0.04em; text-transform: uppercase;
  color: var(--cursor-text-color, #fff); opacity: 0;
}
@media (max-width: 991px) { .custom-cursor-text { display: none; } }

/* ====================================================================
   HEADER — two-row 12-col grid (matches live column anchors)
   ==================================================================== */
.top {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  row-gap: 5.6rem;
  column-gap: 1.2rem;
  padding: 3rem var(--pad-x) 0;
  pointer-events: none;
  will-change: transform;
}
.top > * { pointer-events: auto; }

/* frosted backdrop band behind the header (soft blur, fading out at the bottom) */
.top::before {
  content: ''; position: absolute; inset: -3rem 0 -2.4rem; z-index: -1;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  background: linear-gradient(to bottom, rgba(255,255,255,0.16), rgba(255,255,255,0));
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  pointer-events: none;
}

/* targeting frame (corners) */
.frm { position: relative; }
.frm-corner {
  position: absolute; width: 0.7rem; height: 0.7rem;
  border: 0.12rem solid var(--ink); pointer-events: none;
}
.frm-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frm-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.frm-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.frm-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* logo */
.top__logo { grid-column: 1 / span 2; grid-row: 1; color: var(--ink); display: inline-flex; align-self: start; }
.top__logo .logo { width: 4.6rem; height: auto; }

/* radio — closed: 4.6rem frame + eq bars. Open: framed mini-player.
   The grid item stays 4.6rem; .radio__box is an absolute overlay that GSAP
   resizes, so opening never shifts the nav or overlaps the row below. */
.top__radio {
  grid-column: 4 / span 2; grid-row: 1; justify-self: start; align-self: start;
  position: relative;
  width: 4.6rem; height: 4.6rem;
  cursor: pointer; color: var(--ink);
}
.radio__box {
  position: absolute; top: 0; left: 0;
  width: 4.6rem; height: 4.6rem;        /* GSAP animates WIDTH only — height stays fixed */
  background: transparent;              /* no white block over the fullscreen video */
}

/* animated equalizer bars (used closed-centered and in the open title row) */
.eq-bars { display: inline-flex; align-items: center; gap: 0.3rem; height: 1.4rem; }
.eq-bars i { display: block; width: 0.2rem; height: 100%; background: currentColor; transform-origin: center; transform: scaleY(0.3); animation: eqBar 0.9s ease-in-out infinite; }
.eq-bars i:nth-child(1){animation-delay:-0.1s}.eq-bars i:nth-child(2){animation-delay:-0.5s}
.eq-bars i:nth-child(3){animation-delay:-0.25s}.eq-bars i:nth-child(4){animation-delay:-0.7s}
.eq-bars i:nth-child(5){animation-delay:-0.4s}
@keyframes eqBar { 0%,100%{transform:scaleY(0.25)} 50%{transform:scaleY(1)} }

/* closed icon */
.radio__icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: opacity 0.2s var(--ease-out); }
.top__radio.is-open .radio__icon { opacity: 0; }

/* open player */
.radio__player {                     /* compact: fits the fixed 4.6rem height */
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: 0.5rem; padding: 0 1.2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-out) 0.14s;
}
.top__radio.is-open .radio__player { opacity: 1; pointer-events: auto; }
.radio__top { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.radio__name { font-size: 1.2rem; color: var(--ink); white-space: nowrap; overflow: hidden; max-width: 13rem; display: block; }
.radio__ticker { display: inline-block; white-space: nowrap; }
@keyframes radio-ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.radio__name.marquee .radio__ticker { animation: radio-ticker var(--ticker-dur, 10s) linear infinite; }
.radio__eq { height: 1.1rem; }
.radio__controls { display: flex; align-items: center; gap: 0.7rem; }
.radio__play {                       /* SQUARE play/pause */
  flex: 0 0 auto; width: 1.9rem; height: 1.9rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white); border: none; border-radius: 0; cursor: pointer;
}
.radio__play .ic-pause { display: none; }
.radio__play.is-playing .ic-play { display: none; }
.radio__play.is-playing .ic-pause { display: block; }
.radio__time { flex: 0 0 auto; font-size: 1.1rem; color: var(--muted-ink); }
.radio__bar { position: relative; flex: 1 1 auto; height: 0.5px; background: rgba(0,0,0,0.15); cursor: pointer; padding: 0.5rem 0; margin: -0.5rem 0; box-sizing: content-box; }
.radio__prog { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: var(--ink); }

/* nav (inline, comma separated) — smooth left→right underline on hover */
.top__nav {
  grid-column: 7 / span 4; grid-row: 1; align-self: start;
  display: flex; align-items: baseline; flex-wrap: wrap;
}
.top__nav .sep { margin: 0 0.5rem 0 0; opacity: 0.55; }

.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -0.25em;
  width: 100%; height: 0.1em; background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); }

/* share button (keeps its frame; underline targets the label only) */
.top__share {
  grid-column: 11 / span 2; grid-row: 1; justify-self: end; align-self: start;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.1rem; white-space: nowrap;
}
.top__share .nav-link__label { font-size: 1.35rem; }
.top__share.nav-link::after { content: none; }   /* underline sits on the inner label instead */
.nav-link__label { position: relative; }
.nav-link__label::after {
  content: ''; position: absolute; left: 0; bottom: -0.2em;
  width: 100%; height: 0.1em; background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.top__share:hover .nav-link__label::after { transform: scaleX(1); }

/* language switch — both the same colour; underline animates in on hover.
   lives inside .hero__rise (pointer-events:none) so re-enable hits here. */
.lang { position: relative; color: var(--ink); pointer-events: auto; }
.lang::after {
  content: ''; position: absolute; left: 0; bottom: -0.25em;
  width: 100%; height: 0.1em; background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.lang:hover::after { transform: scaleX(1); }

/* ====================================================================
   SUBROW — info line (clock / lang / descriptions), lives in the rise
   layer so it travels up on scroll like the wordmark.
   ==================================================================== */
.hero__subrow {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 11.5rem var(--pad-x) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1.2rem;
  align-items: start;
}
.subrow__clock { grid-column: 1 / span 3; }
.clock__tz { opacity: 0.45; }
.subrow__lang { grid-column: 4 / span 2; display: inline-flex; align-items: baseline; color: var(--muted-ink); }
.subrow__lang .sep { margin: 0 0.45rem 0 0; opacity: 0.55; }
.subrow__desc { line-height: 1.1; color: var(--ink); }
.subrow__desc.d1 { grid-column: 7 / span 2; }
.subrow__desc.d2 { grid-column: 9 / span 2; }
.subrow__desc.d3 { grid-column: 11 / span 2; }

/* ====================================================================
   BURGER (mobile)
   ==================================================================== */
.burger {
  display: none; position: fixed; top: 2rem; right: var(--pad-x); z-index: 1100;
  width: 4.6rem; height: 4.6rem; border: none; border-radius: 3rem;
  background: var(--ink); color: var(--white); cursor: pointer;
  align-items: center; justify-content: center; overflow: hidden; will-change: width, height;
}
.burger__icon {
  position: absolute; top: 0; right: 0; width: 4.6rem; height: 4.6rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
}
.burger__icon span { display: block; width: 1.8rem; height: 0.15rem; background: var(--white); transition: transform 0.4s var(--ease-out); }
.burger.is-open .burger__icon span:nth-child(1) { transform: translateY(0.32rem) rotate(45deg); }
.burger.is-open .burger__icon span:nth-child(2) { transform: translateY(-0.32rem) rotate(-45deg); }
.burger__menu {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 1.2rem; padding: 6.2rem 2.4rem 2.4rem; opacity: 0; pointer-events: none;
}
.burger__link {
  font-family: var(--font-mono); font-weight: 500; font-size: 1.6rem; line-height: 1;
  text-transform: uppercase; letter-spacing: -0.06em; color: var(--white);
  opacity: 0; transform: translateY(0.6rem); transition: color 0.25s var(--ease-out);
}
.burger__link:hover { color: var(--acid); }
.burger.is-open .burger__menu { pointer-events: auto; }

/* ====================================================================
   HERO — giant wordmark + growing showreel
   ==================================================================== */
.hero { position: relative; height: 230vh; background: var(--bg); }
.hero__sticky { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; }

/* rising layer — travels up and out on scroll while the video opens behind it */
.hero__rise {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; will-change: transform;
}

/* wordmark — PP Neue Montreal Bold UPPERCASE, horizontally compressed
   (the live logo is the font with scaleX ~0.42 applied → tall, condensed). */
.hero__wordmark {
  position: absolute;
  right: var(--pad-x);
  bottom: 1.4rem;
  z-index: 2;
  margin: 0;
  display: flex;
  align-items: flex-end;
  font-family: var(--font-grotesk);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 26vw;
  line-height: 0.72;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
  transform: scaleX(0.40);
  transform-origin: right bottom;
}
/* custom ring-© to match the site's circled-C (the glyph alone is too small) */
.hero__wordmark .wm__c {
  display: inline-flex; align-items: center; justify-content: center;
  width: 0.74em; height: 0.74em; margin-left: 0.04em;
  border: 0.072em solid currentColor; border-radius: 50%;
  box-sizing: border-box; vertical-align: baseline; position: relative; top: -0.045em;
}
.hero__wordmark .wm__c span {
  font-size: 0.46em; line-height: 1; letter-spacing: 0; transform: translateY(-0.02em);
}

/* showreel video (small bottom-left -> fullscreen) */
.hero__video-wr {
  position: absolute;
  left: var(--pad-x);
  bottom: var(--pad-x);
  width: 22rem;
  height: 15rem;
  z-index: 1;                 /* behind the rising content layer (z-index 2) */
  overflow: hidden;
  will-change: width, height, left, bottom;
  background: #0c0c0c;
}
.hero__video-inner { position: absolute; inset: 0; background: radial-gradient(120% 120% at 30% 20%, #2a2a2a 0%, #0c0c0c 60%, #000 100%); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video-tag {
  position: absolute; left: 1.2rem; bottom: 1rem; z-index: 2;
  font-size: 1.1rem; letter-spacing: -0.04em; color: var(--muted); mix-blend-mode: difference;
}

/* reveal */
[data-reveal] { opacity: 0; }

/* ====================================================================
   PROJECTS (block 2) — asymmetric grid + parallax images
   ==================================================================== */
.projects { position: relative; background: var(--bg); padding: 12rem var(--pad-x) 4rem; }

.projects__top {
  position: relative;
  /* scaleX condenses the title visually but it still reserves full width in
     layout; clip that phantom width so it can't push the page sideways */
  overflow: hidden;
  margin-bottom: 9rem;
  min-height: 9vw;
}
.projects__title {
  margin: 0;
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 13.2vw; line-height: 0.8; letter-spacing: -0.08em;
  white-space: nowrap;
  transform: scaleX(0.62); transform-origin: left bottom;
}
/* number opposite the title — big condensed grotesk, grey (matches the heading).
   pinned top-right so the title's reserved width can't shove it off-screen */
.projects__num {
  position: absolute; right: 0; top: 0; color: var(--muted-ink);
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 7.2vw; line-height: 0.8; letter-spacing: -0.04em;
  white-space: nowrap;
  transform: scaleX(0.62); transform-origin: right top;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2.2rem;
  row-gap: 7rem;
}

/* card spans (asymmetric, alternating) */
.p-blink   { grid-column: 1 / span 5; }
.p-hrum    { grid-column: 6 / span 7; }
.p-volcano { grid-column: 1 / span 7; }
.p-rtoys   { grid-column: 8 / span 5; }
.p-morf    { grid-column: 1 / span 7; }
.p-zzpop   { grid-column: 8 / span 5; }

/* image frame */
.projects__img-wr { display: block; }
.proj__img {
  display: block; position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 16 / 10; background: #0c0c0c;
}
.p-blink .proj__img { aspect-ratio: 16 / 12; }
.p-hrum .proj__img  { aspect-ratio: 16 / 9; }
.p-volcano .proj__img, .p-morf .proj__img { aspect-ratio: 16 / 9; }
.p-rtoys .proj__img { aspect-ratio: 16 / 12; }
.p-zzpop .proj__img { aspect-ratio: 16 / 12; }

/* parallax inner — taller than the frame so it can travel up on scroll */
.proj__inner {
  position: absolute; left: 0; top: -11%;
  width: 100%; height: 122%;
  display: flex; align-items: center; justify-content: center;
  background: var(--g, #0c0c0c); will-change: transform;
}
.proj__inner b {
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 3.4vw; letter-spacing: -0.02em; color: rgba(255,255,255,0.92);
}
.projects__img-wr:hover .proj__inner { transform: scale(1.03); }
.proj__inner { transition: transform 0.6s var(--ease-out); }

/* caption */
.proj__cap { display: flex; align-items: baseline; gap: 1.2rem; margin-top: 1.6rem; }
.proj__name { font-size: 1.6rem; color: var(--ink); }
.proj__tag { font-size: 1.35rem; color: var(--muted-ink); text-transform: lowercase; letter-spacing: 0; }

/* hover peek — a small "what's this project about" thumbnail that pops in at
   the top-left of the card on hover (like the live site's product chips). */
.proj { position: relative; }
.proj__peek {
  position: absolute; top: -0.4rem; left: -1.6rem; z-index: 5;
  width: 16rem; height: 22rem;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  pointer-events: none;
  opacity: 0; transform: translateY(1.4rem) rotate(-9deg) scale(0.85);
  transform-origin: bottom left;
  transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out);
}
.proj__peek svg { width: 42%; height: 42%; }
.proj__peek-ico { width: 11rem; height: 11rem; object-fit: contain; margin-bottom: 12rem; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.55)); }
.proj__peek-ico[src*="quickcart"] { width: 8rem; height: 8rem; }
.proj__peek-ico[src*="lipymo"] { width: 18rem; height: 18rem; }
.proj__peek-ico[src*="jolitone"] { width: 18rem; height: 18rem; }
.proj__peek-ico[src*="tnu"] { width: 18rem; height: 18rem; }
.proj:hover .proj__peek { opacity: 1; transform: translateY(0) rotate(-7deg) scale(1); }
@media (max-width: 991px) { .proj__peek { display: none; } }

/* ====================================================================
   PROJECTS — big closing "всі проєкти (50)" link (78px h1 on the live site)
   ==================================================================== */
.projects__all {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  margin: 4rem 0 0; padding-top: 0;
  width: 100%;
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  /* reference: PP Neue Montreal Bold, tight -0.1em tracking, no distortion */
  font-size: 8.6vw; line-height: 1; letter-spacing: -0.1em;
  color: var(--ink); text-decoration: none;
}
.projects__all span:first-child { display: inline-block; }
/* (50) — big, on the baseline like the reference; kept grey as the accent */
.projects__all-num {
  font-size: 0.85em; margin-left: 0.05em;
  color: var(--muted-ink); font-weight: 700; letter-spacing: -0.08em;
}

/* ====================================================================
   FOOTER (block 3) — FIXED REVEAL footer (position:fixed, 100vh, overflow
   hidden). The page (main, z-index 1, white bg) scrolls up and over it,
   uncovering it from the bottom — the "виїжджає знизу" effect. Measured 1536px.
   ==================================================================== */
main { position: relative; z-index: 1; background: var(--bg); margin-bottom: 100vh; }

.footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 0;
  height: 100vh; overflow: hidden;
  background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column;
  padding: 4rem var(--pad-x) 2.6rem;
}

/* top row — featured project (left, cols 1-3) + 3 link columns (cols 5 / 8 / 11) */
.footer__top {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.2rem;
  align-items: start;
}
.footer__featured { grid-column: 1 / span 3; display: block; }
.footer__featured-img {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 352 / 207; overflow: hidden;
  background: var(--g, #0c0c0c); transition: transform 0.6s var(--ease-out);
}
.footer__featured:hover .footer__featured-img { transform: scale(1.03); }
.footer__featured-img b {
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 2.2rem; letter-spacing: -0.02em; color: #0c0c0c;
}

.footer__col { display: flex; flex-direction: column; align-items: flex-start; }
.fc-nav      { grid-column: 5 / span 2; }
.fc-online   { grid-column: 8 / span 2; }
.fc-contacts { grid-column: 11 / span 2; }

/* gray bracketed title (1.6rem) + stack of BLACK links, SAME 1.6rem size */
.footer__label { color: var(--muted-ink); font-size: 1.6rem; line-height: 1; margin-bottom: 4rem; }
.footer__links { display: flex; flex-direction: column; gap: 1.2rem; }
.footer__link { color: var(--ink); font-size: 1.6rem; line-height: 1; }
.footer__addr { color: var(--ink); }
a.footer__link { transition: opacity 0.25s var(--ease-out); }

/* giant full-bleed wordmark — pushed to the bottom, clipped by the footer edge */
.footer__wordmark-wr {
  width: 100%; margin-top: auto; pointer-events: none; user-select: none;
}
.footer__wordmark { display: block; width: 100%; height: 50vh; }
.footer__wordmark text {
  font-family: var(--font-grotesk); font-weight: 700;
  font-size: 210px;                 /* viewBox units; stretched by preserveAspectRatio:none */
  fill: var(--ink); letter-spacing: -2px;
}

/* legal row — policy (left, gray) · credits (center, black) · copyright (right, gray) */
.footer__legal {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem;
  margin-top: 1.6rem; font-size: 1.6rem;
}
.footer__policy { color: var(--muted-ink); }
.footer__credits { color: var(--ink); flex: 1 1 auto; text-align: center; }
.footer__copy { color: var(--muted-ink); }
.footer__legal .nav-link::after { background: currentColor; }

/* dim overlay — JS scrubs its opacity 0.5 -> 0 across the reveal (dark while
   the footer appears, lightening to its normal white as it fully opens) */
.footer__dim {
  position: absolute; inset: 0; z-index: 10;
  background: #000; opacity: 0; pointer-events: none;
}

/* ====================================================================
   RESPONSIVE — TABLET <= 991px
   ==================================================================== */
@media (max-width: 991px) {
  html { font-size: clamp(9px, 1.4vw, 13px); }
  :root { --pad-x: 2rem; }

  .top { grid-template-columns: repeat(6, 1fr); }
  .top__logo { grid-column: 1 / span 2; }
  .top__radio, .top__nav, .top__share { display: none; }
  .burger { display: flex; }

  /* subrow (clock / lang / descriptions) lives in the hero rise */
  .hero__subrow { grid-template-columns: repeat(6, 1fr); top: 8rem; }
  .subrow__clock { grid-column: 1 / span 3; }
  .subrow__lang { grid-column: 5 / span 2; justify-self: end; }
  .subrow__desc.d1 { grid-column: 1 / span 3; grid-row: 2; }
  .subrow__desc.d2 { grid-column: 1 / span 3; grid-row: 3; }
  .subrow__desc.d3 { grid-column: 4 / span 3; grid-row: 3; }

  .hero__wordmark { font-size: 26vw; }
  .hero__video-wr { width: 17.5rem; height: 12rem; }

  /* projects: stack to one column */
  .projects { padding-top: 9rem; }
  .projects__title { font-size: 15vw; transform: scaleX(0.7); }
  .projects__grid { grid-template-columns: 1fr; row-gap: 6rem; }
  .proj { grid-column: 1 / -1 !important; }
  .proj__inner b { font-size: 7vw; }

  /* projects closing link */
  .projects__all { font-size: 11vw; }

  /* footer becomes a normal (non-fixed) stacked block on tablet/mobile */
  main { margin-bottom: 0; }
  .footer { position: static; height: auto; padding: 7rem var(--pad-x) 3rem; }
  .footer__top { grid-template-columns: repeat(6, 1fr); row-gap: 4rem; }
  .footer__featured { grid-column: 1 / span 4; }
  .fc-nav      { grid-column: 1 / span 2; }
  .fc-online   { grid-column: 3 / span 2; }
  .fc-contacts { grid-column: 5 / span 2; }
  .footer__label { margin-bottom: 2.2rem; }
  .footer__wordmark-wr { margin-top: 6rem; }
  .footer__wordmark { height: 26vw; }
  .footer__legal { margin-top: 4rem; font-size: 1.6rem; }
}

/* ====================================================================
   RESPONSIVE — MOBILE <= 479px
   ==================================================================== */
@media (max-width: 479px) {
  html { font-size: clamp(10px, 3vw, 15px); }
  .hero { height: 200vh; }

  .hero__subrow { top: 7rem; }
  .subrow__clock { grid-column: 1 / span 4; }
  .subrow__desc.d1, .subrow__desc.d2 { grid-column: 1 / span 6; }
  .subrow__desc.d3 { grid-column: 1 / span 6; grid-row: 4; }

  .hero__wordmark { font-size: 33vw; bottom: 1rem; }
  .hero__video-wr { width: 15.5rem; height: 10.6rem; }

  .projects__title { font-size: 19vw; }
  .proj__inner b { font-size: 9vw; }

  .projects__all { font-size: 14vw; }
  .footer__top { grid-template-columns: 1fr 1fr; row-gap: 3.4rem; }
  .footer__featured { grid-column: 1 / -1; }
  .fc-nav { grid-column: 1; } .fc-online { grid-column: 2; } .fc-contacts { grid-column: 1 / -1; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .footer__credits { text-align: left; }
  .footer__wordmark { height: 32vw; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__mark { animation: none; }
  .eq-bars i { animation: none; }
  .pcover__chip { animation: none; }
}

/* ====================================================================
   SERVICES (block 3) — 2×2 grid of framed service cards
   ==================================================================== */
.services {
  position: relative; background: var(--bg);
  padding: 0 var(--pad-x) 14rem;
  border-top: 0.1rem solid rgba(0,0,0,0.12);
}

.services__top {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 7rem;
}
.services__title {
  margin: 0;
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 8.6vw; line-height: 1; letter-spacing: -0.1em;
  color: var(--ink);
}
.services__sub { color: var(--muted-ink); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.svc {
  position: relative;
  display: flex; flex-direction: column;
  padding: 3.6rem 3.2rem 3.2rem;
  border: 0.1rem solid rgba(0,0,0,0.12);
  margin: -0.05rem;           /* collapse shared borders */
  color: var(--ink); text-decoration: none;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
  overflow: hidden;
  min-height: 32rem;
}
/* frm corners inherit .frm base; recolour on hover */
.svc .frm-corner { border-color: var(--ink); transition: border-color 0.35s var(--ease-out); }
.svc:hover { background: var(--ink); color: var(--white); }
.svc:hover .frm-corner { border-color: var(--white); }

.svc__num {
  font-size: 1.2rem; color: var(--muted-ink);
  transition: color 0.35s var(--ease-out);
  margin-bottom: 4rem;
}
.svc:hover .svc__num { color: rgba(255,255,255,0.45); }

.svc__name {
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 3.6rem; line-height: 0.9; letter-spacing: -0.04em;
  margin-bottom: 2.4rem;
}

.svc__desc {
  font-size: 1.35rem; line-height: 1.5; letter-spacing: -0.02em;
  color: var(--muted-ink); text-transform: lowercase;
  flex: 1;
  transition: color 0.35s var(--ease-out);
}
.svc:hover .svc__desc { color: rgba(255,255,255,0.55); }

.svc__cta {
  margin-top: 3.2rem; font-size: 1.4rem; align-self: flex-start;
  transition: color 0.35s var(--ease-out);
}
.svc:hover .svc__cta { color: var(--acid); }
/* underline only on the cta text */
.svc__cta::after {
  content: ''; position: absolute; left: 0; bottom: -0.2em;
  width: 100%; height: 0.1em; background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}

@media (max-width: 767px) {
  .services { padding: 9rem var(--pad-x) 9rem; }
  .services__title { font-size: 12vw; }
  .services__grid { grid-template-columns: 1fr; }
  .svc { min-height: auto; padding: 2.8rem 2.4rem; }
  .svc__name { font-size: 2.8rem; }
}
@media (max-width: 479px) {
  .services__title { font-size: 15vw; }
  .services__top { flex-direction: column; gap: 1rem; }
}

/* ====================================================================
   PROJECTS PAGE (/projects) — cover + filter toolbar + list/grid views
   Rebuilt from the live site: big "ПРОЄКТИ" cover with scattered floating
   thumbnails, a category + view toolbar, a list (default) and a grid view.
   ==================================================================== */
.projects-page { position: relative; z-index: 1; background: var(--bg); padding: 8rem var(--pad-x) 0; margin-bottom: 100vh; }

/* --- cover --- */
.pcover {
  position: relative; height: 65vh; min-height: 36rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pcover__title {
  position: relative; z-index: 2; margin: 0;
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 23vw; line-height: 0.8; letter-spacing: -0.07em;
  white-space: nowrap; color: var(--ink);
  transform: scaleX(0.62); transform-origin: center; pointer-events: none; user-select: none;
}
/* scattered floating project chips around the title */
.pcover__chip {
  position: absolute; z-index: 1; width: 11.4rem; height: 8.8rem;
  border-radius: 0.8rem; overflow: hidden;
  background: var(--g, #0c0c0c);
  display: flex; align-items: flex-end; padding: 0.9rem;
  font-family: var(--font-mono); font-size: 1.2rem; line-height: 1;
  color: #fff; text-transform: lowercase; letter-spacing: -0.01em;
  transform: rotate(var(--r, 0deg));
  animation: pfloat var(--dur, 7s) ease-in-out var(--del, 0s) infinite;
}
.pcover__chip.is-dark { color: #0c0c0c; }
@keyframes pfloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-1.6rem) rotate(var(--r, 0deg)); }
}

/* --- filter / view toolbar --- */
.pfilter {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 2.4rem 0 2rem;
  font-family: var(--font-mono); font-size: 1.6rem; text-transform: uppercase;
  letter-spacing: -0.02em;
}
.pfilter__group { display: inline-flex; align-items: baseline; white-space: nowrap; }
.pf-link { position: relative; color: var(--ink); cursor: pointer; text-decoration: none; }
.pf-sep { color: var(--ink); opacity: 0.5; margin: 0 0.55rem 0 0.1rem; }
.pf-link::after {
  content: ''; position: absolute; left: 0; bottom: -0.28em; width: 100%; height: 0.1em;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.pf-link:hover::after, .pf-link.is-active::after { transform: scaleX(1); }
.pf-count { font-variant-numeric: tabular-nums; opacity: 0.45; font-size: 0.8em; margin-left: 0.3em; }

/* --- view containers --- */
.pview[hidden] { display: none; }

/* --- list view --- */
.plist__row {
  display: grid; grid-template-columns: minmax(0,1.1fr) 1fr 0.8fr auto;
  align-items: center; gap: 2rem;
  padding: 2.1rem 0; border-top: 0.1rem solid rgba(0,0,0,0.18);
  font-family: var(--font-mono); font-size: 1.6rem; text-transform: uppercase;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
  transition: opacity 0.3s var(--ease-out);
}
.plist__row:last-child { border-bottom: 0.1rem solid rgba(0,0,0,0.18); }
.plist__name { position: relative; justify-self: start; }
.plist__name::after {
  content: ''; position: absolute; left: 0; bottom: -0.2em; width: 100%; height: 0.1em;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.plist__name:hover::after { transform: scaleX(1); }
.plist__cat, .plist__year { color: var(--ink); }
.plist__go { justify-self: end; display: inline-flex; align-items: center; gap: 0.6rem; color: var(--muted-ink); transition: color 0.3s var(--ease-out); }
.plist__go:hover { color: var(--ink); }
.plist__go svg { width: 1.1em; height: 1.1em; }
/* the "view project" link only underlines on hover — it shows no preview image */
.plist__go > span:first-child { position: relative; }
.plist__go > span:first-child::after {
  content: ''; position: absolute; left: 0; bottom: -0.2em; width: 100%; height: 0.1em;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.plist__go:hover > span:first-child::after { transform: scaleX(1); }

/* --- grid view — asymmetric 12-col layout --- */
.pgrid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: 2.2rem; row-gap: 7rem; align-items: start;
}
.pcard { position: relative; }
.pcard:nth-child(6n+1) { grid-column: 1 / span 6; }
.pcard:nth-child(6n+2) { grid-column: 8 / span 5; margin-top: 9rem; }
.pcard:nth-child(6n+3) { grid-column: 2 / span 8; }
.pcard:nth-child(6n+4) { grid-column: 1 / span 5; }
.pcard:nth-child(6n+5) { grid-column: 7 / span 6; margin-top: 6rem; }
.pcard:nth-child(6n+6) { grid-column: 4 / span 7; }
.pcard__img {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 10;
  overflow: hidden; border-radius: 0.4rem;
}
.pcard__inner {
  position: absolute; inset: -11% 0; height: 122%;
  display: flex; align-items: center; justify-content: center;
  background: var(--g, #0c0c0c);
}
.pcard__inner b {
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 3.6vw; letter-spacing: -0.04em; color: #fff;
}
.pcard__inner.is-dark b { color: #0c0c0c; }
.pcard__cap { display: none; }
.pcard__name { font-family: var(--font-mono); font-size: 1.6rem; color: var(--ink); text-transform: uppercase; }
.pcard__tag { font-family: var(--font-mono); font-size: 1.35rem; color: var(--muted-ink); }

/* --- web-dev shot cards --- */
.pcard__inner--shot { align-items: flex-end; justify-content: flex-start; padding: 1.6rem; }
.pcard__inner--shot b { display: none; }
.pcard__icons {
  display: flex; gap: 0.8rem; align-items: center;
  position: absolute; bottom: 1.6rem; left: 1.6rem; z-index: 2;
}
.pcard__ico {
  width: 7rem; height: 7rem;
  object-fit: contain; background: transparent;
  flex-shrink: 0;
}
.pcard__ico--outline {
  display: none;
}
.pcard__inprogress-badge {
  position: absolute; top: 1.4rem; right: 1.4rem;
  font-family: var(--font-mono); font-size: 1.1rem; text-transform: uppercase;
  letter-spacing: .08em; color: #fff;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3); border-radius: 2rem;
  padding: 0.3rem 1rem;
}
/* list view: dev icon + badge */
.plist__ico {
  display: inline-block; width: 3rem; height: 3rem;
  object-fit: contain; vertical-align: middle; margin-right: 0.8rem;
  background: transparent;
}
.plist__badge {
  font-family: var(--font-mono); font-size: 1rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted-ink);
  border: 1px solid currentColor; border-radius: 2rem;
  padding: 0.1rem 0.7rem; margin-left: 0.8rem; vertical-align: middle;
}
.plist__row--inprogress .plist__name { opacity: 0.7; }

/* --- list hover preview — a floating image panel that slides vertically
   from project to project (through top/bottom) with an inner parallax --- */
.ppeek {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 38rem; height: 24rem; border-radius: 0.6rem; overflow: hidden;
  opacity: 0; pointer-events: none; will-change: transform;
}
.ppeek__track { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
/* slides stack edge-to-edge so they scroll past with no gaps; the inner image
   overhangs generously so the bounded parallax never exposes a seam */
.ppeek__slide { position: relative; width: 100%; height: 24rem; overflow: hidden; }
.ppeek__inner {
  position: absolute; left: -15%; top: -25%; width: 130%; height: 150%;
  display: flex; align-items: center; justify-content: center;
  background: var(--g, #0c0c0c); will-change: transform;
}
.ppeek__inner b {
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 3vw; letter-spacing: -0.04em; color: #fff;
}
.ppeek__inner.is-dark b { color: #0c0c0c; }
@media (max-width: 991px) { .ppeek { display: none; } }

/* the projects page reuses the fixed-reveal footer; its own bottom margin
   gives the scroll space (same mechanic as the home page) */

/* --- responsive --- */
@media (max-width: 991px) {
  .pcover { height: 56vh; min-height: 34rem; }
  .pcover__title { font-size: 30vw; }
  .pcover__chip { width: 8.6rem; height: 6.6rem; }
  .pfilter { flex-direction: column; gap: 1.4rem; align-items: flex-start; }
  .plist__row { grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem; }
  .plist__year { display: none; }
  .plist__go { grid-column: 2; justify-self: end; }
  .pgrid { grid-template-columns: 1fr; row-gap: 5rem; }
  .pcard, .pcard:nth-child(n) { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .pcard__inner b { font-size: 7vw; }
  .projects-page { margin-bottom: 0; }
}
@media (max-width: 479px) {
  .pcover__title { font-size: 34vw; }
  .plist__row { grid-template-columns: 1fr auto; }
  .plist__cat { display: none; }
}

/* ====================================================================
   CONTACTS PAGE (/contacts) — big centred headline + 3 framed CTAs +
   a bottom row of quick contacts ([media] / [contacts] / [location]).
   ==================================================================== */
.contacts-page {
  position: relative; z-index: 1; background: var(--bg);
  padding: 0 var(--pad-x); margin-bottom: 100vh; overflow-x: hidden;
}
.ccover { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding: 13rem 0 3rem; }
.ccover__lang { position: absolute; top: 2.4rem; right: 0; z-index: 3; font-family: var(--font-mono); font-size: 1.6rem; }

/* headline + CTAs, vertically centred */
.ccover__head { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4rem; text-align: center; }
.ccover__title {
  margin: 0; font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 7vw; line-height: 0.86; letter-spacing: -0.03em; white-space: nowrap;
  transform: scaleX(0.64); transform-origin: center; color: var(--ink);
}

.ccta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.ccta {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 1.5rem 2.4rem; font-family: var(--font-mono); font-size: 1.6rem;
  text-transform: uppercase; letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.ccta__label { position: relative; }
.ccta__label::after {
  content: ''; position: absolute; left: 0; bottom: -0.2em; width: 100%; height: 0.1em;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.ccta:hover .ccta__label::after { transform: scaleX(1); }

/* bottom quick-contacts row */
.cbottom { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: end; }
.cbottom__col { display: flex; flex-direction: column; }
.cbottom__col.cb-media { grid-column: 1 / span 4; }
.cbottom__col.cb-contacts { grid-column: 7 / span 3; }
.cbottom__col.cb-location { grid-column: 11 / span 2; }
.cbottom__label { font-family: var(--font-mono); font-size: 1.6rem; color: var(--muted-ink); text-transform: uppercase; margin-bottom: 2.2rem; }
.cb-media__links { display: flex; gap: 1.2rem; }
.cb-media__links a {
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 3.4rem; line-height: 1; letter-spacing: -0.04em; color: var(--ink); text-decoration: none;
  transition: opacity 0.25s var(--ease-out);
}
.cb-media__links a:hover { opacity: 0.5; }
.cbottom__col a, .cbottom__addr {
  font-family: var(--font-mono); font-size: 1.6rem; color: var(--ink);
  text-transform: uppercase; line-height: 1.5; text-decoration: none;
}
.cb-contacts a.nav-link { width: fit-content; }

@media (max-width: 991px) {
  .ccover { padding: 11rem 0 3rem; }
  .ccover__title { font-size: 12vw; transform: scaleX(0.7); white-space: normal; }
  .cbottom { grid-template-columns: 1fr 1fr; row-gap: 3.4rem; }
  .cb-media { grid-column: 1 / -1 !important; }
  .cb-contacts { grid-column: 1 !important; }
  .cb-location { grid-column: 2 !important; }
  .contacts-page { margin-bottom: 0; }
}
@media (max-width: 479px) {
  .ccover__title { font-size: 19vw; }
  .cbottom { grid-template-columns: 1fr; }
  .cb-contacts, .cb-location { grid-column: 1 !important; }
  .cb-media__links a { font-size: 4.4rem; }
}

/* ====================================================================
   PAGE TRANSITIONS — smooth cross-fade between the multi-page pages.
   A full-screen cover fades IN before navigating and fades OUT on arrival.
   ==================================================================== */
.page-fade {
  position: fixed; inset: 0; z-index: 9998; background: #fff;
  opacity: 0; pointer-events: none; will-change: opacity;
}
/* arriving via an internal link: start covered (no content flash) and skip the
   long counting preloader — main.js fades the cover out instead */
html.lite-nav .page-fade { opacity: 1; }
html.lite-nav .preloader { display: none !important; }

/* ====================================================================
   FLOWER BRAND ASSETS  (animated preloader + bloomed logo, transparent)
   ==================================================================== */
.preloader__mark--img {
  width: auto; height: 7rem; max-width: 78vw;
  animation: none;                /* the bloom animates itself */
  -webkit-user-select: none; user-select: none; pointer-events: none;
}
.top__logo .logo.logo--img {
  width: auto; height: 5rem;
}
@media (max-width: 640px) {
  .preloader__mark--img { height: 5.6rem; }
  .top__logo .logo.logo--img { height: 4rem; }
}

/* ====================================================================
   ORDER PAGE (/order) — hero + 2×2 frm-corner service boxes
   ==================================================================== */
.order-page {
  position: relative; z-index: 1; background: var(--bg);
  padding: 0 var(--pad-x); margin-bottom: 100vh;
}

/* hero */
.ocover {
  position: relative; min-height: 52vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 13rem 0 5rem;
  border-bottom: 0.1rem solid rgba(0,0,0,0.12);
  overflow: hidden;
}
.ocover__lang {
  position: absolute; top: 2.4rem; right: 0; z-index: 3; font-size: 1.6rem;
}
.ocover__head { display: flex; flex-direction: column; gap: 2rem; }
.ocover__meta { display: flex; align-items: baseline; gap: 2.4rem; }
.ocover__sub  { color: var(--muted-ink); font-size: 1.6rem; }
.ocover__hint { color: var(--muted-ink); font-size: 1.35rem; opacity: 0.6; }
.ocover__title {
  margin: 0;
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 9.6vw; line-height: 0.88; letter-spacing: -0.06em;
  white-space: nowrap;
  transform: scaleX(0.55); transform-origin: left bottom;
  color: var(--ink);
}

/* 2×2 grid */
.oboxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 42rem));
  gap: 6rem 8rem;
  padding: 4rem 0 6rem;
  justify-content: center;
}

.obox {
  position: relative;
  display: flex; flex-direction: column;
  padding: 2.8rem 2.8rem 2.4rem;
  border: none;
  color: var(--ink); text-decoration: none;
  min-height: 30rem;
}

/* frm-corners — bigger, corner-marks only */
.obox .frm-corner {
  width: 2rem; height: 2rem;
  border-width: 0.2rem;
  border-color: var(--ink);
}

/* head: number + tag */
.obox__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2.4rem;
}
.obox__num  { font-size: 1.2rem; color: var(--muted-ink); }
.obox__tag  { font-size: 1.2rem; color: var(--muted-ink); }

/* service name */
.obox__name {
  margin: 0 0 2.4rem;
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 3.8rem; line-height: 0.9; letter-spacing: -0.05em;
}

/* feature list */
.obox__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.8rem;
  flex: 1;
  font-size: 1.3rem; line-height: 1.4; letter-spacing: -0.02em;
  text-transform: lowercase; color: var(--muted-ink);
}
.obox__list li { display: flex; align-items: baseline; gap: 0.7rem; }
.obox__list li::before { content: '—'; opacity: 0.4; flex: 0 0 auto; }

/* CTA */
.obox__cta {
  margin-top: 2.8rem; font-size: 1.35rem; align-self: flex-start;
  color: var(--ink); position: relative;
}
.obox__cta::after {
  content: ''; position: absolute; left: 0; bottom: -0.2em;
  width: 100%; height: 0.1em; background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.obox:hover .obox__cta::after { transform: scaleX(1); }

/* bottom note */
.order__note {
  padding: 0 0 10rem;
  font-size: 1.4rem; letter-spacing: -0.02em; text-transform: lowercase;
  color: var(--muted-ink);
  display: flex; align-items: baseline; gap: 0.6rem;
}
.order__note .nav-link { color: var(--ink); }

/* big telegram CTA */
.order__cta-wr {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.6rem; padding: 2rem 0 10rem;
}
.order__cta-big {
  position: relative;
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1.6rem 3.6rem;
  color: var(--ink);
  font-size: 1.6rem; letter-spacing: -0.02em; text-transform: lowercase;
  text-decoration: none;
  transition: opacity 0.25s;
}
.order__cta-big .frm-corner {
  width: 1.4rem; height: 1.4rem;
  border-width: 0.15rem;
  border-color: var(--ink);
}
.order__cta-big-label {
  text-decoration: none;
  border-bottom: 0.1rem solid transparent;
  transition: border-color 0.3s var(--ease-out);
}
.order__cta-big:hover .order__cta-big-label {
  border-bottom-color: currentColor;
}
.order__cta-big svg { flex-shrink: 0; }
.order__cta-note {
  font-size: 1.3rem; color: var(--muted-ink); letter-spacing: -0.01em;
}

@media (max-width: 991px) {
  .ocover { min-height: 40vh; padding: 11rem 0 4rem; }
  .ocover__title { font-size: 20vw; }
  .ocover__meta { flex-direction: column; gap: 0.8rem; }
  .oboxes { grid-template-columns: 1fr; gap: 5rem; padding: 3rem 0 5rem; }
  .obox { min-height: auto; padding: 2.4rem 2.4rem; }
  .obox__name { font-size: 3.2rem; }
  .order-page { margin-bottom: 0; }
}
@media (max-width: 479px) {
  .ocover__title { font-size: 26vw; }
  .obox { padding: 2.2rem 1.8rem; }
  .obox__name { font-size: 2.8rem; }
}

/* ====================================================================
   FORM PAGE (/form) — brief / order form
   ==================================================================== */
.form-page {
  position: relative; z-index: 1; background: var(--bg);
  padding: 0 var(--pad-x); margin-bottom: 100vh;
}

/* cover */
.fcover {
  position: relative; padding: 13rem 0 4rem;
  border-bottom: 0.1rem solid rgba(0,0,0,0.12);
  margin-bottom: 5rem;
}
.fcover__back { font-size: 1.4rem; color: var(--muted-ink); margin-bottom: 2.4rem; display: block; }
.fcover__head { display: flex; align-items: baseline; gap: 2rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.fcover__badge { color: var(--muted-ink); font-size: 1.5rem; }
.fcover__title {
  margin: 0;
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 9vw; line-height: 0.88; letter-spacing: -0.06em;
  transform: scaleX(0.58); transform-origin: left bottom;
  color: var(--ink);
}
.fcover__desc { font-size: 1.4rem; color: var(--muted-ink); letter-spacing: -0.02em; text-transform: lowercase; line-height: 1.5; }

/* form */
.fform {
  display: flex; flex-direction: column; gap: 0;
  max-width: 86rem; padding-bottom: 10rem;
}

/* blocks */
.fblock {
  display: grid; grid-template-columns: 22rem 1fr; gap: 4rem;
  padding: 4rem 0; border-bottom: 0.1rem solid rgba(0,0,0,0.1);
  align-items: start;
}
.fblock__label {
  font-size: 1.4rem; color: var(--muted-ink); text-transform: lowercase;
  letter-spacing: -0.02em; padding-top: 0.4rem;
}
.fblock__fields { display: flex; flex-direction: column; gap: 3rem; }

/* field */
.ffield { display: flex; flex-direction: column; gap: 0.8rem; }
.ffields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.ffield__label { font-size: 1.35rem; color: var(--ink); text-transform: lowercase; letter-spacing: -0.02em; font-family: var(--font-mono); font-weight: 500; }
.ffield__hint  { font-size: 1.2rem; color: var(--muted-ink); text-transform: lowercase; letter-spacing: -0.02em; }

.ffield__input {
  font-family: var(--font-mono); font-weight: 500; font-size: 1.6rem;
  letter-spacing: -0.04em; line-height: 1.2; text-transform: lowercase;
  background: transparent; color: var(--ink);
  border: none; border-bottom: 0.1rem solid rgba(0,0,0,0.22);
  padding: 1.2rem 0; width: 100%;
  outline: none; transition: border-color 0.25s var(--ease-out);
  resize: none;
}
.ffield__input::placeholder { color: rgba(0,0,0,0.28); }
.ffield__input:focus { border-bottom-color: var(--ink); }
.ffield__input.is-error { border-bottom-color: var(--red); }
.ffield__input--ta { line-height: 1.55; }

/* label row with info button */
.ffield__labelrow {
  display: flex; align-items: center; gap: 0.6rem;
}
.finfo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: rgba(0,0,0,0.1); color: var(--muted-ink);
  font-size: 1rem; font-family: var(--font-mono); font-weight: 500; font-style: italic;
  border: none; cursor: default;
  position: relative; flex-shrink: 0;
  transition: background 0.2s;
}
.finfo-btn:hover { background: rgba(0,0,0,0.18); }
.finfo-tip {
  position: absolute;
  bottom: calc(100% + 0.8rem); left: 50%;
  transform: translateX(-50%);
  width: 24rem; max-width: min(28rem, 75vw);
  background: var(--ink); color: var(--bg);
  font-size: 1.15rem; line-height: 1.55;
  padding: 1rem 1.2rem;
  border-radius: 0.4rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: normal; text-align: left;
  font-style: normal; font-weight: 400;
  z-index: 200;
}
.finfo-btn:hover .finfo-tip { opacity: 1; }

/* radio options */
.fradios {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
}
.fradio {
  display: flex; align-items: center; gap: 0;
  cursor: pointer;
}
.fradio.is-disabled {
  opacity: 0.3; pointer-events: none;
}
.fradio input[type="radio"] { display: none; }
.fradio span {
  display: inline-block; padding: 0.9rem 1.6rem;
  font-size: 1.35rem; text-transform: lowercase; letter-spacing: -0.02em;
  border: 0.1rem solid rgba(0,0,0,0.2); color: var(--muted-ink);
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.fradio:hover span { border-color: var(--ink); color: var(--ink); }
.fradio input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* submit */
.fsubmit { display: flex; flex-direction: column; gap: 1.6rem; align-items: flex-start; padding-top: 5rem; padding-bottom: 2rem; }
.fsubmit__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.8rem 3.6rem;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--font-mono); font-weight: 500; font-size: 1.6rem;
  letter-spacing: -0.04em; text-transform: lowercase; color: var(--ink);
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.fsubmit__btn .frm-corner { border-color: var(--ink); transition: border-color 0.35s var(--ease-out); }
.fsubmit__btn:hover { background: var(--ink); color: var(--white); }
.fsubmit__btn:hover .frm-corner { border-color: var(--white); }
.fsubmit__label { position: relative; }
.fsubmit__note { font-size: 1.3rem; color: var(--muted-ink); letter-spacing: -0.02em; text-transform: lowercase; }
.fsubmit__note .nav-link { color: var(--muted-ink); }

/* success */
.fsuccess {
  display: flex; flex-direction: column; gap: 1.6rem; padding: 6rem 0;
}
.fsuccess__icon { font-size: 3.2rem; }
.fsuccess__title { font-size: 2.4rem; color: var(--ink); text-transform: lowercase; letter-spacing: -0.04em; }
.fsuccess__text  { font-size: 1.5rem; color: var(--muted-ink); text-transform: lowercase; letter-spacing: -0.02em; }
.fsuccess__back  { font-size: 1.5rem; color: var(--ink); text-transform: lowercase; letter-spacing: -0.02em; margin-top: 1.6rem; }

@media (max-width: 991px) {
  .fcover { padding: 11rem 0 3.5rem; }
  .fcover__title { font-size: 14vw; }
  .fblock { grid-template-columns: 1fr; gap: 2rem; padding: 3.2rem 0; }
  .ffields-row { grid-template-columns: 1fr; gap: 2rem; }
  .form-page { margin-bottom: 0; }
}
@media (max-width: 479px) {
  .fcover__title { font-size: 18vw; }
  .fcover__head { flex-direction: column; gap: 0.8rem; }
  .fradios { flex-direction: column; }
  .fblock { padding: 2.8rem 0; }
}

/* ====================================================================
   POLICY PAGE
   ==================================================================== */
.policy-page {
  position: relative; z-index: 1; background: var(--bg);
  padding: 0 var(--pad-x); margin-bottom: 100vh;
}
.policy-wrap {
  max-width: 72rem; margin: 0 auto;
  padding: 14rem 0 8rem;
}
.policy-wrap .pol__lang {
  display: flex; justify-content: flex-end;
  font-family: var(--font-mono); font-size: 1.6rem;
  margin-bottom: 6rem;
}
.policy-wrap h1 {
  font-family: var(--font-mono); font-size: 1.6rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: -0.02em;
  color: var(--muted-ink); margin: 0 0 0.6rem;
}
.policy-wrap .pol__date {
  font-family: var(--font-mono); font-size: 1.4rem;
  color: var(--muted-ink); text-transform: uppercase; margin-bottom: 6rem;
}
.pol__section { margin-bottom: 4rem; }
.pol__section h2 {
  font-family: var(--font-mono); font-size: 1.6rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 1.2rem;
}
.pol__section p, .pol__section div, .pol__section li {
  font-family: var(--font-mono); font-size: 1.4rem; line-height: 1.7;
  color: var(--ink); opacity: 0.7; margin: 0 0 0.8rem;
}
.pol__section ul { padding-left: 1.8rem; margin: 0 0 0.8rem; }
.pol__section a { color: var(--ink); }
.pol__back { margin-top: 6rem; }
.pol__back-btn {
  display: inline-flex; align-items: center;
  padding: 1.6rem 3.2rem;
  font-size: 1.4rem; text-transform: lowercase; letter-spacing: -0.02em;
  color: var(--ink); cursor: pointer;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.pol__back-btn:hover { background: var(--ink); color: var(--bg); }
.pol__back-btn:hover .frm-corner { border-color: var(--bg); }
@media (max-width: 640px) {
  .policy-wrap { padding: 12rem 0 6rem; }
  .policy-wrap h1 { font-size: 1.4rem; }
  .pol__section h2 { font-size: 1.4rem; }
  .pol__section p, .pol__section div, .pol__section li { font-size: 1.3rem; }
}

/* ====================================================================
   PRINCIPLES (block 3) — trust / "як ми працюємо"
   frm-corner картки в моно-стилі; розкриваються скролл-тригером (main.js)
   ==================================================================== */
.principles { position: relative; background: var(--bg); padding: 4rem var(--pad-x) 12rem; }
.principles::before { content: ''; display: block; border-top: 0.1rem solid rgba(0,0,0,0.12); position: absolute; top: 0; left: var(--pad-x); right: var(--pad-x); }

.principles__top { margin-bottom: 4.5rem; }
.principles__label {
  display: block; font-size: 1.6rem; color: var(--muted-ink);
  text-transform: uppercase; letter-spacing: -0.06em; margin-bottom: 1.6rem;
}
.principles__title {
  margin: 0;
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 6vw; line-height: 0.85; letter-spacing: -0.05em;
}

.principles__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2rem; }

.princ {
  position: relative; display: flex; flex-direction: column;
  padding: 2.6rem 2.2rem 2.4rem; min-height: 21rem;
  color: var(--ink);
}
.princ .frm-corner { width: 1.8rem; height: 1.8rem; border-width: 0.2rem; border-color: var(--ink); }
.princ__num { font-size: 1.2rem; color: var(--muted-ink); }
.princ__name {
  margin: 3rem 0 1.2rem;
  font-family: var(--font-grotesk); font-weight: 700; text-transform: uppercase;
  font-size: 2.2rem; line-height: 1; letter-spacing: -0.04em;
}
.princ__desc {
  font-size: 1.3rem; line-height: 1.45; letter-spacing: -0.02em;
  text-transform: lowercase; color: var(--muted-ink);
}

@media (max-width: 991px) {
  .principles { padding: 1rem var(--pad-x) 8rem; }
  .principles__title { font-size: 10vw; }
  .principles__grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .princ { min-height: 17rem; padding: 2.2rem 1.8rem; }
}
@media (max-width: 479px) {
  .principles__title { font-size: 13vw; }
  .principles__grid { grid-template-columns: 1fr; }
  .princ { min-height: auto; }
  .princ__name { margin-top: 3rem; }
}

/* ====================================================================
   ACCESSIBILITY — prefers-reduced-motion
   Гасимо тривалі переходи/анімації для користувачів, які попросили
   зменшити рух. Плавний скрол Lenis і scroll-scrub вимикаються в main.js.
   ==================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto !important; }
  /* еквалайзер радіо та флоат-чіпи проєктів — повністю спокій */
  .eq-bars i, .pcover__chip { animation: none !important; }
}
