/*
Theme Name: Breeze Marketing Agency
Theme URI: https://www.breezekh.com
Author: Breeze Marketing Agency
Author URI: https://www.breezekh.com
Description: Custom WordPress theme for Breeze Marketing Agency — a creative marketing agency in Phnom Penh, Cambodia. Dark theme, teal accent, motion-first design.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: breeze
*/

/* ============================================================
   BREEZE MARKETING AGENCY
   Design system — dark theme, teal accent, motion-first
   ============================================================ */

/* Fonts are loaded via <link> in header.php (preconnect + stylesheet) for faster first paint. */

/* ---------- Tokens ---------- */
:root {
  --bg:          #0A0E0F;
  --bg-2:        #0E1416;
  --surface:     #121A1C;
  --surface-2:   #16211F;

  --teal:        #3E879A;
  --teal-bright: #54A6BB;
  --teal-soft:   #7CC2D2;
  --teal-deep:   #2C6576;

  --text:        #ECF0F0;
  --muted:       #8B999D;
  --faint:       #5A6669;
  --line:        rgba(255, 255, 255, 0.10);
  --line-soft:   rgba(255, 255, 255, 0.06);

  --ff-display: 'Space Grotesk', sans-serif;
  --ff-body:    'Inter', sans-serif;

  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2:     cubic-bezier(0.65, 0, 0.35, 1);

  --container:  1440px;
  --pad:        clamp(20px, 5vw, 80px);

  --nav-h:      88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 1024px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: none; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--teal); color: #001014; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: -12%;
  z-index: 9998; pointer-events: none; opacity: 0.035;
  will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(8) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-5%,-5%); }
  30% { transform: translate(3%,-8%); }
  50% { transform: translate(-4%,6%); }
  70% { transform: translate(6%,3%); }
  90% { transform: translate(-3%,5%); }
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot  { width: 7px; height: 7px; background: #fff; }
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.55);
  transition: width .3s var(--ease), height .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease);
}
.cursor-ring.hover { width: 64px; height: 64px; background: rgba(255,255,255,0.12); border-color: transparent; }
.cursor-ring.hide  { opacity: 0; }
.cursor-ring .label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .3s;
  mix-blend-mode: normal;
}
.cursor-ring.view .label { opacity: 1; }
.cursor-ring.view { width: 84px; height: 84px; background: var(--teal); border-color: transparent; mix-blend-mode: normal; }

@media (max-width: 1024px) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--pad); padding-bottom: clamp(24px, 5vw, 56px);
}
.preloader__count {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(64px, 16vw, 220px); line-height: .9; color: var(--text);
}
.preloader__count .pct { color: var(--teal); }
.preloader__word {
  font-family: var(--ff-display); text-transform: uppercase;
  letter-spacing: .12em; font-size: 12px; color: var(--muted);
  overflow: hidden;
}
.preloader__word span { display: inline-block; }
.preloader__bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0%;
  background: var(--teal);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(80px, 12vh, 180px) 0; position: relative; }
.section--tight { padding: clamp(56px, 8vh, 110px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-display); text-transform: uppercase;
  letter-spacing: .18em; font-size: 12px; color: var(--teal-soft);
  font-weight: 500;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--teal);
}
.eyebrow--center::before { display: none; }

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--ff-display); font-weight: 500;
  line-height: 0.95; letter-spacing: -0.02em;
}
.h-xl { font-size: clamp(48px, 11vw, 180px); }
.h-lg { font-size: clamp(40px, 7vw, 110px); }
.h-md { font-size: clamp(30px, 4.5vw, 64px); }
.h-sm { font-size: clamp(24px, 3vw, 40px); }
.lead { font-size: clamp(18px, 2vw, 24px); color: var(--muted); line-height: 1.6; }
.text-teal { color: var(--teal-soft); }
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px var(--faint);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--ff-display); font-weight: 500; font-size: 15px;
  padding: 18px 30px; border-radius: 100px; overflow: hidden;
  background: var(--teal); color: #00181F; isolation: isolate;
  transition: color .4s var(--ease);
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--text); transform: scale(0,0); transform-origin: center;
  transition: transform .5s var(--ease);
}
.btn:hover { color: #00181F; }
.btn:hover::after { transform: scale(1,1); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost::after { background: var(--teal); }
.btn--ghost:hover { color: #00181F; }

.link-underline {
  position: relative; font-family: var(--ff-display); font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.link-underline::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }
.link-underline .arrow { transition: transform .4s var(--ease); }
.link-underline:hover .arrow { transform: translate(4px,-4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  transition: transform .5s var(--ease), background .4s var(--ease);
}
.nav.hidden { transform: translateY(-100%); }
.nav.solid { background: rgba(10,14,15,0.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__logo img { height: 36px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 38px; }
.nav__link {
  position: relative; font-family: var(--ff-display); font-weight: 500;
  font-size: 15px; padding: 6px 0; color: var(--text);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--teal); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.active { color: var(--teal-soft); }
.nav__cta { display: inline-flex; }
.nav__burger { display: none; }

/* Mobile menu */
.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); position: relative; z-index: 1001;
}
.menu-toggle span {
  position: absolute; left: 13px; width: 22px; height: 1.5px; background: var(--text);
  transition: transform .4s var(--ease), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 20px; }
.menu-toggle span:nth-child(2) { top: 27px; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad); clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  pointer-events: none;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0% 0); pointer-events: auto; }
.mobile-menu__list li { overflow: hidden; }
.mobile-menu__list a {
  display: block; font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(40px, 12vw, 80px); line-height: 1.1; color: var(--text);
  padding: 4px 0; transform: translateY(110%); transition: transform .6s var(--ease);
}
body.menu-open .mobile-menu__list a { transform: translateY(0); }
.mobile-menu__list a:hover { color: var(--teal-soft); }
.mobile-menu__foot { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 24px; color: var(--muted); font-size: 14px; }
.mobile-menu__foot a:hover { color: var(--teal-soft); }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: var(--nav-h); padding-bottom: clamp(36px, 6vh, 72px); position: relative; overflow: hidden; }
.hero__glow {
  position: absolute; top: 10%; left: 50%; transform: translateX(-50%) translateZ(0);
  width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(circle, rgba(62,135,154,0.28), rgba(62,135,154,0.08) 42%, transparent 62%);
  pointer-events: none; z-index: 0;
}
.hero__inner { position: relative; z-index: 2; }

/* Interactive glass flower */
.hero__flower {
  position: absolute; top: 0; bottom: 0;
  right: clamp(-160px, -6vw, -40px);
  width: clamp(494px, 60vw, 1066px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1; pointer-events: none; perspective: 1300px;
  opacity: 0; /* revealed by JS */
  /* blend the WHOLE flower group onto the hero — the black video frame drops out.
     Must live here (not on the video) so the inner transform layers don't isolate it. */
  mix-blend-mode: screen;
}
.hero__flower-scroll {
  width: 100%; height: clamp(470px, 82vh, 1040px);
  display: flex; align-items: center; justify-content: center;
  will-change: transform;
}
.hero__flower-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; will-change: transform;
}
.hero__flower-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  /* teal tint + vignette are baked into the video file — no per-frame CSS filters */
  -webkit-mask-image: radial-gradient(78% 86% at 52% 44%, #000 62%, transparent 90%);
          mask-image: radial-gradient(78% 86% at 52% 44%, #000 62%, transparent 90%);
  transform: translateZ(0);
}
.hero__flower-glow {
  position: absolute; inset: 6%; border-radius: 50%;
  /* soft gradient only — no blur() filter (gradients are already soft) */
  background: radial-gradient(circle, rgba(62,135,154,0.34), rgba(62,135,154,0.12) 40%, rgba(62,135,154,0.03) 58%, transparent 70%);
  z-index: -1;
}
@media (max-width: 1024px) {
  .hero__flower { width: 70vw; right: -8%; }
}
@media (max-width: 760px) {
  .hero__flower { width: 130vw; right: -30%; }
  .hero__flower-inner { opacity: 0.55; }
  .hero__flower-glow { background: radial-gradient(circle, rgba(62,135,154,0.30), transparent 64%); }
}
.hero__tag {
  display: flex; align-items: center; gap: 14px; margin-bottom: clamp(24px, 5vh, 56px);
  font-family: var(--ff-display); color: var(--teal-soft); letter-spacing: .14em;
  text-transform: uppercase; font-size: clamp(12px, 1.3vw, 15px);
}
.hero__title { margin-bottom: clamp(28px, 5vh, 48px); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.hero__title .accent { color: var(--teal); }
.hero__bottom {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end;
  justify-content: space-between; border-top: 1px solid var(--line); padding-top: 28px;
}
.hero__desc { max-width: 440px; }
.hero__scroll {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-display); font-size: 13px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted);
}
.hero__scroll .mouse {
  width: 22px; height: 34px; border: 1px solid var(--line); border-radius: 14px;
  position: relative;
}
.hero__scroll .mouse::after {
  content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px; background: var(--teal);
  animation: scrollDot 1.6s var(--ease) infinite;
}
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 60%{opacity:1;transform:translate(-50%,9px)} 100%{opacity:0;transform:translate(-50%,12px)} }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { padding: clamp(26px, 4vh, 48px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee__track { display: flex; width: max-content; gap: 0; will-change: transform; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 60px);
  padding-right: clamp(28px, 4vw, 60px);
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(34px, 6vw, 88px); white-space: nowrap; letter-spacing: -0.01em;
}
.marquee__item .star { color: var(--teal); font-size: 0.55em; }
.marquee--outline .marquee__item { color: transparent; -webkit-text-stroke: 1px var(--faint); }

/* ============================================================
   INTRO / ABOUT statement
   ============================================================ */
.statement__text {
  font-family: var(--ff-display); font-weight: 400; line-height: 1.18;
  font-size: clamp(26px, 4.4vw, 62px); letter-spacing: -0.02em; max-width: 16ch;
}
.statement__text .word { display: inline-block; }
.statement__text .muted { color: var(--faint); }
.statement__text .hl { color: var(--teal-soft); }
.statement__grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 7vw, 90px); align-items: end; }
@media (min-width: 900px) { .statement__grid { grid-template-columns: 1.4fr 0.9fr; } }
.statement__aside { color: var(--muted); }
.statement__aside p { margin-bottom: 22px; line-height: 1.7; }

/* ============================================================
   SERVICES (accordion rows)
   ============================================================ */
.services__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.svc-list { border-top: 1px solid var(--line); }
.svc { position: relative; border-bottom: 1px solid var(--line); }
.svc__head {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center;
  gap: 24px; padding: clamp(26px, 3.4vw, 46px) 0; width: 100%; text-align: left;
}
.svc__num { font-family: var(--ff-display); color: var(--teal); font-size: 16px; align-self: start; padding-top: .4em; }
.svc__title { font-family: var(--ff-display); font-weight: 500; font-size: clamp(26px, 3.6vw, 52px); letter-spacing: -0.01em; transition: transform .5s var(--ease), color .4s; }
.svc__plus { width: 40px; height: 40px; position: relative; opacity: .6; transition: transform .5s var(--ease), opacity .4s; color: var(--text); }
.svc__plus::before, .svc__plus::after { content: ''; position: absolute; background: currentColor; top: 50%; left: 50%; }
.svc__plus::before { width: 18px; height: 1.5px; transform: translate(-50%,-50%); }
.svc__plus::after  { width: 1.5px; height: 18px; transform: translate(-50%,-50%); transition: transform .5s var(--ease); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.svc__body > div { overflow: hidden; }
.svc__bodyInner { padding: 0 24px clamp(28px, 3vw, 42px) 104px; max-width: 720px; }
.svc__body p { color: var(--muted); line-height: 1.7; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.svc__tag { font-family: var(--ff-display); font-size: 12px; letter-spacing: .04em; padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }
.svc:hover .svc__title { color: var(--teal-soft); transform: translateX(10px); }
.svc:hover .svc__plus { opacity: 1; color: var(--teal); }
.svc.open .svc__plus { color: var(--teal); }
.svc.open .svc__plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.svc.open .svc__body { grid-template-rows: 1fr; }
.svc.open .svc__title { color: var(--teal-soft); }
/* floating image preview */
.svc__preview {
  position: fixed; top: 0; left: 0; width: 280px; height: 200px; border-radius: 12px;
  overflow: hidden; pointer-events: none; z-index: 50; opacity: 0; transform: translate(-50%,-50%) scale(.85);
  transition: opacity .4s var(--ease), transform .4s var(--ease); will-change: transform;
}
.svc__preview img { width: 100%; height: 100%; object-fit: cover; }
.svc__preview.show { opacity: 1; }
@media (max-width: 760px) {
  .svc__head { grid-template-columns: 40px 1fr auto; gap: 14px; }
  .svc__num { padding-top: .3em; }
  .svc__bodyInner { padding-left: 54px; padding-right: 0; }
}

/* ============================================================
   WORK / PORTFOLIO
   ============================================================ */
.work-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 70px); }
@media (min-width: 760px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card { display: block; }
.work-card.offset { transform: translateY(0); }
@media (min-width: 760px) { .work-card.offset { transform: translateY(70px); } }
.work-card__media {
  position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.work-card__media img, .work-card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work-card:hover .work-card__media img, .work-card:hover .work-card__media video { transform: scale(1.06); }
.work-card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,12,13,0.65), transparent 55%);
  opacity: .5; transition: opacity .5s;
}
.work-card:hover .work-card__media::after { opacity: .15; }
/* contain-fit variant: show the whole (square) image with a blurred fill behind — no flat bars */
.work-card__media--contain { background: #0b1216; }
.work-card__media--contain::after { display: none; }
.work-card__media--contain::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: var(--cardbg); background-size: cover; background-position: center;
  filter: blur(30px) brightness(0.5) saturate(1.05); transform: scale(1.3);
}
.work-card__media--contain img { position: relative; z-index: 1; object-fit: contain; padding: 5%; }
.work-card:hover .work-card__media--contain img { transform: scale(1.03); }

.work-card__view {
  position: absolute; bottom: 18px; right: 18px; padding: 10px 18px; border-radius: 100px;
  background: var(--teal); color: #00181F; font-family: var(--ff-display); font-size: 13px;
  transform: translateY(12px); opacity: 0; transition: all .5s var(--ease);
}
.work-card:hover .work-card__view { transform: translateY(0); opacity: 1; }
.work-card__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; gap: 16px; }
.work-card__title { font-family: var(--ff-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 34px); transition: color .4s; }
.work-card:hover .work-card__title { color: var(--teal-soft); }
.work-card__cat { font-family: var(--ff-display); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(30px,5vw,60px); }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4,1fr); } }
.stat__num { font-family: var(--ff-display); font-weight: 500; font-size: clamp(48px, 7vw, 96px); line-height: 1; letter-spacing: -0.03em; }
.stat__num .suffix { color: var(--teal); }
.stat__label { color: var(--muted); margin-top: 14px; font-size: 15px; max-width: 18ch; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-list { border-top: 1px solid var(--line); }
.process-step {
  display: grid; grid-template-columns: 80px 1fr; gap: clamp(20px,4vw,60px);
  padding: clamp(34px,4vw,56px) 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 820px) { .process-step { grid-template-columns: 120px 0.7fr 1.3fr; } }
.process-step__num { font-family: var(--ff-display); color: var(--teal); font-size: clamp(18px,2vw,22px); }
.process-step__title { font-family: var(--ff-display); font-weight: 500; font-size: clamp(24px,3vw,42px); letter-spacing: -0.01em; }
.process-step__text { color: var(--muted); line-height: 1.7; max-width: 52ch; }

/* ============================================================
   CTA / Footer big
   ============================================================ */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta__glow { position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%) translateZ(0); width: 90vw; height: 60vw; max-width: 1200px; background: radial-gradient(circle, rgba(62,135,154,0.20), rgba(62,135,154,0.06) 40%, transparent 60%); pointer-events: none; }
.cta__inner { position: relative; z-index: 2; }
.cta__title { margin: 24px 0 40px; }
.cta__email { display: inline-block; font-family: var(--ff-display); font-size: clamp(20px,3vw,40px); color: var(--text); position: relative; }
.cta__email::after { content:''; position:absolute; left:0; bottom:-2px; width:100%; height:1px; background: var(--teal); transform: scaleX(.0); transform-origin:right; transition: transform .5s var(--ease); }
.cta__email:hover::after { transform: scaleX(1); transform-origin:left; }

footer.footer { background: var(--bg-2); border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1fr; gap: clamp(40px,6vw,80px); padding-top: clamp(60px,8vw,110px); padding-bottom: clamp(50px,6vw,80px); }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand img { height: 34px; margin-bottom: 26px; }
.footer__brand p { color: var(--muted); max-width: 34ch; line-height: 1.7; }
.footer__col h4 { font-family: var(--ff-display); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin-bottom: 22px; }
.footer__col ul li { margin-bottom: 14px; }
.footer__col ul a, .footer__col address { color: var(--muted); font-style: normal; line-height: 1.7; transition: color .3s; }
.footer__col ul a:hover { color: var(--teal-soft); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding: 30px 0; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 13px; }
.footer__socials { display: flex; gap: 22px; }
.footer__socials a { color: var(--muted); transition: color .3s; font-family: var(--ff-display); }
.footer__socials a:hover { color: var(--teal-soft); }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--ff-display); }
.to-top:hover { color: var(--teal-soft); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(60px,10vh,120px)); padding-bottom: clamp(40px,6vh,80px); position: relative; overflow: hidden; }
.page-hero__glow { position: absolute; top: -10%; right: -5%; width: 50vw; height: 50vw; max-width: 700px; background: radial-gradient(circle, rgba(62,135,154,0.20), rgba(62,135,154,0.06) 42%, transparent 62%); pointer-events: none; }
.page-hero__crumb { font-family: var(--ff-display); font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 26px; }
.page-hero__crumb .sep { color: var(--teal); margin: 0 10px; }
.page-hero__title .line { display: block; overflow: hidden; }
.page-hero__title .line > span { display:inline-block; }
.page-hero__lead { margin-top: 30px; max-width: 56ch; }

/* ---------- Reveal animation base ---------- */
[data-reveal] { will-change: transform, opacity; }
.line-mask { overflow: hidden; }

/* ---------- Two column generic ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(30px,5vw,70px); align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 0.85fr 1.15fr; } }
.split--media { grid-template-columns: 1fr; }
@media (min-width: 860px) { .split--media { grid-template-columns: 1fr 1fr; } }
.media-box { border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; background: var(--surface); border: 1px solid var(--line-soft); position: relative; }
.media-box img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Value / feature cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3,1fr); } }
.card {
  border: 1px solid var(--line); border-radius: 16px; padding: clamp(26px,3vw,40px);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: border-color .4s, transform .5s var(--ease);
}
.card:hover { border-color: var(--teal-deep); transform: translateY(-4px); }
.card__icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(62,135,154,0.14); display: grid; place-items: center; color: var(--teal-soft); margin-bottom: 24px; }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-family: var(--ff-display); font-weight: 500; font-size: clamp(20px,2.2vw,26px); margin-bottom: 12px; }
.card p { color: var(--muted); line-height: 1.65; font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px,6vw,80px); }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.field { position: relative; margin-bottom: 30px; }
.field label { display: block; font-family: var(--ff-display); font-size: 13px; color: var(--muted); margin-bottom: 12px; letter-spacing: .04em; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  color: var(--text); font-family: var(--ff-body); font-size: 17px; padding: 12px 0; cursor: text;
  transition: border-color .4s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.field select option { background: var(--surface); color: var(--text); }
.field textarea { resize: vertical; min-height: 120px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { font-family: var(--ff-display); font-size: 14px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); transition: all .3s; user-select: none; }
.chip:hover { border-color: var(--teal); color: var(--text); }
.chip.active { background: var(--teal); color: #00181F; border-color: var(--teal); }
.contact-info { display: flex; flex-direction: column; gap: 36px; }
.contact-info__item h4 { font-family: var(--ff-display); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin-bottom: 12px; }
.contact-info__item a, .contact-info__item address { color: var(--text); font-style: normal; font-size: clamp(18px,2vw,22px); font-family: var(--ff-display); line-height: 1.5; }
.contact-info__item a:hover { color: var(--teal-soft); }
.map-box { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/7; }
.map-box iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) hue-rotate(160deg) contrast(0.9); }

/* ---------- Logos / clients strip ---------- */
.clients { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
@media (min-width: 700px) { .clients { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1000px) { .clients { grid-template-columns: repeat(4,1fr); } }
.clients__cell { background: var(--bg-2); display: grid; place-items: center; padding: clamp(28px,4vw,46px); font-family: var(--ff-display); font-size: clamp(16px,1.8vw,22px); color: var(--faint); transition: color .4s, background .4s; }
.clients__cell:hover { color: var(--teal-soft); background: var(--surface); }

/* ---------- Trusted partners (animated logo bar) ---------- */
.logo-marquee {
  position: relative; overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.logo-track {
  display: flex; align-items: center; width: max-content;
  animation: logoScroll 42s linear infinite; will-change: transform;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track img {
  height: clamp(36px, 4.8vw, 62px); width: auto; flex: none;
  margin-right: clamp(46px, 7vw, 104px);
  filter: brightness(0) invert(1); opacity: 0.5;
  transition: opacity .35s var(--ease), filter .5s var(--ease);
}
/* reveal the logo's real colour on hover */
.logo-track img:hover { filter: brightness(1) invert(0); opacity: 1; }
@keyframes logoScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 40px 60px; }
  .logo-track img { margin-right: 0; opacity: .7; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; padding: clamp(22px,2.6vw,34px) 0; font-family: var(--ff-display); font-weight: 500; font-size: clamp(18px,2.2vw,28px); }
.faq__q .ic { width: 30px; height: 30px; position: relative; flex-shrink: 0; color: var(--teal); }
.faq__q .ic::before, .faq__q .ic::after { content:''; position:absolute; top:50%; left:50%; background: currentColor; transform: translate(-50%,-50%); }
.faq__q .ic::before { width: 16px; height: 1.5px; }
.faq__q .ic::after { width: 1.5px; height: 16px; transition: transform .4s var(--ease); }
.faq__item.open .ic::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--muted); line-height: 1.7; padding-bottom: 28px; max-width: 64ch; }
.faq__item.open .faq__a { grid-template-rows: 1fr; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 10001;
  background: var(--teal); color: #00181F; font-family: var(--ff-display);
  padding: 12px 20px; border-radius: 8px; transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px;
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 800px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote {
  border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(28px, 3.4vw, 44px);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  position: relative;
}
.quote::before {
  content: '\201C'; font-family: var(--ff-display); font-size: 72px; line-height: 1;
  color: var(--teal); display: block; margin-bottom: 8px; height: 44px;
}
.quote p { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.7; color: var(--text); }
.quote cite { display: block; margin-top: 24px; font-style: normal; font-family: var(--ff-display); font-size: 14px; color: var(--muted); }
.quote cite b { color: var(--teal-soft); font-weight: 500; }

/* ---------- Mobile quick-contact bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 880px) {
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
    background: rgba(10, 14, 15, 0.92); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta a {
    flex: 1; text-align: center; padding: 15px 8px;
    font-family: var(--ff-display); font-size: 14px; font-weight: 500; color: var(--text);
  }
  .mobile-cta a + a { border-left: 1px solid var(--line-soft); }
  .mobile-cta a.accent { color: var(--teal-soft); }
  body { padding-bottom: 50px; }
  body.menu-open .mobile-cta { display: none; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-s { margin-top: 20px; } .mt-m { margin-top: 40px; } .mt-l { margin-top: 70px; }
.mb-l { margin-bottom: 40px; }
.divider { height: 1px; background: var(--line); width: 100%; }
.muted { color: var(--muted); }

@media (max-width: 880px) {
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Blog post content (prose) ---------- */
.post-content { font-family: var(--ff-body); color: var(--text); font-size: 17px; line-height: 1.75; max-width: 72ch; }
.post-content p { margin-bottom: 24px; }
.post-content h2 { font-family: var(--ff-display); font-weight: 500; font-size: clamp(24px, 3vw, 34px); margin: 48px 0 20px; }
.post-content h3 { font-family: var(--ff-display); font-weight: 500; font-size: clamp(20px, 2.4vw, 26px); margin: 36px 0 16px; }
.post-content ul, .post-content ol { margin: 0 0 24px 22px; }
.post-content li { margin-bottom: 10px; }
.post-content a { color: var(--teal-soft); text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote { border-left: 2px solid var(--teal); padding-left: 24px; margin: 32px 0; color: var(--muted); font-style: italic; }
.post-content strong { color: var(--text); }
.post-content img { width: 100%; border-radius: 14px; margin: 32px 0; }

/* ---------- Blog listing meta ---------- */
.card .eyebrow { display: block; margin-bottom: 14px; }
