/* ==========================================================================
   Crossover Advertising & Marketing — crossoverme.com
   Single stylesheet. Design tokens sampled from the 2026 company profile.
   ========================================================================== */

/* ---------- fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
}

/* ---------- tokens ----------
   Themable tokens: the defaults are the dark (brand) theme; the
   [data-theme="light"] block below remaps them. The header, footer and
   photo-backed bands (hero, page heroes, CTA) stay dark in both themes. */
:root {
  color-scheme: dark;
  --gold: #cba34b;
  --gold-soft: #e3c480;
  --gold-deep: #a8823a;
  --ink: #030405;
  --ink-raise: #0c1018;
  --bg: #030405;
  --bg-raise: #0c1018;
  --heading: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.6);
  --text-faint: rgba(255, 255, 255, 0.45);
  --subnav-bg: rgba(3, 4, 5, 0.9);
  --ink-line: rgba(255, 255, 255, 0.08);
  --mist: #e9e9e9;
  --white: #ffffff;
  --body-on-dark: rgba(255, 255, 255, 0.72);
  --body-on-light: #3c3f44;
  --hairline: rgba(203, 163, 75, 0.28);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 9vw, 128px);
  --radius: 10px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f2;
  --bg-raise: #ffffff;
  --heading: #14161c;
  --text-dim: #5b5f66;
  --text-faint: #85888f;
  --subnav-bg: rgba(246, 245, 242, 0.92);
  --ink-line: rgba(3, 4, 5, 0.12);
  --mist: #ecebe5;
  --body-on-dark: #3c3f44;
  --hairline: rgba(168, 130, 58, 0.4);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
/* smooth scrolling only after load, so anchor deep-links jump instantly */
html.is-loaded {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body-on-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
[hidden] {
  display: none !important;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.12;
  text-wrap: balance;
  font-weight: 700;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    height 0.35s var(--ease);
  border-bottom: 1px solid transparent;
  background: linear-gradient(rgba(3, 4, 5, 0.62), rgba(3, 4, 5, 0));
}
.site-header.is-scrolled {
  height: 64px;
  background: rgba(3, 4, 5, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--ink-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1320px, 100% - 2 * var(--gutter));
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 58px;
  width: auto;
  transition: height 0.35s var(--ease);
}
.site-header.is-scrolled .brand img {
  height: 48px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}
.site-nav a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 2px;
  position: relative;
  transition: color 0.25s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 120;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: rgba(3, 4, 5, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0s 0.3s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s var(--ease), visibility 0s;
  }
  .site-nav a:not(.btn) {
    font-family: var(--font-head);
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 600;
    padding: 10px 20px;
  }
  .site-nav .btn {
    margin-top: 22px;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 4px;
  transition: background 0.25s, color 0.25s, border-color 0.25s,
    transform 0.25s var(--ease), box-shadow 0.25s;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(160deg, var(--gold-soft), var(--gold));
  color: var(--ink);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(203, 163, 75, 0.35);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}
.btn svg {
  transition: transform 0.25s var(--ease);
}
.btn:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section {
  padding-block: var(--section-y);
}
.section-light {
  background: var(--mist);
  color: var(--body-on-light);
}
.section-light h2,
.section-light h3,
.section-light h4 {
  color: var(--ink);
}
.section-raise {
  background: var(--bg-raise);
}

.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 10px;
  background: var(--gold);
}
.section-light .eyebrow {
  color: var(--gold-deep);
}
.section-light .eyebrow::after {
  background: var(--gold-deep);
}
.center .eyebrow::after {
  margin-inline: auto;
}
.center {
  text-align: center;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head.center {
  margin-inline: auto;
}
.section-head h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.section-head p {
  margin-top: 18px;
  font-size: 17px;
  max-width: 60ch;
}
.section-head.center p {
  margin-inline: auto;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: max(620px, 92svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(3, 4, 5, 0.96) 0%,
      rgba(3, 4, 5, 0.86) 34%,
      rgba(3, 4, 5, 0.45) 66%,
      rgba(3, 4, 5, 0.25) 100%
    ),
    linear-gradient(rgba(3, 4, 5, 0) 60%, rgba(3, 4, 5, 0.92) 100%);
}
.hero .wrap {
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 48px;
}
@media (min-width: 861px) {
  /* keep the discipline strip clear of the scroll cue */
  .hero .wrap {
    padding-bottom: 92px;
  }
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.hero-kicker::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--gold);
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 72px);
  text-transform: uppercase;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 52ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}
.hero-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: clamp(40px, 6vh, 72px);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.hero-disciplines li {
  display: flex;
  align-items: center;
}
.hero-disciplines a {
  color: inherit;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero-disciplines a:hover,
.hero-disciplines a:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}
.hero-disciplines li + li::before {
  content: "";
  width: 1px;
  height: 14px;
  background: var(--hairline);
  margin-inline: clamp(12px, 2vw, 26px);
}
/* chip layout — applied by JS (.is-chips) as soon as the inline row
   would wrap to a second line, whatever the viewport width */
.hero-disciplines.is-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  letter-spacing: 0.16em;
}
.hero-disciplines.is-chips li {
  display: block;
}
.hero-disciplines.is-chips li + li::before {
  display: none;
}
.hero-disciplines.is-chips a {
  display: block;
  text-align: center;
  padding: 13px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(3, 4, 5, 0.35);
}
.hero-disciplines.is-chips a:hover,
.hero-disciplines.is-chips a:focus-visible {
  border-color: var(--gold);
  border-bottom-color: var(--gold);
}
@media (min-width: 521px) {
  .hero-disciplines.is-chips {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: cue 2s infinite var(--ease);
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
/* a mouse-shaped cue makes no sense on touch screens */
@media (max-width: 860px), (hover: none) {
  .scroll-cue {
    display: none;
  }
}

/* page heroes (inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 10vh, 110px)) 0
    clamp(48px, 7vh, 84px);
  background: radial-gradient(
      900px 420px at 82% -10%,
      rgba(203, 163, 75, 0.14),
      transparent 65%
    ),
    var(--ink);
  border-bottom: 1px solid var(--ink-line);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  right: 12%;
  width: 2px;
  background: linear-gradient(transparent, var(--hairline), transparent);
  transform: rotate(14deg);
}
.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  text-transform: uppercase;
}
.page-hero p {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 17px;
}

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border-block: 1px solid var(--ink-line);
}
.stat {
  background: var(--bg);
  padding: clamp(28px, 4vw, 48px) 20px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
@media (max-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Service cards
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.svc-card {
  position: relative;
  display: block;
  background: var(--bg-raise);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: var(--hairline);
}
.svc-card:hover::before {
  transform: scaleX(1);
}
.svc-card .ico {
  display: block;
  width: 52px;
  height: 52px;
  color: var(--gold);
  margin-bottom: 22px;
}
.svc-card .ico svg {
  width: 100%;
  height: 100%;
}
.svc-card h3 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.svc-card p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--body-on-dark);
}
.svc-card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.svc-card .more svg {
  transition: transform 0.25s var(--ease);
}
.svc-card:hover .more svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Capability rows (image / text)
   ========================================================================== */
.cap-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 52px);
}
.cap-row + .cap-row {
  border-top: 1px solid var(--ink-line);
}
.cap-row.flip .cap-media {
  order: 2;
}
.cap-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.cap-media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 48%, var(--gold) 50%);
}
.cap-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.cap-row:hover .cap-media img {
  transform: scale(1.04);
}
.cap-copy .num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.cap-copy h3 {
  margin-top: 10px;
  font-size: clamp(22px, 2.6vw, 30px);
  text-transform: uppercase;
}
.cap-copy p {
  margin-top: 16px;
  max-width: 52ch;
}
.cap-copy .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (max-width: 780px) {
  .cap-row {
    grid-template-columns: 1fr;
  }
  .cap-row.flip .cap-media {
    order: 0;
  }
}

/* ==========================================================================
   Industries
   ========================================================================== */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}
.ind {
  background: var(--white);
  border: 1px solid rgba(3, 4, 5, 0.08);
  border-radius: var(--radius);
  padding: 30px 18px;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.ind:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(3, 4, 5, 0.1);
}
.ind .ico {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  color: var(--gold-deep);
}
.ind .ico svg {
  width: 100%;
  height: 100%;
}
.ind h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   Logo marquee + wall
   ========================================================================== */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.logo-marquee.is-dragging {
  cursor: grabbing;
}
.logo-chip img {
  -webkit-user-drag: none;
}
.logo-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: marquee 70s linear infinite;
}
.logo-marquee:hover .logo-track,
.logo-track:focus-within {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.logo-chip {
  flex: none;
  width: 190px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 8px;
  padding: 20px 26px;
}
.logo-chip img {
  max-height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
}
.logo-chip:hover img {
  filter: none;
  opacity: 1;
}
.logo-note {
  margin-top: 26px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-family: var(--font-head);
}

/* static wall (about page) */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.logo-wall .logo-chip {
  width: auto;
  height: 96px;
}
.logo-wall .logo-chip img {
  filter: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .logo-track .dup {
    display: none;
  }
  .logo-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  padding-block: clamp(84px, 12vw, 150px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-band picture,
.cta-band picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(3, 4, 5, 0.82), rgba(3, 4, 5, 0.88));
}
.cta-band h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  text-transform: uppercase;
}
.cta-band h2 em {
  font-style: normal;
  color: var(--gold);
}
.cta-band p {
  margin: 18px auto 0;
  max-width: 54ch;
  font-size: 17px;
}
.cta-band .btn {
  margin-top: 36px;
}

/* ==========================================================================
   Services page
   ========================================================================== */
.svc-subnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--subnav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-line);
}
.svc-subnav ul {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.svc-subnav ul::-webkit-scrollbar {
  display: none;
}
.svc-subnav a {
  display: block;
  padding: 16px 10px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s;
}
.svc-subnav a:hover,
.svc-subnav a.is-active {
  color: var(--gold);
  border-color: var(--gold);
}

.svc-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(56px, 8vw, 100px);
  scroll-margin-top: 70px;
}
.svc-detail + .svc-detail {
  border-top: 1px solid var(--ink-line);
}
.svc-detail.flip > .svc-copy {
  order: 2;
}
.svc-detail h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  text-transform: uppercase;
}
.svc-detail .lede {
  margin-top: 18px;
  font-size: 17px;
  color: var(--heading);
}
.svc-detail p {
  margin-top: 14px;
}
.svc-detail figure {
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
  position: sticky;
  top: 90px;
}
.svc-detail figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.svc-panel {
  align-self: start;
  position: sticky;
  top: 90px;
  background: var(--bg-raise);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 34px;
}
.svc-panel .ico {
  display: block;
  width: 56px;
  height: 56px;
  color: var(--gold);
  margin-bottom: 8px;
}
.svc-panel .ico svg {
  width: 100%;
  height: 100%;
}
.checklist {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}
.svc-panel h3 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (max-width: 860px) {
  .svc-detail {
    grid-template-columns: 1fr;
  }
  .svc-detail.flip > .svc-copy {
    order: 0;
  }
  .svc-detail figure,
  .svc-panel {
    position: static;
  }
}

/* ==========================================================================
   Work page
   ========================================================================== */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 16px;
}
.mosaic .tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}
.mosaic .tile:nth-child(1),
.mosaic .tile:nth-child(4) {
  grid-row: span 2;
}
.mosaic .tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.mosaic .tile:hover img,
.mosaic .tile:focus-visible img {
  transform: scale(1.05);
}
.mosaic .tile .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 20px 16px;
  background: linear-gradient(transparent, rgba(3, 4, 5, 0.9));
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
@media (max-width: 780px) {
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}

/* filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.chip {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  color: var(--text-dim);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover {
  border-color: var(--hairline);
  color: var(--heading);
}
.chip[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid var(--ink-line);
}
.project-card img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}
.project-card .body {
  padding: 20px 22px 24px;
}
.project-card .sector {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.project-card h3 {
  margin-top: 8px;
  font-size: 17px;
}
.project-card p {
  margin-top: 8px;
  font-size: 14px;
}

.empty-note {
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 54px);
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.empty-note h3 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.empty-note p {
  margin-top: 12px;
  font-size: 15px;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 4, 5, 0.94);
  padding: clamp(16px, 4vw, 56px);
}
.lightbox.is-open {
  display: flex;
}
.lightbox figure {
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lightbox img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 8px;
}
.lightbox figcaption {
  text-align: center;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  background: rgba(3, 4, 5, 0.5);
  transition: border-color 0.25s, color 0.25s;
}
.lightbox button:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   About page
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split figure {
  border-radius: var(--radius);
  overflow: hidden;
}
.split figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split p + p {
  margin-top: 14px;
}
@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--bg-raise);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 34px 26px 30px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.step p {
  margin-top: 10px;
  font-size: 14px;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.cred {
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 22px;
}
.cred h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cred p {
  margin-top: 8px;
  font-size: 14px;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body-on-dark);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--heading);
  background: var(--bg-raise);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  padding: 13px 16px;
  transition: border-color 0.25s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23cba34b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field .err {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #e2725b;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #e2725b;
}
.field.invalid .err {
  display: block;
}
.form-status {
  margin-top: 18px;
  font-size: 15px;
  color: var(--gold-soft);
}

.info-card {
  background: var(--bg-raise);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 34px;
}
.info-card h2 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.info-list {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}
.info-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-list .ico {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--gold);
}
.info-list b {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.info-list span,
.info-list a {
  font-size: 15px;
  color: var(--heading);
}
.info-list a:hover {
  color: var(--gold-soft);
}

.map-placeholder {
  margin-top: clamp(40px, 6vw, 72px);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  background: repeating-linear-gradient(
    45deg,
    transparent 0 14px,
    rgba(203, 163, 75, 0.04) 14px 28px
  );
}
.map-placeholder p {
  max-width: 46ch;
  font-size: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #020304;
  padding: clamp(48px, 7vw, 84px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(36px, 5vw, 60px);
}
.footer-brand img {
  height: 58px;
  width: auto;
}
.footer-brand p {
  margin-top: 20px;
  max-width: 38ch;
  font-size: 14px;
}
.site-footer h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-links li + li {
  margin-top: 10px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.25s;
}
.footer-links a:hover {
  color: var(--gold-soft);
}
.footer-meta {
  border-top: 1px solid var(--ink-line);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* 404 */
.err-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: center;
}
.err-page .code {
  font-family: var(--font-head);
  font-size: clamp(90px, 20vw, 180px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
}

/* ---------- light theme details ---------- */
[data-theme="light"] .logo-chip {
  border: 1px solid rgba(3, 4, 5, 0.08);
}
/* the hero, page heroes and CTA band stay dark in both themes,
   so their text is pinned white rather than following the theme */
.hero h1,
.page-hero h1,
.cta-band h2 {
  color: var(--white);
}
.hero-sub,
.page-hero p,
.cta-band p {
  color: rgba(255, 255, 255, 0.72);
}
.page-hero {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.25s, color 0.25s;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .ico-sun { display: block; }
.theme-toggle .ico-moon { display: none; }
[data-theme="light"] .theme-toggle .ico-sun { display: none; }
[data-theme="light"] .theme-toggle .ico-moon { display: block; }
@media (min-width: 861px) {
  /* desktop: brand — nav — toggle */
  .site-nav {
    margin-left: auto;
  }
  .theme-toggle {
    order: 2;
  }
}
@media (max-width: 860px) {
  /* mobile: sits next to the burger, outside the drawer */
  .theme-toggle {
    margin-left: auto;
    margin-right: 4px;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
