:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --surface-2: #eef2f9;
  --ink: #0b1b33;
  --muted: rgba(11, 27, 51, 0.68);
  --border: rgba(11, 27, 51, 0.12);
  --navy: #0b1b33;
  --navy-deep: #071225;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --accent-2: #2563eb;

  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  --font-display: "Manrope", var(--font-body);

  --radius: 18px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, 0.06), 0 8px 24px rgba(11, 27, 51, 0.06);
  --shadow: 0 18px 55px rgba(11, 27, 51, 0.16);
  --shadow-hover: 0 2px 4px rgba(11, 27, 51, 0.06), 0 24px 60px rgba(11, 27, 51, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 76px;
  --container: 1180px;
  --gutter: clamp(16px, 3vw, 28px);
  --section: clamp(64px, 8vw, 112px);

  --h1: clamp(34px, 5vw, 60px);
  --h2: clamp(26px, 3.2vw, 40px);
  --h3: 18px;
  --lead: clamp(16px, 1.4vw, 18px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
figure { margin: 0; }

::selection { background: rgba(249, 115, 22, 0.28); color: var(--ink); }

:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.6);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Anchors land below the sticky header */
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

/* Header */
.siteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  background: rgba(11, 27, 51, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  transition: background 240ms ease, box-shadow 240ms ease, border-color 240ms ease, transform 360ms var(--ease);
}

/* Hide on scroll down, show on scroll up */
.siteHeader.is-hidden { transform: translateY(-100%); }

.scrollProgress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-strong), #fbbf24);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  pointer-events: none;
}

.siteHeader.is-scrolled,
.nav-open .siteHeader {
  background: rgba(11, 27, 51, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(7, 18, 37, 0.28);
}

.headerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

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

.brandMark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

img.brandMark {
  display: block;
  object-fit: contain;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.brandText {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brandName {
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.98);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brandTag {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 34ch;
}

.navDesktop {
  display: none;
  gap: 4px;
  align-items: center;
}

.navLink {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color 160ms ease, background 160ms ease;
}

.navDesktop .navLink {
  padding: 8px 12px;
  border-radius: 999px;
}

.navDesktop .navLink::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

.navLink:hover { color: #fff; }
.navDesktop .navLink:hover::after,
.navDesktop .navLink.is-active::after { transform: scaleX(1); }
.navLink.is-active { color: #fff; }

.headerCtas {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* Mobile: reduce CTAs to avoid overflow */
.headerCtas .btnGhost { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
  user-select: none;
}

.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btnPrimary {
  background: linear-gradient(135deg, #fb8a3c, var(--accent) 55%, var(--accent-strong));
  color: var(--navy);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btnPrimary:hover { box-shadow: 0 16px 36px rgba(249, 115, 22, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28); }

.btnGhost {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.94);
}

.btnGhost:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.28); }

/* Ghost button used on light surfaces */
.btnOutline {
  background: transparent;
  border-color: rgba(11, 27, 51, 0.18);
  color: var(--ink);
}

.btnOutline:hover { border-color: var(--ink); background: rgba(11, 27, 51, 0.03); }

.btnLight {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btnLight:hover { background: rgba(255, 255, 255, 0.22); }

.iconBtn {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: background 160ms ease;
}

.iconBtn:hover { background: rgba(255, 255, 255, 0.16); }

.iconBars {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  margin: auto;
  position: relative;
  transition: background 200ms ease;
}

.iconBars::before,
.iconBars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 260ms var(--ease), top 260ms var(--ease);
}

.iconBars::before { top: -6px; }
.iconBars::after { top: 6px; }

.nav-open .iconBars { background: transparent; }
.nav-open .iconBars::before { top: 0; transform: rotate(45deg); }
.nav-open .iconBars::after { top: 0; transform: rotate(-45deg); }

.navMobile {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}

.navMobile:not([hidden]) { animation: navIn 260ms var(--ease); }

@keyframes navIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.navMobileInner {
  padding: 14px var(--gutter) 20px;
  display: grid;
  gap: 6px;
}

.navMobile .navLink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-radius: 12px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.navMobile .navLink::after {
  content: "→";
  color: rgba(255, 255, 255, 0.4);
}

.navMobile .navLink.is-active {
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(249, 115, 22, 0.10);
}

.navMobileCtas {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

/* Hero */
.hero {
  position: relative;
  /* Slide under the sticky header so its glass effect sits on the photo */
  margin-top: calc(var(--header-h) * -1);
  min-height: min(92vh, 900px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}

.heroMedia {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.heroMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}

@media (prefers-reduced-motion: no-preference) {
  .heroMedia img { animation: heroZoom 14s var(--ease) both; }
}

@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1.04); }
}

.heroOverlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(37, 99, 235, 0.38), transparent 62%),
    linear-gradient(90deg, rgba(11, 27, 51, 0.92), rgba(11, 27, 51, 0.60) 55%, rgba(11, 27, 51, 0.30)),
    linear-gradient(180deg, rgba(11, 27, 51, 0.28), rgba(11, 27, 51, 0.82));
}

.heroInner {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 7vw, 104px));
  padding-bottom: clamp(72px, 8vw, 120px);
}

.heroInner > * { max-width: 820px; }

.eyebrowHero {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.90);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.eyebrowHero::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.25);
  flex: 0 0 auto;
}

.h1 {
  margin: 20px 0 16px;
  font-family: var(--font-display);
  font-size: var(--h1);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.heroLead {
  margin: 0;
  font-size: var(--lead);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.80);
  max-width: 62ch;
  text-wrap: pretty;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.heroChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 27, 51, 0.03);
  color: rgba(11, 27, 51, 0.80);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.chipOnDark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
}

.heroScroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: none;
}

.heroScroll::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
}

@media (prefers-reduced-motion: no-preference) {
  .heroScroll::before { animation: scrollDot 1.8s ease-in-out infinite; }
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* Sections */
.section {
  padding: var(--section) 0;
}

.sectionAlt { background: var(--surface); }

.sectionHead {
  margin-bottom: clamp(28px, 4vw, 44px);
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: var(--lead);
  line-height: 1.7;
  max-width: 68ch;
  text-wrap: pretty;
}

.muted { color: var(--muted); margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

.aboutMedia {
  position: relative;
  min-height: 280px;
}

.aboutMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Orange offset frame behind the photo */
.aboutMedia::before {
  content: "";
  position: absolute;
  inset: 16px -12px -12px 16px;
  border-radius: var(--radius);
  border: 2px solid rgba(249, 115, 22, 0.45);
  z-index: -1;
}

.aboutCopy {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.bullets li {
  position: relative;
  padding-left: 36px;
  color: rgba(11, 27, 51, 0.86);
  font-weight: 500;
  line-height: 1.6;
}

/* Check mark badge */
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--accent-soft);
}

.bullets li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 6px;
  height: 11px;
  border: solid var(--accent-strong);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.aboutCtas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.grid3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* Cards */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.cardHover {
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms ease;
}

.cardHover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(249, 115, 22, 0.35);
}

.cardMedia {
  position: relative;
  height: 200px;
  background: var(--surface-2);
  overflow: hidden;
}

.cardMedia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 27, 51, 0.35));
}

.cardMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.cardHover:hover .cardMedia img,
.project:hover .projectMedia img { transform: scale(1.06); }

.cardBody {
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

/* Projects */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.filterBtn {
  cursor: pointer;
  padding: 10px 16px;
  font-size: 13px;
  background: #fff;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filterBtn:hover { border-color: rgba(11, 27, 51, 0.35); }

.filterBtn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.filterCount {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(11, 27, 51, 0.08);
  font-size: 11px;
  text-align: center;
}

.filterBtn[aria-pressed="true"] .filterCount { background: var(--accent); color: var(--navy); }

.projectsGrid { align-items: stretch; }

.project {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms ease;
  display: flex;
  flex-direction: column;
}

.project[hidden] { display: none; }

.project:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(249, 115, 22, 0.35);
}

.projectMedia {
  position: relative;
  height: 230px;
  background: var(--surface-2);
  overflow: hidden;
}

.projectMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.projectMedia .chip {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(255, 255, 255, 0.94);
  border-color: transparent;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(11, 27, 51, 0.16);
}

.projectBody { padding: 20px; display: grid; gap: 10px; align-content: start; }

.projectMeta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.projectMeta svg { width: 14px; height: 14px; color: var(--accent-strong); }

.projectsEmpty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px 24px;
  border: 1px dashed rgba(11, 27, 51, 0.22);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}

.projectsEmpty a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Metrics band */
.metrics {
  position: relative;
  overflow: hidden;
  padding: var(--section) 0;
  background: var(--navy);
  isolation: isolate;
}

.metricsMedia { position: absolute; inset: 0; z-index: -2; }
.metricsMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.08);
  transform: scale(1.02);
}

.metricsOverlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 75% 20%, rgba(249, 115, 22, 0.22), transparent 62%),
    linear-gradient(90deg, rgba(11, 27, 51, 0.94), rgba(11, 27, 51, 0.70) 55%, rgba(11, 27, 51, 0.56)),
    linear-gradient(180deg, rgba(11, 27, 51, 0.35), rgba(11, 27, 51, 0.92));
}

.metricsInner { position: relative; }

.metrics .h2 { color: #fff; }
.metrics .eyebrow { color: #fb923c; }
.metrics .lead { color: rgba(255, 255, 255, 0.76); }

.statsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.statValue {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.statLabel {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  font-size: 14px;
}

/* Benefits */
.benefitsGrid { counter-reset: benefit; }

.benefit {
  counter-increment: benefit;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms ease;
}

.benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(249, 115, 22, 0.35);
}

.benefit > div:last-child { display: grid; gap: 6px; }

.benefitIcon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  flex: 0 0 auto;
  transition: background 240ms ease, color 240ms ease;
}

.benefitIcon::before { content: counter(benefit, decimal-leading-zero); }

.benefit:hover .benefitIcon { background: var(--accent); color: var(--navy); }

/* Clients */
.clients {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.clientChip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(11, 27, 51, 0.84);
  transition: border-color 200ms ease, transform 200ms var(--ease);
}

.clientChip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.clientChip:hover { border-color: rgba(249, 115, 22, 0.45); transform: translateY(-2px); }

/* Testimonials */
.quote {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  padding-top: 56px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.quote::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: clamp(18px, 2.4vw, 26px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  line-height: 1;
  color: var(--accent);
}

.quote blockquote {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(11, 27, 51, 0.88);
}

.quote figcaption {
  display: grid;
  gap: 2px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.quoteName { font-family: var(--font-display); font-weight: 700; }
.quoteRole { color: var(--muted); font-weight: 500; font-size: 13px; }

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  padding: var(--section) 0;
  background: var(--navy);
  isolation: isolate;
}

.ctaMedia { position: absolute; inset: 0; z-index: -2; }
.ctaMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}

.ctaOverlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(37, 99, 235, 0.32), transparent 62%),
    linear-gradient(90deg, rgba(11, 27, 51, 0.94), rgba(11, 27, 51, 0.66) 55%, rgba(11, 27, 51, 0.56)),
    linear-gradient(180deg, rgba(11, 27, 51, 0.35), rgba(11, 27, 51, 0.94));
}

.ctaInner { position: relative; }

.ctaCard {
  display: grid;
  gap: 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 27, 51, 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: clamp(22px, 4vw, 48px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.ctaCard .h2 {
  margin: 18px 0 14px;
}

.onDark { color: #fff; }

.ctaContacts {
  display: grid;
  gap: 10px;
  align-content: center;
}

.contactItem {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  min-width: 0;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms var(--ease);
}

a.contactItem:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(249, 115, 22, 0.55);
  transform: translateX(4px);
}

.contactIcon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.16);
  color: #fb923c;
  flex: 0 0 auto;
}

.contactIcon svg { width: 18px; height: 18px; }

.contactText { display: grid; gap: 1px; min-width: 0; }

.contactLabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.contactValue {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Footer */
.siteFooter {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.92);
  padding: clamp(48px, 6vw, 72px) 0 0;
  border-top: 3px solid var(--accent);
}

.siteFooter .muted { color: rgba(255, 255, 255, 0.64); line-height: 1.7; }

.footerGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footerCol { display: grid; gap: 16px; align-content: start; }

.footerTitle {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.brandFooter {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  max-width: 100%;
}

.brandFooter > div { min-width: 0; }

.siteFooter .brandName,
.siteFooter .brandTag {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}

.siteFooter .muted {
  overflow-wrap: anywhere;
}

.footerContact,
.footerNav {
  display: grid;
  gap: 10px;
}

.footerLink {
  color: rgba(255, 255, 255, 0.80);
  font-weight: 500;
  width: fit-content;
  transition: color 160ms ease;
}

.footerLink:hover { color: #fb923c; }

.footerBottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: 13px;
}

.footerBottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

/* Back to top */
.toTop {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 240ms var(--ease), visibility 240ms;
}

.toTop svg { width: 20px; height: 20px; }
.toTop.is-visible { opacity: 1; visibility: visible; transform: none; }
.toTop:hover { transform: translateY(-2px); }

/* Reveal animations (enabled only when JS adds .js).
   Uses the individual `translate`/`scale` properties so they never fight with hover `transform`. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 800ms var(--ease), translate 800ms var(--ease), scale 800ms var(--ease), transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms ease;
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms, 0ms;
}

.js [data-reveal="left"] { translate: -40px 0; }
.js [data-reveal="right"] { translate: 40px 0; }
.js [data-reveal="zoom"] { translate: 0 16px; scale: 0.94; }

.js [data-reveal].is-visible {
  opacity: 1;
  translate: none;
  scale: none;
}

/* Photo wipes in from the left, frame slides into place */
.js [data-reveal="clip"] { translate: none; }
.js [data-reveal="clip"] img {
  clip-path: inset(0 100% 0 0 round var(--radius));
  scale: 1.12;
  transition: clip-path 1100ms var(--ease) 120ms, scale 1400ms var(--ease) 120ms;
}
.js [data-reveal="clip"].is-visible img { clip-path: inset(0 0 0 0 round var(--radius)); scale: 1; }
.js [data-reveal="clip"]::before { opacity: 0; translate: -16px -16px; transition: opacity 600ms ease 700ms, translate 900ms var(--ease) 700ms; }
.js [data-reveal="clip"].is-visible::before { opacity: 1; translate: none; }

/* Eyebrow line draws in with its section head */
.js .sectionHead .eyebrow::before { width: 0; transition: width 700ms var(--ease) 250ms; }
.js .sectionHead.is-visible .eyebrow::before { width: 24px; }

/* Hero entrance: words rise in one by one */
.heroWord {
  display: inline-block;
}

.js .heroTitle .heroWord {
  opacity: 0;
  translate: 0 0.5em;
  filter: blur(6px);
  transition: opacity 700ms var(--ease), translate 700ms var(--ease), filter 700ms var(--ease);
  transition-delay: calc(var(--i) * 55ms + 150ms);
}

.js .heroTitle.is-visible .heroWord { opacity: 1; translate: none; filter: none; }
.js .heroTitle[data-reveal] { translate: none; transition-delay: 0ms; }

/* Pulsing status dot */
@media (prefers-reduced-motion: no-preference) {
  .eyebrowHero::before { animation: pulse 2.2s ease-out infinite; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* Light sweep across primary buttons */
.btnPrimary { position: relative; overflow: hidden; isolation: isolate; }
.btnPrimary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  translate: -120% 0;
  transition: translate 700ms var(--ease);
}
.btnPrimary:hover::after { translate: 120% 0; }

/* Cursor spotlight (position set from JS) */
[data-spotlight] { position: relative; }
[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(249, 115, 22, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 2;
}
[data-spotlight]:hover::after { opacity: 1; }
.ctaCard[data-spotlight]::after { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(249, 115, 22, 0.16), transparent 60%); }

/* 3D tilt on hover (angles set from JS, fine pointers only) */
.cardHover:hover,
.project:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
}

/* Parallax backgrounds get extra room to move */
[data-parallax] { will-change: transform; }
.metricsMedia[data-parallax],
.ctaMedia[data-parallax] { inset: -18% 0; }

/* Sectors marquee */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  border-bottom: 3px solid var(--accent);
  padding: 18px 0;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12%;
  z-index: 1;
  pointer-events: none;
}

.marquee::before { left: 0; background: linear-gradient(90deg, var(--navy-deep), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--navy-deep), transparent); }

.marqueeTrack {
  display: flex;
  width: max-content;
}

.marqueeItem {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.marqueeItem:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
}

.marqueeItem::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .marqueeTrack.is-running { animation: marquee var(--marquee-duration, 30s) linear infinite; }
  .marquee:hover .marqueeTrack { animation-play-state: paused; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Stat cards: accent bar fills in on reveal */
.js .stat::before { transform: scaleX(0); transform-origin: left; transition: transform 1100ms var(--ease) 300ms; }
.js .stat.is-visible::before { transform: none; }

/* Footer credit */
.creditLink {
  color: #fb923c;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 300ms var(--ease), color 160ms ease;
}
.creditLink:hover { background-size: 100% 1px; color: #fdba74; }

@media (min-width: 480px) {
  .headerCtas .btnGhost { display: inline-flex; }
}

@media (max-width: 520px) {
  .brandTag { display: none; }
}

@media (min-width: 720px) {
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 0.95fr 1.05fr; gap: 32px; }
  .statsGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footerGrid { grid-template-columns: 1.4fr 0.8fr 1fr; gap: 40px; }
  .heroScroll { display: block; }
}

@media (min-width: 960px) {
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .ctaCard { grid-template-columns: 1.25fr 0.9fr; gap: 40px; align-items: center; }
}

@media (min-width: 1080px) {
  .navDesktop { display: flex; }
  .iconBtn, .navMobile { display: none; }
  .brandTag { max-width: 22ch; }
}

@media (min-width: 1240px) {
  .brandTag { max-width: 30ch; }
}

@media (min-width: 1100px) {
  .cardMedia { height: 220px; }
  .projectMedia { height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; }
  .btn, .cardHover, .project, .benefit, .toTop, .siteHeader, .js [data-reveal], .js [data-reveal] img, .js .heroWord { transition: none !important; }
  .js [data-reveal], .js .heroWord { opacity: 1; translate: none; scale: none; filter: none; }
  .js [data-reveal="clip"] img { clip-path: none; scale: none; }
  .js .stat::before { transform: none; }
  .js .sectionHead .eyebrow::before { width: 24px; }
}
