/* KeyTrellis home page. Loaded after site.css. */

.hero {
  padding: 62px 0 0;
}

.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.heroCopy {
  max-width: 600px;
}

.eyebrow,
.sectionEyebrow,
.visualKicker {
  margin: 0;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}

.eyebrowDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}

.hero h1 {
  max-width: 660px;
  margin: 24px 0 20px;
  color: #5a1733;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6vw, 5.55rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.99;
}

.heroDescription {
  max-width: 570px;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.7;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.heroNote {
  max-width: 500px;
  margin: 19px 0 0;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  line-height: 1.55;
}

.heroVisual {
  min-height: 505px;
  overflow: hidden;
  border-radius: 26px;
  background: #32131f;
  box-shadow: 0 28px 60px -36px rgb(50 19 31 / 58%);
}

.heroVisualInner {
  display: flex;
  min-height: 505px;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  color: #fff8fa;
}

.visualHeader,
.visualFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.visualKicker {
  color: #f5c1ce;
  font-size: 0.63rem;
}

.visualTitle {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.livePill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #e79fb4;
  border-radius: 999px;
  color: #ffe5ec;
  font-size: 0.63rem;
  font-weight: 700;
  white-space: nowrap;
}

.livePill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #efb0c0;
}

.visualMetric {
  margin: auto 0 19px;
  padding: 20px;
  border: 1px solid rgb(255 241 244 / 24%);
  border-radius: 18px;
  background: rgb(50 21 34 / 64%);
}

.visualMetric span,
.visualMetric small,
.visualStep small {
  display: block;
  color: #f2cbd5;
  font-size: 0.7rem;
  line-height: 1.4;
}

.visualMetric strong {
  display: block;
  margin: 6px 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.visualSteps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.visualStep {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgb(255 241 244 / 18%);
  border-radius: 12px;
  background: rgb(255 241 244 / 10%);
}

.visualStepIcon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 10px;
  background: #efb0c0;
  color: #32131f;
}

.visualStepIcon svg {
  width: 14px;
  height: 14px;
}

.visualStep strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
}

.visualStep strong span {
  margin-right: 5px;
  color: #f5c1ce;
  font-variant-numeric: tabular-nums;
}

.visualFooter {
  margin-top: 18px;
  color: #f5dce3;
  font-size: 0.68rem;
}

.visualFooter span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.visualFooter svg {
  width: 13px;
  height: 13px;
}

.proofStrip {
  display: grid;
  grid-template-columns: 0.75fr 1.8fr 0.8fr;
  align-items: center;
  gap: 22px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--border);
}

.proofLabel,
.proofAttribution {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.72rem;
  line-height: 1.5;
}

.proofLabel {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proofStrip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proofStrip li {
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 700;
}

.proofStrip li::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.proofAttribution {
  text-align: right;
}

.introSection,
.teamSection,
.lifecycleSection,
.capabilities,
.audienceSection,
.proofSection {
  padding: clamp(84px, 11vw, 144px) 0;
}

.introSection {
  background: var(--card);
}

.teamSection {
  padding: clamp(66px, 8vw, 108px) 0;
  background: #fbf7f4;
}

.teamGrid {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
}

.teamGrid h2 {
  max-width: 680px;
  margin: 0;
  color: #5a1733;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.teamGrid div > p {
  max-width: 700px;
  margin: 18px 0 0;
  color: #4d3a43;
  font-size: 1.05rem;
  line-height: 1.7;
}

.introGrid,
.audienceGrid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(32px, 8vw, 120px);
}

.introGrid h2,
.audienceGrid h2,
.sectionIntro h2,
.proofCard h2,
.ctaInner h2 {
  max-width: 700px;
  margin: 13px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.8vw, 4.5rem);
  color: #5a1733;
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1.02;
}

.introBody {
  display: grid;
  align-content: end;
  gap: 18px;
}

.introBody p,
.sectionIntro > p:last-child,
.proofCard p:last-child,
.ctaInner p:last-child {
  max-width: 580px;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.75;
}

.lifecycleSection {
  background: var(--secondary);
}

.sectionIntro {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.sectionIntro h2 {
  margin-top: 0;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
}

.lifecycleTrack {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 54px;
}

.trackItem {
  position: relative;
  min-width: 0;
}

.trackItem:not(:last-child)::after {
  position: absolute;
  top: 22px;
  right: -6px;
  left: 48px;
  height: 1px;
  background: color-mix(in srgb, var(--primary) 30%, transparent);
  content: "";
}

.trackNode {
  position: relative;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--primary);
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
}

.trackNode svg {
  width: 18px;
  height: 18px;
}

.trackCopy {
  padding-top: 18px;
}

.trackCopy > span {
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.trackCopy h3 {
  margin: 9px 0 5px;
  color: #5a1733;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.trackCopy p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.76rem;
  line-height: 1.5;
}

.capabilities {
  background: var(--background);
}

.featureGrid {
  margin-top: 42px;
}

.featureCard {
  min-height: 250px;
  border-color: var(--border);
  background: var(--card);
}

.audienceSection {
  background: var(--card);
}

.audienceList {
  display: grid;
  align-content: end;
  gap: 12px;
}

.audienceItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.98rem;
  font-weight: 650;
}

.audienceItem svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--primary);
}

.audienceList > p {
  margin: 12px 0 0;
  color: var(--muted-foreground);
  font-size: 0.84rem;
  line-height: 1.6;
}

.proofCard {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--secondary);
}

.proofIcon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 18px;
  background: var(--primary);
  color: var(--primary-foreground);
}

.proofIcon svg {
  width: 25px;
  height: 25px;
}

.proofCard h2 {
  max-width: 680px;
  margin-top: 9px;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
}

.proofCard p:last-child {
  margin-top: 18px;
}

.ctaSection {
  padding: clamp(78px, 10vw, 126px) 0;
  background: #f5e4ea;
  color: #32131f;
}

.ctaInner {
  display: flex;
  align-items: start;
}

.ctaCopy {
  max-width: 850px;
}

.ctaInner .sectionEyebrow {
  color: #5a1733;
}

.ctaInner h2 {
  max-width: 700px;
  margin-top: 13px;
  color: #5a1733;
}

.ctaInner p:last-child {
  margin-top: 18px;
  color: #4d3a43;
}

.ctaActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}


/* ---------- Hero buttons ---------- */
.fitCheckButton {
  display: inline-grid;
  justify-items: start;
  gap: 1px;
  min-height: 56px;
  padding: 8px 20px;
  border: 1px solid #8b6978;
  border-radius: 999px;
  background: #fffdfc;
  color: #5a1733;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
}

.fitCheckButton:hover {
  border-color: #5a1733;
  background: #f5e4ea;
}

.fitCheckButton small {
  color: #594650;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
}

/* ---------- Hero graphic (slow-moving colour field) ---------- */
.heroVisual {
  position: relative;
  isolation: isolate;
}

.heroVisual::before {
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 20% 25%, rgb(138 62 93 / 70%), transparent 70%),
    radial-gradient(35% 30% at 80% 70%, rgb(239 176 192 / 28%), transparent 70%),
    radial-gradient(45% 40% at 60% 15%, rgb(90 23 51 / 90%), transparent 70%);
  animation: heroDrift 18s ease-in-out infinite alternate;
  content: "";
}

@keyframes heroDrift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(6%, -4%) rotate(8deg); }
}

.visualSteps {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

/* ---------- Capability cards ---------- */
.featureGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.featureCard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.featureCard:hover {
  border-color: var(--accent);
  box-shadow: 0 18px 40px -28px rgb(50 19 31 / 45%);
  transform: translateY(-3px);
}

.featureIcon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--secondary);
  color: var(--primary);
}

.featureIcon svg {
  width: 20px;
  height: 20px;
}

.featureCard h3 {
  color: #5a1733;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.featureCard p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Photographs ---------- */
.photos {
  padding: clamp(82px, 11vw, 144px) 0;
  background: var(--background);
}

.photosIntro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: clamp(32px, 8vw, 120px);
  margin-bottom: 42px;
}

.photosIntro h2 {
  max-width: 680px;
  margin: 13px 0 0;
  color: #5a1733;
  font-size: clamp(2.45rem, 4.8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1.02;
}

.photosIntro > p {
  max-width: 490px;
  margin: 0 0 3px;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.photosGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 16px;
}

.photoStack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  background: var(--card);
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.photo:hover img {
  transform: scale(1.035);
}

.photoFeature {
  min-height: 610px;
  border-radius: 24px 24px 6px 24px;
}

.photoSecondary {
  min-height: 297px;
  border-radius: 6px 24px 24px 6px;
}

.photoSecondary + .photoSecondary {
  border-radius: 24px 6px 24px 24px;
}

.photo figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgb(255 253 248 / 35%);
  border-radius: 12px;
  background: #32131f;
  color: #fffdfc;
}

.photo figcaption strong,
.photo figcaption span {
  display: block;
}

.photo figcaption strong {
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 600;
}

.photo figcaption span {
  margin-top: 3px;
  color: #f5e4ea;
  font-size: 0.72rem;
  line-height: 1.35;
}

.photo figcaption em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #32131f;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1050px) {
  .featureGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .heroGrid,
  .introGrid,
  .audienceGrid,
  .teamGrid,
  .photosIntro {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .heroCopy,
  .heroVisual {
    max-width: 720px;
  }

  .visualSteps {
    grid-template-columns: 1fr;
  }

  .proofStrip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .proofAttribution {
    text-align: left;
  }

  .lifecycleTrack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 34px;
  }

  .trackItem:nth-child(3)::after,
  .trackItem:nth-child(6)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.4rem);
  }

  .heroActions {
    flex-direction: column;
    align-items: stretch;
  }

  .heroActions .btn,
  .fitCheckButton {
    width: 100%;
  }

  .fitCheckButton {
    border-radius: 18px;
  }

  .heroVisual,
  .heroVisualInner {
    min-height: 0;
  }

  .visualMetric {
    margin-top: 24px;
  }

  .visualHeader,
  .visualFooter {
    align-items: start;
    flex-direction: column;
  }

  .visualFooter {
    gap: 8px;
  }

  .lifecycleTrack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trackItem:nth-child(3)::after {
    display: block;
  }

  .trackItem:nth-child(even)::after {
    display: none;
  }

  .featureGrid,
  .photosGrid {
    grid-template-columns: 1fr;
  }

  .photoFeature {
    min-height: min(112vw, 540px);
  }

  .photoSecondary {
    min-height: min(66vw, 300px);
  }

  .proofCard {
    grid-template-columns: 1fr;
  }

  .ctaActions .btn {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .lifecycleTrack {
    grid-template-columns: 1fr;
  }

  .trackItem::after,
  .trackItem:nth-child(even)::after {
    display: block;
    top: 44px;
    right: auto;
    bottom: -28px;
    left: 21px;
    width: 1px;
    height: 28px;
  }

  .trackItem:last-child::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heroVisual::before {
    animation: none;
  }
}
