/* ==========================================================================
   Homepage (/): sections used only here. Linked after main.css on that page.
   Shared pieces it builds on (cover hero, media split, banner, text links)
   live in components.css.
   ========================================================================== */

/* ---- 1. Hero: text on a lavender field matched to the beauty shot's own
   backdrop; the photo shows its whole composition, edges faded into the field.
   Phones and tablets: text, then the full photo. Desktop (64em+): text | photo. ---- */
.home-hero {
  background-color: var(--color-surface-white);
  /* The photo's blue at the top, easing to white so the hero flows into the
     white section below */
  background-image: linear-gradient(180deg, var(--color-hero-mist) 0%, var(--color-hero-mist-top) 45%, var(--color-surface-white) 100%);
}

.home-hero .hero-panel__content {
  padding-bottom: var(--space-12);
}

.home-hero .hero-panel__media {
  min-height: 0;
  aspect-ratio: 1678 / 937; /* the photo's own shape: nothing is cropped */
}

.home-hero .hero-panel__image {
  object-position: center;
  /* Soft top edge where the photo meets the text, and the floor fading into white */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 72%, transparent);
}

/* Tablet: still stacked; the text keeps the page inset */
@media (min-width: 48em) and (max-width: 63.99em) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-left: 0;
  }

  .home-hero .hero-panel__content {
    padding-inline: var(--page-inline);
  }

  .home-hero .hero-panel__content > * {
    max-width: 40rem;
  }
}

@media (min-width: 64em) {
  /* Nearly a full screen tall, with the photo given the larger share */
  /* Text sits closer to the left edge than the rest of the page (half the
     usual inset); the photo takes the larger share */
  .home-hero {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: center;
    min-height: clamp(40rem, 100svh, 56rem);
    padding-left: max(var(--space-panel), calc(var(--page-inline) / 2));
  }

  .home-hero .hero-panel__content {
    padding-right: 0;
  }

  /* Same specificity as the header-offset rule in layout.css, so this wins */
  .panel-stack > .home-hero .hero-panel__content {
    padding-block: calc(var(--space-16) + var(--header-height)) var(--space-16);
  }

  /* Pulled left under the text column's edge; the faded left side keeps the
     text readable where they meet */
  .home-hero .hero-panel__media {
    align-self: center;
    margin-top: var(--header-height); /* sits below the glass header */
    margin-left: calc(-1 * var(--space-16));
  }

  .home-hero .hero-panel__content {
    position: relative;
    z-index: 1;
  }

  /* Fade the left and top edges into the field; the right edge runs off-page */
  .home-hero .hero-panel__image {
    -webkit-mask-image:
      linear-gradient(to right, transparent, #000 16%),
      linear-gradient(to bottom, transparent, #000 10%, #000 74%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent, #000 16%),
      linear-gradient(to bottom, transparent, #000 10%, #000 74%, transparent);
    mask-composite: intersect;
  }
}

.home-hero .hero-panel__title {
  font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4.25rem);
}

.home-hero__lead {
  font-size: var(--text-lg);
  color: var(--color-text);
}

.home-hero__actions {
  gap: var(--space-4) var(--space-8);
}

/* ---- 2. What is Activance: editorial header, then a bento of tiles ---- */
.home-what {
  background-color: var(--color-surface-white);
}

.home-what__head {
  display: grid;
  gap: var(--space-5);
  justify-items: center;
  text-align: center;
  padding-bottom: var(--space-8);
  border-bottom: var(--border-width) solid var(--color-border);
}

.home-what__head > div > * + * {
  margin-top: var(--space-4);
}

.home-what__title {
  font-size: var(--text-3xl);
}

.home-what__lead {
  max-width: 60ch;
  margin-inline: auto;
  font-size: var(--text-lg);
  color: var(--color-text);
}

.home-what__bento {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.what-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

/* Video tile: fills its cell; a frosted caption floats on it */
.what-tile--video {
  align-self: start;
  aspect-ratio: 16 / 9;
  background-color: var(--color-surface-sage);
}

.what-tile__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.what-tile__caption {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: calc(100% - 2 * var(--space-4));
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-ink);
  background-color: var(--color-glass-solid);
  border: var(--border-width) solid var(--color-glass-edge);
  border-radius: var(--radius-full);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .what-tile__caption {
    background-color: var(--color-glass-strong);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
  }
}

/* Phones: the caption moves below the video as a plain note, so the small
   video stays fully visible */
@media (max-width: 47.99em) {
  .what-tile--video {
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 0;
    background-color: transparent;
  }

  .what-tile__video {
    position: static;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    background-color: var(--color-surface-sage);
  }

  .what-tile__caption {
    position: static;
    max-width: none;
    margin-top: var(--space-3);
    padding: 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    background: none;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* "Live" dot: a soft pulse beside the caption */
.what-tile__dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

/* How-it-works card */
.what-tile--how {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: visible;
  border-radius: 0;
}

.what-tile--how > p {
  color: var(--color-text-muted);
}

/* Same look as the section title, "What is Activance?" */
.what-tile__title {
  font-size: var(--text-3xl);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
}

.what-steps {
  display: grid;
  margin-top: var(--space-2);
  padding: 0;
  list-style: none;
  counter-reset: what-step;
}

.what-steps__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-3);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-ink);
  border-top: var(--border-width) solid var(--color-border-strong);
  counter-increment: what-step;
}

.what-steps__item::after {
  content: counter(what-step, decimal-leading-zero);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
}

.what-steps__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.125rem;
  color: var(--color-primary);
  background-color: var(--color-surface-lilac);
  border-radius: var(--radius-full);
}

/* Closing strip: grained lilac, text | buttons */
.what-tile--strip {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding-top: var(--space-8);
  overflow: visible;
  border-top: var(--border-width) solid var(--color-border);
  border-radius: 0;
}

.what-tile__strip-text {
  max-width: 60ch;
  color: var(--color-text);
}

.what-tile__links {
  gap: var(--space-4) var(--space-8);
}

@media (min-width: 48em) {
    .what-tile__caption {
    left: var(--space-6);
    bottom: var(--space-6);
  }
}

@media (min-width: 64em) {
  .home-what__bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-8) var(--space-12);
  }

  /* How it works (5 columns) on the left; the video (7) on the right fills
     the same height, top and bottom aligned with the text */
  .what-tile--how {
    grid-column: span 5;
  }

  .what-tile--video {
    grid-column: span 7;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 22rem;
  }

  /* The closing strip runs underneath both: text | links */
  .what-tile--strip {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-10);
  }

  .what-tile__links {
    justify-content: flex-end;
  }
}

/* Small laptops: an even split keeps the text column short, so the video
   that matches its height isn't cropped into a tall, zoomed-in frame */
@media (min-width: 64em) and (max-width: 79.99em) {
  .what-tile--how,
  .what-tile--video {
    grid-column: span 6;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes what-pulse {
    0% { box-shadow: 0 0 0 0 var(--color-lilac-soft); }
    70% { box-shadow: 0 0 0 0.6rem transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
  }

  .what-tile__dot {
    animation: what-pulse 2.2s ease-out infinite;
  }

  /* Steps slide in one after another once the card is revealed */
  .has-reveal .what-steps__item {
    opacity: 0;
    transform: translateX(1.25rem);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  }

  .has-reveal .what-tile--how.is-visible .what-steps__item {
    opacity: 1;
    transform: none;
  }

  .has-reveal .what-tile--how.is-visible .what-steps__item:nth-child(1) { transition-delay: 350ms; }
  .has-reveal .what-tile--how.is-visible .what-steps__item:nth-child(2) { transition-delay: 500ms; }
  .has-reveal .what-tile--how.is-visible .what-steps__item:nth-child(3) { transition-delay: 650ms; }

  .what-steps__icon {
    transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
  }

  .what-steps__item:hover .what-steps__icon {
    color: var(--color-on-primary);
    background-color: var(--color-primary);
  }

}

/* ---- 3. What Activance can treat: frosted cards on a grained lilac field ---- */
.home-treat {
  position: relative;
  isolation: isolate;
}

.home-treat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--texture-noise);
  background-size: 180px;
  opacity: 0.08;
  pointer-events: none;
}

.concern-cards {
  display: grid;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.concern-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 13rem;
  padding: var(--space-6);
  overflow: hidden;
  background-color: var(--color-surface-white);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

/* Photo across the top of the card, edge to edge */
.concern-card__image {
  display: block;
  width: calc(100% + 2 * var(--space-6));
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-1);
  object-fit: cover;
  background-color: var(--color-surface-sage);
}

.concern-card__title {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

.concern-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  text-decoration: none;
}

/* The whole card is the link's touch target */
.concern-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.concern-card:has(.concern-card__link:focus-visible) {
  outline: var(--focus-ring-width) solid var(--color-focus);
  outline-offset: var(--focus-ring-offset);
}

.concern-card__link:focus-visible {
  outline: none;
}

.concern-card--note {
  justify-content: center;
  background-color: transparent;
  border: var(--border-width) dashed var(--color-border-strong);
  box-shadow: none;
}

.concern-card--note p {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-ink);
}

.concern-card--note .concern-card__link {
  margin-top: 0;
}

@media (min-width: 48em) {
  .concern-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .concern-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }
}

/* ---- 4. The range: a compact tabbed showcase ----
   Without JS: the four panels stack. With JS (.is-enhanced): tab list | one panel.
   Phones: tabs scroll sideways as pills above the panel. */
#range {
  background-color: var(--color-surface-white);
}

.range-tabs {
  display: grid;
  gap: var(--space-6);
}

.range-tabs__list {
  display: flex;
  gap: var(--space-2);
  margin-inline: calc(-1 * var(--space-panel));
  padding: var(--space-1) var(--space-panel);
  overflow-x: auto;
  scrollbar-width: none;
}

.range-tabs__list::-webkit-scrollbar {
  display: none;
}

.range-tabs__tab {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--tap-target-min);
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-body);
  text-align: left;
  color: var(--color-ink);
  background-color: var(--color-surface-white);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition:
    background-color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard);
}

.range-tabs__tab:hover {
  border-color: var(--color-primary);
}

.range-tabs__tab[aria-selected="true"] {
  color: var(--color-on-primary);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.range-tabs__num {
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  opacity: 0.7;
}

.range-tabs__tab-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

/* The "For …" line shows in the desktop list only */
.range-tabs__tab-for {
  display: none;
}

/* Panel: photo | text */
.range-tabs__panel {
  display: grid;
  overflow: hidden;
  background-color: var(--color-surface-white);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xl);
}

.range-tabs__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-surface-sage);
}

.range-tabs__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.range-tabs__body {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
}

.range-tabs__for {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
}

.range-tabs__name {
  margin-top: var(--space-2);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
}

.range-tabs__facts {
  margin: var(--space-2) 0 var(--space-6);
}

.range-tabs__facts dt {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.range-tabs__facts dd {
  margin: var(--space-1) 0 0;
  font-size: var(--text-sm);
}

.range-tabs__body .text-link {
  align-self: flex-start;
  margin-top: auto;
}

@media (min-width: 48em) {
  .range-tabs__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }

  .range-tabs__media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .range-tabs__body {
    padding: var(--space-8);
  }
}

/* Desktop: a vertical list beside the panel */
@media (min-width: 64em) {
  /* The list and the panel share one height: four equal rows down the left,
     top and bottom lines level with the panel's edges */
  .range-tabs.is-enhanced {
    grid-template-columns: minmax(16rem, 1fr) minmax(0, 3fr);
    gap: var(--space-8);
    align-items: stretch;
  }

  .range-tabs__list {
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    border-top: var(--border-width) solid var(--color-border);
    border-bottom: var(--border-width) solid var(--color-border);
  }

  /* Fixed number column, so every product name starts on the same line */
  .range-tabs__tab {
    position: relative;
    display: grid;
    flex: 1 1 0;
    grid-template-columns: 2rem minmax(0, 1fr);
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
    background-color: transparent;
    border: 0;
    border-radius: 0;
  }

  .range-tabs__tab + .range-tabs__tab {
    border-top: var(--border-width) solid var(--color-border);
  }

  /* Active marker: a violet bar that grows on the left */
  .range-tabs__tab::before {
    content: "";
    position: absolute;
    top: var(--space-3);
    bottom: var(--space-3);
    left: 0;
    width: 3px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    transform: scaleY(0);
    transition: transform var(--duration-base) var(--ease-out);
  }

  .range-tabs__tab:hover,
  .range-tabs__tab[aria-selected="true"] {
    color: var(--color-ink);
    background-color: var(--color-surface-lilac);
  }

  .range-tabs__tab[aria-selected="true"]::before {
    transform: scaleY(1);
  }

  .range-tabs__tab-text {
    display: grid;
    gap: var(--space-1);
  }

  .range-tabs__tab-name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-medium);
    line-height: var(--leading-tight);
  }

  .range-tabs__tab-for {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
  }

  .range-tabs__tab[aria-selected="true"] .range-tabs__num {
    color: var(--color-primary);
    opacity: 1;
  }

  .range-tabs.is-enhanced .range-tabs__panel {
    min-height: 30rem;
  }
}

/* ---- Scroll-driven mode (desktop; Site.tabs adds .is-scroll-driven) ----
   The track is tall; the stage pins below the header while it scrolls past, and
   each product gets an equal stretch of scrolling. --range-count and
   --range-progress (0-1) come from JS. */
.range-scroll.is-scroll-driven {
  height: calc(100vh + var(--range-count, 4) * 55vh);
}

.range-scroll.is-scroll-driven .range-scroll__stage {
  position: sticky;
  top: var(--header-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  padding-block: var(--space-8);
}

.range-scroll.is-scroll-driven .section-header {
  margin-bottom: var(--space-8);
}

/* Equal panel height for every product, so the stage doesn't jump */
.range-scroll.is-scroll-driven .range-tabs__panel {
  min-height: min(30rem, calc(100vh - 16rem));
}

/* Progress line down the left of the list: a faint track and a violet fill */
.range-scroll.is-scroll-driven .range-tabs__list {
  position: relative;
}

.range-scroll.is-scroll-driven .range-tabs__list::before,
.range-scroll.is-scroll-driven .range-tabs__list::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  border-radius: var(--radius-full);
  pointer-events: none;
}

.range-scroll.is-scroll-driven .range-tabs__list::before {
  background-color: var(--color-border);
}

.range-scroll.is-scroll-driven .range-tabs__list::after {
  background-color: var(--color-primary);
  transform: scaleY(var(--range-progress, 0));
  transform-origin: top;
}

/* The per-tab bar is replaced by the progress line in this mode */
.range-scroll.is-scroll-driven .range-tabs__tab::before {
  display: none;
}

/* ---- Phones and tablets: snap the pills, tighter panel type ---- */
@media (max-width: 63.99em) {
  .range-tabs__list {
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--space-panel);
  }

  .range-tabs__tab {
    scroll-snap-align: center;
  }
}

@media (max-width: 47.99em) {
  .range-tabs__name {
    font-size: var(--text-2xl);
  }

  .range-tabs__body {
    padding: var(--space-5);
  }

  .range-tabs__media {
    aspect-ratio: 4 / 3;
  }
}

/* Switching animation: the photo settles in while the text rises */
@keyframes range-photo-in {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: none; }
}

@keyframes range-text-in {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .range-tabs__panel.is-entering .range-tabs__image {
    animation: range-photo-in 700ms var(--ease-out) both;
  }

  .range-tabs__panel.is-entering .range-tabs__body > * {
    animation: range-text-in 550ms var(--ease-out) both;
  }

  .range-tabs__panel.is-entering .range-tabs__body > :nth-child(2) { animation-delay: 60ms; }
  .range-tabs__panel.is-entering .range-tabs__body > :nth-child(3) { animation-delay: 120ms; }
  .range-tabs__panel.is-entering .range-tabs__body > :nth-child(4) { animation-delay: 180ms; }

  .range-tabs__image {
    transition: transform 900ms var(--ease-out);
  }

  .range-tabs__media:hover .range-tabs__image {
    transform: scale(1.04);
  }
}

/* ---- 5. Why choose Activance: white flowing into the brand purple, with
   deep-violet glass cards that light up under the pointer ---- */
.home-why {
  position: relative;
  isolation: isolate;
  color: var(--color-on-primary);
  background-color: var(--color-why-light);
  /* White easing into a light purple */
  background-image: linear-gradient(180deg, var(--color-surface-white) 0%, var(--color-lilac-soft) 35%, var(--color-why-light) 100%);
}


.home-why::before,
.home-why::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.home-why::before {
  background-image: var(--texture-noise);
  background-size: 180px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

/* Soft lilac glow in the top-right corner */
.home-why::after {
  background-image: radial-gradient(circle at 88% 0%, var(--color-surface-periwinkle), transparent 45%);
  opacity: 0.22;
}

.home-why .eyebrow {
  color: var(--color-text-muted);
}

.home-why h2 {
  color: var(--color-ink);
}

.home-why__intro > * + * {
  margin-top: var(--space-4);
}

.home-why__list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding: 0;
  list-style: none;
  counter-reset: why;
}

.home-why__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  justify-content: space-between;
  min-height: 12rem;
  padding: var(--space-6);
  /* --spot-x / --spot-y follow the pointer (Site.spotlight) */
  background-color: var(--color-why-card);
  background-image: radial-gradient(22rem circle at var(--spot-x, 50%) var(--spot-y, -50%), var(--color-shine), transparent 60%);
  border: var(--border-width) solid var(--color-glass-dark-edge);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  counter-increment: why;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .home-why__item {
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
  }
}

/* Border that brightens near the pointer: a gradient ring masked to the edge */
.home-why__item::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--border-width));
  padding: var(--border-width);
  border-radius: inherit;
  background-image: radial-gradient(14rem circle at var(--spot-x, 50%) var(--spot-y, -50%), var(--color-shine-edge), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-standard);
}

.home-why__item:hover::before {
  opacity: 1;
}

.home-why__item::after {
  content: counter(why, decimal-leading-zero);
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-on-dark-muted);
}

.home-why__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  font-size: 1.375rem;
  color: var(--color-on-primary);
  background-color: var(--color-glass-dark);
  border: var(--border-width) solid var(--color-glass-dark-edge);
  border-radius: var(--radius-full);
}

.home-why__item p {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-on-primary);
}

@media (min-width: 48em) {
  .home-why__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-why__item:last-child {
    grid-column: 1 / -1;
  }
}

/* Bento: three across, then two wider cards */
@media (min-width: 64em) {
  .home-why__list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .home-why__item {
    grid-column: span 2;
  }

  .home-why__item:nth-child(n+4),
  .home-why__item:last-child {
    grid-column: span 3;
  }
}

/* ---- 6. Closing CTA: the banner's tagline is the section heading ---- */
.banner-panel .banner-panel__tagline {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}

/* ---- Motion ----
   The cards are also scroll-reveal items: once revealed (.is-visible), their
   transition switches to quick hover timing, and hover selectors include the
   revealed state so they outrank the reveal's "transform: none". */
@media (prefers-reduced-motion: no-preference) {
  .concern-card,
  .home-why__item,
  .has-reveal .concern-card.is-visible,
  .has-reveal .home-why__item.is-visible {
    transition:
      transform var(--duration-base) var(--ease-out),
      box-shadow var(--duration-base) var(--ease-standard),
      border-color var(--duration-base) var(--ease-standard),
      opacity var(--duration-reveal) var(--ease-out);
  }

  .concern-card:has(.concern-card__link):hover,
  .has-reveal .concern-card.is-visible:has(.concern-card__link):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .concern-card__image {
    transition: transform 900ms var(--ease-out);
  }

  .concern-card:hover .concern-card__image {
    transform: scale(1.04);
  }

  .home-why__item:hover {
    border-color: var(--color-on-dark-muted);
  }
}
