/* Cinematic Wow layer — homepage components & chrome refinements */

/* ---- Animated icon buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  background: var(--color-green-dark);
  color: var(--color-white);
  transition: background var(--duration-ui) var(--ease-out), color var(--duration-ui) var(--ease-out),
    border-color var(--duration-ui) var(--ease-out), transform var(--duration-ui) var(--ease-out);
}

.btn:hover {
  background: var(--color-green-dark-deep);
}

.btn-sm {
  min-height: 42px;
  padding: 8px 16px 8px 14px;
  font-size: 0.8125rem;
}

.btn-yellow {
  background: var(--color-yellow);
  color: var(--color-black);
}

.btn-yellow:hover {
  background: var(--color-yellow-hover);
  color: var(--color-black);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgb(255 255 255 / 0.45);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.75);
}

.btn-dark {
  color: var(--color-ink);
  border-color: var(--color-line);
}

.btn-dark:hover {
  background: var(--color-paper);
  border-color: var(--color-green-light);
  color: var(--color-green-dark);
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.08);
  flex-shrink: 0;
  transition: transform var(--duration-ui) var(--ease-cinema), background var(--duration-ui) var(--ease-out);
}

.btn-yellow .btn-icon {
  background: rgb(0 0 0 / 0.1);
}

.btn-ghost .btn-icon {
  background: rgb(255 255 255 / 0.12);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

.btn-icon-only {
  appearance: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
  transition: border-color var(--duration-ui) var(--ease-out), background var(--duration-ui) var(--ease-out);
}

.btn-icon-only:hover {
  border-color: var(--color-green-light);
  background: var(--color-green-light-soft);
}

/* ---- Heading system (cinematic) ---- */
.section-head h2 {
  position: relative;
  padding-bottom: 18px;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-yellow), var(--color-green-light));
}

.section-head--split h2::after {
  bottom: -2px;
}

.heading-em {
  color: var(--color-green-dark);
  font-weight: 700;
}

.hero-cinema .heading-em,
.sequence .heading-em,
.structure .heading-em,
.proof .heading-em,
.close .heading-em {
  color: var(--color-green-light);
}

.hero-cinema .hero-title {
  font-size: var(--display);
  line-height: 0.98;
  font-weight: 750;
  letter-spacing: var(--tracking-display);
}

.hero-cinema .hero-title .line-emphasis > span {
  color: #d8efc8;
  font-style: italic;
  font-weight: 650;
}

.app-copy h3,
.stack-body strong,
.brief-trigger,
.faq-trigger {
  letter-spacing: var(--tracking-title);
}

.app-copy h3 {
  font-size: var(--title-sm);
  font-weight: 700;
  line-height: 1.15;
}

.close h2 {
  font-size: var(--display);
  letter-spacing: var(--tracking-display);
  font-weight: 750;
  line-height: 1.02;
}

.proof .section-head h2::after {
  background: linear-gradient(90deg, var(--color-yellow), var(--color-green-light));
}

.sequence .section-head h2::after,
.structure .section-head h2::after,
.close .section-head h2::after {
  background: linear-gradient(90deg, var(--color-yellow), var(--color-green-light));
}

/* Header CTA uses btn — hide on small screens (drawer has CTA) */
.site-header .header-cta {
  display: none;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .site-header .header-cta {
    display: inline-flex;
  }
}

.drawer-cta {
  margin-top: 16px;
  width: fit-content;
}

.footer-cta {
  display: inline-flex !important;
  margin-top: 4px;
  width: fit-content;
}

/* ---- Cinematic video hero ---- */
.hero-cinema {
  position: relative;
  min-height: min(72vh, 640px);
  margin-top: calc(var(--header-height) * -1);
  padding: calc(var(--header-height) + 28px) 0 56px;
  display: flex;
  align-items: flex-end;
  overflow: clip;
  background: var(--color-green-dark-deep);
  color: var(--color-on-dark);
}

@media (max-height: 520px) {
  .hero-cinema {
    min-height: 0;
    padding-bottom: 36px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg .hero-poster,
.hero-bg .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg .hero-poster {
  z-index: 1;
  transition: opacity 0.4s ease;
}

.hero-bg .hero-poster.is-covered {
  opacity: 0;
  pointer-events: none;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgb(12 95 57 / 0.88) 0%, rgb(16 120 72 / 0.55) 48%, rgb(16 120 72 / 0.25) 100%),
    linear-gradient(180deg, rgb(12 95 57 / 0.35) 0%, transparent 40%, rgb(12 95 57 / 0.55) 100%);
}

.hero-cinema-inner {
  position: relative;
  z-index: 3;
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.hero-cinema .hero-copy {
  max-width: 36rem;
}

.hero-tag {
  margin: 0 0 14px;
  font-size: var(--text-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-green-light);
  font-weight: 650;
}

.hero-cinema .hero-title {
  font-size: var(--display);
  line-height: 1.05;
  font-weight: 650;
  max-width: none;
}

.hero-cinema .hero-title .line-emphasis > span {
  color: #d8efc8;
}

.hero-cinema .hero-accent {
  width: 72px;
  height: 2px;
  margin-top: 16px;
  background: var(--color-green-light);
}

.hero-cinema .lede {
  margin-top: 18px;
  color: var(--color-muted-dark);
  max-width: 32rem;
}

.hero-cinema .button-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cinema .hero-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(12 95 57 / 0.75);
  color: var(--color-white);
  border-radius: var(--radius-control);
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}

@media (min-width: 900px) {
  .hero-cinema {
    min-height: min(78vh, 720px);
    align-items: center;
    padding-bottom: 72px;
  }

  .hero-cinema .hero-copy {
    max-width: 42rem;
  }
}

/* ---- Marquee ---- */
.marquee {
  background: var(--color-green-dark);
  color: var(--color-on-dark);
  overflow: hidden;
  max-width: 100%;
  border-block: 1px solid var(--color-line-dark);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: marquee-scroll 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-yellow);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 16px 24px;
    padding-inline: var(--gutter);
  }
}

/* ---- Metrics — modern precision rail ---- */
.metrics {
  padding: 64px 0 72px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
}

.metrics-rail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.metric {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 10px;
  padding: 24px 0 28px 8px;
  background: transparent;
  overflow: visible;
}

.metric + .metric {
  border-top: 1px solid var(--color-line);
}

.metric-kicker {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  padding-top: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-green-dark);
  opacity: 0.7;
}

.metric-figure {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.metric-value {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(2.5rem, 1.8rem + 4vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.88;
  background: linear-gradient(145deg, var(--color-green-dark) 12%, var(--color-green-light) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-unit {
  font-size: 0.38em;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-left: 1px;
  align-self: flex-start;
  padding-top: 0.18em;
}

.metric-label {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  max-width: 18ch;
  color: var(--color-ink);
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 500;
}

.metric-rule {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, var(--color-yellow), var(--color-green-light));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.55s var(--ease-cinema);
}

.metric:hover .metric-rule,
.metric.is-counted .metric-rule {
  transform: scaleY(1);
}

.metric:hover .metric-kicker {
  opacity: 1;
}

@media (min-width: 860px) {
  .metrics-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .metric {
    padding: 28px 20px 32px 12px;
    min-height: 0;
    align-content: end;
  }

  .metric + .metric {
    border-top: 0;
    border-left: 1px solid var(--color-line);
  }

  .metric-label {
    max-width: 16ch;
  }
}

@media (min-width: 1100px) {
  .metric {
    padding: 36px 28px 40px 12px;
    min-height: 180px;
  }

  .metric-label {
    max-width: 14ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .metric-rule {
    transition: none;
    transform: scaleY(1);
  }
}

/* ---- Sequence chrome elevate ---- */
.sequence {
  background: var(--color-green-dark-deep);
  padding: 64px 0 72px;
}

.sequence-pin {
  width: min(100%, calc((100svh - var(--header-height) - 140px) * 16 / 9));
  max-width: 100%;
  margin-inline: auto;
  display: grid;
  gap: 16px;
}

.sequence-stage {
  width: 100%;
  max-height: none;
  border-radius: var(--radius-media);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.25);
}

.sequence-caption {
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-white);
}

.sequence-static {
  width: 100%;
  max-width: none;
  margin-top: 0;
  text-align: left;
}

/* ---- Product tabs + stackable cards ---- */
.catalogue {
  position: relative;
  padding: 72px 0 56px;
  background: var(--color-paper);
  overflow-x: clip;
  overflow-y: visible;
}

.catalogue::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgb(16 120 72 / 0.08) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}

.product-tabs {
  position: relative;
  z-index: 1;
}

.product-tabs .tab-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 6px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  margin-bottom: 36px;
  position: relative;
}

@media (min-width: 800px) {
  .product-tabs .tab-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-tabs .tab-list [role="tab"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px 0;
  border-radius: 14px;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--color-muted);
  z-index: 1;
  box-sizing: border-box;
}

.product-tabs .tab-list [role="tab"][aria-selected="true"] {
  color: var(--color-ink);
}

.tab-label {
  text-align: center;
  line-height: 1.2;
}

.tab-ico {
  flex-shrink: 0;
  opacity: 0.7;
}

.product-tabs .tab-indicator {
  position: absolute;
  left: 6px;
  top: 6px;
  height: auto;
  background: var(--color-green-light-soft);
  border: 1px solid rgb(104 184 72 / 0.35);
  border-radius: 14px;
  z-index: 0;
  transition: transform 0.45s var(--ease-cinema), width 0.45s var(--ease-cinema), height 0.45s var(--ease-cinema);
}

/* True overlapping stack deck — accessible via side arrows */
.stack-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  max-width: 920px;
  margin-inline: auto;
  padding-bottom: 12px;
  padding-inline: 8px;
}

.stack-arrow {
  appearance: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgb(16 48 32 / 0.08);
  transition: background var(--duration-ui) var(--ease-out), border-color var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out);
  z-index: 5;
}

.stack-arrow:hover {
  background: var(--color-yellow);
  border-color: var(--color-yellow);
  transform: scale(1.05);
}

.stack-arrow:focus-visible {
  outline: 2px solid var(--color-green-light);
  outline-offset: 3px;
}

.stack-deck {
  position: relative;
  width: 100%;
  max-width: 580px;
  min-height: 520px;
  height: 520px;
  margin-inline: auto;
  perspective: 1400px;
  touch-action: pan-y;
  overflow: visible;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.stack-deck.is-dragging {
  cursor: grabbing;
}

.stack-deck--two {
  max-width: 540px;
  min-height: 500px;
  height: 500px;
}

.stack-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(94%, 500px);
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 40px rgb(16 48 32 / 0.12);
  transform-origin: 50% 100%;
  transform: translateX(-50%) translateY(calc(var(--i) * 22px)) scale(calc(1 - var(--i) * 0.04))
    rotate(calc(var(--i) * -3deg));
  z-index: calc(20 - var(--i));
  transition: transform 0.55s var(--ease-cinema), box-shadow 0.4s ease, border-color 0.3s ease,
    opacity 0.45s ease;
  will-change: transform;
  pointer-events: none;
}

.stack-card.is-front {
  pointer-events: auto;
  border-color: rgb(104 184 72 / 0.55);
  cursor: pointer;
  z-index: 25;
}

.stack-card.is-leaving {
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  transform: translateX(calc(-50% + 110%)) translateY(12px) rotate(12deg) scale(0.92);
}

.stack-card.is-entering {
  opacity: 0;
  transform: translateX(calc(-50% - 40%)) translateY(24px) rotate(-8deg) scale(0.94);
}

/* Peeking back cards become clickable when fanned / on hover of deck */
.stack-deck:hover .stack-card:not(.is-front),
.stack-deck.is-fanned .stack-card:not(.is-front),
.stack-deck:focus-within .stack-card:not(.is-front) {
  pointer-events: auto;
  cursor: pointer;
}

.stack-deck.is-fanned .stack-card,
.stack-deck:hover .stack-card,
.stack-deck:focus-within .stack-card {
  transform: translateX(calc(-50% + (var(--i) - 1) * 14%)) translateY(calc(var(--i) * 14px))
    scale(calc(1 - var(--i) * 0.02)) rotate(calc((var(--i) - 1) * 4deg));
  box-shadow: 0 28px 60px rgb(16 48 32 / 0.16);
}

.stack-deck.is-fanned .stack-card.is-front,
.stack-deck:hover .stack-card.is-front,
.stack-deck:focus-within .stack-card.is-front {
  z-index: 25;
}

.stack-deck.is-fanned .stack-card.is-leaving,
.stack-deck:hover .stack-card.is-leaving {
  transform: translateX(calc(-50% + 110%)) translateY(12px) rotate(12deg) scale(0.92);
}

.stack-media {
  flex: 0 0 auto;
  aspect-ratio: 16 / 11;
  width: 100%;
  background: linear-gradient(160deg, #eef4ef, #dfe8e1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.stack-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s var(--ease-cinema);
}

.stack-card.is-front .stack-media img {
  transform: scale(1.03);
}

.stack-body {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 24px;
  background: var(--color-white);
  border-top: 1px solid var(--color-line);
}

.stack-index {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-green-dark);
  font-weight: 700;
  line-height: 1;
}

.stack-body strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--color-ink);
}

.stack-body span:not(.stack-index):not(.stack-cta) {
  display: block;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.stack-cta {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 650;
  font-size: 0.85rem;
  color: var(--color-green-dark);
}

.stack-card.is-front .stack-cta {
  display: inline-flex;
}

.stack-card.is-front:hover .stack-cta svg {
  transform: translateX(3px);
}

.stack-cta svg {
  transition: transform var(--duration-ui) var(--ease-out);
}

.stack-status {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 899px) {
  .stack-stage {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: none;
    padding-inline: 0;
  }

  .stack-arrow {
    display: none;
  }

  .stack-deck,
  .stack-deck--two {
    height: auto;
    min-height: 0;
    display: grid;
    gap: 14px;
    perspective: none;
    max-width: none;
    cursor: auto;
    user-select: auto;
    -webkit-user-select: auto;
  }

  .stack-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none !important;
    z-index: auto;
    pointer-events: auto !important;
  }

  .stack-cta {
    display: inline-flex !important;
  }

  .stack-status {
    display: none;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .stack-arrow {
    width: 40px;
    height: 40px;
  }

  .stack-stage {
    gap: 8px;
  }

  .stack-deck.is-fanned .stack-card,
  .stack-deck:hover .stack-card,
  .stack-deck:focus-within .stack-card {
    transform: translateX(calc(-50% + (var(--i) - 1) * 8%)) translateY(calc(var(--i) * 14px))
      scale(calc(1 - var(--i) * 0.02)) rotate(calc((var(--i) - 1) * 3deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack-card {
    transition: none;
  }

  .stack-card.is-leaving,
  .stack-card.is-entering {
    opacity: 1;
    transform: translateX(-50%) translateY(calc(var(--i) * 22px)) scale(calc(1 - var(--i) * 0.04));
  }

  .stack-deck.is-fanned .stack-card,
  .stack-deck:hover .stack-card {
    transform: translateX(-50%) translateY(calc(var(--i) * 22px)) scale(calc(1 - var(--i) * 0.04));
  }
}

/* ---- Applications ---- */
.applications {
  padding: 72px 0;
  background: var(--color-white);
}

.app-visual {
  position: relative;
  border-radius: var(--radius-media);
  overflow: hidden;
}

.tag-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-control);
  background: rgb(255 255 255 / 0.92);
  color: var(--color-ink);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-copy .btn {
  margin-top: 18px;
}

/* ---- Proof / certs / voice stage ---- */
.proof {
  padding: 72px 0 88px;
  background: var(--color-ink);
  color: var(--color-on-dark);
  overflow-x: clip;
}

.proof .section-head .lede {
  color: var(--color-muted-dark);
}

.cert-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

@media (max-width: 379px) {
  .cert-row {
    grid-template-columns: 1fr;
  }

  .cert-badge {
    min-height: 0;
  }
}

@media (min-width: 800px) {
  .cert-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  background: rgb(255 255 255 / 0.04);
  border: 1px dashed rgb(255 255 255 / 0.2);
  border-radius: var(--radius-card);
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--color-muted-dark);
}

.cert-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-green-light), var(--color-yellow));
  flex-shrink: 0;
  opacity: 0.9;
}

.voice-stage {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  padding-top: 24px;
}

.voice-ornament {
  position: absolute;
  left: -8px;
  top: -20px;
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: 0.8;
  font-weight: 700;
  color: var(--color-green-light);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.voice-stack {
  position: relative;
  min-height: clamp(300px, 58vw, 380px);
  perspective: 1200px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.voice-stack.is-dragging {
  cursor: grabbing;
}

.voice-card {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 40px 36px 36px;
  background: linear-gradient(145deg, #163d2c, #0f2a1e);
  border: 1px solid rgb(104 184 72 / 0.28);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.35);
  transform: translateY(calc(var(--v) * 14px)) scale(calc(1 - var(--v) * 0.04))
    rotate(calc(var(--v) * -2deg));
  opacity: calc(1 - var(--v) * 0.28);
  z-index: calc(10 - var(--v));
  transition: transform 0.55s var(--ease-cinema), opacity 0.45s ease, filter 0.45s ease;
  filter: blur(calc(var(--v) * 0.6px));
}

.voice-card.is-front {
  opacity: 1;
  filter: none;
  border-color: rgb(232 188 58 / 0.45);
}

.voice-card.is-exit {
  transform: translateX(-28%) rotate(-8deg) scale(0.92);
  opacity: 0;
  z-index: 20;
}

.voice-card.is-enter {
  transform: translateX(24%) rotate(6deg) scale(0.94);
  opacity: 0;
}

.voice-card p {
  font-size: clamp(1.25rem, 1.05rem + 0.85vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
  font-weight: 550;
  max-width: 28ch;
}

@media (max-width: 599px) {
  .voice-card {
    padding: 28px 20px 24px;
    border-radius: 18px;
  }

  .voice-card p {
    font-size: clamp(1.1rem, 4.5vw, 1.45rem);
    max-width: none;
  }

  .voice-card footer {
    margin-top: 20px;
  }

  .voice-ornament {
    left: 0;
    top: -8px;
    font-size: clamp(4.5rem, 18vw, 7rem);
  }
}

.voice-card footer {
  margin-top: 28px;
  display: grid;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.voice-card footer strong {
  font-size: 0.95rem;
}

.voice-card footer span {
  color: var(--color-muted-dark);
  font-size: 0.88rem;
}

.voice-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  position: relative;
  z-index: 5;
}

.voice-nav .btn-icon-only {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.2);
  color: var(--color-white);
}

.voice-nav .btn-icon-only:hover {
  background: var(--color-yellow);
  border-color: var(--color-yellow);
  color: var(--color-black);
}

.voice-dots {
  display: flex;
  gap: 8px;
}

.voice-dots button {
  appearance: none;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.25);
  cursor: pointer;
}

.voice-dots button.is-active {
  background: var(--color-yellow);
  transform: scale(1.25);
}

[data-placeholder="metric"] .metric-label::after,
[data-placeholder="testimonial"] footer span::after {
  content: " · placeholder";
  opacity: 0.45;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75em;
}

/* Nav submenu caret */
.nav-caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease-out);
  opacity: 0.8;
}

.mega-toggle {
  gap: 2px;
}

.mega-toggle[aria-expanded="true"] .nav-caret {
  transform: rotate(225deg) translateY(-1px);
}

.drawer-subtoggle {
  justify-content: flex-start;
  gap: 8px;
}

.drawer-subtoggle .nav-caret {
  margin-left: auto;
}

.drawer-subtoggle[aria-expanded="true"] .nav-caret {
  transform: rotate(225deg) translateY(-1px);
}

.drawer-subtoggle::after {
  display: none;
}

/* Cinematic extras */
.hero-cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
}

.hero-bg .hero-video {
  animation: hero-drift 28s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-1.5%, 1%);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease-cinema), transform 0.85s var(--ease-cinema);
}

[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-bg .hero-video {
    animation: none;
  }
}

.journey,
.materials,
.about,
.faq {
  padding-block: 72px;
}

@media (max-width: 599px) {
  .metrics,
  .sequence,
  .catalogue,
  .applications,
  .proof,
  .journey,
  .materials,
  .faq,
  .material-gallery {
    padding-block: 48px;
  }

  .catalogue {
    padding-bottom: 40px;
  }

  .proof {
    padding-bottom: 56px;
  }

  .close {
    padding-block: 56px;
  }

  .product-tabs .tab-list {
    margin-bottom: 24px;
  }

  .product-tabs .tab-list [role="tab"] {
    justify-content: flex-start;
    font-size: 0.8rem;
    min-height: 48px;
  }

  .tab-label {
    text-align: left;
  }

  .stack-media {
    padding: 20px;
  }

  .stack-body {
    padding: 16px 18px 20px;
  }
}

/* Material grid gallery — portrait left, landscape right */
.material-gallery {
  padding: 0 0 72px;
  background: var(--color-white);
}

.gallery-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--color-paper);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-cinema);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item--portrait {
  aspect-ratio: 3 / 4;
}

.gallery-item--landscape {
  aspect-ratio: 16 / 10;
}

@media (max-width: 799px) {
  .gallery-item--portrait {
    aspect-ratio: 4 / 5;
  }

  .gallery-grid {
    gap: 12px;
  }
}

@media (min-width: 800px) and (max-width: 1099px) {
  .gallery-grid {
    grid-template-columns: 0.9fr 1.4fr;
    gap: 16px;
  }

  .gallery-item--portrait {
    aspect-ratio: 3 / 4;
  }

  .gallery-item--landscape {
    aspect-ratio: 16 / 10;
    align-self: center;
  }
}

@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: 0.9fr 1.4fr;
    gap: 20px;
    min-height: min(520px, 70vh);
  }

  .gallery-item--portrait,
  .gallery-item--landscape {
    aspect-ratio: auto;
    height: 100%;
    min-height: min(520px, 70vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item img {
    transition: none;
  }

  .gallery-item:hover img {
    transform: none;
  }
}

.brief-visual,
.about-media {
  border-radius: var(--radius-media);
  overflow: hidden;
}

.close {
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.close::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgb(104 184 72 / 0.18);
  pointer-events: none;
}

.close .section-head {
  position: relative;
  z-index: 1;
}

.close .lede {
  color: var(--color-muted-dark);
}

.close::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgb(232 188 58 / 0.12);
  pointer-events: none;
}

/* Legacy .button compatibility when used on inner pages */
.button.button-yellow {
  border-radius: var(--radius-control);
}

@media (prefers-reduced-motion: reduce) {
  .stack-card,
  .stack-media img,
  .btn-icon,
  .voice-card {
    transition: none;
  }
}
