/* Responsive hierarchy and brand placement requested from the visual review. */
.site-header .brand-mark {
  filter: none;
  box-shadow: none;
}

.desktop-nav a {
  color: #c7c2d6;
  font-size: 0.8rem;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--text);
}

/* Fade the teal wash smoothly instead of cutting across the portrait. */
.hero-grid::before {
  background: linear-gradient(180deg,
    transparent 18%,
    rgba(48, 203, 222, 0.18) 38%,
    rgba(48, 203, 222, 0.1) 43%,
    transparent 50%,
    transparent 61%,
    rgba(48, 203, 222, 0.1) 68%,
    transparent 75%);
}

.hero-brand {
  display: inline-flex;
  width: min(100%, 34rem);
  min-height: 5.5rem;
  margin: 0 0 2.75rem;
  gap: 1.25rem;
  color: var(--text);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(1.875rem, 3.5vw, 3.125rem);
  line-height: 1;
  word-spacing: 0.16em;
}

.hero h1 em {
  display: inline-block;
  padding-right: 0.12em;
  font-size: 1.18em;
  font-style: italic;
  line-height: 1.12;
}

.hero-actions .button-primary {
  position: relative;
  box-shadow: 0 0 0.75rem rgba(166, 93, 255, 0.45),
    0 0 1.6rem rgba(166, 93, 255, 0.22);
}

.hero-actions .button-primary::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 1rem rgba(180, 115, 255, 0.95),
    0 0 2.75rem rgba(166, 93, 255, 0.65);
  opacity: 0.35;
  animation: scif-glow-pulse 3.2s ease-in-out infinite;
}

@keyframes scif-glow-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.hero-actions .button-primary:focus-visible::after {
  animation: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions .button-primary::after {
    animation: none;
    opacity: 0.55;
  }
}

.section-heading h2,
.featured-copy h2 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1;
}

.lead-copy {
  font-size: 0.95rem;
  line-height: 1.75;
}

/* The studio name leads; the catchphrase is deliberately secondary. */
@media (min-width: 641px) {
  /* Extend the hero's dark signal-field language through the long-form sections. */
  .content-section,
  .atlas-section,
  .portfolio-section {
    box-shadow: inset 0 1px rgba(166, 93, 255, 0.12);
  }

  .method-card,
  .portfolio-card,
  .materials-list > article {
    background: linear-gradient(135deg, rgba(15, 17, 38, 0.82), rgba(7, 8, 18, 0.94));
  }

  .method-card,
  .portfolio-card {
    box-shadow: inset 0 1px rgba(130, 220, 236, 0.06);
  }

  .atlas-row {
    transition: background 0.18s ease, padding 0.18s ease, box-shadow 0.18s ease;
  }

  .atlas-row:hover {
    box-shadow: inset 0 0 1.75rem rgba(80, 219, 235, 0.08);
  }

  .hero-content {
    width: min(100%, 78rem);
  }

  .hero-brand {
    width: max-content;
    max-width: 100%;
  }

  .hero-brand > span {
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-wrap: balance;
  }

  .hero-description {
    max-width: 35rem;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding: 5rem 1.25rem 6.5rem;
  }

  .hero-brand {
    display: inline-flex;
    width: 100%;
    min-height: 5rem;
    margin: 0 0 2.25rem;
    gap: 1rem;
    color: var(--text);
    font-size: clamp(2rem, 8.5vw, 2.5rem);
    letter-spacing: 0.02em;
    text-wrap: balance;
  }

  .hero-kicker {
    margin-bottom: 1.15rem;
  }

  .hero h1 {
    max-width: 22rem;
    font-size: clamp(1.5rem, 6.5vw, 1.875rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
  }

  .hero-description {
    max-width: 22rem;
    margin-top: 1.6rem;
    font-size: 0.76rem;
    line-height: 1.62;
  }

  .hero-actions {
    margin-top: 1.8rem;
  }

  /* Keep the field system, but use a compact mobile rhythm. */
  .content-section,
  .atlas-section,
  .materials-section {
    padding: 3.25rem 1.25rem;
    background-image: linear-gradient(135deg, rgba(16, 14, 35, 0.72), rgba(7, 8, 18, 0.88));
  }

  .section-number {
    margin-bottom: 1.2rem;
  }

  .section-heading h2,
  .featured-copy h2 {
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  .lead-copy {
    margin-top: 1.15rem;
    font-size: 0.76rem;
    line-height: 1.58;
  }

  .method-section {
    padding-top: 2.75rem;
  }

  .method-grid {
    margin-top: 1.75rem;
  }

  .method-card,
  .method-card + .method-card {
    padding: 1.1rem 0 1.3rem;
  }

  .method-card h3 {
    margin: 1.35rem 0 0.6rem;
  }

  /* Atlas remains the complete project index; hide its redundant card echo. */
  .portfolio-section {
    display: none;
  }

  .atlas-intro > p {
    margin: 1.25rem 0 1.75rem;
    line-height: 1.55;
  }

  .atlas-row {
    min-height: 3.7rem;
  }

  .featured-art {
    min-height: 12.5rem;
  }

  .featured-copy {
    padding: 2.5rem 1.25rem 2.75rem;
  }

  .featured-copy h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.3rem);
  }

  .featured-copy > p:not(.eyebrow) {
    margin: 1.2rem 0;
    line-height: 1.58;
  }

  .featured-subprojects {
    margin-top: 1.2rem;
  }

  .portfolio-card h3,
  .materials-list h3 {
    font-size: 1.2rem;
  }

  .materials-list {
    margin-top: 2rem;
  }

  .materials-section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .materials-list > article {
    padding: 1.1rem 0 1.35rem;
  }

  .materials-list p {
    line-height: 1.58;
  }

  .scroll-cue {
    display: none;
  }
}
