/* ============================================================
   RSQUARED IT TECHNOLOGIES — cinematic one-pager
   Palette: near-black surfaces, one violet→magenta accent
   Type: Space Grotesk (display/body) + JetBrains Mono (labels)
   ============================================================ */

:root {
  --bg: #070609;
  --bg-raise: #0d0b14;
  --surface: rgba(20, 16, 31, 0.6);
  --line: rgba(168, 139, 250, 0.16);
  --line-soft: rgba(168, 139, 250, 0.09);
  --text: #ece9f6;
  --muted: #a49cba;
  --faint: #6f6885;
  --violet: #7c3aed;
  --violet-hi: #a855f7;
  --magenta: #c936d3;
  --accent-grad: linear-gradient(120deg, #7c3aed 0%, #a855f7 55%, #c936d3 100%);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 12vw, 10rem);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: dark;
  scroll-padding-top: 5.5rem;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(124, 58, 237, 0.45); color: #fff; }

/* ---------- shared bits ---------- */

.wrap {
  width: min(72rem, 100% - 2 * var(--pad));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--violet-hi);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--accent-grad);
  flex: none;
}

.section-head h2 {
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-top: 1.1rem;
  max-width: 18ch;
}

.section-head p.lede {
  margin-top: 1.25rem;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.9rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background-color 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: var(--accent-grad);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(168, 85, 247, 0.45); }

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(20, 16, 31, 0.35);
}

.btn-ghost:hover { border-color: rgba(168, 139, 250, 0.45); transform: translateY(-2px); }

.btn svg { flex: none; }

/* ---------- reveal-on-scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}

[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- scroll progress ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent-grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.35s ease, border-color 0.35s ease,
    backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 6, 9, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
}

.brand img { width: 40px; height: 40px; }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-name span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  color: var(--violet-hi);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}

.nav-links a:not(.btn) {
  display: inline-block;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.25s ease;
}

.nav-links a:not(.btn):hover { color: var(--text); }

.nav-links .btn { min-height: 2.6rem; padding: 0.5rem 1.2rem; font-size: 0.92rem; margin-left: 0.6rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(20, 16, 31, 0.5);
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 1rem var(--pad) 1.4rem;
    background: #070609;
    border-bottom: 1px solid var(--line-soft);
    display: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open { display: flex; }

  .nav-links a:not(.btn) { padding: 0.85rem 0.5rem; font-size: 1.05rem; }

  .nav-links .btn { margin: 0.6rem 0 0; }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(4, 3, 8, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .nav-backdrop.open {
    display: block;
    opacity: 1;
  }
}

html.nav-lock,
body.nav-lock {
  overflow: hidden;
  height: 100%;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% 40%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 6, 9, 0.86) 0%, rgba(7, 6, 9, 0.55) 38%, rgba(7, 6, 9, 0.08) 72%, rgba(7, 6, 9, 0.3) 100%),
    linear-gradient(180deg, rgba(7, 6, 9, 0.6) 0%, rgba(7, 6, 9, 0.1) 34%, rgba(7, 6, 9, 0.3) 62%, rgba(7, 6, 9, 0.96) 100%);
}

@media (max-width: 700px) {
  .hero-media img { object-position: 72% 40%; }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 6, 9, 0.78) 0%, rgba(7, 6, 9, 0.55) 40%, rgba(7, 6, 9, 0.65) 70%, rgba(7, 6, 9, 0.97) 100%);
  }
}

.hero-content {
  padding-top: 8rem;
  padding-bottom: clamp(2rem, 5vh, 4rem);
}

.hero h1 {
  font-size: clamp(2.9rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 12ch;
  margin-top: 1.4rem;
  text-wrap: balance;
}

.hero .sub {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: #cfc9e2;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(168, 139, 250, 0.22);
}

.hero-stats div strong {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-stats div span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  writing-mode: vertical-rl;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 3.2rem;
  background: linear-gradient(180deg, var(--violet-hi), transparent);
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 700px) {
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after { animation: none; }
}

/* ---------- marquee ---------- */

.marquee {
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  overflow: hidden;
  background: transparent;
}

.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee ul {
  display: flex;
  gap: 3.5rem;
  list-style: none;
  flex: none;
}

.marquee li {
  display: flex;
  align-items: center;
  height: 2rem;
  white-space: nowrap;
}

/* vendor marks in their own colours, at one optical height */
.marquee img {
  height: 1.85rem;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.marquee li:hover img { opacity: 1; transform: translateY(-3px) scale(1.06); }

.vendor-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  opacity: 0.85;
  transition: color 0.35s ease;
}

.marquee li:hover .vendor-name { color: var(--text); }

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .marquee ul { flex-wrap: wrap; gap: 1.2rem 3rem; }
  .marquee img { opacity: 1; }
}

/* ---------- sections ---------- */

.section { padding-block: var(--section-y); position: relative; }

/* platform: split copy + image */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.split.rev {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(124, 58, 237, 0.12);
}

.figure img { width: 100%; height: 100%; object-fit: cover; }

.figure figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 6, 9, 0.72);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.platform-cta { margin-top: clamp(2rem, 5vw, 3rem); }

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
}

.feature .hex {
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--violet-hi);
  margin-top: 0.2rem;
}

.feature h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  margin-top: 0.7rem;
  max-width: 44ch;
}

@media (max-width: 900px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: 1.6rem; }
  .split .figure { order: -1; }
  .split { margin-top: clamp(2.5rem, 8vw, 4rem); }
}

/* capabilities grid */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.cap {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.8rem 1.6rem 1.7rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cap::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% -30%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.22), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.cap:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 139, 250, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.cap:hover::after { opacity: 1; }

.cap .idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--violet-hi);
}

.cap h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 0.9rem;
}

.cap p { color: var(--muted); font-size: 0.95rem; margin-top: 0.7rem; min-height: 4.4em; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.tags span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9bfe8;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

/* the advisory service opens the grid as a full-width lead card */
.cap.lead { grid-column: 1 / -1; }
.cap.lead .lead-row { display: grid; gap: 0.7rem; margin-top: 0.9rem; }
.cap.lead h3 { margin-top: 0; }
.cap.lead p { margin-top: 0; min-height: 0; max-width: 62ch; }

@media (min-width: 861px) {
  .cap.lead .lead-row {
    grid-template-columns: minmax(0, 24rem) minmax(0, 1fr);
    column-gap: 3rem;
    align-items: start;
  }
}

@media (max-width: 1000px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } .cap p { min-height: 0; } }
@media (max-width: 620px) { .cap-grid { grid-template-columns: 1fr; } }

/* about */

.about-body {
  margin-top: 1.3rem;
  color: var(--muted);
  max-width: 56ch;
}

.pull {
  position: relative;
  margin-top: 2.2rem;
  padding-left: 1.5rem;
  max-width: 52ch;
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.pull::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 3px;
  border-radius: 2px;
  background: var(--accent-grad);
}

/* automation interlude: full-bleed image band */

.interlude {
  position: relative;
  min-height: min(92vh, 56rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-block: 1px solid var(--line-soft);
}

.interlude-media { position: absolute; inset: -12% 0; z-index: -2; }

.interlude-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.interlude::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 6, 9, 0.94) 0%, rgba(7, 6, 9, 0.62) 46%, rgba(7, 6, 9, 0.25) 100%);
}

.interlude .wrap { padding-block: clamp(4rem, 10vw, 7rem); }

.interlude h2 {
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-top: 1.1rem;
}

.interlude p {
  margin-top: 1.4rem;
  max-width: 46ch;
  color: #cfc9e2;
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pipeline span {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 6, 9, 0.6);
  backdrop-filter: blur(6px);
  color: #d9d2ee;
}

.pipeline i {
  font-style: normal;
  color: var(--violet-hi);
}

/* process */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem 1.6rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  counter-reset: step;
}

.step {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 1px;
  background: var(--accent-grad);
}

.step .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--violet-hi);
}

.step h3 { font-size: 1.35rem; font-weight: 700; margin-top: 0.8rem; letter-spacing: -0.01em; }

.step p { color: var(--muted); font-size: 0.95rem; margin-top: 0.6rem; }

@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* impact */

.impact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-raise);
  border-block: 1px solid var(--line-soft);
}

/* ::before carries the colour wash, ::after frosts it */
.impact::before,
.impact::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.impact::before { z-index: -2; }

.impact::after {
  z-index: -1;
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.stat {
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
}

.stat strong {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat strong em {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 24ch;
}

.compliance {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-row { grid-template-columns: 1fr; } }

/* contact / final CTA */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(6rem, 14vw, 11rem);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(52% 62% at 50% 108%, rgba(124, 58, 237, 0.34), transparent 70%);
  pointer-events: none;
}

.cta-hex {
  position: absolute;
  left: 50%;
  bottom: -14rem;
  width: 34rem;
  max-width: 90vw;
  transform: translateX(-50%);
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}

.cta .eyebrow { justify-content: center; }
.cta .eyebrow::before { display: none; }

.cta h2 {
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-top: 1.2rem;
  margin-inline: auto;
  max-width: 16ch;
  text-wrap: balance;
}

.cta p {
  margin: 1.4rem auto 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.6rem;
  position: relative;
}

.cta-direct {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.4rem;
  margin-top: 2.6rem;
  position: relative;
}

.cta-direct a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.25s ease;
}

.cta-direct a:hover { color: var(--text); }

.cta-direct svg { color: var(--violet-hi); flex: none; }

/* footer */

footer {
  border-top: 1px solid var(--line-soft);
  padding: clamp(3rem, 7vw, 5rem) 0 2.2rem;
  background: var(--bg-raise);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.15fr 0.75fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

.foot-brand img { width: 200px; height: auto; }

.foot-brand p {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34ch;
}

.foot-col h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}

.foot-col ul { list-style: none; margin-top: 1.1rem; display: grid; gap: 0.35rem; }

.foot-col a {
  display: inline-block;
  padding: 0.6rem 0;
  color: var(--muted);
  font-size: 0.97rem;
  transition: color 0.25s ease;
}

.foot-col a:hover { color: var(--text); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* parallax layers move via JS transform only */
.parallax { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .parallax { transform: none !important; }
  .progress { display: none; }
  .btn, .cap { transition: none; }
}

/* ============================================================
   MULTI-PAGE COMPONENTS
   Subpage headers, service detail rows, timeline, contact.
   ============================================================ */

/* visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--violet-hi);
  outline-offset: 2px;
  border-radius: 6px;
}

.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-links a.btn[aria-current="page"] { color: #fff; }

/* ---------- subpage header ---------- */

.page-head {
  position: relative;
  padding-top: clamp(7.5rem, 13vw, 10.5rem);
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line-soft);
}

.page-head-media { position: absolute; inset: 0; z-index: -2; }

.page-head-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bg) 58%, transparent) 0%,
    color-mix(in srgb, var(--bg) 84%, transparent) 55%,
    var(--bg) 100%);
}

.page-head h1 {
  font-size: clamp(2.3rem, 5.8vw, 4.2rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin-top: 1.1rem;
  max-width: 17ch;
  text-wrap: balance;
}

.page-head .lede {
  margin-top: 1.3rem;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

/* ---------- service detail rows ---------- */

.svc {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3.5rem);
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 6rem;
}

.svc:first-of-type { border-top: 0; padding-top: 0; }

.svc-id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  color: var(--violet-hi);
}

.svc h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-top: 0.7rem;
}

.svc-body > p { color: var(--muted); max-width: 64ch; }

.svc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.8rem;
  margin-top: 1.5rem;
}

.svc-list li { position: relative; padding-left: 1.35rem; font-size: 0.95rem; }

.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-grad);
}

@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr; }
}

/* ---------- timeline ---------- */

.timeline { margin-top: clamp(2.5rem, 6vw, 4rem); }

.tl {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 0.6rem 2.5rem;
  padding-block: 1.7rem;
  border-top: 1px solid var(--line-soft);
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-hi);
}

.tl h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.tl p { color: var(--muted); font-size: 0.97rem; margin-top: 0.45rem; max-width: 62ch; }

@media (max-width: 700px) { .tl { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1.1rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.ccard {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.6rem;
}

.ccard h2 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}

.ccard a,
.ccard .val {
  display: block;
  margin-top: 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.ccard a:hover { color: var(--violet); }

.ccard small {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
}

.form { display: grid; gap: 1.1rem; margin-top: 2.2rem; max-width: 46rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field { display: grid; gap: 0.45rem; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  min-height: 3rem;
  width: 100%;
}

.field textarea { min-height: 8.5rem; resize: vertical; }

.form-note { color: var(--muted); font-size: 0.88rem; max-width: 52ch; }

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* the page header already provides breathing room above the first section */
.page-head + .section { padding-top: clamp(2.5rem, 6vw, 4.5rem); }

/* give the form the wider column on the contact page */
.split.form-first { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
@media (max-width: 900px) { .split.form-first { grid-template-columns: 1fr; } }

/* ============================================================
   MOTION + INTERACTION
   GSAP owns the reveal once .gsap-on is set, so the CSS
   transition stands down to avoid two engines fighting.
   ============================================================ */

.gsap-on [data-reveal] { transition: none; }
.gsap-on .marquee-track { animation: none; }
.gsap-on .btn {
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

/* headline words, masked so they can slide up into place */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* room for descenders so the mask does not clip commas and tails */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.wi { display: inline-block; will-change: transform; }

/* ---------- pointer spotlight on panels ---------- */

.cap,
.ccard,
.figure {
  --mx: 50%;
  --my: 50%;
  isolation: isolate;
}

.cap::before,
.ccard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(16rem 16rem at var(--mx) var(--my),
    rgba(224, 64, 143, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.cap:hover::before,
.ccard:hover::before { opacity: 1; }

.ccard { position: relative; }

.ccard {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ccard:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 139, 250, 0.4);
}

/* ---------- media ---------- */

.figure img { transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.figure:hover img { transform: scale(1.045); }

.figure figcaption { transition: transform 0.4s ease, background-color 0.3s ease; }
.figure:hover figcaption { transform: translateY(-3px); }

/* ---------- links draw an underline ---------- */

.foot-col a,
.cap h3 a,
.cta-direct a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.25s ease;
}

.foot-col a:hover,
.cap h3 a:hover,
.cta-direct a:hover { background-size: 100% 1px; }

/* ---------- service rows lift on hover ---------- */

.svc { transition: background-color 0.35s ease; border-radius: var(--radius); }
.svc:hover { background: color-mix(in srgb, var(--surface) 55%, transparent); }

.svc-list li::before { transition: transform 0.3s ease; }
.svc:hover .svc-list li::before { transform: scale(1.35); }

/* ---------- process steps ---------- */

.step::before { transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }
.step:hover::before { width: 100%; }

/* ---------- the marquee slows under the pointer ---------- */

.marquee { cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .figure img,
  .figure:hover img,
  .ccard:hover { transform: none; }
  .foot-col a,
  .cap h3 a,
  .cta-direct a { background-image: none; }
}


/* ============================================================
   PHOTO BANDS
   A full-bleed image behind a dark scrim, so a section can carry
   photography without costing legibility. Drop the photo in and it
   appears; if the file is absent the scrim alone still reads.
   ============================================================ */

.photo-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f4f1fa;
  /* base tone, so the band is dark with or without a photo */
  background: #0c0916;
  border-block: 1px solid rgba(255, 255, 255, 0.09);
}

.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--band-photo);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 9, 22, 0.80) 0%, rgba(12, 9, 22, 0.70) 55%, rgba(12, 9, 22, 0.85) 100%),
    radial-gradient(58% 78% at 18% 18%, rgba(124, 58, 237, 0.34), transparent 70%),
    radial-gradient(52% 70% at 86% 76%, rgba(224, 64, 143, 0.24), transparent 72%);
}

.photo-band .eyebrow { color: #cbb6ff; }
.photo-band h2,
.photo-band h3 { color: #f7f5ff; }
.photo-band p,
.photo-band .lede { color: #cec6e5; }
.photo-band .num { color: #cbb6ff; }
.photo-band .idx { color: #cbb6ff; }
.photo-band .step { border-top-color: rgba(255, 255, 255, 0.2); }

.photo-band .cap {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.photo-band .cap:hover { border-color: rgba(255, 255, 255, 0.3); }
.photo-band .cap::before { display: none; }

.photo-band .tags span {
  color: #ded7f0;
  border-color: rgba(255, 255, 255, 0.22);
}

/* swap these two files for your own photography */
.band-engage { --band-photo: url("../assets/images/engage-bg.webp"); }
.band-next { --band-photo: url("../assets/images/next-bg.webp"); }
