/* =========================================================
   POLICARPO EMPREENDIMENTOS — design system
   ========================================================= */

:root{
  --yellow: #ffcb1f;
  --yellow-dark: #e6b400;
  --dark: #33363a;          /* never pure black */
  --dark-2: #2b2e32;
  --heading: #52555a;       /* text color for large titles on light/yellow backgrounds */
  --white: #ffffff;

  --gray-50:  #fafafa;
  --gray-100: #f3f4f5;
  --gray-200: #e6e7e8;
  --gray-300: #d3d5d6;
  --gray-400: #aeb1b3;      /* medium gray — placeholder blocks */
  --gray-500: #8c8f92;
  --gray-600: #6a6d70;
  --gray-700: #4c4f52;

  --font-display: 'Funnel Display', system-ui, sans-serif;
  --font-body: 'Google Sans Flex', system-ui, sans-serif;

  /* type scale — keep to these steps, no ad hoc sizes */
  --fs-2xs: 12px;
  --fs-xs: 13px;
  --fs-sm: 15px;
  --fs-base: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 34px;
  --fs-4xl: clamp(32px, 3.4vw, 44px);
  --fs-5xl: clamp(48px, 7vw, 84px);

  --radius: 0;
  --radius-sm: 0;
  --ease: cubic-bezier(.16,1,.3,1);
  --header-h: 128px;
  --skew: 64px;
  --section-pad: 168px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html, body{ margin:0; padding:0; overflow-x:hidden; }

body{
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }

.container{
  width:100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================== LOADER =========================== */
.loader{
  position: fixed; inset:0; z-index: 9999;
  background: var(--white);
  display:flex; align-items:center; justify-content:center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader__mark{ width:56px; height:auto; animation: pulse 1.1s ease-in-out infinite; }
.loader.is-hidden{ opacity:0; visibility:hidden; }
@keyframes pulse{ 0%,100%{ transform:scale(1); opacity:1;} 50%{ transform:scale(.85); opacity:.6;} }

/* =========================== TYPOGRAPHY =========================== */
h1,h2,h3,h4{ font-family: var(--font-display); font-weight:800; line-height:1.15; letter-spacing:-.01em; margin:0; color: var(--heading); }

.eyebrow{
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 20px;
}

.tag{
  display:inline-flex;
  font-family: var(--font-display);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 22px;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  border: none;
  margin-bottom: 22px;
}
.tag--yellow{ background: var(--yellow); color: var(--heading); }
.tag--dark{ background: var(--dark); color: var(--yellow); }
.tag--white{ background: var(--white); color: var(--heading); }

/* Minitópicos: run past the text column's own edge, matching that
   section's alignment (left-aligned sections nudge left, right-aligned nudge right). */
.tag--out-left{ margin-left: -25px; }
.tag--out-right{ margin-right: -25px; }

.section__head{ max-width: 720px; margin: 0 0 64px; }
.section__head--right{ margin-left: auto; text-align: right; }
.section__head--right .section__text{ margin-left: auto; }
.text-right{ text-align: right; }
.section__title{ font-size: var(--fs-4xl); line-height:1.08; letter-spacing:-.02em; }
.section__title--on-dark{ color: var(--white); }
.section__text{ font-size: var(--fs-lg); line-height:1.6; color: var(--gray-600); margin: 18px 0 0; max-width: 60ch; }
.section__text--on-dark{ color: var(--gray-300); }

/* =========================== BUTTONS =========================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 16px 30px;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  border-radius: 0;
  border: 2px solid transparent;
  transition: transform .35s var(--ease), background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
  white-space: nowrap;
}
.btn__arrow{ transition: transform .3s var(--ease); }
.btn:hover .btn__arrow{ transform: translateX(4px); }
.btn--primary{ background: var(--yellow); color: var(--dark); }
.btn--primary:hover{ background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(255,203,31,.55); }
.btn--ghost{ background: transparent; color: var(--dark); border-color: var(--gray-300); }
.btn--ghost:hover{ border-color: var(--dark); transform: translateY(-2px); }
.section--dark .btn--ghost{ color: var(--white); border-color: rgba(255,255,255,.28); }
.section--dark .btn--ghost:hover{ border-color: var(--white); }
.btn--sm{ padding: 12px 22px; font-size: 12px; }
.btn--lg{ padding: 18px 36px; font-size: 13px; margin-top: 32px; }
.btn--full{ width:100%; }

/* =========================== HEADER =========================== */
.header{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  height: var(--header-h);
  display:flex; align-items:center;
  background: rgba(255,255,255,0);
  border-bottom: 2px solid transparent;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease, height .3s ease;
}
.header.is-scrolled{
  background: var(--white);
  border-bottom: 2px solid var(--yellow);
  box-shadow: 0 12px 30px -20px rgba(51,54,58,.25);
  height: 100px;
}
.header__inner{ display:flex; align-items:center; justify-content:space-between; gap: 24px; }

.brand{ display:flex; align-items:center; }
.brand__logo{ width: 255px; height:auto; display:block; }
.brand__logo--light{ display:none; }
.header.is-scrolled .brand__logo--dark{ display:none; }
.header.is-scrolled .brand__logo--light{ display:block; }

/* Header floats transparently over the hero photo until scrolled — flip nav
   to light text so it stays legible against the dark image. */
.header:not(.is-scrolled) .nav__link{ color: var(--white); }
.header:not(.is-scrolled) .nav__link.is-active{ color: var(--yellow); }
.header:not(.is-scrolled) .burger span{ background: var(--white); }

.nav{ display:flex; align-items:center; gap: 40px; }
.nav__link{
  position:relative;
  font-family: var(--font-display);
  font-weight: 500; font-size: var(--fs-lg);
  letter-spacing: 0;
  color: var(--dark);
  padding: 6px 0;
  transition: color .4s ease;
}
.nav__link::after{
  content:''; position:absolute; left:0; bottom:0; height:2px; width:0;
  background: var(--yellow); transition: width .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after{ width:100%; }
.nav__link.is-active{ color: var(--yellow-dark); }

.header__actions{ display:flex; align-items:center; gap:16px; }

.burger{
  display:none; flex-direction:column; gap:5px;
  width:34px; height:28px; background:none; border:none; padding:0;
}
.burger span{ display:block; height:2.5px; width:100%; background: var(--dark); border-radius:0; transition: transform .3s ease, opacity .3s ease; }
.burger.is-open span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity:0; }
.burger.is-open span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav{
  display:none;
  position:fixed; top: var(--header-h); left:0; right:0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  flex-direction:column;
  padding: 20px 24px 28px;
  gap: 4px;
  transform: translateY(-12px);
  opacity:0; visibility:hidden;
  transition: transform .35s var(--ease), opacity .35s var(--ease), visibility .35s;
  z-index: 490;
}
.mobile-nav.is-open{ transform: translateY(0); opacity:1; visibility:visible; }
.mobile-nav a{ font-family: var(--font-display); font-weight:500; font-size: var(--fs-lg); padding: 14px 4px; border-bottom: 1px solid var(--gray-100); }
.mobile-nav .btn{ margin-top: 14px; }

/* =========================== HERO =========================== */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex; align-items:center;
  padding: calc(var(--header-h) + 12px) 0 220px;
  overflow: hidden;
  background: var(--dark);
}
.hero__bg{ position:absolute; inset:0; z-index:0; }
.hero__video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero__overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(51,54,58,.32) 0%, rgba(51,54,58,.25) 45%, rgba(51,54,58,.6) 100%),
    linear-gradient(270deg, rgba(51,54,58,.5) 0%, rgba(51,54,58,.15) 55%, rgba(51,54,58,.08) 100%);
}

.hero .container{ position:relative; z-index:1; }
.hero__inner{
  max-width: 880px;
  margin-left: auto;
  text-align: right;
}
.hero__title{ font-family: var(--font-display); font-weight:800; font-size: var(--fs-5xl); line-height: .92; letter-spacing: -.01em; color: var(--white); display:flex; flex-direction:column; align-items:flex-end; gap:0; }
.hero__title span{ display:block; }
.reveal--accent{ color: var(--yellow); }
.hero__desc{ font-size: var(--fs-lg); line-height:1.6; color: rgba(255,255,255,.82); max-width: 620px; margin: 26px 0 0 auto; }
.hero__cta{ display:flex; justify-content:flex-end; gap:16px; flex-wrap:wrap; margin-top: 40px; }
.hero .btn--ghost{ color: var(--white); border-color: rgba(255,255,255,.4); }
.hero .btn--ghost:hover{ border-color: var(--white); background: rgba(255,255,255,.08); }

.hero__scroll{
  position:absolute; bottom: 36px; left:50%; transform: translateX(-50%);
  width:26px; height:42px; border:2px solid rgba(255,255,255,.5); border-radius:0;
  display:flex; justify-content:center; padding-top:8px;
}
.hero__scroll span{ width:4px; height:8px; border-radius:0; background: var(--yellow-dark); animation: scrollDot 1.8s ease infinite; }
@keyframes scrollDot{ 0%{ opacity:1; transform:translateY(0);} 70%{opacity:0; transform:translateY(10px);} 100%{opacity:0;} }

/* =========================== SECTIONS (contrast) =========================== */
.section{ padding: var(--section-pad) 0; position: relative; }
.section--light{ background: var(--gray-50); }
.section--dark{ background: var(--dark); }
.section--yellow{ background: var(--yellow); }

/* Diagonal dividers between sections — earlier section overlaps and cuts into
   the next one, revealing it in a wedge. Requires descending z-index per id
   so each "previous" section paints above the plain one that follows it. */
.section--skew{
  --s: var(--skew);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s)), 0 100%);
  margin-bottom: calc(var(--s) * -1);
  padding-bottom: calc(var(--section-pad) + var(--s));
}
#sobre{ z-index: 5; }
#servicos{ z-index: 4; }
#diferenciais{ z-index: 3; }
#projetos{ z-index: 2; }
#contato{ z-index: 1; padding-bottom: 48px; }

.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items:center; }
.grid-2 > *{ min-width: 0; }
.grid-2--contact{ align-items:start; }

/* =========================== PHOTO PLACEHOLDERS =========================== */
.photo-card{
  position:relative;
  border-radius: var(--radius);
  display:flex; align-items:center; justify-content:center;
  min-height: 260px;
  overflow:hidden;
  isolation: isolate;
  cursor: pointer;
  box-shadow: 0 20px 40px -28px rgba(51,54,58,.6);
}
.photo-card__media{
  position:absolute; inset:0;
  background: linear-gradient(135deg, var(--gray-300) 0%, var(--gray-400) 55%, var(--gray-300) 100%);
  background-size: cover;
  background-position: center;
  transition: transform .5s var(--ease);
  will-change: transform;
}
.photo-card:hover .photo-card__media{ transform: scale(1.1); }
.photo-card::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(51,54,58,0) 40%, rgba(51,54,58,.4) 100%);
  z-index:0;
}
.photo-card::after{
  content:'';
  position:absolute; top:0; left:0;
  width:0; height:0;
  border-style:solid;
  border-width: 46px 46px 0 0;
  border-color: var(--yellow) transparent transparent transparent;
  opacity:.9;
}
.photo-card__inner{
  position:relative; z-index:1;
  display:flex; flex-direction:column; align-items:center; gap:12px;
}
.photo-card__icon{ width:30px; height:30px; color: rgba(255,255,255,.9); }
.photo-card__label{
  font-family: var(--font-display); font-weight:600; font-size: var(--fs-sm);
  letter-spacing:.08em; text-transform:uppercase;
  color: var(--white);
  background: rgba(51,54,58,.6);
  padding: 8px 18px;
  border-radius: 0;
}
.photo-card--tall{ min-height: 460px; }

/* Slider variant: several slides stacked and crossfaded automatically */
.photo-slider__slide{
  position:absolute; inset:0;
  background: linear-gradient(135deg, var(--gray-300) 0%, var(--gray-400) 55%, var(--gray-300) 100%);
  background-size: cover;
  background-position: center;
  display:flex; align-items:center; justify-content:center;
  opacity:0;
  transition: opacity 1.4s ease, transform .5s var(--ease);
  will-change: opacity, transform;
}
.photo-slider__slide.is-active{ opacity:1; }
.photo-card:hover .photo-slider__slide{ transform: scale(1.1); }

/* =========================== SERVICES =========================== */
.services-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card{
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 44px 36px;
  position:relative;
  overflow:hidden;
  cursor: pointer;
  box-shadow: 0 16px 30px -22px rgba(0,0,0,.55);
  transition: transform .4s var(--ease), background .4s ease, box-shadow .4s ease;
}
.service-card.reveal:hover{
  transform: translateY(-10px);
  background: var(--yellow);
  box-shadow: 0 24px 40px -20px rgba(0,0,0,.5);
}
.service-card__num{
  position:absolute; top:-6px; right:14px;
  font-family: var(--font-display); font-weight:700; font-size: 76px;
  color: rgba(255,255,255,.06); letter-spacing:0;
  line-height:1; pointer-events:none;
  transition: color .4s ease;
}
.service-card:hover .service-card__num{ color: rgba(51,54,58,.12); }
.service-card__icon{ width:64px; height:64px; margin-bottom: 20px; position:relative; color: var(--yellow); transition: color .4s ease; }
.service-card__icon svg{ width:100%; height:100%; }
.service-card:hover .service-card__icon{ color: var(--dark); }
.service-card h3{ color: var(--white); font-size: var(--fs-xl); margin-bottom:10px; line-height:1.25; position:relative; transition: color .4s ease; }
.service-card p{ color: var(--gray-400); font-size: var(--fs-sm); margin:0; line-height:1.6; position:relative; transition: color .4s ease; }
.service-card:hover h3{ color: var(--dark); }
.service-card:hover p{ color: var(--dark-2); }

/* =========================== DIFERENCIAIS =========================== */
.diff-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.diff-card{
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px 36px;
  position:relative;
  overflow:hidden;
  cursor: pointer;
  box-shadow: 0 18px 34px -22px rgba(51,54,58,.7);
  transition: transform .4s var(--ease), box-shadow .4s ease, background .4s ease;
}
.diff-card.reveal:hover{
  transform: translateY(-18px);
  background: var(--white);
  box-shadow: 0 30px 48px -20px rgba(51,54,58,.5);
}
.diff-card__index{
  position:absolute; top:-8px; right:16px;
  font-family: var(--font-display); font-weight:700; font-size: 80px;
  color: rgba(255,203,31,.09); letter-spacing:0;
  line-height:1; pointer-events:none;
  transition: color .4s ease;
}
.diff-card:hover .diff-card__index{ color: rgba(51,54,58,.08); }
.diff-card h3{ color: var(--white); font-size: var(--fs-xl); text-transform:uppercase; margin-bottom:10px; line-height:1.25; position:relative; transition: color .4s ease; }
.diff-card p{ color: var(--gray-300); font-size: var(--fs-sm); line-height:1.6; margin:0; position:relative; transition: color .4s ease; }
.diff-card:hover h3{ color: var(--dark); }
.diff-card:hover p{ color: var(--dark); }

/* =========================== CONTACT =========================== */
.contact-list{ margin: 34px 0 0; display:flex; flex-direction:column; gap:22px; }
.contact-list li{ display:flex; gap:16px; align-items:flex-start; }
.contact-list__icon{
  flex-shrink:0; width:44px; height:44px; border-radius:0;
  background: rgba(255,203,31,.12);
  display:flex; align-items:center; justify-content:center;
}
.contact-list__icon svg{ width:20px; height:20px; }
.contact-list__label{ display:block; font-size: var(--fs-2xs); text-transform:uppercase; letter-spacing:.08em; color: var(--gray-400); font-weight:600; margin-bottom:4px; }
.contact-list a{ font-family: var(--font-display); font-weight:700; font-size: var(--fs-xl); letter-spacing:-.01em; color: var(--white); line-height:1.4; }
.contact-list__text{ font-family: var(--font-display); font-weight:700; font-size: var(--fs-lg); letter-spacing:0; color: var(--white); line-height:1.5; }
.contact-list a:hover{ color: var(--yellow); }

.whats-card{
  position: relative;
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 96px 44px 52px;
  display:flex; flex-direction:column; align-items:center; gap: 6px;
  text-align: center;
}
.whats-card__icon{
  position: absolute;
  top: -50px; left: 50%;
  transform: translateX(-50%);
  width:100px; height:100px;
  background: var(--white);
  color: var(--yellow);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
}
.whats-card__icon svg{ width:54px; height:54px; }
.whats-card h3{ font-size: var(--fs-2xl); line-height:1.2; color: var(--dark); margin-bottom: 8px; }
.whats-card p{ color: var(--dark); opacity:.75; font-size: var(--fs-lg); line-height:1.6; margin: 0 0 17px; max-width: 34ch; }
.whats-card .btn{
  background: var(--dark); color: var(--white);
  display:inline-flex; align-items:center; justify-content:center; gap:12px;
  font-size: 17px;
}
.whats-card .btn:hover{ background: var(--dark-2); box-shadow: 0 10px 24px -10px rgba(51,54,58,.5); }
.btn__icon{ width:24px; height:24px; flex-shrink:0; }
.whats-card__tel{
  display:block; width:100%; text-align:center;
  margin-top: 16px;
  font-weight: 600; font-size: var(--fs-sm);
  color: var(--dark); opacity:.7;
}
.whats-card__tel:hover{ opacity:1; text-decoration: underline; }

.map-block{ margin-top: 72px; }
.map-block__switcher{ display:flex; gap:10px; margin-bottom: 16px; }
.map-block__tab{
  font-family: var(--font-display); font-weight:700; font-size: var(--fs-xs);
  letter-spacing:.04em; text-transform:uppercase;
  padding: 10px 20px;
  background: transparent;
  color: var(--gray-400);
  border: 1.5px solid rgba(255,255,255,.2);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.map-block__tab:hover{ color: var(--white); border-color: rgba(255,255,255,.4); }
.map-block__tab.is-active{ background: var(--yellow); color: var(--dark); border-color: var(--yellow); }
.map-block__frame{
  position:relative;
  width:100%; height: 380px;
  overflow:hidden;
  box-shadow: 0 24px 48px -28px rgba(0,0,0,.6);
}
.map-block__frame iframe{
  filter: grayscale(1) contrast(1.15) brightness(.95) sepia(.08);
  transition: filter .6s var(--ease);
}
.map-block__frame:hover iframe{ filter: grayscale(.15) contrast(1.05) brightness(1) sepia(0); }
.map-block__frame::after{
  content:'';
  position:absolute; inset:0;
  border-top: 3px solid var(--yellow);
  pointer-events:none;
}
.map-block__link{
  display:inline-flex; align-items:center; gap:8px;
  margin-top: 20px;
  font-family: var(--font-display); font-weight:700; font-size: var(--fs-sm);
  color: var(--yellow);
  transition: gap .3s var(--ease), color .3s ease;
}
.map-block__link:hover{ gap:14px; color: var(--yellow-dark); }

/* =========================== FOOTER =========================== */
.footer{ background: var(--dark); color: var(--gray-300); padding-top: 32px; }
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__left{ display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.footer__brand{ display:flex; align-items:center; }
.footer__brand .brand__logo{ width:180px; }
.footer__nav{ display:flex; align-items:center; }
.footer__nav a{
  font-weight:500; font-size: var(--fs-sm); color: var(--gray-300);
  padding: 0 16px; border-right: 1.5px solid var(--yellow);
  transition: color .25s ease;
}
.footer__nav a:first-child{ padding-left:0; }
.footer__nav a:last-child{ border-right:none; }
.footer__nav a:hover{ color: var(--yellow); }
.footer__social{
  width:40px; height:40px; flex-shrink:0;
  background: var(--yellow); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--dark);
  transition: background .25s ease, transform .3s var(--ease);
}
.footer__social:hover{ background: var(--yellow-dark); transform: translateY(-2px); }
.footer__social svg{ width:20px; height:20px; }

.footer__bottom{ padding: 34px 0; }
.footer__bottom-inner{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size: var(--fs-sm); color: var(--gray-500); }

/* =========================== COOKIE BANNER =========================== */
.cookie-banner{
  position: fixed; left:0; right:0; bottom:0; z-index: 600;
  background: var(--white);
  border-top: 3px solid var(--yellow);
  box-shadow: 0 -12px 30px -20px rgba(51,54,58,.25);
  transform: translateY(100%);
  transition: transform .5s var(--ease);
}
.cookie-banner.is-visible{ transform: translateY(0); }
.cookie-banner__inner{
  max-width: 1200px; margin:0 auto; padding: 22px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:28px;
  flex-wrap:wrap;
}
.cookie-banner p{ margin:0; color: var(--gray-600); font-size: var(--fs-sm); line-height:1.6; max-width:64ch; }
.cookie-banner__actions{ display:flex; gap:12px; flex-shrink:0; }

/* =========================== REVEAL ANIMATIONS =========================== */
.reveal{
  opacity:0;
  transform: translateY(150px) scale(.95);
  filter: blur(10px);
  transition:
    opacity 2s var(--ease),
    transform 2s var(--ease),
    filter 2s var(--ease);
  transition-delay: calc(var(--d, 0) * 220ms);
  will-change: transform, opacity, filter;
}
.reveal[data-delay="1"]{ --d:1; } .reveal[data-delay="2"]{ --d:2; } .reveal[data-delay="3"]{ --d:3; }
.reveal[data-delay="4"]{ --d:4; } .reveal[data-delay="5"]{ --d:5; } .reveal[data-delay="6"]{ --d:6; } .reveal[data-delay="7"]{ --d:7; } .reveal[data-delay="8"]{ --d:8; }
.reveal.is-visible{ opacity:1; transform:none; filter: blur(0); }

.hero .reveal{
  transform: translateY(180px) scale(.93);
  transition:
    opacity 2.2s var(--ease),
    transform 2.2s var(--ease),
    filter 2.2s var(--ease);
}
.hero .reveal.is-visible{ transform: none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  #heroRoute{ stroke-dashoffset:0; animation:none; }
  .hero__shape, .hero__scroll span{ animation:none; }
}

/* =========================== RESPONSIVE =========================== */
@media (max-width: 1080px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .diff-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px){
  .nav{ display:none; }
  .header__actions .btn--sm{ display:none; }
  .burger{ display:flex; }
  .mobile-nav{ display:flex; }
  .grid-2{ grid-template-columns: 1fr; gap: 40px; }
  .form__row{ grid-template-columns: 1fr; }
  .hero__inner{ max-width: 100%; margin: 0; text-align: left; }
  .hero__title{ align-items: flex-start; }
  .hero__desc{ margin-left: 0; }
  .hero__cta{ justify-content: flex-start; }
}

@media (max-width: 640px){
  :root{ --skew: 32px; --section-pad: 100px; }
  .section__head--right{ text-align:left; margin-left:0; }
  .section__head--right .section__text{ margin-left:0; }
  .text-right{ text-align:left; }
  .services-grid{ grid-template-columns: 1fr; }
  .diff-grid{ grid-template-columns: 1fr; }
  .footer__inner{ flex-direction:column; align-items:center; text-align:center; }
  .footer__left{ flex-direction:column; justify-content:center; }
  .footer__nav{ flex-direction:column; gap:10px; }
  .footer__nav a{ border-right:none; padding:0; }
  .footer__bottom-inner{ justify-content:center; text-align:center; }
  .hero__cta{ flex-direction:column; align-items:stretch; }
  .hero__cta .btn{ width:100%; }
}
