/* ============================================================
   TỬ VI LÂM TRẠCH — Landing page
   Bảng màu & cảm hứng lấy từ logo thủy mặc:
   núi xanh ngọc · vàng kim · kem ngà · mực · sen hồng
   ============================================================ */

:root {
  /* nền */
  --cream: #faf6ec;
  --cream-2: #f3ebd9;
  --paper: #fffdf8;

  /* mực & chữ */
  --ink: #24332d;
  --ink-soft: #51605a;
  --ink-faint: #8a958f;

  /* ngọc bích */
  --jade-900: #0f3b33;
  --jade-700: #185a4e;
  --jade-500: #2c7d6c;
  --jade-300: #6aa496;
  --jade-100: #d6e6e0;

  /* vàng kim */
  --gold: #c2a14e;
  --gold-bright: #e4ca84;
  --gold-deep: #9a7a2f;

  /* điểm nhấn sen */
  --lotus: #d98ba0;

  /* hệ thống */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 6px 22px rgba(18, 58, 51, 0.07);
  --shadow-md: 0 18px 50px rgba(18, 58, 51, 0.12);
  --shadow-gold: 0 14px 40px rgba(154, 122, 47, 0.18);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-serif: "Cormorant Garamond", "Lora", Georgia, serif;
  --font-sans: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- tiện ích ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.left::before { display: none; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  color: var(--jade-900);
  letter-spacing: 0.01em;
}
.section-title em { font-style: italic; color: var(--gold-deep); }

.lead {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 620px;
}

.section { padding: clamp(72px, 11vw, 130px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 18px; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* viền ngăn vàng kiểu cổ */
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 0 auto;
}
.divider span { height: 1px; width: 90px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider svg { color: var(--gold); }

/* ---------- nút ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 0.97rem;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer; border: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--jade-700), var(--jade-500));
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  opacity: 0; transition: opacity .4s var(--ease);
}
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.btn-primary:hover::after { opacity: 1; }

.btn-ghost {
  color: var(--jade-900);
  background: transparent;
  border: 1.5px solid rgba(154, 122, 47, 0.4);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(194, 161, 78, 0.08); transform: translateY(-3px); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), padding .5s var(--ease);
  padding: 18px 0;
}
.header.scrolled {
  background: rgba(250, 246, 236, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(154, 122, 47, 0.18), var(--shadow-sm);
  padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 50px; height: 50px; border-radius: 50%; box-shadow: var(--shadow-sm); transition: width .5s var(--ease), height .5s var(--ease); }
.header.scrolled .brand img { width: 42px; height: 42px; }
.brand-text { line-height: 1.05; }
.brand-text b {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 1.32rem; color: var(--jade-900); letter-spacing: .02em; display: block;
}
.brand-text small { font-size: .64rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: .94rem; font-weight: 500; color: var(--ink); position: relative; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--jade-700); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 16px; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--jade-900); border-radius: 2px; transition: .35s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #fffdf8 0%, var(--cream) 45%, var(--cream-2) 100%);
  padding: 140px 0 90px;
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* trăng lưỡi liềm */
.moon {
  position: absolute; top: 13%; right: 13%; width: 80px; height: 80px; z-index: 1;
  animation: floaty 9s ease-in-out infinite;
}
.moon::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset -16px 6px 0 0 var(--gold-bright);
  filter: drop-shadow(0 0 24px rgba(228, 202, 132, .55));
}

/* mây trôi */
.cloud { position: absolute; z-index: 1; opacity: .5; color: var(--jade-300); animation: drift linear infinite; }
.cloud-1 { top: 22%; left: -160px; animation-duration: 60s; }
.cloud-2 { top: 40%; left: -260px; animation-duration: 85s; opacity: .32; transform: scale(1.5); }

/* núi thủy mặc dưới đáy */
.mountains { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; line-height: 0; }
.mountains svg { width: 100%; height: auto; display: block; }

.hero-inner { position: relative; z-index: 3; max-width: 880px; padding: 0 24px; }
.hero-logo {
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 28px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(194,161,78,.35), 0 0 60px rgba(228,202,132,.35);
  animation: floaty 7s ease-in-out infinite;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.9rem, 9vw, 6rem);
  line-height: .98; color: var(--jade-900);
  letter-spacing: .01em; margin-bottom: 8px;
}
.hero h1 .gold {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold-bright) 50%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-family: var(--font-sans); font-size: clamp(.82rem, 2vw, 1rem);
  letter-spacing: .42em; text-transform: uppercase; color: var(--gold-deep);
  font-weight: 600; margin-bottom: 26px;
}
.hero-tagline {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  color: var(--ink); max-width: 660px; margin: 0 auto 38px; line-height: 1.45;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: var(--ink-faint); font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint .mouse {
  width: 22px; height: 34px; border: 1.5px solid var(--gold); border-radius: 12px; position: relative;
}
.scroll-hint .mouse::after {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px; background: var(--gold);
  animation: wheel 1.6s ease-in-out infinite;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: linear-gradient(180deg, var(--jade-900), var(--jade-700));
  color: #fff; position: relative; overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 100% at 0% 0%, rgba(228,202,132,.14), transparent 60%),
    radial-gradient(50% 100% at 100% 100%, rgba(228,202,132,.1), transparent 60%);
}
.stats .wrap { position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 64px 0; }
.stat { text-align: center; padding: 8px 14px; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 18%; height: 64%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(228,202,132,.4), transparent);
}
.stat-num {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1;
  background: linear-gradient(120deg, var(--gold-bright), #fff 60%, var(--gold-bright));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .9rem; color: rgba(255,255,255,.78); margin-top: 10px; letter-spacing: .02em; }

/* ============================================================
   ABOUT — 3 trụ cột
   ============================================================ */
.about { background: var(--cream); position: relative; }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.pillars { display: grid; gap: 18px; }
.pillar {
  background: var(--paper); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(154,122,47,.12);
  display: flex; gap: 20px; align-items: flex-start;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(194,161,78,.4); }
.pillar-ico {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; color: var(--jade-700);
  background: linear-gradient(135deg, var(--jade-100), #fff);
  box-shadow: inset 0 0 0 1px rgba(154,122,47,.2);
}
.pillar-ico svg { width: 28px; height: 28px; }
.pillar h3 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: var(--jade-900); margin-bottom: 4px; }
.pillar p { font-size: .96rem; color: var(--ink-soft); }

.about-copy .lead { margin-bottom: 22px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.about-seal {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 16px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--paper); box-shadow: var(--shadow-sm); border: 1px solid rgba(154,122,47,.18);
}
.about-seal img { width: 46px; height: 46px; border-radius: 50%; }
.about-seal span { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--jade-900); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc {
  background: var(--paper); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(154,122,47,.1);
  position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.svc::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.svc:hover::before { transform: scaleX(1); }
.svc-ico {
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 22px;
  display: grid; place-items: center; color: var(--gold-deep);
  background: linear-gradient(135deg, #fff, var(--cream-2));
  box-shadow: inset 0 0 0 1px rgba(154,122,47,.22), var(--shadow-sm);
  transition: transform .45s var(--ease), color .45s var(--ease);
}
.svc:hover .svc-ico { transform: rotate(-6deg) scale(1.06); color: var(--jade-700); }
.svc-ico svg { width: 30px; height: 30px; }
.svc h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--jade-900); margin-bottom: 10px; }
.svc p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 18px; }
.svc-more { font-size: .88rem; font-weight: 600; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 7px; transition: gap .3s var(--ease); }
.svc:hover .svc-more { gap: 12px; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 0 10px; }
.step-dot {
  width: 80px; height: 80px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: var(--paper); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(154,122,47,.2); color: var(--jade-700);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .45s var(--ease), color .45s var(--ease);
}
.step-dot svg { width: 34px; height: 34px; }
.step:hover .step-dot { transform: translateY(-6px); background: linear-gradient(135deg, var(--jade-700), var(--jade-500)); color: #fff; box-shadow: var(--shadow-gold); }
.step-num {
  counter-increment: step; position: absolute; top: -6px; right: -6px;
  width: 28px; height: 28px; border-radius: 50%; font-size: .8rem; font-weight: 700;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold)); box-shadow: var(--shadow-sm);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--jade-900); margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--ink-soft); }
.steps-line { position: relative; }
/* đường nối các bước (desktop) */
.steps::before {
  content: ""; position: absolute; top: 40px; left: 12%; right: 12%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 18px);
  opacity: .5;
}
.step { z-index: 1; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tcard {
  background: var(--paper); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(154,122,47,.1); position: relative;
}
.tcard .quote {
  font-family: var(--font-serif); font-size: 3.4rem; line-height: 1; color: var(--gold);
  opacity: .35; position: absolute; top: 14px; right: 24px;
}
.tstars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; font-size: .9rem; }
.tcard p { font-size: 1rem; color: var(--ink); font-style: italic; margin-bottom: 22px; font-family: var(--font-serif); line-height: 1.5; }
.tperson { display: flex; align-items: center; gap: 14px; }
.tavatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; color: #fff; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--jade-700), var(--jade-500));
}
.tperson b { display: block; color: var(--jade-900); font-size: .96rem; }
.tperson small { color: var(--ink-faint); font-size: .82rem; }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: clamp(70px, 10vw, 120px) 0; }
.cta-box {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--jade-900), var(--jade-700));
  border-radius: 30px; padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 80px);
  text-align: center; color: #fff; box-shadow: var(--shadow-md);
}
.cta-box::before, .cta-box::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.cta-box::before { width: 360px; height: 360px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(228,202,132,.22), transparent 70%); }
.cta-box::after { width: 300px; height: 300px; bottom: -150px; left: -100px; background: radial-gradient(circle, rgba(228,202,132,.16), transparent 70%); }
.cta-box .eyebrow { color: var(--gold-bright); justify-content: center; }
.cta-box .eyebrow::before, .cta-box .eyebrow::after { background: linear-gradient(90deg, transparent, var(--gold-bright)); }
.cta-box h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; margin: 18px 0 16px;
}
.cta-box h2 em { font-style: italic; color: var(--gold-bright); }
.cta-box p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 34px; }
.cta-box .hero-cta .btn-ghost { color: #fff; border-color: rgba(228,202,132,.5); }
.cta-box .hero-cta .btn-ghost:hover { background: rgba(228,202,132,.12); border-color: var(--gold-bright); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--jade-900); color: rgba(255,255,255,.78); padding: 70px 0 30px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 44px; }
.footer .brand-text b { color: #fff; }
.footer-about { margin-top: 18px; max-width: 320px; font-size: .94rem; line-height: 1.7; }
.footer h4 { font-family: var(--font-serif); color: var(--gold-bright); font-size: 1.25rem; font-weight: 600; margin-bottom: 18px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: .94rem; transition: color .3s; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-contact li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .94rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-bright); flex: 0 0 18px; }
.footer-contact a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid rgba(228,202,132,.18); padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.footer-bottom .socials { display: flex; gap: 12px; }
.footer-bottom .socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(228,202,132,.3); transition: .35s var(--ease);
}
.footer-bottom .socials a:hover { background: var(--gold); color: var(--jade-900); border-color: var(--gold); transform: translateY(-3px); }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ---------- nút nổi nhắn tin + back to top ---------- */
.fab {
  position: fixed; right: 22px; bottom: 24px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.fab-chat {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--jade-700), var(--jade-500)); color: #fff;
  box-shadow: var(--shadow-md); position: relative;
  transition: transform .4s var(--ease);
}
.fab-chat:hover { transform: translateY(-3px) scale(1.05); }
.fab-chat::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--jade-500); animation: ring 2s ease-out infinite;
}
.to-top {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--jade-700); box-shadow: var(--shadow-sm);
  border: 1px solid rgba(154,122,47,.25); cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: .4s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { color: var(--gold-deep); transform: translateY(-3px); }

/* ============================================================
   REVEAL & KEYFRAMES
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 320px)); } }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .svc-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 100px 32px; gap: 8px; box-shadow: var(--shadow-md);
    transform: translateX(100%); transition: transform .45s var(--ease); z-index: 95;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; padding: 10px 0; width: 100%; }
  .nav-cta .btn { display: none; }
  .menu-toggle { display: flex; z-index: 96; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; padding: 48px 0; }
  .stat:nth-child(2)::after { display: none; }
  .svc-grid, .testi-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .moon { width: 56px; height: 56px; top: 12%; right: 10%; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  .hero-logo { width: 120px; height: 120px; }
}
