/* Homepage modules. Shared chrome lives in layout.css. */

.hero {
  position: relative;
  min-height: 100vh;
  background: #000;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-wordmark {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-size: clamp(72px, 16.4vw, 236px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.82;
  color: rgba(255, 255, 255, 0.075);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero-stage {
  position: relative;
  width: min(560px, 78vw);
  aspect-ratio: 544 / 430;
  display: grid;
  place-items: start center;
}

.prism {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(8, 8, 8, 0.55) 62%, rgba(0, 0, 0, 0.85));
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.06);
  animation: prismIdle 8s ease-in-out infinite;
}

.prism::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
  animation: prismSheen 7s linear infinite;
}

.prism::after {
  content: "";
  position: absolute;
  inset: 18% 22% 8%;
  background: radial-gradient(circle at 50% 0, rgba(34, 211, 238, 0.16), transparent 58%);
  filter: blur(18px);
}

@keyframes prismIdle {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

@keyframes prismSheen {
  0% { transform: translateX(-30%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(30%); opacity: 0; }
}

.prism-edge {
  position: absolute;
  inset: 0;
  box-shadow: none;
  pointer-events: none;
}

.prism-edge svg {
  width: 100%;
  height: 100%;
}

.hero-slogan {
  position: relative;
  z-index: 2;
  margin-top: 11%;
  text-align: center;
  font-size: clamp(18px, 2.55vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.hero-slogan em {
  font-style: normal;
  display: inline-block;
  border-bottom: 1.5px solid #fff;
  padding-bottom: 1px;
}

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- peek / curtain into #who ---------- */
.peek {
  --peek: 0.12;
  position: relative;
  min-height: 48vh;
  height: 52vh;
  background: #050505;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) 28px;
  overflow: hidden;
}

.peek-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.peek-veil {
  position: absolute;
  top: -10%;
  bottom: -12%;
  width: 58%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 26px
    ),
    linear-gradient(180deg, #070707 0%, #101010 62%, #1c1c1c 100%);
  box-shadow: 0 0 64px rgba(0, 0, 0, 0.45);
}

.peek-veil--left {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
  transform: translateX(calc(var(--peek) * -26%));
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.peek-veil--right {
  right: 0;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  transform: translateX(calc(var(--peek) * 26%));
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.peek-glow {
  position: absolute;
  left: 50%;
  top: 18%;
  width: min(42vw, 360px);
  height: 110%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.7), transparent 58%),
    radial-gradient(ellipse at 50% 72%, rgba(34, 211, 238, 0.14), transparent 52%);
  opacity: calc(0.22 + var(--peek) * 0.78);
  filter: blur(10px);
}

.peek-glow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5) 42%, #fff);
  opacity: calc(0.35 + var(--peek) * 0.65);
  filter: blur(0);
}

.peek::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, var(--paper));
  opacity: calc(0.04 + var(--peek) * 0.96);
  pointer-events: none;
  z-index: 3;
}

.peek-lock {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 2;
  width: min(280px, 52vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(calc(1 - var(--peek) * 0.16));
  opacity: calc(1 - var(--peek) * 0.55);
}

.peek-lock::before,
.peek-lock::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.peek-lock::after {
  inset: 28%;
}

.peek-core {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(180deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
}

.peek-label {
  position: relative;
  z-index: 4;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.58);
  opacity: calc(0.85 - var(--peek) * 0.85);
}

#who {
  padding-top: 56px;
}

/* ---------- audiences ---------- */
.audience-title em {
  font-style: normal;
  border-bottom: 1.5px solid currentColor;
}

.audience-list {
  margin: 48px auto 0;
  max-width: 420px;
  text-align: center;
}

.audience-list li {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 450;
  letter-spacing: -0.02em;
  color: rgba(3, 3, 3, 0.22);
  line-height: 1.45;
  transition: color 0.4s ease;
}

.audience-list li.is-on {
  color: var(--ink);
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 72px;
}

.trust-item {
  min-height: 92px;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- stacked tools ---------- */
.tool-stack {
  margin-top: 56px;
  display: grid;
  gap: 10px;
}

.tool-card {
  background: var(--paper-card);
  padding: 28px 32px 24px;
  min-height: 92px;
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  transition: min-height 0.45s var(--ease), background 0.3s ease;
}

.mosaic-card {
  transition: transform 0.45s var(--ease);
}

.mosaic-card:hover {
  transform: translateY(-6px);
}

.tool-card.is-open {
  min-height: 210px;
}

.tool-card-head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  text-align: left;
}

.tool-icon {
  width: 28px;
  height: 28px;
}

.tool-card h3 {
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.tool-num {
  color: rgba(3, 3, 3, 0.35);
  font-size: 14px;
}

.tool-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s ease, padding 0.3s ease;
}

.tool-card.is-open .tool-body {
  max-height: 200px;
  opacity: 1;
  padding-top: 28px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--ink-soft);
  font-size: 15px;
}

.tool-go {
  align-self: end;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.tool-go::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

/* ---------- framework / prism diagram ---------- */
.framework {
  overflow: hidden;
}

.framework-copy {
  max-width: 720px;
  margin-left: auto;
}

.prism-diagram {
  margin-top: 80px;
}

.prism-svg {
  display: block;
  width: 100%;
  max-width: 1180px;
  height: auto;
  margin-inline: auto;
}

/* ---------- selected tools mosaic ---------- */
.mosaic {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  min-height: 620px;
}

.mosaic-card {
  background: #111;
  color: #fff;
  min-height: 220px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.mosaic-card:nth-child(1) { grid-column: 1 / 6; grid-row: 1; margin-top: 40px; }
.mosaic-card:nth-child(2) { grid-column: 6 / 10; grid-row: 1; }
.mosaic-card:nth-child(3) { grid-column: 10 / 13; grid-row: 1 / 3; min-height: 460px; }
.mosaic-card:nth-child(4) { grid-column: 2 / 7; grid-row: 2; }
.mosaic-card:nth-child(5) { grid-column: 7 / 10; grid-row: 2; margin-top: 36px; }

.mosaic-card.light {
  background: var(--paper-card);
  color: var(--ink);
}

.mosaic-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 10px;
}

.mosaic-card h3 {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.mosaic-card p {
  margin-top: 10px;
  font-size: 15px;
  color: inherit;
  opacity: 0.62;
  max-width: 28ch;
}

.mosaic-glyph {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  opacity: 0.35;
}

.awards-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.award-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- faq / quotes ---------- */
.faq-quote {
  margin-top: 72px;
}

.faq-item + .faq-item {
  margin-top: 8px;
}

.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 20px;
  align-items: start;
  text-align: left;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.faq-marks {
  font-size: 28px;
  line-height: 0.8;
}

.faq-num {
  color: var(--ink-faint);
  font-size: 14px;
  padding-top: 6px;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-left: 48px;
  max-width: 720px;
  color: var(--ink-soft);
  transition: max-height 0.4s var(--ease), opacity 0.3s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-a {
  max-height: 200px;
  opacity: 1;
  padding-bottom: 22px;
}

/* ---------- tech accordion ---------- */
.tech-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.tech-row {
  width: 100%;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.tech-row strong {
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tech-row span {
  font-size: 18px;
  font-weight: 500;
}

.tech-row b {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.tech-item.is-open .tech-row b {
  transform: rotate(180deg);
}

.tech-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 0 0 184px;
  color: var(--ink-soft);
  max-width: 760px;
  transition: max-height 0.4s var(--ease), opacity 0.3s ease, padding 0.3s ease;
}

.tech-item.is-open .tech-detail {
  max-height: 200px;
  opacity: 1;
  padding: 22px 0 22px 184px;
}

/* ---------- collaborate ---------- */
.collab-list {
  margin-top: 48px;
}

.collab-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.collab-item h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.collab-item p {
  margin-top: 10px;
  max-width: 56ch;
  color: var(--ink-soft);
}

.collab-num {
  color: var(--ink-faint);
  font-size: 14px;
}

/* ---------- facts ---------- */
.facts {
  margin-top: 48px;
  display: grid;
  gap: 18px;
}

.fact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

.fact-card h3 {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.03em;
}

.fact-card p {
  margin-top: 14px;
  max-width: 70ch;
  color: var(--ink-soft);
}

.fact-num {
  color: var(--ink-faint);
}

/* ---------- bottom cta ---------- */
.bottom-cta .hero-cta-row {
  margin-top: 32px;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease) forwards;
}

.reveal-d1 { animation-delay: 0.08s; }
.reveal-d2 { animation-delay: 0.16s; }
.reveal-d3 { animation-delay: 0.24s; }
.reveal-d4 { animation-delay: 0.32s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .mosaic { grid-template-columns: 1fr 1fr; min-height: 0; }
  .mosaic-card,
  .mosaic-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
    min-height: 220px;
  }
  .tech-row { grid-template-columns: 1fr auto; }
  .tech-detail,
  .tech-item.is-open .tech-detail { padding-left: 0; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .peek { height: 42vh; min-height: 280px; }
  .hero-slogan { font-size: 20px; }
  .trust-bar,
  .mosaic { grid-template-columns: 1fr; }
  .tool-card-head { grid-template-columns: 28px 1fr auto; }
  .tool-body { grid-template-columns: 1fr; }
  .collab-item { grid-template-columns: 1fr; gap: 8px; }
  .faq-q { grid-template-columns: 20px 1fr auto; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .peek { --peek: 0.7; }
  .peek-veil--left,
  .peek-veil--right,
  .peek-lock,
  .peek-glow,
  .peek-label { transition: none; }
}
