/* =========================================================
   Dan Sonego — Digital Marketing Consultant
   Dark, growth-coded aesthetic. Lime + teal on near-black.
   ========================================================= */

/* ---------- Ploni (local webfonts) ---------- */
@font-face { font-family: 'Ploni'; src: url('../assets/fonts/ploni-light-aaa.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('../assets/fonts/ploni-regular-aaa.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('../assets/fonts/ploni-medium-aaa.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('../assets/fonts/ploni-demibold-aaa.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('../assets/fonts/ploni-bold-aaa.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('../assets/fonts/ploni-ultrabold-aaa.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Ploni'; src: url('../assets/fonts/ploni-black-aaa.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --bg:        #0a0b0d;
  --bg-soft:   #101216;
  --bg-card:   #14171c;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --ink:       #f4f6ef;
  --ink-dim:   #a6ac9c;
  --ink-faint: #6c7263;
  --lime:      #d4ff3f;
  --lime-soft: #b8e62f;
  --teal:      #22d3aa;
  --grad:      linear-gradient(120deg, #d4ff3f 0%, #7ef0a0 45%, #22d3aa 100%);
  --radius:    20px;
  --radius-sm: 13px;
  --maxw:      1240px;
  --font-d:    'Ploni', 'Heebo', system-ui, sans-serif;
  --font-b:    'Ploni', 'Assistant', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--lime); color: #0a0b0d; }

h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; }

/* ---------- atmosphere ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 75%);
  opacity: .5;
}
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .35; will-change: transform; }
.orb--lime { width: 540px; height: 540px; background: #9bd700; top: -180px; inset-inline-start: -120px; }
.orb--teal { width: 600px; height: 600px; background: #0e8f78; bottom: -220px; inset-inline-end: -160px; opacity: .3; }
.noise {
  position: absolute; inset: 0; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 200; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 14px rgba(212,255,63,.6); }

/* ---------- shared ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 11vw, 150px) 24px; }
.eyebrow {
  display: inline-block; font-family: var(--font-d); font-weight: 700;
  font-size: 13px; letter-spacing: .14em; color: var(--lime); margin-bottom: 18px;
}
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__title { font-size: clamp(28px, 4.4vw, 52px); margin-bottom: 18px; }
.section__sub { color: var(--ink-dim); font-size: clamp(16px, 2vw, 19px); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-d); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 100px; border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
}
.btn--primary { background: var(--grad); color: #0a0b0d; box-shadow: 0 10px 34px -10px rgba(212,255,63,.55); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -10px rgba(212,255,63,.7); }
.btn--ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: rgba(255,255,255,.07); transform: translateY(-3px); }
.btn--block { width: 100%; justify-content: center; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 48px);
  transition: background .35s, backdrop-filter .35s, padding .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,11,13,.72); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line); padding-top: 11px; padding-bottom: 11px;
}
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-family: var(--font-d); font-weight: 500; font-size: 15.5px; color: var(--ink-dim); transition: color .2s; position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; bottom: -6px; inset-inline-start: 0; height: 2px; width: 0;
  background: var(--lime); transition: width .25s;
}
.nav__links a:not(.nav__cta):hover { color: var(--ink); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: rgba(212,255,63,.1); border: 1px solid rgba(212,255,63,.3);
  color: var(--lime) !important; padding: 9px 20px; border-radius: 100px; transition: background .2s, transform .2s;
}
.nav__cta:hover { background: rgba(212,255,63,.18); transform: translateY(-2px); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; max-width: var(--maxw); margin: 0 auto; padding: 120px 24px 80px; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; width: 100%; }
.hero__title { font-size: clamp(40px, 7.5vw, 92px); font-weight: 900; letter-spacing: -.025em; margin-bottom: 24px; }
.hero__title span { display: block; }
.hero__title em {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { color: var(--ink-dim); font-size: clamp(16px, 2.1vw, 20px); max-width: 48ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero__stats { display: flex; gap: 40px; list-style: none; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; }
.hero__stats .num { display: block; font-family: var(--font-d); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); color: var(--ink); line-height: 1; }
.hero__stats small { display: block; color: var(--ink-faint); font-size: 13.5px; margin-top: 6px; }

.hero__visual { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 480px; }
.hero__photo {
  position: relative; z-index: 2; max-height: 560px; width: auto;
  filter: drop-shadow(0 28px 50px rgba(0,0,0,.55));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }
.hero__photo-glow {
  position: absolute; z-index: 0; width: 80%; aspect-ratio: 1; bottom: 8%; inset-inline: 0; margin: auto;
  background: radial-gradient(circle, rgba(212,255,63,.28), rgba(34,211,170,.12) 52%, transparent 70%);
  filter: blur(28px);
}
.hero__photo-disc {
  position: absolute; z-index: 1; bottom: 4%; inset-inline: 0; margin: auto;
  width: 78%; height: 76%; border-radius: 50% 50% 30% 30%;
  background: radial-gradient(ellipse at 50% 35%, rgba(20,23,28,.9), rgba(20,23,28,0) 70%);
  border: 1px solid rgba(212,255,63,.12);
  box-shadow: inset 0 -40px 80px -40px rgba(34,211,170,.25);
}
.hero__badge {
  position: absolute; z-index: 3; font-family: var(--font-d); font-weight: 600; font-size: 14px;
  background: rgba(20,23,28,.85); backdrop-filter: blur(10px); border: 1px solid var(--line-2);
  padding: 10px 16px; border-radius: 100px; white-space: nowrap;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.8);
}
.hero__badge--1 { top: 12%; inset-inline-start: -2%; }
.hero__badge--2 { bottom: 20%; inset-inline-end: -6%; color: var(--lime); }

/* floating growth dashboard */
.hero__chart {
  position: absolute; z-index: 4; bottom: 6%; inset-inline-end: -8%;
  width: min(280px, 70%);
  background: rgba(16,19,24,.82); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -22px rgba(0,0,0,.85), 0 0 50px -24px rgba(212,255,63,.35);
  animation: floatCard 7s ease-in-out infinite;
}
@keyframes floatCard { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }
.hero__chart-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.hero__chart-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #2a2f37; }
.hero__chart-bar .dot:first-child { background: #ff5f57; }
.hero__chart-bar .dot:nth-child(2) { background: #febc2e; }
.hero__chart-bar .dot:nth-child(3) { background: #28c840; }
.hero__chart-title { margin-inline-start: auto; font-family: var(--font-d); font-weight: 600; font-size: 12.5px; color: var(--ink-dim); }
.hero__chart-body { padding: 14px 14px 12px; }
.hero__chart-kpi { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.kpi-num { font-family: var(--font-d); font-weight: 900; font-size: 30px; color: var(--ink); line-height: 1; }
.kpi-up { font-family: var(--font-d); font-weight: 700; font-size: 12.5px; color: var(--lime); }
.growth { width: 100%; height: 70px; display: block; }
.growth-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero__chart-bars { display: flex; align-items: flex-end; gap: 5px; height: 34px; margin-top: 8px; }
.hero__chart-bars span { flex: 1; height: var(--h); background: linear-gradient(to top, rgba(34,211,170,.4), rgba(212,255,63,.85)); border-radius: 3px 3px 0 0; }

.hero__scroll { position: absolute; bottom: 26px; inset-inline-start: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 8px; inset-inline-start: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--lime); border-radius: 4px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0%{ opacity: 0; top: 8px; } 40%{ opacity: 1; } 80%{ opacity: 0; top: 24px; } 100%{ opacity: 0; } }

/* =========================================================
   DIVISIONS
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px 30px; overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(212,255,63,.1), transparent 60%);
}
.card:hover { border-color: rgba(212,255,63,.4); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.card:hover::before { opacity: 1; }
.card__num { font-family: var(--font-d); font-weight: 800; font-size: 14px; color: var(--ink-faint); letter-spacing: .1em; }
.card__logo {
  margin: 16px 0 14px; height: 70px; display: flex; align-items: center; justify-content: flex-start;
  background: #fbfbf7; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 14px 20px; width: 100%;
}
.card__logo img { max-height: 100%; max-width: 80%; width: auto; object-fit: contain; }
.card__tag { display: inline-block; margin-top: 4px; font-family: var(--font-d); font-weight: 600; font-size: 13px; color: var(--teal); background: rgba(34,211,170,.1); padding: 5px 12px; border-radius: 100px; }
.card__desc { color: var(--ink-dim); margin-top: 18px; font-size: 15.5px; min-height: 96px; }
.card__link { display: inline-block; margin-top: 12px; font-family: var(--font-d); font-weight: 700; font-size: 15px; color: var(--lime); transition: gap .2s; }
.card:hover .card__link { letter-spacing: .01em; }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.about__media { position: sticky; top: 110px; }
.about__photo-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(212,255,63,.12), transparent 60%),
    linear-gradient(160deg, #15181d, #0e1014);
  border: 1px solid var(--line-2); padding-top: 26px; min-height: 340px;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.8);
}
.about__photo-wrap::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000, transparent 75%); pointer-events: none; }
.about__photo-wrap img { position: relative; z-index: 1; margin: 0 auto; max-height: 400px; display: block; }
.about__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.about__chips span { font-family: var(--font-d); font-weight: 500; font-size: 14px; color: var(--ink-dim); background: var(--bg-card); border: 1px solid var(--line); padding: 9px 15px; border-radius: 100px; }
.about__body p { color: var(--ink-dim); margin-top: 18px; }
.about__body p:first-child { color: var(--ink); font-size: 20px; font-weight: 600; font-family: var(--font-d); }

/* =========================================================
   WORK
   ========================================================= */
.work__results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 56px; }
.result { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 28px 22px; transition: border-color .3s, transform .3s; }
.result:hover { border-color: rgba(34,211,170,.4); }
.result__num { font-family: var(--font-d); font-weight: 900; font-size: clamp(30px, 4vw, 46px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.result__label { display: block; margin-top: 12px; color: var(--ink-dim); font-size: 14.5px; }

.work__portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, transform .3s; }
.project:hover { border-color: var(--line-2); }
.project__thumb { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.project__thumb span { position: relative; z-index: 2; font-family: var(--font-d); font-weight: 800; font-size: 22px; color: rgba(255,255,255,.9); }
.project__thumb::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.18) 1px, transparent 1px); background-size: 26px 26px; opacity: .5; }
.project__thumb--a { background: linear-gradient(135deg, #1a2e05, #2f4d0a); }
.project__thumb--b { background: linear-gradient(135deg, #052e26, #0a4d40); }
.project__thumb--c { background: linear-gradient(135deg, #1f2937, #374151); }
.project__meta { padding: 22px 22px 26px; }
.project__meta h3 { font-size: 21px; }
.project__meta p { color: var(--ink-dim); font-size: 15px; margin: 10px 0 14px; }
.project__meta a { font-family: var(--font-d); font-weight: 700; color: var(--lime); font-size: 15px; }

/* =========================================================
   TIPS
   ========================================================= */
.tips__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tip { background: linear-gradient(180deg, var(--bg-card), rgba(20,23,28,.6)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: transform .3s, border-color .3s; }
.tip:hover { transform: translateY(-6px); border-color: rgba(212,255,63,.35); }
.tip__cat { display: inline-block; font-family: var(--font-d); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--lime); border: 1px solid rgba(212,255,63,.3); padding: 4px 12px; border-radius: 100px; margin-bottom: 16px; }
.tip h3 { font-size: 20px; margin-bottom: 10px; }
.tip p { color: var(--ink-dim); font-size: 15.5px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact__intro p { color: var(--ink-dim); margin-top: 10px; max-width: 46ch; }
.contact__direct { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact__chip { font-family: var(--font-d); font-weight: 600; font-size: 14.5px; background: var(--bg-card); border: 1px solid var(--line-2); padding: 11px 18px; border-radius: 100px; transition: border-color .25s, color .25s, transform .25s; }
.contact__chip:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }

.contact__form { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.field { position: relative; margin-bottom: 18px; }
.field input, .field textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 18px 16px 8px; color: var(--ink); font-family: var(--font-b); font-size: 16px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { padding-top: 22px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(212,255,63,.12); }
.field label { position: absolute; inset-inline-start: 16px; top: 15px; color: var(--ink-faint); font-size: 16px; pointer-events: none; transition: .2s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 6px; font-size: 11.5px; color: var(--lime); letter-spacing: .03em;
}
.form-note { margin-top: 14px; font-size: 14.5px; min-height: 20px; color: var(--teal); }
/* visually hidden WITHOUT causing horizontal overflow (no off-screen positioning) */
.hp-field { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer__top { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 40px; display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 36px; }
.footer__brand img { height: 42px; margin-bottom: 16px; }
.footer__brand p { color: var(--ink-dim); font-size: 15px; max-width: 34ch; }
.footer__col h4 { font-size: 14px; color: var(--ink); margin-bottom: 16px; letter-spacing: .04em; }
.footer__col a { display: block; color: var(--ink-dim); font-size: 15px; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--lime); }
.footer__bottom { max-width: var(--maxw); margin: 0 auto; padding: 22px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--ink-faint); font-size: 13.5px; }

/* ---------- floating action ---------- */
.fab {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .25s; animation: fabpulse 2.4s infinite;
}
.fab:hover { transform: scale(1.08); }
@keyframes fabpulse { 0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.45); } 70%{ box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* =========================================================
   ENTRANCE ANIMATIONS (CSS-driven, ticker-independent)
   Everything is visible by default. Entrance/hidden states apply ONLY
   under html.js, so if JS is unavailable the page stays fully visible.
   ========================================================= */
@keyframes danIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes danFade { to { opacity: 1; } }
@keyframes danDraw { to { stroke-dashoffset: 0; } }
@keyframes danBar  { to { transform: scaleY(1); } }

/* scroll reveals — revealed when JS adds .in (via IntersectionObserver) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* gentle stagger inside grids */
.js .cards .card:nth-child(2), .js .work__portfolio .project:nth-child(2),
.js .tips__grid .tip:nth-child(2), .js .work__results .result:nth-child(2) { transition-delay: .08s; }
.js .cards .card:nth-child(3), .js .work__portfolio .project:nth-child(3),
.js .tips__grid .tip:nth-child(3), .js .work__results .result:nth-child(3) { transition-delay: .16s; }
.js .work__results .result:nth-child(4), .js .tips__grid .tip:nth-child(4) { transition-delay: .24s; }
.js .tips__grid .tip:nth-child(5) { transition-delay: .3s; }
.js .tips__grid .tip:nth-child(6) { transition-delay: .36s; }

/* hero entrance (auto-plays on load) */
.js .hero__text > * { opacity: 0; animation: danIn .8s cubic-bezier(.2,.8,.2,1) forwards; }
.js .hero__text > *:nth-child(1) { animation-delay: .05s; }
.js .hero__text > *:nth-child(2) { animation-delay: .15s; }
.js .hero__text > *:nth-child(3) { animation-delay: .28s; }
.js .hero__text > *:nth-child(4) { animation-delay: .4s; }
.js .hero__text > *:nth-child(5) { animation-delay: .5s; }
.js .hero__visual { opacity: 0; animation: danIn 1s cubic-bezier(.2,.8,.2,1) .25s forwards; }
.js .hero__badge  { opacity: 0; animation: danIn .6s ease .9s forwards; }

/* hero growth chart (auto-plays on load) */
.js .growth-area { opacity: 0; animation: danFade .5s ease 1s forwards; }
.js .growth-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: danDraw 1.5s ease 1.05s forwards; }
.js .growth-dot  { opacity: 0; animation: danFade .4s ease 2.3s forwards; }
.js .hero__chart-bars span { transform: scaleY(0); transform-origin: bottom; animation: danBar .55s cubic-bezier(.2,.8,.2,1) forwards; }
.js .hero__chart-bars span:nth-child(1){ animation-delay: 1.5s; }
.js .hero__chart-bars span:nth-child(2){ animation-delay: 1.6s; }
.js .hero__chart-bars span:nth-child(3){ animation-delay: 1.7s; }
.js .hero__chart-bars span:nth-child(4){ animation-delay: 1.8s; }
.js .hero__chart-bars span:nth-child(5){ animation-delay: 1.9s; }
.js .hero__chart-bars span:nth-child(6){ animation-delay: 2.0s; }
.js .hero__chart-bars span:nth-child(7){ animation-delay: 2.1s; }

/* safety: if reduced motion, force everything visible immediately */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .hero__text > *, .js .hero__visual, .js .hero__badge,
  .js .growth-area, .js .growth-dot, .js .hero__chart-bars span {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
  .js .growth-line { stroke-dashoffset: 0 !important; animation: none !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 10px; }
  .hero__visual { min-height: 380px; order: -1; }
  .hero__photo { max-height: 420px; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__media { position: static; }
  .about__photo-wrap img { max-height: 360px; }
  .cards, .work__portfolio, .tips__grid { grid-template-columns: 1fr 1fr; }
  .work__results { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: 40px; background: rgba(10,11,13,.96); backdrop-filter: blur(18px); border-inline-start: 1px solid var(--line); transform: translateX(-110%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
  html[dir="rtl"] .nav__links { inset: 0 0 0 auto; border-inline-start: 0; border-inline-end: 1px solid var(--line); transform: translateX(110%); }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 20px; }
  .nav__burger { display: flex; z-index: 101; }
  .cards, .work__portfolio, .tips__grid, .work__results, .footer__top { grid-template-columns: 1fr; }
  .hero__badge--1 { inset-inline-start: 2%; }
  .hero__badge--2 { inset-inline-end: 2%; }
  .hero__chart { inset-inline-end: 0; bottom: 0; width: min(230px, 82%); }
  .kpi-num { font-size: 26px; }
  .hero__stats { gap: 26px; }
  .section { padding-inline: 18px; }
  .contact__form { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
