/* =========================================================
   L-MediaWorks — global styles
   ========================================================= */

:root {
  --bg: #0c0b0b;
  --bg-2: #110f0f;
  --card: #151313;
  --card-2: #1a1717;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f5f3f3;
  --muted: #a39b9b;
  --muted-2: #777070;

  /* Brand: deep maroon (from the logo) */
  --brand: #980311;
  --brand-dark: #6f020c;
  --brand-light: #ef5a67;   /* readable maroon tint for text/icons on dark backgrounds */
  --brand-rgb: 152, 3, 17;
  --brand-ink: #ffffff;     /* text on maroon */
  --brand-glow: rgba(152, 3, 17, 0.4);
  --brand-icon: var(--brand-light);
  --logo-color: var(--brand-light);
  --logo-word: #ffffff;

  --blue: #3fa2ff;
  --purple: #9b6bff;
  --orange: #ff9a3c;
  --pink: #ff5ca8;
  --green: #47d16c;
  --red: #ff4d6a;
  --teal: #2fd6b5;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1240px;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* theme-dependent helpers */
  --text-2: #ddd8d8;
  --accent-text: var(--brand-light);
  --hover: rgba(255, 255, 255, 0.04);
  --chip: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(12, 11, 11, 0.84);
  --dropdown-bg: rgba(21, 19, 19, 0.97);
  --dot: rgba(255, 255, 255, 0.18);
  --pill-shadow: rgba(0, 0, 0, 0.55);
  --pill-shadow-strong: rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

/* Light mode */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f6f4f4;
  --card: #ffffff;
  --card-2: #fcfbfb;
  --line: rgba(20, 10, 10, 0.09);
  --line-2: rgba(20, 10, 10, 0.16);
  --text: #111111;
  --text-2: #333333;
  --muted: #5e5858;
  --muted-2: #8a8484;
  --accent-text: var(--brand);
  --brand-icon: var(--brand);
  --logo-color: var(--brand);
  --logo-word: var(--brand);
  --hover: rgba(20, 10, 10, 0.04);
  --chip: rgba(152, 3, 17, 0.07);
  --header-bg: rgba(255, 255, 255, 0.88);
  --dropdown-bg: rgba(255, 255, 255, 0.98);
  --dot: rgba(20, 10, 10, 0.18);
  --pill-shadow: rgba(40, 10, 10, 0.14);
  --pill-shadow-strong: rgba(40, 10, 10, 0.2);
  color-scheme: light;
}

/* Blocks that always sit on a dark photo/background keep dark-mode text colours */
.hero,
.cta-banner {
  --text: #f5f3f3;
  --text-2: #ddd8d8;
  --accent-text: var(--brand-light);
  --line-2: rgba(255, 255, 255, 0.14);
  --hover: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
body, .site-header, .service-card, .blog-card, .feature, .panel, .stat, .contact-card, .faq details, .industries, .site-footer {
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent-text); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 0 var(--brand-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--brand-glow); }
.btn-outline { border: 1px solid var(--line-2); color: var(--text); background: var(--hover); }
.btn-outline:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13px; }
.btn-play .play-dot {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor;
  display: grid; place-items: center;
}
.btn-play .play-dot svg { width: 9px; height: 9px; transform: none !important; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: inline-grid; place-items: center;
  transition: all .25s var(--ease);
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--accent-text); }

/* ---------- Header (floating pill navbar) ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 16px 24px 0; pointer-events: none; }
.nav-shell { display: flex; justify-content: center; }
.nav-pill {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  width: fit-content; max-width: 100%;
  height: 66px; padding: 0 10px 0 24px; border-radius: 999px;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line-2);
  box-shadow: 0 12px 40px -14px var(--pill-shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: pillIn .7s var(--ease) both;
  transition: height .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.scrolled .nav-pill { height: 58px; box-shadow: 0 18px 50px -14px var(--pill-shadow-strong), inset 0 1px 0 rgba(255, 255, 255, .06); }
@keyframes pillIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes linkIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes ctaIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.logo { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: var(--text); }
.logo-mark {
  width: 38px; height: 33px; flex: none; transition: transform .3s var(--ease);
  background: var(--logo-color);
  -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat;
          mask: url("../img/logo-mark.png") center / contain no-repeat;
}
.logo { gap: 9px; }
.logo-word { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 22px; letter-spacing: 0; color: var(--logo-word); line-height: 1; }
.logo:hover .logo-mark { transform: rotate(10deg) scale(1.05); }
.logo-mark svg { width: 100%; height: 100%; }
.logo span.dash { color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; animation: linkIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + .15s); }
.nav-links a.nav-link {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px;
  transition: color .2s, background-color .2s, transform .2s var(--ease);
}
.nav-links a.nav-link:hover { color: var(--text); background: var(--hover); transform: scale(1.05); }
.nav-links a.nav-link.active { color: var(--accent-text); background: var(--chip); }
.nav-links .chev { width: 13px; height: 13px; opacity: .7; transition: transform .25s var(--ease); }
.has-dropdown:hover .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translate(-50%, 8px);
  width: 560px; padding: 14px;
  background: var(--dropdown-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); border-radius: 22px;
  box-shadow: 0 30px 60px -20px var(--pill-shadow-strong);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: all .25s var(--ease);
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; } /* hover bridge */
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  font-size: 13.5px; color: var(--text-2); transition: background .2s, color .2s;
}
.dropdown a:hover { background: var(--hover); color: var(--accent-text); }
.dropdown .dd-icon { width: 30px; height: 30px; flex: none; }
.dropdown .dd-icon svg { width: 100%; height: 100%; }
.dropdown .dd-all { grid-column: 1 / -1; justify-content: center; border-top: 1px solid var(--line); border-radius: 0; margin-top: 6px; padding-top: 14px; color: var(--accent-text); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .nav-start { height: 44px; padding: 0 20px; animation: ctaIn .5s var(--ease) .2s both; }
.nav-cta .nav-start:hover { transform: scale(1.05); }
.menu-toggle, .menu-close { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); place-items: center; color: var(--text); transition: transform .15s; }
.menu-toggle:active, .menu-close:active { transform: scale(.9); }
.menu-toggle svg, .menu-close svg { width: 20px; height: 20px; }

/* Full-screen mobile menu that slides in from the right */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; pointer-events: auto;
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 24px 28px; overflow-y: auto;
  background: var(--bg);
  transform: translateX(100%); opacity: 0; visibility: hidden;
  transition: transform .55s cubic-bezier(.22, 1.12, .36, 1), opacity .3s, visibility 0s .55s;
}
.menu-open .mobile-menu { transform: none; opacity: 1; visibility: visible; transition: transform .55s cubic-bezier(.22, 1.12, .36, 1), opacity .3s; }
.mm-head { display: flex; align-items: center; justify-content: space-between; height: 58px; padding-left: 10px; }
.mm-head .menu-close { display: grid; }
.mm-links { display: flex; flex-direction: column; margin-top: 18px; }
.mm-item { opacity: 0; transform: translateX(20px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.menu-open .mm-item { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 70ms + .12s); }
.mm-links > a, .mm-links summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 10px; font-family: var(--font-head); font-size: 24px; font-weight: 500;
  border-bottom: 1px solid var(--line); list-style: none; cursor: pointer;
}
.mm-links > a.active { color: var(--accent-text); }
.mm-links summary::-webkit-details-marker { display: none; }
.mm-links summary svg { width: 20px; height: 20px; transition: transform .25s; }
.mm-links details[open] summary svg { transform: rotate(180deg); }
.mm-sub { display: grid; padding: 8px 0 12px; }
.mm-sub a { padding: 9px 14px; font-size: 15px; color: var(--muted); border-radius: 10px; }
.mm-sub a:hover { color: var(--accent-text); background: var(--hover); }
.mm-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 18px; }
.mm-foot .btn { width: 100%; justify-content: center; height: 52px; font-size: 15px; }
.mm-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
body.no-scroll { overflow: hidden; }

/* ---------- Section basics ---------- */
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 70px 0; }
.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 16px;
}
.section-title { font-size: clamp(32px, 4vw, 46px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section-head .head-right { display: flex; align-items: center; gap: 40px; max-width: 560px; }
.section-head .head-right p { color: var(--muted); font-size: 14px; max-width: 360px; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.75; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 760px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 150px 0 110px;
  overflow: hidden; isolation: isolate;
  background: #0c0b0b;
}
/* Curved maroon edge at the bottom of the hero that flows into the industries strip */
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; z-index: 1; pointer-events: none; display: block; }
.hero-wave .wave-fill { fill: var(--brand); }
.hero-wave .wave-line { fill: none; stroke: var(--brand); stroke-width: 2; opacity: .55; stroke-dasharray: 2 9; stroke-linecap: round; }
.hero-wave .wave-line-2 { fill: none; stroke: var(--brand); stroke-width: 1.2; opacity: .25; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; filter: saturate(1.05) brightness(.95); transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
/* Black blur: a blurred dark layer behind the headline that clears before the character,
   plus a soft dark blur on the far edge beside her. The character herself stays sharp. */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 58%, transparent 90%, rgba(0,0,0,.85) 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 58%, transparent 90%, rgba(0,0,0,.85) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(4,5,4,.9) 0%, rgba(4,5,4,.72) 30%, rgba(4,5,4,.45) 52%, rgba(4,5,4,.12) 66%, rgba(4,5,4,0) 80%, rgba(4,5,4,.35) 94%, rgba(4,5,4,.7) 100%),
    linear-gradient(180deg, rgba(4,5,4,.6) 0%, rgba(4,5,4,0) 22%, rgba(4,5,4,0) 62%, #0c0b0b 100%);
}
.hero .eyebrow { color: #e6e9e4; letter-spacing: .22em; font-size: 12px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 96px); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }
.hero h1 .accent { display: block; }
.hero .hero-sub { color: #d5d9d3; font-size: 17px; max-width: 470px; margin: 26px auto 34px; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-outline { background: rgba(12,11,11,.45); backdrop-filter: blur(6px); }
.trusted { display: inline-flex; align-items: center; gap: 14px; margin-top: 44px; text-align: left; }
.avatars { display: flex; }
.avatars img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }
.trusted p { font-size: 12.5px; color: #c8ccc6; line-height: 1.4; }

/* ---------- Industries strip ---------- */
.industries { position: relative; background: var(--brand); color: var(--brand-ink); margin-top: -1px; }
.industries ul { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 0; flex-wrap: wrap; }
.industries ul { padding: 14px 0 26px; }
.industries li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--brand-ink); font-weight: 600; }
.industries svg { width: 20px; height: 20px; color: var(--brand-ink); }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 26px 24px; min-height: 108px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%);
}
.service-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--c) 60%, transparent); }
.service-card:hover::before { opacity: 1; }
.service-card .s-icon { width: 46px; height: 46px; flex: none; position: relative; }
.service-card .s-num { display: block; font-size: 12px; font-weight: 600; color: var(--c); margin-bottom: 4px; }
.service-card h3 { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; line-height: 1.35; max-width: 160px; }
.service-card .s-arrow { position: absolute; top: 18px; right: 18px; width: 16px; height: 16px; color: var(--muted); transition: all .3s var(--ease); }
.service-card:hover .s-arrow { color: var(--accent-text); transform: translate(2px, -2px); }

.s-icon svg, .g-icon svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--c) 45%, transparent)); }

/* ---------- Projects carousel ---------- */
.projects-wrap { position: relative; }
.projects-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 2.75);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 24px 6px; scrollbar-width: none;
  scroll-padding: 0 24px;
}
.projects-track::-webkit-scrollbar { display: none; }
.project-card {
  scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
}
.project-card .p-img { aspect-ratio: 16 / 11; overflow: hidden; position: relative; }
.project-card .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .p-img img { transform: scale(1.06); }
.project-card .p-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12,11,11,.9)); }
.tag {
  display: inline-block; font-size: 11px; font-weight: 500; padding: 5px 12px;
  border-radius: 999px; background: var(--chip); backdrop-filter: blur(8px); color: var(--text-2);
  border: 1px solid var(--line);
}
.project-card .tag { position: absolute; left: 18px; bottom: 96px; z-index: 2; background: rgba(255,255,255,.12); color: #eef1ec; border-color: rgba(255,255,255,.1); }
.project-card .p-body { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 18px 22px; }
.project-card h3 { font-family: var(--font-body); font-size: 15.5px; font-weight: 600; }
.project-card .p-body p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.project-card .icon-btn { flex: none; width: 38px; height: 38px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 99px; background: var(--dot); transition: all .3s var(--ease); }
.carousel-dots button.active { width: 28px; background: var(--brand); }
.carousel-nav { display: flex; gap: 10px; }

/* ---------- About split ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.collage { position: relative; height: 440px; }
.collage .c-back { position: absolute; left: 0; top: 50px; width: 46%; height: 300px; border-radius: var(--radius); overflow: hidden; opacity: .75; }
.collage .c-front { position: absolute; left: 12%; right: 0; top: 0; bottom: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.collage img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) saturate(.9); }
.collage .c-badge {
  position: absolute; left: 7%; bottom: 40px; z-index: 2;
  background: rgba(230, 233, 228, .92); color: #151815; font-weight: 600; font-size: 13px; line-height: 1.25;
  padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.about-split h2 { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 22px; }
.about-split .lead { margin-bottom: 32px; max-width: 470px; }
.squiggle { position: absolute; right: 0; top: 50%; transform: translateY(-40%); width: 220px; color: var(--accent-text); opacity: .9; pointer-events: none; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.step { display: flex; gap: 20px; position: relative; }
.step .step-icon {
  width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: var(--brand-ink);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 14%, transparent), 0 14px 30px -10px var(--c);
}
.step .step-icon svg { width: 22px; height: 22px; }
.step .step-num { font-family: var(--font-head); font-size: 22px; font-weight: 500; color: var(--c); line-height: 1; }
.step h3 { font-size: 20px; margin: 6px 0 10px; }
.step p { font-size: 13px; color: var(--muted); max-width: 170px; }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.blog-card .b-img { aspect-ratio: 16 / 8.2; overflow: hidden; }
.blog-card .b-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.blog-card:hover .b-img img { transform: scale(1.06); }
.blog-card .b-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.b-meta { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.b-meta .tag { padding: 3px 10px; font-size: 10.5px; }
.blog-card h3 { font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 14px; }
.blog-card .b-excerpt { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.read-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-size: 12.5px; font-weight: 600; }
.read-more svg { width: 13px; height: 13px; transition: transform .25s; }
.blog-card:hover .read-more svg { transform: translateX(3px); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden; border-radius: 28px;
  border: 1px solid rgba(var(--brand-rgb), 0.14);
  background:
    radial-gradient(ellipse 60% 120% at 0% 50%, rgba(152, 3, 17, .55), transparent 60%),
    linear-gradient(90deg, #2b0509 0%, #170507 45%, #0f0b0b 100%);
  padding: 56px 60px; isolation: isolate;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.cta-banner .cta-img { position: absolute; right: 0; top: 0; bottom: 0; width: 34%; z-index: -1; }
.cta-banner .cta-img img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cta-banner .cta-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0f0b0b 0%, rgba(15,11,11,.2) 60%); z-index: 1; }
.cta-banner h2 { font-size: clamp(30px, 3.6vw, 44px); }
.cta-banner .cta-right p { color: #d0d5cf; font-size: 14.5px; max-width: 320px; margin-bottom: 22px; }
.cta-banner .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer (deep maroon) ---------- */
.site-footer {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 40px;
  background: linear-gradient(160deg, #4d0209 0%, #74020f 55%, #980311 100%);
  color: #fff;
  --logo-color: #ffffff; --logo-word: #ffffff;
}
.footer-watermark {
  position: absolute; right: -60px; bottom: -70px; width: 420px; height: 366px; z-index: -1; opacity: .07;
  background: #fff;
  -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat;
          mask: url("../img/logo-mark.png") center / contain no-repeat;
}
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr; gap: 44px; padding: 64px 0 48px; }
.footer-tagline { margin-top: 16px; font-family: "DM Serif Display", Georgia, serif; font-size: 18px; color: #fff; }
.footer-desc { margin: 8px 0 22px; color: rgba(255, 255, 255, .72); font-size: 13.5px; line-height: 1.7; max-width: 300px; }
.site-footer h4 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col .f-loc { display: inline-flex; align-items: flex-start; gap: 10px; color: rgba(255, 255, 255, .88); font-size: 14px; transition: color .2s, transform .2s var(--ease); width: fit-content; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-col svg { width: 16px; height: 16px; flex: none; margin-top: 2px; opacity: .8; }
.footer-cta { padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); align-self: start; }
.footer-cta h4 { color: #fff; margin-bottom: 8px; }
.footer-cta p { color: rgba(255, 255, 255, .75); font-size: 13.5px; margin-bottom: 16px; }
.footer-btn { background: #fff; color: var(--brand); border: 0; height: 42px; font-size: 13.5px; }
.footer-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.site-footer .socials { display: flex; gap: 8px; }
.site-footer .socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .25); transition: all .25s; }
.site-footer .socials a:hover { background: #fff; color: var(--brand); border-color: #fff; }
.site-footer .socials svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .16); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, .65); }

/* =========================================================
   Inner pages
   ========================================================= */
.page-hero {
  position: relative; padding: 170px 0 90px; overflow: hidden; isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 70% at 85% 10%, rgba(var(--brand-rgb), .10), transparent 60%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(152,3,17,.16), transparent 60%);
}
.page-hero .grid-lines {
  position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%);
}
.page-hero h1 { font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -0.02em; max-width: 900px; }
.page-hero .lead { max-width: 620px; margin-top: 22px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 26px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb svg { width: 12px; height: 12px; opacity: .6; }
.breadcrumb span:last-child { color: var(--text); }
.page-hero.with-img .hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.page-hero .hero-media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4; border: 1px solid var(--line-2); }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(12,11,11,.6)); }
.page-hero .hero-media .g-icon { position: absolute; left: 22px; bottom: 22px; width: 64px; height: 64px; z-index: 2; padding: 12px; border-radius: 18px; background: rgba(12,11,11,.7); backdrop-filter: blur(10px); border: 1px solid var(--line-2); }
.page-hero .hero-actions { justify-content: flex-start; margin-top: 34px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.stat strong { display: block; font-family: var(--font-head); font-size: 42px; font-weight: 600; color: var(--accent-text); line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 13.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  transition: border-color .3s, transform .3s var(--ease);
}
.feature:hover { border-color: color-mix(in srgb, var(--c, var(--brand)) 40%, transparent); transform: translateY(-3px); }
.feature .f-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: color-mix(in srgb, var(--c, var(--brand)) 14%, transparent); color: var(--c, var(--brand)); }
.feature .f-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { font-size: 14px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.check-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.check-list li:last-child { border-bottom: 0; }
.check-list svg { width: 20px; height: 20px; color: var(--accent-text); flex: none; margin-top: 2px; }
.check-list strong { display: block; font-weight: 600; }
.check-list span { color: var(--muted); font-size: 13.5px; }

.panel { padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.panel h3 { font-size: 22px; margin-bottom: 18px; }

.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); margin-bottom: 12px; transition: border-color .25s; }
.faq details[open] { border-color: rgba(var(--brand-rgb), .3); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 600; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: all .25s; }
.faq summary .plus svg { width: 14px; height: 14px; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--brand); color: var(--brand-ink); border-color: var(--accent-text); }
.faq .faq-body { padding: 0 22px 22px; color: var(--muted); font-size: 14.5px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filters button { height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--text-2); transition: all .2s; }
.filters button:hover { border-color: var(--accent-text); color: var(--accent-text); }
.filters button.active { background: var(--brand); border-color: var(--accent-text); color: var(--brand-ink); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio-grid .project-card.hide { display: none; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.member img { aspect-ratio: 1 / 1.05; width: 100%; object-fit: cover; filter: grayscale(.3); transition: filter .4s; }
.member:hover img { filter: grayscale(0); }
.member div { padding: 16px 18px 20px; }
.member h3 { font-family: var(--font-body); font-size: 15.5px; font-weight: 600; }
.member span { font-size: 13px; color: var(--muted); }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .25s; }
.contact-card:hover { border-color: rgba(var(--brand-rgb), .35); }
.contact-card .f-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(var(--brand-rgb), .12); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.contact-card .f-icon svg { width: 20px; height: 20px; }
.contact-card small { display: block; color: var(--muted); font-size: 12.5px; }
.contact-card strong { font-weight: 600; font-size: 15px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font: inherit; font-size: 14.5px; transition: border-color .2s, box-shadow .2s;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239ba39d' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .15); }
.form-note { font-size: 13px; color: var(--muted); }
.form-success { display: none; padding: 16px 18px; border-radius: 12px; background: rgba(var(--brand-rgb), .1); border: 1px solid rgba(var(--brand-rgb), .3); color: var(--accent-text); font-size: 14px; }
.form-success.show { display: block; }

/* Article */
.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 8; margin: -40px 0 50px; border: 1px solid var(--line-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article .prose h2 { font-size: 28px; margin: 44px 0 16px; }
.article .prose h3 { font-size: 21px; margin: 30px 0 12px; }
.article .prose p { color: var(--text-2); font-size: 16.5px; line-height: 1.85; margin-bottom: 20px; }
.article .prose ul { margin: 0 0 22px; }
.article .prose li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 16px; line-height: 1.75; margin-bottom: 10px; }
.article .prose li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.article .prose blockquote { margin: 30px 0; padding: 24px 28px; border-left: 3px solid var(--brand); background: var(--card); border-radius: 0 14px 14px 0; font-family: var(--font-head); font-size: 21px; line-height: 1.45; }
.article-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-top: 24px; }
.article-meta .author { display: flex; align-items: center; gap: 10px; color: var(--text); }
.article-meta .author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p { color: var(--text-2); margin-bottom: 14px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img, .nav-pill, .nav-links > li, .nav-cta .nav-start { animation: none; }
  .mobile-menu, .mm-item { transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-track { grid-auto-columns: calc((100% - 18px) / 2.1); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta .nav-start { display: none; }
  .menu-toggle { display: grid; }
  .site-header { padding: 12px 16px 0; }
  .nav-pill, .site-header.scrolled .nav-pill { width: 100%; height: 60px; padding: 0 8px 0 20px; }
  .section { padding: 80px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head .head-right { flex-direction: column; align-items: flex-start; gap: 20px; }
  .about-split, .two-col, .contact-wrap, .page-hero.with-img .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .squiggle { display: none; }
  .blog-grid, .feature-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { grid-template-columns: 1fr; padding: 44px 32px; }
  .cta-banner .cta-img { width: 60%; opacity: .6; }
  .industries ul { justify-content: center; gap: 18px 30px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  body { font-size: 14.5px; }
  .hero { min-height: 640px; padding: 130px 0 70px; }
  .hero .hero-sub { font-size: 15px; }
  .services-grid, .blog-grid, .feature-grid, .portfolio-grid, .stats { grid-template-columns: 1fr; }
  .projects-track { grid-auto-columns: 86%; padding: 0 16px 6px; scroll-padding: 0 16px; }
  .process { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .collage { height: 340px; }
  .page-hero { padding: 130px 0 64px; }
  .panel { padding: 26px; }
  .cta-banner { padding: 36px 22px; border-radius: 22px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .industries ul { gap: 14px 22px; }
}

@media (max-width: 760px) {
}

/* ---------- Theme toggle ---------- */
.theme-toggle { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); transition: all .25s var(--ease); }
.theme-toggle:hover { border-color: var(--brand); color: var(--accent-text); transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .hero-bg img { filter: saturate(1.05) brightness(.92); }
/* Phones: the character sits behind the text, so darken and blur evenly */
@media (max-width: 640px) {
  .hero-bg img { object-position: 74% center; }
  .hero-bg::after { -webkit-mask-image: none; mask-image: none; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  .hero::before { background: linear-gradient(180deg, rgba(4,5,4,.75) 0%, rgba(4,5,4,.55) 45%, rgba(4,5,4,.7) 80%, #0c0b0b 100%); }
}
:root[data-theme="light"] .service-card:hover,
:root[data-theme="light"] .blog-card:hover,
:root[data-theme="light"] .feature:hover { box-shadow: 0 18px 40px -24px rgba(17, 21, 18, .35); }
:root[data-theme="light"] .collage .c-front { box-shadow: 0 30px 60px -30px rgba(17, 21, 18, .45); }

/* The compact pill needs ~980px; below that, switch to the slide-in menu */
@media (max-width: 1020px) {
  .nav-links, .nav-cta .nav-start { display: none; }
  .menu-toggle { display: grid; }
  .nav-pill, .site-header.scrolled .nav-pill { width: 100%; }
}

@media (max-width: 640px) {
  .hero { padding-bottom: 110px; }
  .hero-wave { height: 36px; }
}

/* ---------- Contact box (Contact page) ---------- */
.contact-box { padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, var(--card-2), var(--card)); }
.contact-box h3 { font-size: 24px; }
.cb-lead { color: var(--muted); font-size: 14px; margin: 8px 0 22px; }
.cb-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.cb-list .f-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(var(--brand-rgb), .12); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.cb-list .f-icon svg { width: 18px; height: 18px; }
.cb-list small, .cb-social > small { display: block; color: var(--muted); font-size: 12px; }
.cb-list a, .cb-list span { font-weight: 600; font-size: 15px; word-break: break-word; }
.cb-list a:hover { color: var(--accent-text); }
.cb-social { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.social-handles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.handle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--hover); transition: border-color .2s, transform .2s var(--ease); min-width: 0; }
.handle:hover { border-color: var(--brand); transform: translateY(-2px); }
.handle .h-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.handle .h-icon svg { width: 16px; height: 16px; }
.handle-facebook .h-icon { background: #1877f2; }
.handle-instagram .h-icon { background: linear-gradient(45deg, #f9a825, #e1306c 55%, #833ab4); }
.handle-linkedin .h-icon { background: #0a66c2; }
.handle-youtube .h-icon { background: #ff0000; }
.handle-whatsapp .h-icon { background: #25d366; }
.handle > span:last-child { display: grid; min-width: 0; line-height: 1.3; }
.handle strong { font-size: 13px; }
.handle > span:last-child > span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Phones: tighter, app-like layout ---------- */
.carousel-dots button { position: relative; }
.carousel-dots button::after { content: ""; position: absolute; inset: -12px -4px; } /* larger tap area */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 40px 0; }
  .section-title { font-size: 30px; }
  .section-head { margin-bottom: 30px; }
  .lead { font-size: 15px; }
  .eyebrow { font-size: 11px; margin-bottom: 12px; }

  /* Hero: text on top, the photo shown clearly underneath */
  .hero { display: flex; flex-direction: column; min-height: 0; padding: 112px 0 0; }
  .hero > .container { order: 1; position: relative; z-index: 2; }
  .hero::before { display: none; }
  .hero-bg { order: 2; position: relative; inset: auto; height: 330px; margin-top: -24px; z-index: 0; }
  .hero-bg img { object-position: 80% 45%; filter: saturate(1.05) brightness(1); animation: none; transform: none; }
  .hero-bg::after { -webkit-mask-image: none; mask-image: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    background: linear-gradient(180deg, #0c0b0b 0%, rgba(12,11,11,.35) 26%, rgba(12,11,11,0) 45%, rgba(12,11,11,0) 72%, rgba(12,11,11,.7) 100%); }
  .hero h1 { font-size: 46px; }
  .hero .hero-sub { font-size: 15px; margin: 18px auto 26px; max-width: 320px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; height: 50px; }
  .trusted { margin-top: 26px; }
  :root[data-theme="light"] .hero-bg img { filter: none; }

  /* Industries: compact two-column chips */
  .industries ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; padding: 8px 0 22px; }
  .industries li { font-size: 13px; }

  /* Services: two-column tiles instead of one long list */
  .services-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 14px; min-height: 0; border-radius: 16px; }
  .service-card .s-icon { width: 38px; height: 38px; }
  .service-card h3 { font-size: 13px; max-width: none; }
  .service-card .s-num { font-size: 11px; }
  .service-card .s-arrow { top: 14px; right: 14px; width: 14px; height: 14px; }


  /* About collage */
  .collage { height: 300px; }
  .collage .c-back { top: 40px; height: 220px; }
  .collage .c-badge { bottom: 24px; }
  .about-split { gap: 32px; }
  .about-split h2 { font-size: 30px; }

  /* Inner page heroes */
  .page-hero { padding: 116px 0 44px; }
  .page-hero h1 { font-size: 36px; }
  .page-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .page-hero .hero-actions .btn { justify-content: center; }
  .breadcrumb { margin-bottom: 18px; font-size: 12.5px; }

  .feature { padding: 22px; }
  .stat { padding: 20px; }
  .stat strong { font-size: 34px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .faq summary { padding: 16px 18px; font-size: 15px; }
  .faq .faq-body { padding: 0 18px 18px; }
  .contact-box { padding: 22px; border-radius: 20px; }
  .social-handles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .handle { padding: 9px 10px; gap: 8px; }
  .handle .h-icon { width: 30px; height: 30px; }
  .cta-banner h2 { font-size: 28px; }
  .cta-banner .cta-actions .btn { flex: 1; justify-content: center; }
  .article .prose p { font-size: 16px; }
  .article-cover { margin: -20px 0 32px; border-radius: 18px; }
}
@media (max-width: 360px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
}

/* ---------- Process timeline (01 → 04) ---------- */
.process { position: relative; }
.process-line {
  position: absolute; z-index: 0; top: 27px; height: 2px;
  left: 28px; right: calc((100% - 90px) / 4 - 28px); /* first icon centre → last icon centre */
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
  border-radius: 2px; overflow: hidden;
}
.process-fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--brand));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.8s cubic-bezier(.65, 0, .35, 1) .2s;
  box-shadow: 0 0 14px rgba(var(--brand-rgb), .35);
}
.process.in-view .process-fill { transform: scaleX(1); }
.step { z-index: 1; flex-direction: column; gap: 18px; }
.step p { max-width: 220px; }
.step .step-icon { position: relative; transform: scale(.4); opacity: 0; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .4s; transition-delay: calc(var(--i) * .5s + .2s); }
.step .step-icon::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--c); opacity: 0;
}
.step > div { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * .5s + .4s); }
.process.in-view .step .step-icon { transform: none; opacity: 1; }
.process.in-view .step > div { opacity: 1; transform: none; }
.process.in-view .step .step-icon::after { animation: stepPulse 1.6s ease-out 1 forwards; animation-delay: calc(var(--i) * .5s + .9s); }
@keyframes stepPulse { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.55); } }
.step .step-num { transition: letter-spacing .4s var(--ease); }
.process.in-view .step:hover .step-icon { transform: scale(1.08) rotate(-6deg); transition-delay: 0s; }

/* Two-column tablets: no connecting line, steps still animate in */
@media (max-width: 1100px) and (min-width: 641px) {
  .process-line { display: none; }
}
/* Phones: vertical timeline down the left */
@media (max-width: 640px) {
  .process { grid-template-columns: 1fr; gap: 26px; margin-top: 32px; }
  .process-line {
    top: 24px; bottom: 40px; left: 23px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px);
  }
  .process-fill { background: linear-gradient(180deg, var(--brand), var(--brand-light), var(--brand)); transform: scaleY(0); transform-origin: center top; }
  .process.in-view .process-fill { transform: scaleY(1); }
  .step { flex-direction: row; gap: 18px; }
  .step .step-icon { width: 48px; height: 48px; }
  .step .step-num { font-size: 18px; }
  .step h3 { font-size: 18px; margin: 4px 0 6px; }
  .step p { font-size: 13px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .process-fill { transform: none !important; transition: none; }
  .step .step-icon, .step > div { opacity: 1; transform: none; transition: none; }
  .step .step-icon::after { animation: none !important; }
}

/* =========================================================
   Centred headings on every page (matches the hero)
   Card contents, article text and forms stay left-aligned for readability.
   ========================================================= */

/* Section headers: label + headline, then subtitle + button, stacked and centred */
.section-head { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.section-head > div:first-child { display: flex; flex-direction: column; align-items: center; }
.section-head .head-right { flex-direction: column; align-items: center; gap: 22px; max-width: 620px; }
.section-head .head-right p { max-width: 560px; font-size: 15px; }

/* Stand-alone label + headline (process, values, team…) */
.section .container > .eyebrow,
.section .container > .section-title { display: block; text-align: center; }

/* Inner page heroes */
.page-hero .container { text-align: center; }
.page-hero h1 { margin-left: auto; margin-right: auto; }
.page-hero .lead { margin-left: auto; margin-right: auto; }
.breadcrumb { justify-content: center; }
.page-hero.with-img .hero-inner > div:first-child { text-align: center; }
.page-hero .hero-actions { justify-content: center; }
.article-meta { justify-content: center; }

/* Two-column text blocks (service overview, FAQ intro) */
.two-col > div:first-child { text-align: center; }
.two-col > div:first-child .lead { margin-left: auto; margin-right: auto; max-width: 520px; }

/* About section next to the photo collage */
.about-split > div:not(.collage) { text-align: center; }
.about-split .lead { margin-left: auto; margin-right: auto; }

/* Filter buttons (portfolio, blog) */
.filters { justify-content: center; }

/* "Let's Create Something Amazing Together" banner */
.cta-banner { grid-template-columns: 1fr; text-align: center; gap: 22px; padding: 64px 48px; }
.cta-banner .cta-img { width: 100%; }
.cta-banner .cta-img img { opacity: .4; }
.cta-banner .cta-img::before { background: radial-gradient(ellipse 70% 90% at 50% 50%, rgba(20,6,8,.9), rgba(20,6,8,.55)); }
.cta-banner .cta-right p { margin-left: auto; margin-right: auto; max-width: 420px; }
.cta-banner .cta-actions { justify-content: center; }

/* Process timeline heading row is centred; the steps keep their timeline layout */
.process { margin-left: auto; margin-right: auto; }

@media (max-width: 900px) {
  .section-head { align-items: center; }
  .section-head .head-right { align-items: center; }
}
@media (max-width: 640px) {
  .cta-banner { padding: 40px 22px; }
  .page-hero .hero-actions { align-items: stretch; }
}

/* Process timeline: centred steps */
.process .step { align-items: center; text-align: center; }
.process .step p { margin-left: auto; margin-right: auto; }
.process-line { left: calc((100% - 90px) / 8); right: calc((100% - 90px) / 8); } /* first icon centre → last icon centre */
@media (max-width: 640px) {
  .process { gap: 34px; }
  .process .step { flex-direction: column; gap: 0; }
  .process .step > div { position: relative; z-index: 1; background: var(--bg); padding: 12px 10px 4px; border-radius: 12px; }
  .process-line { left: 50%; right: auto; transform: translateX(-50%); top: 24px; bottom: 24px; }
}

/* Smaller, tidier cards: Featured Projects slider + Latest From Our Blog */
.projects-track {
  max-width: var(--container); margin: 0 auto;
  grid-auto-columns: calc((100% - 48px - 3 * 16px) / 3.5);
  gap: 16px;
}
.projects-track .project-card .p-img { aspect-ratio: 4 / 3; }
.projects-track .project-card .tag { bottom: 84px; left: 14px; font-size: 10.5px; }
.projects-track .project-card .p-body { padding: 14px 14px 16px; }
.projects-track .project-card h3 { font-size: 14.5px; }
.projects-track .project-card .p-body p { font-size: 12px; }
.projects-track .project-card .icon-btn { width: 34px; height: 34px; }

.blog-grid { max-width: 1020px; margin-left: auto; margin-right: auto; gap: 18px; }
.blog-card .b-img { aspect-ratio: 16 / 9.5; }
.blog-card .b-body { padding: 14px 16px 18px; }
.blog-card h3 { font-size: 15px; margin-bottom: 12px; }
.blog-card .b-excerpt { font-size: 13px; }

@media (max-width: 1100px) {
  .projects-track { grid-auto-columns: calc((100% - 48px - 16px) / 2.4); }
}
@media (max-width: 900px) {
  .blog-grid { max-width: 680px; }
}
@media (max-width: 640px) {
  .projects-track { grid-auto-columns: 72%; gap: 12px; }
  .blog-grid { max-width: 420px; }
  .projects-track .project-card .tag { bottom: 78px; }
}

/* Contact form: hidden spam trap + error state */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success.error { background: rgba(255, 77, 106, .1); border-color: rgba(255, 77, 106, .35); color: #ff6b84; }

/* Footer responsive */
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .site-footer { margin-top: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding: 48px 0 32px; }
  .footer-brand, .footer-cta { grid-column: 1 / -1; }
  .footer-col a, .footer-col .f-loc { font-size: 13.5px; padding: 3px 0; }
  .footer-col .f-loc span, .footer-col a span { word-break: break-word; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-watermark { width: 260px; height: 226px; right: -50px; bottom: -40px; }
}

/* =========================================================
   Micro-animations
   ========================================================= */

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none;
  background: linear-gradient(90deg, var(--brand), var(--brand-light)); transform: scaleX(0); transform-origin: left center; }

/* Hero entrance (home page) */
.hero .eyebrow, .hero h1, .hero .hero-sub, .hero .hero-actions > *, .hero .trusted { animation: heroUp .8s var(--ease) both; }
.hero .eyebrow { animation-delay: .15s; }
.hero h1 { animation-delay: .28s; }
.hero h1 .accent { display: block; width: fit-content; margin: 0 auto; position: relative; animation: heroUp .8s var(--ease) .45s both; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 4%; right: 8%; bottom: .02em; height: .07em; border-radius: 99px;
  background: var(--brand); transform: scaleX(0); transform-origin: left center; animation: drawLine .9s cubic-bezier(.65, 0, .35, 1) 1.15s forwards;
}
.hero .hero-sub { animation-delay: .6s; }
.hero .hero-actions > :nth-child(1) { animation-delay: .75s; }
.hero .hero-actions > :nth-child(2) { animation-delay: .85s; }
.hero .trusted { animation-delay: 1s; }
.hero .avatars img { animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.hero .avatars img:nth-child(1) { animation-delay: 1.1s; }
.hero .avatars img:nth-child(2) { animation-delay: 1.2s; }
.hero .avatars img:nth-child(3) { animation-delay: 1.3s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes drawLine { to { transform: scaleX(1); } }
@keyframes popIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* Staggered reveal for grids (delay set per item by main.js) */
.reveal[style*="--stagger"] { transition-delay: calc(var(--stagger) * 70ms); }

/* Buttons: press-in, shine sweep, click ripple */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-20deg);
}
.btn-primary:hover::before { animation: shine .8s var(--ease); }
@keyframes shine { to { left: 130%; } }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0); opacity: .35; background: currentColor; animation: ripple .6s ease-out forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
.icon-btn:active, .theme-toggle:active, .menu-toggle:active { transform: scale(.9); }

/* Icon pops on hover */
.service-card:hover .s-icon svg, .feature:hover .f-icon svg, .feature:hover .s-icon svg { animation: iconPop .55s var(--ease); }
@keyframes iconPop { 0% { transform: none; } 40% { transform: scale(1.18) rotate(-8deg); } 70% { transform: scale(.96) rotate(3deg); } 100% { transform: none; } }
.feature .f-icon { transition: transform .3s var(--ease), background-color .3s; }
.feature:hover .f-icon { transform: translateY(-3px); }
.industries li { transition: transform .25s var(--ease); }
.industries li svg { transition: transform .3s var(--ease); }
.industries li:hover { transform: translateY(-2px); }
.industries li:hover svg { transform: translateY(-2px) scale(1.12); }
.site-footer .socials a:hover, .handle:hover .h-icon { transform: translateY(-3px); }
.handle .h-icon { transition: transform .25s var(--ease); }
.stat { transition: transform .3s var(--ease), border-color .3s; }
.stat:hover { transform: translateY(-3px); border-color: rgba(var(--brand-rgb), .35); }
.member img { transition: filter .4s, transform .6s var(--ease); }
.member:hover img { transform: scale(1.04); }
.member { transition: transform .35s var(--ease); }
.member:hover { transform: translateY(-4px); }

/* Theme toggle spins when switched */
.theme-toggle.spin svg { animation: spin .5s var(--ease); }
@keyframes spin { from { transform: rotate(-180deg) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

/* FAQ answers slide open */
.faq details[open] .faq-body { animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Form: label turns maroon while typing; button shows a check on success */
.form label { transition: color .2s; }
.form div:focus-within > label { color: var(--accent-text); }
.form-success.show { animation: fadeDown .4s var(--ease); }

/* Logo: gentle tilt on hover (header + footer) */
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero h1 .accent, .hero .hero-sub, .hero .hero-actions > *, .hero .trusted, .hero .avatars img { animation: none !important; }
  .hero h1 .accent::after { animation: none; transform: scaleX(1); }
  .btn-primary:hover::before, .ripple, .service-card:hover .s-icon svg, .feature:hover .f-icon svg, .theme-toggle.spin svg { animation: none !important; }
  .scroll-progress { display: none; }
}
