/* Hero Brief Section (glass / liquid aesthetic) */
.hero-brief { 
  width: 100%;
  max-width: 1650px;
  margin: 0 auto clamp(3rem,6vw,5rem); /* keep only bottom spacing */
  padding: 0; 
  position: relative;
  z-index: 6;
}

/* Prevent sharp rectangular artifacts by clipping the outer container
   to the same rounded radius as the inner glass. This masks any behind-
   the-glass visuals while keeping the section layout intact. */
.hero-brief {
  --hb-radius: clamp(26px, 2vw + 18px, 56px);
  border-radius: var(--hb-radius);
  overflow: hidden; /* clip any background / pseudo overflow */
}

.hero-brief__glass { 
  --hb-radius: clamp(26px, 2vw + 18px, 56px);
  position: relative;
  --hb-pad: clamp(1.1rem, 0.9rem + 0.9vw, 2rem);
  padding: var(--hb-pad);
  border-radius: var(--hb-radius);
  /* Neutral near-black panel (slightly lighter than full page bg) */
  background: var(--panel-bg, linear-gradient(145deg, hsl(260 10% 9%), hsl(260 10% 5%)));
  background-blend-mode: normal;
  backdrop-filter: blur(32px) saturate(1.25) contrast(1.03);
  -webkit-backdrop-filter: blur(32px) saturate(1.25) contrast(1.03);
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.04) inset,
    0 10px 22px -10px rgba(0,0,0,.65),
    0 28px 56px -18px rgba(0,0,0,.65);
  position: relative;
  overflow: hidden;
  transition:
    background 1s cubic-bezier(.3,.8,.25,1),
    box-shadow 1s cubic-bezier(.3,.8,.25,1),
    -webkit-backdrop-filter 1s cubic-bezier(.3,.8,.25,1),
    backdrop-filter 1s cubic-bezier(.3,.8,.25,1),
    border-radius .6s ease;
}

/* Liquid sheen overlay */
 .hero-brief__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, hsl(0 0% 100% / .05), transparent 42%),
    radial-gradient(circle at 80% 82%, hsl(0 0% 100% / .03), transparent 55%),
    linear-gradient(175deg, hsl(0 0% 100% / .04), transparent 65%);
  mix-blend-mode: overlay;
  pointer-events: none;
  transition: opacity .9s ease;
}

/* Soft border glow ring */
.hero-brief__glass::after { 
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, hsl(0 0% 100% / .10), hsl(0 0% 100% / 0));
  filter: blur(26px) saturate(120%);
  mix-blend-mode: overlay;
  opacity: .4;
  pointer-events: none;
  z-index: -1;
  transition: opacity .8s ease, filter 1s ease;
}

.hero-brief__head { 
  max-width: 105ch;
  margin: 0 auto clamp(.8rem,1.4vw,1.4rem); /* tighter: matches side pad */
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 1.2rem + .6vw, 1.8rem);
}

.hero-brief__head h1 { 
  font-size: clamp(1.65rem, 1.1rem + 2.6vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: .75px;
  background: linear-gradient(95deg,
    hsl(calc(var(--active-color) + 8) 98% 70%),
    hsl(calc(var(--active-color) - 12) 98% 68%) 55%,
    hsl(calc(var(--active-color) + 24) 95% 72%) 85%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px hsl(calc(var(--active-color) + 8) 95% 60% / .38));
  position: relative;
  transition: filter 1.2s cubic-bezier(.3,.8,.25,1), color .9s ease;
}

.hero-brief__lead { 
  font-size: clamp(.95rem, .9rem + .45vw, 1.25rem);
  font-weight: 400;
  line-height: 1.52;
  color: hsl(220 15% 88% / .9);
  max-width: 78ch;
  margin: 0 auto;
}

.hero-brief__grid { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(.9rem, .8rem + 0.9vw, 1.5rem) clamp(.9rem, .8rem + 0.6vw, 1.3rem);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto clamp(1rem,1.6vw,1.4rem);
  position: relative;
}

/* 4:2 priority layout (first row 4 cards, second row 2 centered) */
@media (min-width: 1200px) {
  .hero-brief__grid { 
    grid-template-columns: repeat(4, minmax(0, 1fr));
    /* ensure consistent height alignment */
    align-items: stretch;
  }
  /* Center the last two items (5th & 6th) by starting them at columns 2 and 3 */
  .hero-brief__grid > .hero-brief__item:nth-child(5) { grid-column: 2; }
  .hero-brief__grid > .hero-brief__item:nth-child(6) { grid-column: 3; }
}

.hero-brief__item { 
  --pad: clamp(1.1rem, 1rem + .8vw, 1.75rem);
  position: relative;
  padding: var(--pad) clamp(1rem, .9rem + .6vw, 1.4rem) calc(var(--pad) + .2rem);
  background: linear-gradient(155deg, hsl(260 8% 13% / .55), hsl(260 8% 9% / .6));
  border: 1px solid hsl(0 0% 100% / .04);
  border-radius: clamp(18px, 1.2vw + 12px, 34px);
  backdrop-filter: blur(20px) saturate(1.18) brightness(1.02);
  -webkit-backdrop-filter: blur(20px) saturate(1.18) brightness(1.02);
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / .02) inset,
    0 4px 12px -6px rgba(0,0,0,.55),
    0 16px 32px -14px rgba(0,0,0,.55);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transition: transform .45s cubic-bezier(.25,.85,.25,1),
              background .55s cubic-bezier(.3,.8,.25,1),
              box-shadow .6s cubic-bezier(.3,.8,.25,1);
  will-change: transform;
}

.hero-brief__item:hover { 
  transform: translateY(-6px) scale(1.018);
  background: linear-gradient(155deg, hsl(260 8% 15% / .55), hsl(260 8% 10% / .62));
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / .04) inset,
    0 10px 24px -10px rgba(0,0,0,.6),
    0 28px 48px -18px rgba(0,0,0,.65);
}

.hero-brief__item h3 { 
  font-size: clamp(1rem, .9rem + .55vw, 1.25rem);
  font-weight: 600;
  background: linear-gradient(90deg, hsl(calc(var(--active-color) + 10) 90% 70%), hsl(calc(var(--active-color) - 18) 90% 70%));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: .5px;
  filter: drop-shadow(0 6px 12px hsl(calc(var(--active-color) + 10) 85% 60% / .25));
  margin: 0 0 .3rem 0;
}

.hero-brief__item p { 
  font-size: clamp(.82rem, .78rem + .35vw, .98rem);
  line-height: 1.5;
  color: hsl(220 15% 86% / .9);
  margin: 0;
}

.hero-brief__cta { 
  display: flex;
  justify-content: center;
}

.hero-brief__cta .dual-button { 
  --btn-scale: 1.06;
  transform: translateZ(0);
}

/* Ensure the hero brief spans full width in the 2-col grid layout used by split-showcase-wrapper */
@media (min-width: 1100px) {
  .split-showcase-wrapper > .hero-brief { 
    grid-column: 1 / -1; /* span both columns */
    width: 100%;
    justify-self: center;
  }
  /* Optional: align internal glass container with showcase max width */
  .split-showcase-wrapper > .hero-brief .hero-brief__glass { 
    max-width: var(--split-max-width, 1600px);
    margin-inline: auto;
  }
}

/* Scroll fade-in animation similar to showcase sections */
.hero-brief { opacity: 0; animation: heroBriefFade .9s cubic-bezier(.3,.8,.25,1) .05s forwards; }
@keyframes heroBriefFade { to { opacity: 1; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-brief, .hero-brief__item { animation: none !important; transition: none !important; }
}

/* Touch / mobile lighten heavy effects */
@media (hover: none) and (pointer: coarse) {
  .hero-brief__glass { backdrop-filter: blur(22px) saturate(1.2); }
  .hero-brief__item { backdrop-filter: blur(18px) saturate(1.15); }
}
