/* ==========================================================
   Al-Rahimya Digital Marketing Agency — site stylesheet v2
   See DESIGN.md for the token system and component rules.
   ========================================================== */

:root {
  --ink: #0a0906;
  --ink-2: #0f0d08;
  --card: #16120a;
  --card-2: #1c1710;
  --line: rgba(198, 160, 78, 0.28);
  --line-soft: rgba(198, 160, 78, 0.14);
  --gold: #c6a04e;
  --gold-light: #e6c97e;
  --gold-deep: #8f6f2e;
  --cream: #ede0c8;
  --muted: #a2988a;
  --grad-gold: linear-gradient(100deg, #8f6f2e 0%, #e6c97e 45%, #f4e3ae 55%, #c6a04e 100%);
  --radius: 14px;
  --wrap: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-exit: cubic-bezier(0.55, 0, 0.55, 0.2);
  --z-float: 30;
  --z-overlay: 80;
  --z-nav: 90;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  padding-top: 92px;
  -webkit-font-smoothing: antialiased;
}

/* fixed radial gold glow, like the deck */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(198, 160, 78, 0.10), transparent 65%),
    radial-gradient(700px 480px at -10% 110%, rgba(198, 160, 78, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* film grain to break digital flatness */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

main { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.05rem; letter-spacing: 0.05em; line-height: 1.3; }

/* solid gold accent word — the general treatment */
.accent {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.18em;
  color: var(--gold-light);
}

/* gradient lettering: reserved for the hero H1 word only (poster signature) */
.accent-grad {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 58ch;
  text-wrap: pretty;
}

/* ---------- growth-line divider (signature) ---------- */

.growth-rule {
  width: 120px;
  height: 22px;
  margin-top: 26px;
}

.growth-rule polyline {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.growth-rule .tip { fill: var(--gold-light); }

/* ---------- floating pill nav ---------- */

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1060px;
  padding: 9px 10px 9px 20px;
  border-radius: 999px;
  background: rgba(13, 11, 7, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-soft);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img { height: 38px; width: auto; max-width: 210px; object-fit: contain; display: block; }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
}

.brand-name span {
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}

.nav-links a:hover { color: var(--gold-light); }

.nav-links a[aria-current="page"] { color: var(--gold-light); }

.nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* hamburger — two bars that morph into an X */
.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-light);
  transition: transform 0.35s var(--ease);
}

.nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) translateY(-4px); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, -50%) translateY(4px); }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* full-screen mobile menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 118px 30px 40px;
  overflow-y: auto;
  background: rgba(10, 9, 6, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease-exit), visibility 0s linear 0.3s;
}

.nav-overlay.open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.45s var(--ease);
}

.nav-overlay ul { list-style: none; }

.ov-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cream);
  transform: translateY(26px);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease), color 0.25s var(--ease);
  transition-delay: 0s;
}

.nav-overlay.open .ov-link {
  transform: none;
  opacity: 1;
  transition-delay: calc(0.06s + var(--i, 0) * 0.06s);
}

.ov-link::after {
  content: "\2192";
  font-size: 0.5em;
  color: var(--gold);
  transition: transform 0.35s var(--ease);
}

.ov-link:hover { color: var(--gold-light); }
.ov-link:hover::after { transform: translateX(6px); }

.ov-link[aria-current="page"] { color: var(--gold-light); }

.nav-overlay .ov-contact {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease);
}

.nav-overlay.open .ov-contact {
  opacity: 1;
  transform: none;
  transition-delay: 0.42s;
}

body.menu-open { overflow: hidden; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }

/* nested arrow chip */
.btn-chip {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn-chip { transform: translate(2px, -2px); }

.btn-gold {
  background: var(--grad-gold);
  color: #241a06;
  box-shadow: 0 6px 24px rgba(198, 160, 78, 0.25);
}

.btn-gold:hover { color: #241a06; box-shadow: 0 10px 32px rgba(198, 160, 78, 0.4); }

.btn-gold .btn-chip { background: rgba(20, 14, 3, 0.22); color: #241a06; }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--gold-light);
  padding: 11px 13px 11px 25px;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.btn-ghost .btn-chip { background: rgba(198, 160, 78, 0.12); color: var(--gold-light); }

.btn-nav { padding: 9px 10px 9px 18px; font-size: 0.72rem; gap: 9px; }
.btn-nav .btn-chip { width: 26px; height: 26px; font-size: 0.85rem; }

/* ---------- hero (home) ---------- */

.hero {
  padding: clamp(48px, 8vh, 96px) 0 70px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero .lead { margin: 22px 0 36px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* orchestrated load: text staggers in */
.hero-in { animation: heroIn 0.9s var(--ease) backwards; }
.hero-in:nth-child(1) { animation-delay: 0.05s; }
.hero-in:nth-child(2) { animation-delay: 0.16s; }
.hero-in:nth-child(3) { animation-delay: 0.28s; }
.hero-in:nth-child(4) { animation-delay: 0.4s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* animated gold bar chart + rising line, echoes the brand posts */
.hero-chart { position: relative; }

.hero-chart svg { width: 100%; height: auto; overflow: visible; }

.hero-chart .bar {
  fill: url(#barGrad);
  transform-origin: bottom;
  transform-box: fill-box;
  animation: barRise 0.9s var(--ease) backwards;
}

.hero-chart .bar:nth-child(1) { animation-delay: 0.35s; }
.hero-chart .bar:nth-child(2) { animation-delay: 0.50s; }
.hero-chart .bar:nth-child(3) { animation-delay: 0.65s; }
.hero-chart .bar:nth-child(4) { animation-delay: 0.80s; }
.hero-chart .bar:nth-child(5) { animation-delay: 0.95s; }

@keyframes barRise {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.hero-chart .growth-path {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: drawLine 1.4s var(--ease) 0.9s forwards;
  filter: drop-shadow(0 0 6px rgba(230, 201, 126, 0.45));
}

.hero-chart .arrow-head {
  fill: var(--gold-light);
  opacity: 0;
  animation: fadeIn 0.4s ease-out 2.2s forwards;
}

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- sections ---------- */

.section { padding: clamp(64px, 10vh, 110px) 0; }

.section-head { margin-bottom: 52px; max-width: 680px; }

.section-head .lead { margin-top: 14px; }

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(198, 160, 78, 0.045) 18%, rgba(198, 160, 78, 0.045) 82%, transparent);
}

/* ---------- service index (home): typographic rows, not cards ---------- */

.svc-list {
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.svc-list a {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) auto;
  gap: 10px 32px;
  align-items: center;
  padding: 30px 6px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--cream);
  transition: background 0.3s var(--ease);
}

.svc-list a:hover { background: rgba(198, 160, 78, 0.045); }

.svc-name {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.15;
  transition: color 0.3s var(--ease);
}

.svc-list a:hover .svc-name { color: var(--gold-light); }

.svc-desc {
  color: var(--muted);
  font-size: 0.94rem;
}

.svc-arrow {
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1rem;
  transition: background 0.3s var(--ease), transform 0.35s var(--ease), color 0.3s var(--ease);
}

.svc-list a:hover .svc-arrow {
  background: var(--gold);
  color: #241a06;
  transform: translate(3px, -3px);
}

/* ---------- cards (contact methods, why-us) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
}

.card h3 { margin: 18px 0 10px; color: var(--gold-light); }

.card p { color: var(--muted); font-size: 0.93rem; }

.card .icon {
  width: 46px;
  height: 46px;
  color: var(--gold);
}

/* ---------- value strip (the five brand promises) ---------- */

.value-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 34px 0;
}

.value-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 0;
}

.value-item {
  flex: 1 1 180px;
  text-align: center;
  padding: 6px 18px;
  border-right: 1px solid var(--line-soft);
}

.value-item:last-child { border-right: none; }

.value-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.value-item span {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--muted);
}

/* ---------- process (a real sequence — numbering earns its place) ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  border-top: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.85;
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}

.step h3 { color: var(--cream); margin-bottom: 8px; }

.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- portfolio ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.work-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--card);
  aspect-ratio: 4 / 5;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-item:hover img { transform: scale(1.045); }

.work-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(10, 9, 6, 0.92));
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* empty slot awaiting an image */
.work-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}

.work-placeholder .mono {
  width: 54px;
  opacity: 0.5;
}

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  padding: clamp(40px, 7vh, 76px) 0 56px;
  border-bottom: 1px solid var(--line-soft);
}

.page-hero .lead { margin-top: 18px; }

/* ---------- service detail rows ---------- */

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid var(--line-soft);
}

.service-row:last-of-type { border-bottom: none; }

/* alternate orientation for rhythm */
.service-row:nth-of-type(even) .service-deliverables { order: -1; }

.service-row .icon {
  width: 54px;
  height: 54px;
  color: var(--gold);
  margin-bottom: 20px;
}

.service-row h2 { margin-bottom: 14px; }

.service-row .lead { font-size: 0.98rem; }

.service-deliverables h3 {
  color: var(--gold-light);
  margin-bottom: 16px;
}

.service-deliverables ul {
  list-style: none;
  color: var(--muted);
}

.service-deliverables li {
  padding: 9px 0 9px 26px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.94rem;
}

.service-deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 11px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.about-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: radial-gradient(420px 300px at 50% 40%, rgba(198, 160, 78, 0.12), transparent 70%), var(--card);
}

.about-mark img { width: 210px; }

.about-copy p { color: var(--muted); margin-bottom: 16px; max-width: 62ch; }

.about-copy p strong { color: var(--cream); }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.contact-card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-card:hover { border-color: var(--line); transform: translateY(-4px); }

.contact-card .icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin: 0 auto 16px;
}

.contact-card h3 { color: var(--gold-light); margin-bottom: 6px; }

.contact-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }

.contact-card .big-link {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- CTA band ---------- */

.cta-band {
  margin: 40px 0 0;
  padding: clamp(64px, 10vh, 100px) 0;
  text-align: center;
  background:
    radial-gradient(600px 320px at 50% 0%, rgba(198, 160, 78, 0.14), transparent 70%);
  border-top: 1px solid var(--line-soft);
}

.cta-band h2 { max-width: 720px; margin: 0 auto 16px; }

.cta-band .lead { margin: 0 auto 36px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 32px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h3 {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; }

.footer-grid li { margin-bottom: 9px; }

.footer-grid a, .footer-grid p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid a:hover { color: var(--gold-light); }

.footer-brand img { height: 46px; width: auto; max-width: 260px; margin-bottom: 16px; }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: var(--z-float);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease);
}

.wa-float:hover { transform: scale(1.08); }
.wa-float:active { transform: scale(0.98); }

.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- reveal on scroll (JS-gated: visible without JS) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(5px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease),
    filter 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  body { padding-top: 84px; }
  .hero-grid, .about-grid, .service-row { grid-template-columns: 1fr; gap: 40px; }
  .service-row:nth-of-type(even) .service-deliverables { order: 0; }
  .hero { padding-top: 28px; }
  .hero-chart { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-item { flex-basis: 45%; border-right: none; }
  .nav-links, .nav .btn-nav { display: none; }
  .nav-toggle { display: block; }
  .brand img { height: 32px; max-width: 170px; }
  .svc-list a { grid-template-columns: 1fr auto; }
  .svc-desc { grid-column: 1; }
  .svc-arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
}

@media (min-width: 901px) {
  .nav-overlay { display: none; }
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-in { animation: none; }
  .hero-chart .bar { animation: none; }
  .hero-chart .growth-path { animation: none; stroke-dashoffset: 0; }
  .hero-chart .arrow-head { animation: none; opacity: 1; }
  html.js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .nav-overlay, .ov-link, .nav-overlay .ov-contact { transition: none; }
  .nav-toggle span { transition: none; }
  .btn, .btn-chip, .card, .contact-card, .work-item img, .wa-float, .svc-arrow { transition: none; }
}
