/* =========================================================
   BRUK Media — Stylesheet v2
   Light-first. Bold. Editorial.
   Mobile-first, no frameworks, GPU-accelerated animation only.
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Design tokens ── */
:root {
  /* Backgrounds */
  --bg:          #ffffff;
  --bg-soft:     #f5f5f0;
  --bg-dark:     #111111;
  --bg-dark-2:   #1c1c1c;

  /* Borders */
  --border:        rgba(0, 0, 0, 0.08);
  --border-mid:    rgba(0, 0, 0, 0.14);
  --border-strong: rgba(0, 0, 0, 0.24);

  /* Text */
  --text:        #111111;
  --text-muted:  #555555;
  --text-dim:    #999999;

  /* Accents */
  --accent:       #5533ff;
  --accent-warm:  #ff4e00;
  --accent-grad:  linear-gradient(135deg, #5533ff 0%, #ff4e00 100%);
  --accent-subtle: linear-gradient(135deg, rgba(85,51,255,0.07) 0%, rgba(255,78,0,0.06) 100%);

  /* Radius */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadow */
  --shadow:    0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.10);

  /* Layout */
  --container: 1200px;
  --gap: clamp(16px, 2.4vw, 28px);
}

/* ── Layout helpers ── */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, var(--container));
  }
}

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section--tight {
  padding: clamp(48px, 6vw, 80px) 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--dark {
  background: var(--bg-dark);
}
.section--dark p { color: rgba(255,255,255,0.55); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #ffffff; }

/* ── Typography ── */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 7vw + 0.5rem, 7.5rem); }
h2 { font-size: clamp(2rem, 4vw + 0.5rem, 4rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 1.5vw + 0.4rem, 1.4rem); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h4 { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.2rem);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.75;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease,
              border-color .2s ease, opacity .2s ease;
}

.btn--lg { padding: 17px 32px; font-size: 1rem; }

/* Primary = near-black on light, white on dark (overridden in context) */
.btn--primary {
  color: #ffffff;
  background: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}
.btn--primary:active { transform: translateY(0); }

/* Ghost = dark-outlined on light backgrounds */
.btn--ghost {
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

/* Ghost on dark backgrounds */
.section--dark .btn--ghost,
.cta-block .btn--ghost,
.cta .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.section--dark .btn--ghost:hover,
.cta-block .btn--ghost:hover,
.cta .btn--ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Primary on dark sections — flip to white */
.cta-block .btn--primary,
.cta .btn--primary {
  background: #ffffff;
  color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}
.cta-block .btn--primary:hover,
.cta .btn--primary:hover {
  box-shadow: 0 10px 36px rgba(255, 255, 255, 0.25);
}

.btn--block { width: 100%; }

/* ── Header / Nav — dark background so logo blends ── */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}

.site-header.nav-scrolled {
  background: rgba(17, 17, 17, 0.97);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Nav CTA button: white on dark header */
.site-header .btn--primary {
  background: #ffffff;
  color: var(--bg-dark);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}
.site-header .btn--primary:hover {
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand__logo {
  height: 52px;
  width: auto;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  flex-shrink: 0;
}

.nav__links {
  display: none;
  list-style: none;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

@media (min-width: 860px) {
  .nav__links { display: flex; }
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  opacity: 0.6;
  transition: opacity .2s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { opacity: 1; }

.nav__cta { display: none; }
@media (min-width: 640px) {
  .nav__cta { display: inline-flex; }
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
}
@media (min-width: 860px) {
  .nav__toggle { display: none; }
}
.nav__toggle svg { width: 22px; height: 22px; }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  padding: 13px 0;
  font-weight: 500;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__mobile a:hover { color: #ffffff; }
.nav__mobile a:last-of-type { border-bottom: 0; margin-top: 16px; }
.nav__mobile .btn { width: 100%; justify-content: center; }

/* ── HOMEPAGE HERO ──────────────────────────────────
   Desktop: two-column (text + circle logo), min-height:100vh
   Mobile (<=860px): single column, no overflow, content height
   ─────────────────────────────────────────────────────────── */

/* Desktop: full-screen height, vertically centred */
/* overflow removed entirely — body{overflow-x:hidden} contains the blobs.
   Any overflow value here (incl. overflow-x:hidden) forces overflow-y:auto
   which silently clips flex children vertically. */
.hero-split {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: visible;
}

/* Decorative blobs */
.hero-split::before {
  content: '';
  position: absolute;
  top: -25%;
  right: -8%;
  width: clamp(320px, 55vw, 800px);
  height: clamp(320px, 55vw, 800px);
  border-radius: 50%;
  background: var(--accent-subtle);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-split::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: clamp(200px, 35vw, 500px);
  height: clamp(200px, 35vw, 500px);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,78,0,0.05), rgba(85,51,255,0.04));
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* vw-based vertical padding scales with width not height — safe on all screens */
.hero-split__container {
  position: relative;
  z-index: 1;
  padding: clamp(96px, 14vw, 160px) 0 clamp(72px, 10vw, 120px);
  overflow: visible;
}

/* Desktop: text left, logo right */
.hero-split__message {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.hero-split__text {
  min-width: 0;
  overflow: visible;
}

.hero-split__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-split__logo img {
  display: block;
  width: clamp(220px, 32vw, 460px);
  height: auto;
  object-fit: contain;
}

.hero-eyebrow {
  animation: fadeUp 0.6s ease 0.1s both;
  margin-bottom: 24px;
}

.hero-title {
  width: 100%;
  max-width: 960px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin-bottom: 32px;
  padding-top: 0.05em;
  padding-bottom: 0.12em;      /* room for descenders on bold glyphs */
  animation: fadeUp 0.75s ease 0.25s both;
  color: var(--text);
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  overflow: visible;
}

.hero-title .grad-text {
  display: block;
}

.hero-lead {
  animation: fadeUp 0.7s ease 0.45s both;
  margin-bottom: 40px;
  max-width: 680px;
}

.hero-split__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeUp 0.7s ease 0.6s both;
}

/* ── <=860px: single column, content-height
   FIX B: logo no longer hidden at 860px — now stacks below text.
   FIX A: line-height raised from 1.02 → 1.08
   FIX C: .hero-split__container padding removed because .container handles gutters ── */
@media (max-width: 860px) {
  .hero-split {
    min-height: auto;
    display: block;
    padding: 104px 0 80px;
  }

  /* container: vertical padding comes from .hero-split above; only clear it here */
  .hero-split__container {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-split__message {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }

  .hero-split__text {
    width: 100%;
  }

  /* FIX B: show logo stacked below text at tablet sizes */
  .hero-split__logo {
    display: flex;
    justify-content: center;
  }

  .hero-split__logo img {
    width: clamp(180px, 50vw, 300px);
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2.4rem, 10vw, 4.4rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .hero-lead {
    max-width: 100%;
    font-size: 1rem;
  }
}

/* ── <=560px: hide logo on narrow phones to save space ── */
@media (max-width: 560px) {
  .hero-split__logo {
    display: none;
  }
}

/* ── <=600px: reduce font, stack CTA buttons ── */
@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .hero-split__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-split__cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── <=420px: narrowest screens
   clamp(2rem, 10vw, 3rem): at 320px 10vw=32px=2rem so min kicks in
   At 375px: 37.5px=2.34rem. At 420px: 42px<48px(3rem) so vw wins. ── */
@media (max-width: 420px) {
  .hero-split {
    padding: 90px 0 64px;
  }

  /* FIX A: line-height raised from 1.06 → 1.1 */
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.1;
  }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  animation: fadeIn 0.6s ease 1.4s both;
}

.hero-scroll__label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-scroll__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollLinePulse 2s ease-in-out infinite;
}

/* ── Statement bar ── */
.statement-bar {
  background: var(--bg-dark);
  padding: 20px 0;
}

.statement-bar__text {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  letter-spacing: 0.01em;
}

.statement-bar strong { color: #ffffff; }

/* ── Section heads ── */
.section-head {
  max-width: 960px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 { margin-bottom: 18px; }
.section-head .lead { margin-top: 4px; }

/* ── Problem section ── */
#problem { background: var(--bg-soft); }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 600px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
}

.problem-card {
  background: var(--bg);
  padding: clamp(24px, 3.5vw, 40px);
  display: grid;
  gap: 12px;
  align-content: start;
}

.problem-card__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.problem-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.problem-card p {
  font-size: 0.91rem;
  line-height: 1.65;
  margin: 0;
  color: var(--text-muted);
}

.problem-card__fix {
  font-size: 0.87rem !important;
  color: var(--accent) !important;
  font-weight: 500;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ── Services section (homepage) — DARK ── */
#services {
  background: var(--bg-dark);
}

#services .section-head .eyebrow {
  color: rgba(255, 255, 255, 0.4);
}

#services .section-head h2 {
  color: #ffffff;
}

#services .section-head .lead {
  color: rgba(255, 255, 255, 0.5);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 860px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--bg-dark-2);
  padding: clamp(28px, 3.5vw, 48px);
  display: grid;
  gap: 16px;
  align-content: start;
  transition: background .2s ease;
}

.service-card:hover { background: #242424; }

.service-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 4px;
}

.service-card__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.28);
  padding-top: 4px;
  flex-shrink: 0;
}

.service-card h3 {
  color: #ffffff;
  font-size: clamp(1.1rem, 1.5vw + 0.3rem, 1.35rem);
  margin: 0;
}

.service-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.91rem;
  line-height: 1.7;
  margin: 0;
}

.service-card__list {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card__list li {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.38);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.service-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.78rem;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.87rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  transition: color .2s, gap .2s;
}

.service-card__link:hover {
  color: #ffffff;
  gap: 10px;
}

/* ── Process section ── */
#process { background: var(--bg); }

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 680px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
  padding: clamp(28px, 3.5vw, 48px);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: grid;
  gap: 14px;
  align-content: start;
}

/* Border cleanup for grid layouts */
@media (min-width: 1000px) {
  .process-step { border-bottom: 0; }
  .process-step:last-child { border-right: 0; }
}

@media (min-width: 680px) and (max-width: 999px) {
  .process-step:nth-child(even) { border-right: 0; }
  .process-step:nth-child(3),
  .process-step:nth-child(4) { border-bottom: 0; }
}

@media (max-width: 679px) {
  .process-step:last-child { border-bottom: 0; }
  .process-step { border-right: 0; }
}

.process-step__num {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(0, 0, 0, 0.07);
  line-height: 1;
  display: block;
}

.process-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.process-step p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
  color: var(--text-muted);
}

/* ── About section ── */
#about {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-split {
  display: grid;
  gap: 48px;
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .about-split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(48px, 7vw, 96px);
  }
}

.about-split__message h2 {
  margin-bottom: 24px;
  line-height: 1.08;
}

.about-split__message p {
  max-width: 52ch;
  line-height: 1.78;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.about-split__message .btn { margin-top: 12px; }

.about-split__principles { align-self: start; }

.principles-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.principles-list__item {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.principles-list__item:last-child { border-bottom: 0; }

.principles-list__item dt {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.principles-list__item dd {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ── CTA block (homepage) ── */
.cta-block {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  padding-bottom: 60%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(85,51,255,0.14), rgba(255,78,0,0.08));
  filter: blur(64px);
  pointer-events: none;
}

.cta-block__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 700px) {
  .cta-block__inner {
    grid-template-columns: 1fr auto;
    gap: 48px;
  }
}

.cta-block__message h2 {
  font-size: clamp(1.8rem, 3.5vw + 0.5rem, 3.2rem);
  margin-bottom: 14px;
  line-height: 1.1;
  color: #ffffff;
}

.cta-block__message p {
  max-width: 52ch;
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.cta-block__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .cta-block__actions { flex-direction: row; }
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.45);
  padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 40px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(40px, 6vw, 64px);
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .brand {
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-brand .brand__logo {
  /* Logo has its own dark background — renders correctly on dark footer */
  height: 52px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.4);
}

.site-footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.site-footer ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color .2s;
}
.site-footer ul li a:hover { color: #ffffff; }

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.28);
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ──
   INNER PAGE HERO (services.html, contact.html)
   ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
.hero {
  position: relative;
  padding: clamp(120px, 18vh, 180px) 0 clamp(64px, 8vw, 96px);
  background: var(--bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -8%;
  width: clamp(280px, 45vw, 620px);
  height: clamp(280px, 45vw, 620px);
  border-radius: 50%;
  background: var(--accent-subtle);
  filter: blur(80px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  max-width: 1000px;
}

.hero .eyebrow { margin-bottom: 12px; }
.hero h1 { color: var(--text); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ──
   SERVICES PAGE — service blocks
   ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
.service-block {
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: 0; }

.service-block__head {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  max-width: 760px;
}

.service-block__head .eyebrow { margin-bottom: 0; }

.service-block__head h2 {
  font-size: clamp(1.8rem, 3.5vw + 0.5rem, 3rem);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 860px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}

.panel {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--border);
}

.panel h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.panel ul li {
  font-size: 0.91rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.panel ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.78rem;
}

/* ── FAQ ── */
.faq {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details:last-child { border-bottom: 0; }

.faq summary {
  padding: 22px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .2s;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--bg-soft); }

.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform .3s ease;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 28px 24px;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
  color: var(--text-muted);
}

/* Services page CTA */
.cta {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 50%;
  padding-bottom: 50%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(85,51,255,0.14), rgba(255,78,0,0.08));
  filter: blur(56px);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta__inner h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.4rem);
  color: #ffffff;
  margin: 0;
}

.cta__inner p {
  color: rgba(255, 255, 255, 0.5);
  margin: 8px 0 0;
  font-size: 0.95rem;
}

/* ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ──
   CONTACT PAGE
   ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── ── */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
}

@media (min-width: 860px) {
  .contact { grid-template-columns: 1fr 1.6fr; }
}

.contact-info {
  display: grid;
  gap: 32px;
  align-content: start;
}

.contact-info .eyebrow { margin-bottom: 6px; }

.contact-info p {
  font-size: 1rem;
  color: var(--text);
  margin: 0;
}

.contact-info a:hover { color: var(--accent); }

.form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(85, 51, 255, 0.1);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.17s; }
[data-reveal][data-delay="3"] { transition-delay: 0.26s; }
[data-reveal][data-delay="4"] { transition-delay: 0.36s; }
[data-reveal][data-delay="5"] { transition-delay: 0.46s; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollLinePulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-eyebrow,
  .hero-title,
  .hero-lead,
  .hero-split__cta { animation: none; opacity: 1; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* === DISPLAY TEXT ANTI-CLIPPING FIX === */

.hero-split,
.hero-split__container,
.hero-split__message,
.hero-split__text,
.section-head,
.service-card,
.cta-block,
.about-split,
.hero-title,
.section-head h2,
.service-card h3,
.cta-block h2,
.about-split h2,
.grad-text {
  overflow: visible;
  height: auto;
  max-height: none;
}

.hero-title,
.section-head h2,
.cta-block h2,
.about-split h2 {
  display: block;
  line-height: 1.12;
  padding-top: 0.06em;
  padding-bottom: 0.16em;
}

.grad-text {
  display: inline-block;
  line-height: 1.12;
  padding-top: 0.06em;
  padding-bottom: 0.16em;
  overflow: visible;
}
