/* =========================================================
   BH — wearebh.com
   Design system: dark editorial + neon gradient accent
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,400..600,0..100;1,9..144,400..600,0..100&family=Geist:wght@300..700&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); font-feature-settings: "ss01", "ss03"; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background 0.3s ease, color 0.3s ease; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Theme tokens ---------- */
:root {
  --bg: #FAFAF7;
  --bg-elev: #F1EFE8;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #5F5E5A;
  --text-faint: #8A8985;
  --border: #E0DED5;
  --border-strong: #C5C3B8;
  --accent-start: #00B380;
  --accent-end: #00A0A8;
  --accent-grad: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  --shadow: 0 1px 3px rgba(0,0,0,0.04);

  --font-serif: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Geist', system-ui, -apple-system, sans-serif;

  --container: 1240px;
    --section-pad: clamp(28px, 4vw, 56px);
  --gutter: clamp(24px, 5vw, 48px);
}

[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-elev: #141414;
  --bg-card: #161616;
  --text: #FAFAF7;
  --text-muted: #A8A8A5;
  --text-faint: #6B6B68;
  --border: #232323;
  --border-strong: #353535;
  --accent-start: #00E59A;
  --accent-end: #00C9D4;
  --shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; }
.section--tight { padding: calc(var(--section-pad) * 0.6) 0; }

/* ---------- Typography ---------- */
.h-display { font-family: var(--font-serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; font-size: clamp(48px, 9vw, 112px); font-variation-settings: "opsz" 144, "SOFT" 50; }
.h-1 { font-family: var(--font-serif); font-weight: 400; line-height: 1.06; letter-spacing: -0.02em; font-size: clamp(40px, 6vw, 72px); font-variation-settings: "opsz" 96, "SOFT" 40; }
.h-2 { font-family: var(--font-serif); font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; font-size: clamp(32px, 4.5vw, 52px); font-variation-settings: "opsz" 72, "SOFT" 30; }
.h-3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; font-size: clamp(24px, 3vw, 32px); font-variation-settings: "opsz" 48, "SOFT" 20; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-muted); line-height: 1.55; max-width: 60ch; }
.body { font-size: 16px; color: var(--text-muted); line-height: 1.7; }
.label { font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.eyebrow { font-family: var(--font-sans); font-size: 13px; color: var(--text-faint); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent-grad); }

.italic-accent { font-style: italic; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variation-settings: "opsz" 144, "SOFT" 80; }
.grad-text { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; font-size: 14px; font-weight: 500; border-radius: 2px; transition: all 0.25s ease; position: relative; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-end); color: #fff; }
.btn-ghost { color: var(--text); border-bottom: 1px solid var(--border-strong); padding: 6px 0; border-radius: 0; }
.btn-ghost:hover { border-bottom-color: var(--accent-end); color: var(--accent-end); }
.btn-grad { position: relative; padding: 14px 26px; color: var(--text); border-radius: 2px; background:
   linear-gradient(var(--bg), var(--bg)) padding-box,
   var(--accent-grad) border-box;
  border: 1px solid transparent; }
.btn-grad:hover { background: var(--accent-grad); color: #0A0A0A; border-color: transparent; }
.btn .arrow { display: inline-block; transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.nav__inner { display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 10px 0; /* 1. Reduced from 18px to shrink the vertical height */
    gap: 32px;}
.nav__logo { display: flex; align-items: center; gap: 10px; }

.nav__logo svg { width: 32px; height: 18px; }
.nav__logo-mark { font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { font-size: 14px; color: var(--text-muted); padding: 8px 14px; border-radius: 2px; transition: color 0.2s ease; }
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__theme { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.nav__theme:hover { border-color: var(--border-strong); }
.nav__theme svg { width: 16px; height: 16px; }
.nav__theme .sun { display: none; }
[data-theme="dark"] .nav__theme .sun { display: block; }
[data-theme="dark"] .nav__theme .moon { display: none; }
.nav__cta { font-size: 14px; padding: 9px 18px; border-radius: 2px; background: var(--text); color: var(--bg); transition: all 0.2s ease; }
.nav__cta:hover { background: var(--accent-end); color: #fff; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: 0.3s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 3.5vw, 48px); position: relative; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 48px; position:   relative; z-index: 2; }
.hero__eyebrow { margin-bottom: 32px; opacity: 0; animation: fadeUp 0.7s ease 0.1s forwards; }
.hero__title { margin-bottom: 28px; opacity: 0; animation: fadeUp 0.8s ease 0.2s forwards; }
.hero__title > span { display: block; }
.hero__sub { margin-bottom: 40px; opacity: 0; animation: fadeUp 0.8s ease 0.4s forwards; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fadeUp 0.8s ease 0.55s forwards; }

.hero__glow { position: absolute; top: -10%; right: -10%; width: 60%; height: 80%; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent-start) 18%, transparent), transparent 60%); pointer-events: none; opacity: 0.5; z-index: 1; filter: blur(40px); }
[data-theme="dark"] .hero__glow { opacity: 0.6; }

.hero__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(20px, 2.5vw, 32px); padding-top: 24px; border-top: 1px   }
.hero__meta-item { display: flex; flex-direction: column; gap: 6px; }
.hero__meta-item .label { margin-bottom: 4px; }
.hero__meta-item strong { font-family: var(--font-serif); font-weight: 400; font-size: 22px; color: var(--text); }
.hero__meta-item span { font-size: 14px; color: var(--text-muted); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Services grid (home) ---------- */
.services { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }
.services__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 72px; align-items: end; }
.services__head .lead { justify-self: end; }

.svc-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.svc-card { display: grid; grid-template-columns: 80px 1fr auto; gap: 32px; align-items: start; padding: 40px 0; background: var(--bg); transition: padding 0.25s ease; cursor: pointer; }
.svc-card:hover { padding-left: 16px; padding-right: 16px; }
.svc-card__num { font-family: var(--font-serif); font-size: 32px; color: var(--text-faint); font-style: italic; }
.svc-card__body h3 { font-family: var(--font-serif); font-size: clamp(28px, 3.5vw, 40px); font-weight: 400; line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.01em; }
.svc-card__body p { font-size: 15px; color: var(--text-muted); max-width: 60ch; margin-bottom: 16px; line-height: 1.6; }
.svc-card__tags { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.svc-card__tags span { font-size: 13px; color: var(--text-faint); position: relative; padding-right: 16px; }
.svc-card__tags span:not(:last-child)::after { content: "·"; position: absolute; right: 0; color: var(--text-faint); }
.svc-card__arrow { font-family: var(--font-serif); font-size: 28px; color: var(--text-faint); align-self: center; transition: all 0.25s ease; }
.svc-card:hover .svc-card__arrow { color: var(--accent-end); transform: translateX(6px); }

/* ---------- Approach / values ---------- */
.values { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }
.values__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.values__list { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; }
.values__item h4 { font-family: var(--font-serif); font-size: 22px; font-weight: 400; margin-bottom: 10px; }
.values__item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.values__item .num { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--accent-end); margin-bottom: 12px; display: block; }

/* ---------- Work / portfolio strip ---------- */
.work { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }
.work__head { margin-bottom: 56px; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.work-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; transition: all 0.3s ease; }
.work-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.work-card__visual { aspect-ratio: 16/10; background: linear-gradient(135deg, color-mix(in srgb, var(--accent-start) 22%, var(--bg-elev)), color-mix(in srgb, var(--accent-end) 22%, var(--bg-elev))); display: flex; align-items: center; justify-content: center; position: relative; }
.work-card__visual svg { width: 64px; height: 64px; opacity: 0.55; }
.work-card__body { padding: 24px 28px; }
.work-card__body .label { margin-bottom: 10px; display: block; }
.work-card__body h4 { font-family: var(--font-serif); font-size: 24px; font-weight: 400; margin-bottom: 8px; }
.work-card__body p { font-size: 14px; color: var(--text-muted); }

.logo-strip { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; }
.logo-strip__item { font-family: var(--font-serif); font-size: 22px; color: var(--text-faint); font-style: italic; opacity: 0.7; transition: opacity 0.2s ease; }
.logo-strip__item:hover { opacity: 1; }

/* ---------- CTA / Contact ---------- */
.cta { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.cta__head h2 { margin-bottom: 24px; }
.cta__head .lead { margin-bottom: 40px; }
.cta__channels { display: flex; flex-direction: column; gap: 24px; }
.cta__channel { display: flex; gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid var(--border); }
.cta__channel:last-child { border-bottom: 1px solid var(--border); }
.cta__channel-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-elev); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cta__channel-icon svg { width: 16px; height: 16px; color: var(--accent-end); }
.cta__channel h5 { font-size: 14px; font-weight: 500; margin-bottom: 4px; color: var(--text); }
.cta__channel p { font-size: 13px; color: var(--text-muted); }
.cta__channel a { color: var(--accent-end); }

/* Contact form */
.form { display: flex; flex-direction: column; gap: 18px; padding: 32px; background: var(--bg-elev); border-radius: 4px; border: 1px solid var(--border); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.form__field input, .form__field select, .form__field textarea { font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 3px; background: var(--bg); color: var(--text); transition: border 0.2s ease; }
.form__field input:focus, .form__field select:focus, .form__field textarea:focus { outline: none; border-color: var(--accent-end); }
.form__field textarea { resize: vertical; min-height: 110px; }
.form__submit { background: var(--text); color: var(--bg); padding: 14px 26px; font-size: 14px; font-weight: 500; border-radius: 3px; cursor: pointer; transition: background 0.2s ease; margin-top: 6px; align-self: flex-start; }
.form__submit:hover { background: var(--accent-end); color: #fff; }
.form__note { font-size: 12px; color: var(--text-faint); }

/* Calendly section */
.booking { background: var(--bg-elev); padding: 40px 32px; border-radius: 4px; border: 1px solid var(--border); margin-top: 24px; }
.booking h5 { font-family: var(--font-serif); font-size: 22px; font-weight: 400; margin-bottom: 8px; }
.booking p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--border); background: var(--bg-elev); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 56px; }
.footer__brand .nav__logo-mark { font-size: 28px; }
.footer__brand p { font-size: 14px; color: var(--text-muted); margin-top: 16px; max-width: 32ch; }
.footer__col h5 { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 20px; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 14px; color: var(--text-muted); transition: color 0.2s ease; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { padding-top: 32px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__bottom p, .footer__bottom a { font-size: 13px; color: var(--text-faint); }

/* ---------- Service page specifics ---------- */
.svc-hero { padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 80px); position: relative; overflow: hidden; }
.svc-hero__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 80px; align-items: end; }
.svc-hero h1 { margin-bottom: 24px; }
.svc-hero__intro { padding-bottom: 8px; }
.svc-hero__intro p { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.svc-hero__intro p:last-child { margin-bottom: 0; }

.capabilities { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }
.capabilities__head { margin-bottom: 64px; max-width: 720px; }
.capabilities__head h2 { margin-bottom: 20px; }
.cap-block { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding: 56px 0; border-top: 1px solid var(--border); }
.cap-block:last-child { border-bottom: 1px solid var(--border); }
.cap-block__label { display: flex; flex-direction: column; gap: 8px; }
.cap-block__label .num { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--accent-end); }
.cap-block__label h3 { font-family: var(--font-serif); font-size: 32px; font-weight: 400; line-height: 1.1; }
.cap-block__list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.cap-item h5 { font-size: 15px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.cap-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.process { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }
.process__head { margin-bottom: 64px; max-width: 720px; }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process__step { padding-top: 24px; border-top: 1px solid var(--accent-end); }
.process__step .num { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--text-faint); margin-bottom: 16px; display: block; }
.process__step h4 { font-family: var(--font-serif); font-size: 22px; font-weight: 400; margin-bottom: 10px; line-height: 1.2; }
.process__step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services__head, .values__grid, .cta__grid, .svc-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .services__head .lead { justify-self: start; }
  .values__list { grid-template-columns: 1fr; gap: 32px; }
  .work__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cap-block { grid-template-columns: 1fr; gap: 32px; }
  .cap-block__list { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__links.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 24px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--border); gap: 8px; }
  .nav__links.is-open a { padding: 12px 0; font-size: 16px; }
  .nav__burger { display: flex; }
  .hero__meta { grid-template-columns: 1fr; gap: 20px; }
  .svc-card { grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; }
  .svc-card__arrow { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .form__row { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
}

/* ---------- Utilities ---------- */
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Stagger children */
[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.08s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 0.16s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 0.24s; }
[data-stagger].is-visible > * { opacity: 1; transform: none; }

/* Smooth counter animation for numbers */
[data-counter] { display: inline-block; }

/* =========================================================
   MODERN VISUAL EFFECTS
   ========================================================= */

/* Gradient mesh hero background */
.hero__mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__mesh::before,
.hero__mesh::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; animation: meshFloat 14s ease-in-out infinite alternate; }
.hero__mesh::before { width: 50vw; height: 50vw; top: -15%; right: -10%; background: var(--accent-start); }
.hero__mesh::after { width: 40vw; height: 40vw; bottom: -20%; left: 5%; background: var(--accent-end); animation-delay: -7s; animation-direction: alternate-reverse; }
[data-theme="dark"] .hero__mesh::before,
[data-theme="dark"] .hero__mesh::after { opacity: 0.25; }
@keyframes meshFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.08); }
  100% { transform: translate(-10px, 15px) scale(0.95); }
}

/* Glass card effect */
.glass-card { background: color-mix(in srgb, var(--bg-card) 70%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }

/* Hover tilt effect for work cards */
.work-card { transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
.work-card:hover { transform: translateY(-6px) rotateX(2deg); box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15); }
[data-theme="dark"] .work-card:hover { box-shadow: 0 20px 40px -12px rgba(0,0,0,0.45); }

/* Service card hover glow */
.svc-card { position: relative; }
.svc-card::before { content: ""; position: absolute; inset: 0; background: var(--accent-grad); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.svc-card:hover::before { opacity: 0.03; }
[data-theme="dark"] .svc-card:hover::before { opacity: 0.06; }

/* Smooth gradient line under nav on scroll */
.nav.scrolled { border-bottom-color: transparent; box-shadow: 0 1px 0 0 var(--accent-start); }

/* CTA pulse ring */
.btn-primary { position: relative; overflow: visible; }
.btn-primary::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 1px solid var(--accent-end); opacity: 0; animation: pulseRing 2.5s ease-out infinite; pointer-events: none; }
@keyframes pulseRing { 0% { opacity: 0.4; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }

/* Capability block hover */
.cap-block { transition: background 0.3s ease; border-radius: 4px; padding-left: 24px; padding-right: 24px; margin-left: -24px; margin-right: -24px; }
.cap-block:hover { background: var(--bg-elev); }

/* Process step line animation */
.process__step { position: relative; }
.process__step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--accent-grad); transform: scaleX(0); transform-origin: left; transition: transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.process__step.is-visible::before { transform: scaleX(1); }

/* Parallax image containers */
.img-reveal { overflow: hidden; border-radius: 6px; }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.img-reveal:hover img { transform: scale(1.04); }

/* Hero image strip */
.hero__images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 64px); opacity: 0; animation: fadeUp 0.9s ease 0.9s forwards; }
.hero__images .img-reveal { aspect-ratio: 16/10; background: var(--bg-elev); border: 1px solid var(--border); }
.hero__images img { display: block; }

/* Section images */
.section-img { width: 100%; aspect-ratio: 2/1; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); margin: 40px 0; }
.section-img img { width: 100%; height: 100%; object-fit: cover; }

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

/* =========================================================
   NAV LOGO — use uploaded PNG
   ========================================================= */
.nav__logo-img { height: 64px; width: auto; max-width: none; display: block; object-fit: contain; }
@media (max-width: 720px) { .nav__logo-img { height: 44px; } }
.footer__brand .nav__logo-img { height: 76px; }
[data-theme="dark"] .nav__logo-img {
      filter: drop-shadow(0 0 6px rgba(255,255,255,0.55)) drop-shadow(0 0 14px rgba(255,255,255,0.3));
}

/* =========================================================
   SCROLL ANIMATIONS & MODERN EFFECTS
   ========================================================= */

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.from-scale { transform: scale(0.92); }
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ---------- Parallax glow ---------- */
.hero__glow {
  transition: transform 0.4s ease-out;
}

/* ---------- Smooth image reveal ---------- */
.img-reveal {
  overflow: hidden;
  border-radius: 4px;
}
.img-reveal img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  transform: scale(1.08);
  filter: brightness(0.92);
}
.img-reveal.is-visible img {
  transform: scale(1);
  filter: brightness(1);
}

/* ---------- Service card hover lift ---------- */
.svc-card {
  transition: padding 0.25s ease, background 0.3s ease, transform 0.3s ease;
}
.svc-card:hover {
  background: var(--bg-elev);
  transform: translateX(8px);
}

/* ---------- Work card enhanced hover ---------- */
.work-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.work-card__visual img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card:hover .work-card__visual img {
  transform: scale(1.05);
}

/* ---------- Button micro-interactions ---------- */
.btn-primary {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.btn-primary:hover::after { opacity: 1; }

.btn-grad {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Nav scroll shadow ---------- */
.nav.is-scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
[data-theme="dark"] .nav.is-scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.3);
}

/* ---------- Capability block hover ---------- */
.cap-block {
  transition: background 0.3s ease;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: -16px;
  margin-right: -16px;
  border-radius: 4px;
}
.cap-block:hover {
  background: var(--bg-elev);
}

/* ---------- Process step hover ---------- */
.process__step {
  transition: transform 0.3s ease, background 0.3s ease;
  padding: 24px 16px 16px;
  margin: 0 -16px;
  border-radius: 4px;
}
.process__step:hover {
  transform: translateY(-4px);
  background: var(--bg-elev);
}

/* ---------- Counter animation ---------- */
.counter { display: inline-block; }

/* ---------- Image styling for service pages ---------- */
.svc-hero__image {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.svc-hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Visual accent images on home hero ---------- */
.hero__visual {
  position: absolute;
  right: 0; top: 0;
  width: 45%;
  height: 100%;
  overflow: hidden;
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
}
.hero__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
[data-theme="dark"] .hero__visual { opacity: 0.08; }

/* ---------- Inline images in work cards ---------- */
.work-card__visual {
  overflow: hidden;
}
.work-card__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Smooth page transitions ---------- */
.page-enter {
  animation: pageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Logo in nav (image version) ---------- */
.nav__logo-img {
      height: 64px;
        width: auto;
          object-fit: contain;
            border-radius: 4px;
              display: block;
}
[data-theme="dark"] .nav__logo-img {
      /* On dark bg, black background blends naturally */
}
/* Footer logo slightly larger */
.footer__brand .nav__logo-img {
      height: 76px;
}
}
}
}
}
}
  }
}
