/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + clamp(16px, 3vh, 32px)) var(--gutter) clamp(48px, 8vh, 72px);
  color: var(--on-surface-inverse);
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: isolate;
}

.hero-particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-spline-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

html.hero-particles-ready .hero-particles-canvas,
html.hero-spline-ready .hero-particles-canvas {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-bg-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.72), transparent 32%, transparent 68%, rgba(0, 0, 0, 0.72)),
    linear-gradient(to bottom, transparent 48%, rgba(14, 26, 36, 0.88) 100%),
    linear-gradient(
      165deg,
      rgba(14, 26, 36, 0.45) 0%,
      rgba(40, 77, 105, 0.15) 45%,
      rgba(14, 26, 36, 0.3) 100%
    );
}

html.hero-spline-ready .hero-bg-vignette {
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 38%, transparent 58%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(to bottom, transparent 52%, rgba(14, 26, 36, 0.82) 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  will-change: opacity;
  pointer-events: none;
  transform: translateY(clamp(-12px, -1.5vh, -28px));
}

.hero-inner a,
.hero-inner button {
  pointer-events: auto;
}

.hero h1 {
  margin-bottom: 22px;
  color: var(--on-surface-inverse);
}

.hero .display-headline {
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

@media (max-width: 767px) {
  .hero .display-headline {
    font-size: clamp(40px, 7.8vw, 48px);
    max-width: none;
  }
}

.hero-sub {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
  color: rgba(247, 250, 252, 0.9);
  max-width: 560px;
  font-weight: 400;
}

.hero-sub + .hero-sub { margin-top: 10px; }

.hero-bullets {
  list-style: none;
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 560px;
}

.hero-bullets li {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(247, 250, 252, 0.82);
  padding: 5px 0 5px 1.55em;
  position: relative;
}

.hero-bullets li::before {
  content: '✗';
  position: absolute;
  left: 0;
  top: 0.62em;
  font-size: 0.9em;
  line-height: 1;
  color: var(--tertiary);
}

/* —— Render-to-reality block —— */
/* —— Work behind the work (case cards — see case-cards.css) —— */

/* Hidden only after JS boots — avoids invisible text if script fails */
html:not(.blur-fade-ready) .blur-fade {
  opacity: 1;
  filter: none;
  transform: none;
}

html.blur-fade-ready .blur-fade {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(14px);
}

html.blur-fade-ready .blur-fade.is-visible {
  animation: blur-fade-in 0.7s ease-out forwards;
  animation-delay: var(--blur-fade-delay, 0.04s);
}

@keyframes blur-fade-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.blur-fade-ready .blur-fade {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
}

/* —— Approach gradient cards —— */
.approach-inner {
  max-width: 1120px;
  margin: 0 auto;
}

#approach {
  background-color: #07090d;
  color: var(--on-surface-inverse);
}

.section--dark-gray .eyebrow.approach-eyebrow {
  color: var(--tertiary);
  margin-bottom: 12px;
}

.approach-inner .section-headline {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.approach-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
  align-items: stretch;
}

@media (max-width: 900px) {
  .approach-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* —— Bridge —— */
.bridge {
  padding: 80px var(--gutter);
  text-align: center;
  background: var(--surface-soft);
}

.bridge p {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.45;
  color: var(--on-surface-strong);
  max-width: 720px;
  margin: 0 auto;
}

/* —— Testimonials —— */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface-container);
  border: none;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.testimonial-card blockquote {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--on-surface-strong);
  margin-bottom: 18px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.testimonial-author__photo,
.testimonial-author__initials {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.testimonial-author__photo {
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--outline-soft);
}

.testimonial-author__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--on-surface-muted);
  background: var(--surface-container-high, #eef0f3);
  border: 2px solid var(--outline-soft);
}

.testimonial-author__meta {
  min-width: 0;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface-strong);
}

.testimonial-card .role {
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface-muted);
  margin-top: 4px;
}

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

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

.testimonial-card--wide {
  grid-column: 1 / -1;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.testimonials__closing {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.45;
  color: var(--on-surface-strong);
  text-align: center;
  max-width: 720px;
  margin: 56px auto 0;
}

/* —— Contact —— */
.contact-section {
  text-align: center;
}

.contact-section .container {
  max-width: 720px;
}

.contact-section .section-headline {
  color: var(--on-surface-inverse);
  margin-bottom: clamp(32px, 5vw, 40px);
}

.contact-section .shiny-cta-wrap {
  margin-bottom: clamp(20px, 3vw, 28px);
}

.contact-section__email {
  margin: 0 0 clamp(40px, 6vw, 56px);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(247, 250, 252, 0.88);
}

.contact-section .shiny-cta {
  --shiny-cta-bg: var(--tertiary);
  --shiny-cta-bg-subtle: color-mix(in srgb, var(--azul-deep-navy) 14%, var(--tertiary));
  --shiny-cta-fg: var(--azul-midnight-ink);
  --shiny-cta-highlight: var(--azul-deep-navy);
  --shiny-cta-highlight-subtle: var(--azul-signal-blue);
}

.contact-section .shiny-cta:is(:hover, :focus-visible) {
  --shiny-cta-bg: var(--azul-signal-blue);
  --shiny-cta-bg-subtle: color-mix(in srgb, var(--azul-deep-navy) 22%, var(--azul-signal-blue));
  --shiny-cta-fg: var(--on-surface-inverse);
  --shiny-cta-highlight: var(--azul-signal-blue);
  --shiny-cta-highlight-subtle: var(--tertiary);
  transform: scale(1.03);
  box-shadow: 0 10px 36px rgba(74, 135, 181, 0.45);
}

.contact-section__copy {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  padding: 32px var(--gutter);
  text-align: center;
  background: var(--surface-strong);
  color: rgba(247, 250, 252, 0.5);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.site-footer a {
  color: rgba(247, 250, 252, 0.75);
  margin-left: 16px;
}

.site-footer a:hover { color: var(--tertiary); }
