/* ============================================================
   Lev Stepanov — cinematic hero + natural body
   Palette: sky blue / cloud white / grass green / orange accent
   ============================================================ */

:root {
  /* Body — natural, airy */
  --canvas:  #F3F5F0;
  --white:   #FEFFFE;
  --ink:     #141A12;
  --slate:   #5C6657;
  --border:  #D8DDD3;

  --accent:  #E85D04;
  --accent-h:#C44F03;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --pad-x:     clamp(20px, 4vw, 48px);

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   40px;
  --radius-pill: 999px;

  --shadow-sm:  0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.10);

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

  /* Hero/dark surface tokens — used by footer */
  --hero-bg:     #0C0C0C;
  --hero-border: rgba(255,255,255,0.08);
  --hero-text:   rgba(237,235,230,0.92);
  --hero-muted:  rgba(237,235,230,0.38);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Shared ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   HERO — cinematic full-screen video
   ============================================================ */
.hero {
  height: 100svh;
  min-height: 600px;
  position: relative;
  background: #1a2a1a;
  overflow: hidden;
}

/* Full-screen background video — extra height for parallax headroom */
.hero-video {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
  will-change: transform;
}

/* Gradient overlays — left vignette + top + bottom for text on both anchors */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,  rgba(8,16,8,0.78) 0%, rgba(8,16,8,0.20) 48%, rgba(8,16,8,0) 65%),
    linear-gradient(to bottom, rgba(8,16,8,0.50) 0%, rgba(8,16,8,0) 38%),
    linear-gradient(to top,    rgba(8,16,8,0.82) 0%, rgba(8,16,8,0.10) 38%, rgba(8,16,8,0) 55%);
  animation: heroOverlayIn 1.4s ease both;
}

/* Grain */
.hero-grain {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  z-index: 2;
}

/* ---- Nav ---- */
/* nav_component: position + hide/show via transform */
.nav_component {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav_component--hidden {
  transform: translateX(-50%) translateY(-110%);
}

/* nav_inner: glass pill — entry animation without translateX conflict */
.nav_inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 40px);
  background: rgba(8,16,8,0.22);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  border-radius: 0 0 20px 20px;
  padding: 12px clamp(16px, 3vw, 32px);
  border: 1px solid rgba(255,255,255,0.10);
  border-top: none;
  white-space: nowrap;
  animation: navIn 0.7s var(--ease-out) 0.15s both;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.nav_logo, .nav_link, .nav_cta {
  transition: color 0.35s ease, background 0.35s ease;
}
.nav_logo {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.nav_links {
  display: flex;
  list-style: none;
  gap: clamp(14px, 2vw, 32px);
}
.nav_link {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  transition: color 0.2s;
}
.nav_link:hover { color: #fff; }
.nav_cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0d1a0d;
  background: rgba(255,255,255,0.92);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
  white-space: nowrap;
}
.nav_cta:hover { background: #fff; }

/* Scrolled past hero — light theme */
.nav_component--scrolled .nav_inner {
  background: rgba(255,255,255,0.88);
  border-color: rgba(0,0,0,0.08);
}
.nav_component--scrolled .nav_logo {
  color: var(--ink);
}
.nav_component--scrolled .nav_link {
  color: var(--slate);
}
.nav_component--scrolled .nav_link:hover {
  color: var(--ink);
}
.nav_component--scrolled .nav_cta {
  background: var(--ink);
  color: #fff;
}
.nav_component--scrolled .nav_cta:hover {
  background: #2a3a28;
}

/* Adaptivity */
@media (max-width: 767px) {
  .nav_links { display: none; }
  .nav_inner { gap: 16px; }
}
@media (max-width: 479px) {
  .nav_logo { display: none; }
}

/* ---- Title — top-left, frames person below ---- */
.hero-title {
  position: absolute;
  z-index: 10;
  top: clamp(60px, 10vh, 100px);
  left: clamp(24px, 5vw, 80px);
  pointer-events: none;
}

/* Masked line reveal — each line slides up through overflow clip */
.hero-name-wrap {
  overflow: hidden;
  display: block;
  line-height: 0.92;
  /* padding-right compensates for negative letter-spacing on last char */
  padding-right: 0.07em;
}
.hero-name-line {
  display: block;
  animation: lineReveal 1s var(--ease-out) 0.35s both;
}
.hero-name-line--2 {
  animation-delay: 0.55s;
}

.hero-name {
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
}

.hero-asterisk {
  font-size: 0.28em;
  vertical-align: super;
  color: var(--accent);
  letter-spacing: 0;
}

/* ---- Bottom-left — desc + contacts ---- */
.hero-bottom {
  position: absolute;
  z-index: 10;
  bottom: clamp(32px, 7vh, 80px);
  left: clamp(24px, 5vw, 80px);
  pointer-events: none;
}
.hero-bottom a { pointer-events: auto; }

.hero-desc-text {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  font-weight: 400;
  max-width: 360px;
  margin-bottom: clamp(18px, 2.5vh, 28px);
  animation: fadeSlideUp 0.75s var(--ease-out) 1.0s both;
}

/* ---- Contact buttons ---- */
.hero-contacts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: fadeSlideUp 0.75s var(--ease-out) 1.2s both;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--sans);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  white-space: nowrap;
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.35s var(--ease-out),
    box-shadow 0.35s;
}
.hero-cta-btn:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.38);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.35);
}
.hero-cta-btn:active { transform: translateY(-1px); }
.hero-cta-btn--tg { color: #7dd3fc; border-color: rgba(125,211,252,0.3); }
.hero-cta-btn--tg:hover { background: rgba(125,211,252,0.15); }
.hero-cta-btn svg { flex-shrink: 0; }

/* ============================================================
   HERO KEYFRAMES
   ============================================================ */

/* Overlay fades in from black — cinematic open */
@keyframes heroOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Nav slides down — no translateX (that lives on nav_component wrapper) */
@keyframes navIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Masked text line reveal — slides up through overflow clip */
@keyframes lineReveal {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Generic fade + rise */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Typewriter cursor (future use) */
.tw-cursor {
  display: inline-block;
  width: 2px;
  background: #fff;
  margin-left: 1px;
  vertical-align: baseline;
  animation: tw-blink 0.6s step-end infinite;
  height: 0.85em;
  position: relative;
  top: 0.05em;
}
.tw-cursor.tw-done { animation: none; opacity: 0; }

@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   SERVICES — two carousel groups, 100vh
   ============================================================ */
.services_component {
  min-height: 100vh;
  background: var(--white);
  display: flex;
  align-items: center;
  padding: clamp(48px, 7vh, 80px) 0;
}

.services_group { margin-bottom: clamp(36px, 5vh, 56px); }
.services_group:last-child { margin-bottom: 0; }

.services_group-head {
  margin-bottom: 20px;
}
.services_group-head h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

/* ---- Carousel wrapper ---- */
.services_carousel-wrap { position: relative; }

.services_carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.services_carousel-track::-webkit-scrollbar { display: none; }

/* ---- Nav buttons ---- */
.services_carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 8px;
}
.services_carousel-btn {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: var(--shadow-sm);
  opacity: 0;
}
.services_carousel-wrap:hover .services_carousel-btn { opacity: 1; }
.services_carousel-btn:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
}
.services_carousel-btn:disabled { opacity: 0 !important; pointer-events: none; }

/* ---- Card ---- */
.service_card {
  flex: 0 0 clamp(240px, 28vw, 320px);
  height: clamp(220px, 28vh, 280px);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
}

/* Image area */
.service_card-img {
  position: absolute;
  inset: 0;
  height: 100%;
  transition: height 0.5s var(--ease-out);
}
.service_card:hover .service_card-img { height: 50%; }

.service_card-img-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.service_card-img-fade {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s;
}
.service_card:hover .service_card-img-fade { opacity: 1; }

/* Text body — slides up on hover */
.service_card-body {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 0;
  opacity: 0;
  overflow: hidden;
  background: rgba(254,255,254,0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: height 0.5s var(--ease-out), opacity 0.35s;
}
.service_card:hover .service_card-body {
  height: 50%;
  opacity: 1;
}

.service_card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.service_card-desc {
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service_card-arrow {
  position: absolute;
  bottom: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), border-color 0.2s;
}
.service_card-arrow:hover { transform: rotate(-45deg); border-color: var(--ink); }

/* Responsive */
@media (max-width: 767px) {
  .services_carousel-btn { display: none; }
  .service_card { flex: 0 0 80vw; }
}

/* ============================================================
   CASES — 2×2 grid
   ============================================================ */
.cases_component {
  background: var(--canvas);
  padding: clamp(56px, 8vw, 100px) 0;
}
.cases_head {
  margin-bottom: clamp(32px, 5vw, 48px);
}
.cases_head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.cases_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Card */
.case_card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.cases_component .case_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.18);
}

/* Image area */
.case_card-img {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 36px);
  min-height: clamp(180px, 22vw, 260px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.case_card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  transform: scale(1);
  transition: transform 0.55s var(--ease-out);
}
.case_card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.92) 100%);
  pointer-events: none;
}
.case_card-url,
.case_card-title,
.case_card-desc,
.case_card-tags { position: relative; z-index: 1; }

/* Screenshots per project */
.case_card-img--realtor::before   { background-image: url('../images/screenshot-realtor.webp'); }
.case_card-img--diagnosia::before { background-image: url('../images/screenshot-diagnosia.webp'); }
.case_card-img--georadar::before  { background-image: url('../images/screenshot-georadar.webp'); }
.case_card-img--lignelibre::before{ background-image: url('../images/screenshot-lignelibre.webp'); }
.case_card-img--inkonic::before   { background-image: url('../images/screenshot-graffiti.webp'); }

.cases_component .case_card:hover .case_card-img::before { transform: scale(1.06); }

.case_card-url {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(237,235,230,0.45);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-bottom: 10px;
  display: block;
}
.case_card-title {
  font-size: clamp(1rem, 1.8vw, 1.375rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.case_card-desc {
  font-size: 0.8125rem;
  color: rgba(237,235,230,0.9);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.case_card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.case_card-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(237,235,230,0.55);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(237,235,230,0.10);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.case_card-cta {
  padding: 13px clamp(20px, 3vw, 36px);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.cases_component .case_card:hover .case_card-cta { background: rgba(255,255,255,0.05); }

/* Responsive */
@media (max-width: 767px) {
  .cases_grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--hero-bg);
  border-top: 1px solid var(--hero-border);
  padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px);
}

/* CTA block */
.footer-cta {
  margin-bottom: clamp(32px, 5vw, 56px);
}
.footer-cta-label {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--hero-text);
  margin-bottom: clamp(16px, 2vw, 24px);
  letter-spacing: -0.02em;
}
.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-cta-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
  background: rgba(237,235,230,0.92);
  color: #0C0C0C;
}
.footer-cta-btn--secondary {
  background: transparent;
  color: var(--hero-text);
  border: 1px solid var(--hero-border);
}
.footer-cta-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid var(--hero-border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.8125rem;
  color: var(--hero-muted);
}
.footer-copy strong { color: rgba(237,235,230,0.75); font-weight: 500; }

@media (max-width: 600px) {
  .footer-cta-actions { flex-direction: column; }
  .footer-cta-btn { text-align: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: #0C0C0C;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Snowball spinner */
.pl {
  position: relative;
  width: 10em;
  height: 10em;
  font-size: 14px;
}
.pl__outer-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 0.5em solid rgba(255,255,255,0.12);
}
.pl__inner-ring {
  position: absolute;
  inset: 1.2em;
  border-radius: 50%;
  border: 0.25em solid rgba(255,255,255,0.06);
}
.pl__track-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, #0C0C0C 58%, transparent);
  border-radius: 50% 0 0 50%;
  transform-origin: right center;
  animation: trackCover 2s linear infinite;
}
.pl__ball {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5em;
  height: 1.5em;
  margin: -0.75em;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #f0f8ff 0%, #c6e4f8 35%, #8abce8 70%, #5ca0d8 100%);
  animation: pl-ball 2s linear infinite;
}
.pl__ball-texture {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: repeating-linear-gradient(
    55deg,
    rgba(255,255,255,0.22) 0,
    rgba(255,255,255,0.22) 0.12em,
    transparent 0.12em,
    transparent 0.38em
  );
  animation: pl-ballTexture 0.4s steps(1, end) infinite;
}
.pl__ball-outer-shadow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 62% 65%, rgba(0,0,0,0.45) 0%, transparent 60%);
  animation: pl-ballOuterShadow 2s linear infinite;
}
.pl__ball-inner-shadow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.65) 0%, transparent 52%);
  animation: pl-ballInnerShadow 2s linear infinite;
}
.pl__ball-side-shadows {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset -0.15em 0 0.25em rgba(0,0,0,0.35),
              inset 0.1em -0.1em 0.15em rgba(255,255,255,0.25);
}

@keyframes pl-ball {
  from { transform: rotate(0deg)   translateY(-3.5em); }
  50%  { transform: rotate(180deg) translateY(-3.3em); }
  to   { transform: rotate(360deg) translateY(-3.5em); }
}
@keyframes pl-ballInnerShadow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes pl-ballOuterShadow {
  from { transform: rotate(20deg); }
  to   { transform: rotate(-340deg); }
}
@keyframes pl-ballTexture {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}
@keyframes trackCover {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.js-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.js-reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE — hero overrides (component rules live inside each section)
   ============================================================ */
@media (max-width: 767px) {
  .hero-title { left: 20px; top: clamp(56px, 10vh, 80px); }
  .hero-bottom { left: 20px; right: 20px; bottom: 24px; }
  .hero-name { font-size: clamp(2.8rem, 16vw, 4.5rem); }
  .hero-desc-text { max-width: 100%; font-size: 0.95rem; }
  .cases_grid { gap: 12px; }
}
@media (max-width: 480px) {
  .hero-name { font-size: clamp(2rem, 12vw, 3.2rem); }
  .hero-overlay { opacity: 0.45; }
  .hero-cta-btn { padding: 9px 14px; font-size: 0.75rem; }
  .case_card-img { min-height: clamp(160px, 45vw, 220px); }
  /* Services: show body statically — no hover on touch */
  /* inset:0 on .service_card-img pins bottom:0, must override to allow height:50% */
  .service_card-img { inset: unset; top: 0; left: 0; right: 0; height: 50%; }
  .service_card-img-fade { opacity: 1; }
  .service_card-body { height: 50%; opacity: 1; padding: 12px 18px; }
}
