/* ==========================================================================
   EMpro — Global stylesheet
   Design system: Monochrome + warm cognac accent (carpentry craft)
   Fonts: Archivo (heading) + Space Grotesk (body)
   Responsive breakpoints: 1024 / 768 / 640 / 400
   ========================================================================== */

:root {
  /* Ink / surface */
  --ink-0: #0A0A0A;
  --ink-1: #1C1C1C;
  --ink-2: #3F3F46;
  --ink-3: #52525B;
  --muted: #71717A;
  --line: #E4E4E7;
  --line-strong: #D4D4D8;
  --surface-0: #FFFFFF;
  --surface-1: #FAFAFA;
  --surface-2: #F4F4F5;

  /* Accent — warm cognac (evokes wood, craft, carpentry) */
  --accent: #B8864C;
  --accent-dark: #8C6632;
  --accent-light: #D4A76A;
  --accent-tint: rgba(184, 134, 76, 0.08);

  /* Semantic */
  --destructive: #B91C1C;
  --success: #15803D;

  /* Typography */
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Archivo', Georgia, 'Times New Roman', serif;

  /* Spacing scale (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t-base: 240ms;
  --t-slow: 360ms;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 24px 48px -12px rgba(0,0,0,0.18);

  /* Layout */
  --container: 1280px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-0);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-base) var(--ease); }
a:hover { color: var(--accent-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-0);
  margin: 0 0 var(--sp-4);
}
h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 1.2vw + 0.8rem, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin: 0 0 var(--sp-4); color: var(--ink-2); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--sp-4);
}
.lead { font-size: 1.125rem; color: var(--ink-3); max-width: 62ch; }

/* Layout helpers */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
section { padding: var(--sp-10) 0; }
.section-head { max-width: 720px; margin: 0 0 var(--sp-8); }
.section-head p { font-size: 1.125rem; color: var(--ink-3); }

/* Topbar */
.topbar {
  background: var(--ink-0);
  color: var(--surface-1);
  font-size: 0.8125rem;
  padding: var(--sp-2) 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center; flex-wrap: wrap; }
.topbar a { color: var(--surface-1); display: inline-flex; align-items: center; gap: var(--sp-2); }
.topbar a:hover { color: var(--accent-light); }
.topbar .divider { opacity: 0.4; padding: 0 var(--sp-3); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; color: var(--ink-0); }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav a { font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); position: relative; }
.nav a:hover { color: var(--ink-0); }
.nav a.active { color: var(--ink-0); }
.nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: var(--sp-3); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-sm); }
.menu-btn svg { width: 24px; height: 24px; stroke: var(--ink-0); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all var(--t-base) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink-0);
  color: var(--surface-0);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--surface-0); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: var(--accent);
  color: var(--surface-0);
}
.btn-accent:hover { background: var(--accent-dark); color: var(--surface-0); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--ink-0);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--ink-0); color: var(--ink-0); }
.btn-ghost { color: var(--ink-0); padding-left: 4px; padding-right: 4px; }
.btn-ghost:hover { color: var(--accent-dark); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Hero — full-bleed video background */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink-0);
  isolation: isolate;
  padding: var(--sp-9) 0;
}
.hero.hero-dark {
  min-height: auto;
  padding: calc(var(--sp-9) + 48px) 0 var(--sp-8);
  background: var(--ink-0);
  color: white;
}
.hero.hero-dark::after { display: none; }
.hero.hero-dark h1 { color: white; max-width: 22ch; margin-bottom: var(--sp-4); }
.hero.hero-dark .hero-lead,
.hero.hero-dark p { color: rgba(255,255,255,0.72); max-width: 60ch; font-size: 1.125rem; line-height: 1.6; }
.hero.hero-dark .container { position: relative; z-index: 1; }
.hero.hero-dark::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(900px 400px at 85% 0%, rgba(184,134,76,0.22), transparent 60%);
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero-bg video,
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(115deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.25) 100%),
    radial-gradient(1200px 600px at 80% 100%, rgba(184,134,76,0.35), transparent 65%);
}
.hero-copy { max-width: 780px; color: white; }
.hero-copy h1 { color: white; margin-bottom: var(--sp-5); }
.hero-copy .eyebrow { color: var(--accent-light); margin-bottom: var(--sp-5); }
.hero-copy .lead { font-size: 1.1875rem; color: rgba(255,255,255,0.82); margin-bottom: var(--sp-6); max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-7); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--sp-6) var(--sp-6); font-size: 0.875rem; color: rgba(255,255,255,0.78); }
.hero-meta > div { display: flex; align-items: center; gap: var(--sp-2); }
.hero-meta strong { color: white; font-weight: 700; font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -0.01em; }
.hero-meta svg { width: 18px; height: 18px; color: var(--accent-light); }

/* Hero marquee ticker at bottom */
.hero-ticker {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  padding: 14px 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.ticker-track {
  display: inline-flex;
  gap: var(--sp-7);
  white-space: nowrap;
  animation: ticker-slide 42s linear infinite;
  will-change: transform;
}
.ticker-track span { display: inline-flex; align-items: center; gap: var(--sp-4); }
.ticker-track span::after {
  content: '•';
  color: var(--accent-light);
  opacity: 0.7;
}
.ticker-track span:last-child::after { content: ''; }
@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero-btn-outline-dark {
  background: rgba(255,255,255,0.08);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.hero-btn-outline-dark:hover { background: rgba(255,255,255,0.15); color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5); }

/* Logo strip */
.logos {
  padding: var(--sp-7) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-0);
}
.logos h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: var(--sp-5);
}
.logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-6);
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
.logos-grid span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  text-align: center;
  opacity: 0.8;
}

/* Services */
.services { background: var(--surface-0); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  min-height: 260px;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.service-card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--accent-tint);
  color: var(--accent-dark);
  margin-bottom: var(--sp-4);
}
.service-card .icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: var(--sp-3); }
.service-card p { font-size: 0.9375rem; flex-grow: 1; margin-bottom: var(--sp-4); }
.service-card .arrow {
  font-size: 0.875rem; font-weight: 600; color: var(--ink-0);
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.service-card:hover .arrow { color: var(--accent-dark); }
.service-card .arrow svg { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease); }
.service-card:hover .arrow svg { transform: translateX(4px); }

/* ==========================================================================
   Homepage portfolio reel (bento grid — used on / landing page only)
   Tiles use <a class="p-tile"> > <img> + <div class="p-caption">
   ========================================================================== */
.portfolio { background: var(--surface-1); }
.portfolio-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5);
  margin-bottom: var(--sp-7); flex-wrap: wrap;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-4);
}
.p-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--ink-1);
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}
.p-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.p-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.p-tile:hover img { transform: scale(1.05); }
.p-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 88%, rgba(0,0,0,0.78));
  pointer-events: none;
}
.p-caption {
  position: absolute; bottom: var(--sp-4); left: var(--sp-4); right: var(--sp-4);
  z-index: 2; color: white;
  transition: transform 400ms var(--ease);
}
.p-tile:hover .p-caption { transform: translateY(-2px); }
.p-caption .cat {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.94);
  color: var(--accent-dark);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: var(--sp-2);
}
.p-caption h4 {
  color: white;
  margin: 0 0 2px;
  font-size: 1.0625rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.p-caption .venue { font-size: 0.8125rem; opacity: 0.82; margin: 0; }

.p-large { grid-column: span 8; aspect-ratio: 16/10; }
.p-small { grid-column: span 4; aspect-ratio: 1; }
.p-half  { grid-column: span 6; aspect-ratio: 4/3; }
.p-third { grid-column: span 4; aspect-ratio: 4/3; }

/* ==========================================================================
   Services hub — image-top card variant (used on /services/ hub)
   Activates when a .service-card contains an inner .service-card-img wrapper
   ========================================================================== */
.service-card:has(.service-card-img) { padding: 0; overflow: hidden; }
.service-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-2);
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-content {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-card-content h3 { font-size: 1.25rem; margin: 0 0 var(--sp-3); }
.service-card-content p {
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin: 0 0 var(--sp-4);
  flex-grow: 1;
}
.service-card-content::after {
  content: "Explore →";
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-dark);
  align-self: flex-start;
  transition: color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.service-card:hover .service-card-content::after {
  color: var(--accent);
  transform: translateX(4px);
}

/* ==========================================================================
   "What we build" features grid — used on service sub-pages (dark section)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.feature-item {
  padding: var(--sp-6);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.feature-item:hover {
  border-color: var(--accent);
  background: rgba(184,134,76,0.08);
  transform: translateY(-2px);
}
.feature-item::before {
  content: "";
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: var(--sp-2);
  transition: width var(--t-base) var(--ease);
}
.feature-item:hover::before { width: 56px; }
.feature-item h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: white;
  margin: 0;
  letter-spacing: -0.01em;
}
.feature-item p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.68);
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   Work page — editorial portfolio (captions below image, uniform grid)
   ========================================================================== */
.work-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-7);
  justify-content: center;
}
.work-filter-chip {
  appearance: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-0);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  min-height: 40px;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.work-filter-chip:hover { border-color: var(--accent); color: var(--ink-0); }
.work-filter-chip.is-active {
  background: var(--ink-0);
  color: var(--surface-0);
  border-color: var(--ink-0);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-7) var(--sp-5);
}
.work-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.work-card[hidden] { display: none; }
.work-card-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4/3;
  background: var(--surface-2);
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.work-card:hover .work-card-media { box-shadow: var(--shadow-lg); }
.work-card:hover .work-card-media img { transform: scale(1.045); }
.work-card-body { display: flex; flex-direction: column; gap: 4px; }
.work-card-eyebrow {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.work-card h4 {
  font-size: 1.0625rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-0);
  margin: 0;
  letter-spacing: -0.01em;
  transition: color var(--t-base) var(--ease);
}
.work-card:hover h4 { color: var(--accent-dark); }
.work-card-venue {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

/* Process */
.process {
  background: var(--ink-0);
  color: var(--surface-1);
}
.process h2, .process h3 { color: var(--surface-0); }
.process .eyebrow { color: var(--accent-light); }
.process p { color: rgba(255,255,255,0.7); }
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5);
  margin-top: var(--sp-7);
}
.step {
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.step .num {
  font-family: var(--font-display);
  font-size: 0.875rem; font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
}
.step h3 { font-size: 1.25rem; margin-bottom: var(--sp-3); }
.step p { font-size: 0.9375rem; }

/* About snippet */
.about-snippet { background: var(--surface-0); }
.about-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-8); align-items: center;
}
.about-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5);
  margin-top: var(--sp-6);
}
.stat {
  padding: var(--sp-5);
  background: var(--surface-1);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.stat .n {
  font-family: var(--font-display); font-size: 2.25rem; font-weight: 700;
  color: var(--ink-0); letter-spacing: -0.025em; line-height: 1;
}
.stat .l {
  font-size: 0.875rem; color: var(--muted); margin-top: var(--sp-2);
}
.about-photo {
  border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 5/6;
  box-shadow: var(--shadow-md);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ teaser */
.faq { background: var(--surface-1); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--line-strong);
  padding: var(--sp-5) 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; color: var(--ink-0);
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus {
  flex-shrink: 0; width: 32px; height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: all var(--t-base) var(--ease);
}
.faq-item[open] .plus { background: var(--ink-0); color: white; border-color: var(--ink-0); transform: rotate(45deg); }
.faq-item .plus svg { width: 14px; height: 14px; }
.faq-item[open] summary { color: var(--accent-dark); }
.faq-item .answer { padding-top: var(--sp-4); color: var(--ink-2); max-width: 68ch; }

/* CTA / Enquiry */
.enquiry {
  background: var(--ink-0);
  color: white;
  position: relative;
  overflow: hidden;
}
.enquiry::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(1000px 600px at 85% 0%, rgba(184,134,76,0.18), transparent 60%);
  pointer-events: none;
}
.enquiry .container { position: relative; z-index: 1; }
.enquiry-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--sp-8);
}
.enquiry h2 { color: white; }
.enquiry .lead { color: rgba(255,255,255,0.75); margin-bottom: var(--sp-6); }
.enquiry-meta { display: flex; flex-direction: column; gap: var(--sp-4); }
.enquiry-meta a {
  display: flex; align-items: center; gap: var(--sp-3);
  color: rgba(255,255,255,0.88);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.enquiry-meta a:hover { color: var(--accent-light); }
.enquiry-meta .ic {
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.enquiry-meta .ic svg { width: 18px; height: 18px; }
.enquiry-meta .lbl { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); display: block; }
.enquiry-meta .val { font-size: 1rem; font-weight: 500; }

.form-card {
  background: white;
  color: var(--ink-0);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  box-shadow: var(--shadow-lg);
}
.form-card h3 { margin-bottom: var(--sp-2); }
.form-card p { color: var(--ink-3); font-size: 0.9375rem; margin-bottom: var(--sp-5); }
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: 0.8125rem; font-weight: 600; color: var(--ink-2);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.field label .req { color: var(--destructive); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  font-family: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: white;
  color: var(--ink-0);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,134,76,0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-success, .form-error { display: none; padding: var(--sp-4); border-radius: var(--r-md); margin-top: var(--sp-4); font-size: 0.9375rem; }
.form-success { background: #F0FDF4; color: var(--success); border: 1px solid #BBF7D0; }
.form-error { background: #FEF2F2; color: var(--destructive); border: 1px solid #FECACA; }
.form-success.show, .form-error.show { display: block; }

/* Footer */
.site-footer {
  background: #050505;
  color: rgba(255,255,255,0.65);
  padding: var(--sp-9) 0 var(--sp-5);
  font-size: 0.875rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}
.footer-grid h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--sp-4);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: var(--sp-2); }
.footer-grid a { color: rgba(255,255,255,0.85); }
.footer-grid a:hover { color: var(--accent-light); }
.footer-brand .brand {
  color: white;
  margin-bottom: var(--sp-4);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer-brand .brand img { display: none; }
.footer-brand .brand span { position: relative; }
.footer-brand .brand span::before {
  content: "";
  display: inline-block;
  vertical-align: -2px;
  margin-right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--sp-5);
  display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  font-size: 0.8125rem; color: rgba(255,255,255,0.45);
}

/* Floating WhatsApp */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  color: white;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.35);
  z-index: 90;
  transition: transform var(--t-base) var(--ease);
}
.wa-fab:hover { transform: scale(1.05); color: white; }
.wa-fab svg { width: 28px; height: 28px; }

/* Responsive 1024 */
@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero-visual { aspect-ratio: 4/3; max-width: 640px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .enquiry-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Responsive 768 */
@media (max-width: 768px) {
  section { padding: var(--sp-8) 0; }
  .nav, .nav-cta .btn { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--surface-0); padding: var(--sp-5); gap: var(--sp-3); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .nav.open a { padding: var(--sp-2) 0; font-size: 1rem; }
  .menu-btn { display: flex; }
  .logos-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .p-large, .p-small, .p-half, .p-third { grid-column: span 1; aspect-ratio: 4/3; }
  .p-large { grid-column: span 2; aspect-ratio: 16/10; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-4); }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: var(--sp-5); }
}

/* Responsive 640 */
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .hero { padding: var(--sp-7) 0 var(--sp-8); }
  .portfolio-head { flex-direction: column; align-items: flex-start; }
  .work-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .work-filter { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; margin: 0 calc(-1 * var(--sp-4)) var(--sp-6); padding: 0 var(--sp-4) 4px; scrollbar-width: none; }
  .work-filter::-webkit-scrollbar { display: none; }
  .work-filter-chip { flex-shrink: 0; }
}

/* Responsive 400 */
@media (max-width: 400px) {
  .topbar .divider { display: none; }
  .topbar .container { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .wa-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .container { padding: 0 var(--sp-4); }
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Focus states */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ==========================================================================
   Scroll-reveal + subtle motion
   ========================================================================== */

/* Fade-rise on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 350ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 420ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 490ms; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 560ms; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 630ms; }

/* Hero copy intro animation on load */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy .eyebrow { animation: hero-rise 900ms var(--ease) both; animation-delay: 80ms; }
.hero-copy h1 { animation: hero-rise 900ms var(--ease) both; animation-delay: 200ms; }
.hero-copy .lead { animation: hero-rise 900ms var(--ease) both; animation-delay: 360ms; }
.hero-cta { animation: hero-rise 900ms var(--ease) both; animation-delay: 480ms; }
.hero-meta { animation: hero-rise 900ms var(--ease) both; animation-delay: 600ms; }

/* Service card icon motion (icon-only variant, used on homepage) */
.service-card .icon { transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.service-card:hover .icon { background: var(--accent); color: white; transform: rotate(-4deg) scale(1.05); }

/* Logo strip subtle fade hover */
.logos-grid span { transition: color var(--t-base) var(--ease), opacity var(--t-base) var(--ease); }
.logos-grid span:hover { color: var(--ink-0); opacity: 1; }

/* Stat counter */
.stat { transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease); }
.stat:hover { transform: translateY(-2px); border-color: var(--accent); }

/* Respect reduced motion (override) */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .hero-copy > *, .ticker-track {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Skip link */
.skip-link {
  position: absolute; left: 0; top: 0;
  transform: translateY(-200%);
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink-0); color: white; z-index: 999;
  transition: transform var(--t-base) var(--ease);
}
.skip-link:focus { transform: translateY(0); color: white; }
