/* Scoped to the existing homepage hero; other sections retain their styles. */
section.hero-pattern {
  min-height: min(850px, 100svh);
  padding: 168px 0 100px;
  background-color: #f8fafc;
  background-image:
    radial-gradient(ellipse at 95% 30%, rgb(30 58 138 / 20%), transparent 65%),
    radial-gradient(ellipse at 5% 100%, rgb(217 119 6 / 16%), transparent 60%),
    linear-gradient(135deg, #f8fafc 0%, #eff4ff 55%, #fff7ed 100%);
  border-bottom: 1px solid #e2e8f0;
  isolation: isolate;
}
.hero-pattern > .absolute { display: none; }
.hero-pattern > .relative { position: relative; }
.hero-pattern > .relative::after {
  content: "";
  position: absolute;
  width: 41%;
  aspect-ratio: 1;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  background: url('../images/hero-brand.svg') center / contain no-repeat;
  pointer-events: none;
  z-index: -1;
}
.hero-pattern > .relative > .flex {
  align-items: flex-start;
  text-align: left;
  max-width: 58%;
  margin: 0;
}
.hero-pattern h1 {
  max-width: 680px;
  font-size: clamp(42px, 4.8vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-pattern h1::before {
  content: "CREATIVE THINKING. REAL IMPACT.";
  display: block;
  margin-bottom: 25px;
  padding-left: 32px;
  background: linear-gradient(#d97706, #d97706) left center / 20px 2px no-repeat;
  color: #1e3a8a;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.16em;
}
.hero-pattern h1 .gradient-text {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #1e3a8a;
}
.hero-pattern p {
  max-width: 490px;
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.85;
  color: #64748b;
}
.hero-pattern p + .flex { justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
.hero-pattern a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 22px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.hero-pattern a:first-child { box-shadow: 0 8px 20px #1e3a8a18; }
.hero-pattern a:first-child::after { content: "↗"; margin-left: 14px; font-size: 20px; line-height: 1; }
.hero-pattern a:nth-child(2) { border-width: 1px; border-color: #cbd5e1; }
.hero-pattern a:focus-visible { outline: 3px solid #d97706; outline-offset: 5px; }
@media (min-width: 1440px) {
  section.hero-pattern { min-height: 800px; }
}
@media (max-width: 1023px) {
  section.hero-pattern { min-height: auto; padding: 152px 0 72px; }
  .hero-pattern > .relative > .flex { max-width: 60%; }
  .hero-pattern > .relative::after { width: 36%; right: 24px; }
  .hero-pattern h1 { font-size: 48px; }
}
@media (max-width: 767px) {
  section.hero-pattern { padding: 132px 0 48px; }
  .hero-pattern > .relative > .flex { max-width: 100%; }
  .hero-pattern > .relative::after {
    position: relative;
    display: block;
    width: min(100%, 380px);
    margin: 36px auto 0;
    inset: auto;
    transform: none;
  }
  .hero-pattern h1 { font-size: clamp(38px, 8vw, 56px); max-width: 580px; }
  .hero-pattern p { max-width: 550px; }
  .hero-pattern p + .flex { flex-direction: row; }
  .hero-pattern a { flex: 1 1 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pattern a { transition: none; transform: none; }
}
