/* Section-level art direction and interaction polish. */
.section[data-section-label] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section[data-section-label] > .shell {
  position: relative;
  z-index: 2;
}

.section[data-section-label]::before {
  content: attr(data-section-label);
  position: absolute;
  z-index: 1;
  top: 2rem;
  right: var(--gutter);
  color: rgba(11, 11, 12, .34);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section--navy[data-section-label]::before {
  color: rgba(255, 255, 255, .38);
}

/* 01 — Why Labs: a purposeful editorial opening. */
.statement {
  background:
    radial-gradient(circle at 8% 88%, rgba(51, 192, 204, .12), transparent 25rem),
    linear-gradient(135deg, #fff 0%, #fff 68%, #f4f5f8 100%);
}

.statement::after {
  content: "01";
  position: absolute;
  z-index: 0;
  right: -1.5rem;
  bottom: -8rem;
  color: transparent;
  font-size: clamp(18rem, 38vw, 40rem);
  font-weight: 700;
  letter-spacing: -.1em;
  line-height: .75;
  -webkit-text-stroke: 1px rgba(43, 50, 82, .08);
}

.statement__grid > .eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.statement__grid > .eyebrow::before {
  content: "";
  width: .6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 0 .45rem rgba(51, 192, 204, .12);
}

.statement__note {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 0;
  border-radius: 1.4rem;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 1.5rem 4rem rgba(43, 50, 82, .18);
}

.statement__note::after {
  content: "";
  position: absolute;
  width: 11rem;
  aspect-ratio: 1;
  right: -5rem;
  bottom: -6rem;
  border: 1px solid rgba(51, 192, 204, .45);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(51, 192, 204, .05), 0 0 0 4rem rgba(51, 192, 204, .03);
}

.statement__note span { color: var(--turquoise); }
.statement__note p { position: relative; z-index: 1; color: rgba(255, 255, 255, .78); }

/* 02 — Product showcases: each product has a stage, not merely a card. */
.featured {
  padding-bottom: calc(var(--section) + 3rem);
  background:
    linear-gradient(rgba(43, 50, 82, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 50, 82, .035) 1px, transparent 1px),
    radial-gradient(circle at 85% 18%, rgba(51, 192, 204, .14), transparent 27rem),
    var(--paper-soft);
  background-size: 5rem 5rem, 5rem 5rem, auto, auto;
}

.featured .section-heading h2::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: .35rem;
  margin-top: 1.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy) 0 70%, var(--turquoise) 70%);
}

.feature {
  position: relative;
  border: 0;
  border-radius: 2rem;
  box-shadow: 0 1.6rem 4.5rem rgba(20, 25, 45, .12);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}

.feature:hover {
  transform: translateY(-.45rem);
  box-shadow: 0 2.2rem 5.5rem rgba(20, 25, 45, .18);
}

.feature__visual { position: relative; }
.feature__visual::before {
  content: "Product view";
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: .45rem .7rem;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(11, 11, 12, .68);
  color: #fff;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.feature__visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 -25%;
  width: 20%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(51, 192, 204, .25), transparent);
  transform: skewX(-12deg);
  pointer-events: none;
}

.feature:hover .feature__visual::after { animation: productScan 1.25s var(--ease); }

.feature--sm { grid-template-columns: minmax(0, 1.35fr) minmax(22rem, .65fr); background: var(--navy); color: #fff; }
.feature--sm .feature__copy { position: relative; }
.feature--sm .feature__copy::before {
  content: "";
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: .55rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 1.4rem var(--turquoise);
  animation: statusPulse 2.8s ease-in-out infinite;
}
.feature--sm .product-meta span { border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .62); }
.feature--sm .feature__lead { color: var(--turquoise); }
.feature--sm .feature__copy > p:not(.feature__lead) { color: rgba(255, 255, 255, .68); }

.feature-pair { align-items: start; }
.feature-pair .feature:nth-child(2) { margin-top: 4rem; }
.feature--stack { min-height: 48rem; }
.feature--stack .feature__visual { border-bottom: 1px solid var(--line); }

/* 03 — Portfolio: an explorable field of product signals. */
.portfolio {
  background:
    radial-gradient(circle at 8% 20%, rgba(43, 50, 82, .1), transparent 24rem),
    radial-gradient(circle at 92% 86%, rgba(51, 192, 204, .12), transparent 28rem),
    #f8f9f9;
}

.portfolio::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .38;
  background-image: radial-gradient(rgba(43, 50, 82, .18) .75px, transparent .75px);
  background-size: 1.3rem 1.3rem;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}

.filters { position: relative; z-index: 2; }
.filter { background: rgba(255, 255, 255, .72); backdrop-filter: blur(12px); }
.filter:hover, .filter.is-active { background: var(--navy); }

.product-grid {
  position: relative;
  z-index: 1;
  gap: 1rem;
  border: 0;
}

.product-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(43, 50, 82, .1);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 .8rem 2rem rgba(24, 30, 48, .045);
  backdrop-filter: blur(10px);
}

.product-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 16rem;
  aspect-ratio: 1;
  top: -10rem;
  right: -9rem;
  border: 1px solid color-mix(in srgb, var(--card-accent) 35%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem color-mix(in srgb, var(--card-accent) 4%, transparent), 0 0 0 5rem color-mix(in srgb, var(--card-accent) 2%, transparent);
  transition: transform .7s var(--ease);
}

.product-card.is-visible:hover {
  transform: translateY(-.6rem);
  box-shadow: 0 1.6rem 3.8rem rgba(24, 30, 48, .16);
}

.product-card:hover::before { transform: scale(1.25) translate(-1rem, 1rem); }
.product-card__body { position: relative; z-index: 1; }
.product-card a span { transition: transform .25s var(--ease); }
.product-card a:hover span { transform: translate(.2rem, -.2rem); }

.product-card--pos {
  grid-column: span 2;
  min-height: 31rem;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .04), transparent 55%),
    var(--navy);
  color: #fff;
  box-shadow: 0 1.8rem 4rem rgba(43, 50, 82, .22);
}

.product-card--pos::before {
  width: 29rem;
  top: -15rem;
  right: -8rem;
  border-color: rgba(51, 192, 204, .55);
  box-shadow: 0 0 0 4rem rgba(51, 192, 204, .045), 0 0 0 8rem rgba(51, 192, 204, .025);
}

.product-card--pos .product-card__number,
.product-card--pos .product-card__category { color: var(--turquoise); }
.product-card--pos p:not(.product-card__category) { max-width: 36rem; color: rgba(255, 255, 255, .7); }
.product-card--pos h3 { font-size: clamp(3.4rem, 6vw, 6.2rem); }
.product-card--pos:hover {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .04), transparent 55%),
    var(--navy);
}

/* 04 — Method: connected stations in a living process. */
.method {
  background:
    linear-gradient(rgba(51, 192, 204, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 192, 204, .045) 1px, transparent 1px),
    radial-gradient(circle at 18% 110%, rgba(51, 192, 204, .2), transparent 28rem),
    var(--navy-deep);
  background-size: 4rem 4rem, 4rem 4rem, auto, auto;
}

.method::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 58%;
  left: -20%;
  width: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--turquoise));
  box-shadow: .4rem 0 .8rem var(--turquoise);
  animation: methodSignal 11s linear infinite;
}

.method-list { gap: .75rem; border: 0; }
.method-list li {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, .025);
  backdrop-filter: blur(8px);
  transition: transform .45s var(--ease), background .45s, border-color .45s;
}

.method-list li:nth-child(even) { margin-top: 3rem; }
.method-list li::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 6rem;
  aspect-ratio: 1;
  border: 1px solid rgba(51, 192, 204, .3);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .4s, transform .5s var(--ease);
}
.method-list li:hover { transform: translateY(-.5rem); border-color: rgba(51, 192, 204, .55); background: rgba(51, 192, 204, .08); }
.method-list li:hover::after { opacity: 1; transform: scale(1); }

/* 05 — House: make the engine system feel connected and dimensional. */
.house {
  background:
    radial-gradient(circle at 85% 35%, rgba(43, 50, 82, .11), transparent 31rem),
    linear-gradient(110deg, #fff 0 40%, #f5f6f8 40% 100%);
}

.house::after {
  content: "05";
  position: absolute;
  z-index: 0;
  left: -3rem;
  bottom: -5rem;
  color: rgba(43, 50, 82, .035);
  font-size: clamp(18rem, 34vw, 36rem);
  font-weight: 700;
  letter-spacing: -.12em;
  line-height: .75;
}

.house__intro { position: relative; z-index: 2; }
.house__intro::before {
  content: "";
  display: block;
  width: 3.8rem;
  height: .3rem;
  margin-bottom: 2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--turquoise) 0 30%, var(--navy) 30%);
}

.engine-map {
  position: relative;
  gap: .75rem;
  padding: .75rem;
  border: 1px solid rgba(43, 50, 82, .1);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 2rem 6rem rgba(43, 50, 82, .14);
  backdrop-filter: blur(14px);
}

.engine-map::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2rem;
  border-radius: 2.5rem;
  background-image: radial-gradient(rgba(43, 50, 82, .22) .7px, transparent .7px);
  background-size: 1.15rem 1.15rem;
  mask-image: radial-gradient(circle, #000, transparent 72%);
}

.engine {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: .9rem;
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 1px rgba(43, 50, 82, .1);
  transition: transform .4s var(--ease), box-shadow .4s, background .4s, color .4s;
}

a.engine:hover {
  z-index: 2;
  transform: translateY(-.4rem) scale(1.015);
  box-shadow: 0 1.2rem 2.8rem rgba(20, 25, 45, .16);
}

.engine.is-current {
  position: relative;
  min-height: 16rem;
  background:
    radial-gradient(circle at 88% 18%, rgba(51, 192, 204, .16), transparent 12rem),
    var(--navy);
  box-shadow: 0 1.5rem 3.5rem rgba(43, 50, 82, .3);
}

.engine.is-current::after {
  content: "";
  position: absolute;
  width: 18rem;
  aspect-ratio: 1;
  right: -7rem;
  bottom: -11rem;
  border: 1px solid rgba(51, 192, 204, .5);
  border-radius: 50%;
  box-shadow: 0 0 0 2.7rem rgba(51, 192, 204, .04), 0 0 0 5.4rem rgba(51, 192, 204, .025);
  animation: orbitBreathe 7s ease-in-out infinite alternate;
}

.engine.is-current > * { position: relative; z-index: 1; }

.invitation {
  background:
    radial-gradient(circle at 50% 115%, rgba(51, 192, 204, .2), transparent 35rem),
    radial-gradient(circle at 90% 0%, rgba(43, 50, 82, .9), transparent 34rem),
    var(--ink);
}

@keyframes productScan {
  0% { left: -25%; opacity: 0; }
  20% { opacity: 1; }
  100% { left: 115%; opacity: 0; }
}

@keyframes statusPulse {
  0%, 100% { transform: scale(.82); opacity: .55; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes methodSignal {
  to { left: 105%; }
}

@keyframes orbitBreathe {
  to { transform: scale(1.08) translate(-.7rem, -.7rem); opacity: .75; }
}

@media (max-width: 1080px) {
  .feature--sm { grid-template-columns: 1.1fr .9fr; }
  .product-card--pos { grid-column: span 2; }
}

@media (max-width: 820px) {
  .section[data-section-label]::before { top: 1.25rem; }
  .feature--sm { grid-template-columns: 1fr; }
  .feature-pair .feature:nth-child(2) { margin-top: 0; }
  .feature--stack { min-height: auto; }
  .method-list li:nth-child(even) { margin-top: 0; }
  .house { background: linear-gradient(150deg, #fff, #f5f6f8); }
}

@media (max-width: 580px) {
  .section[data-section-label]::before { display: none; }
  .product-grid { gap: .75rem; }
  .product-card--pos { grid-column: auto; min-height: 25rem; }
  .product-card--pos h3 { font-size: clamp(3rem, 17vw, 4.8rem); }
  .statement__note { padding: 1.5rem; }
  .engine-map { padding: .5rem; gap: .5rem; }
  .engine.is-current { min-height: 12rem; }
}

@media (prefers-reduced-motion: reduce) {
  .feature:hover .feature__visual::after { animation: none; }
  .feature--sm .feature__copy::before,
  .method::before,
  .engine.is-current::after { animation: none; }
}
