/* Homepage composition. Shared navigation and inner pages retain their layout. */
.home .hx--brand .hx-stage {
  min-height: min(850px, 100svh);
  padding: 112px 0 72px;
  justify-content: center;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
}
.home .hx--brand .hx-scenes { width: 100%; min-width: 0; }
.home .hx--brand .hx-scene--intro {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}
.home .hx--brand .hx-scene--intro .display-xl {
  font-size: clamp(2.5rem, 4.05vw, 3.6rem);
  line-height: 1.13;
  letter-spacing: -0.028em;
  margin-bottom: 1.65rem;
}
.home .hx--brand .hx-sub {
  max-width: 48ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--cream-dim);
}
.home .hx--brand .hx-logo-animation {
  position: relative;
  top: auto; right: auto; bottom: auto;
  width: 112%;
  max-width: 560px;
  margin: 0 -6%;
  transform: perspective(900px) rotateX(var(--hero-rx, 0deg)) rotateY(var(--hero-ry, 0deg));
  transition: transform 0.8s var(--ease-out);
}
.home .hx--brand .hx-logo-animation::before {
  inset: 18%;
  background: radial-gradient(circle, color-mix(in srgb, var(--copper) 9%, transparent), transparent 70%);
  filter: blur(18px);
}
.home-hero-rule {
  position: absolute;
  bottom: 0;
  left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  height: 1px;
  background: var(--hairline-2);
}
.home-hero-rule span { display: block; width: 72px; height: 1px; background: var(--copper); }

/* A clear introduction, then three equally weighted illustrated arguments. */
.home-problem { padding-block: clamp(4.5rem, 8vw, 7rem) 0; }
.home-problem .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 0 4rem;
  max-width: none;
  align-items: end;
  margin-bottom: 3rem;
}
.home-problem .section-head .eyebrow { grid-column: 1 / -1; margin-top: 0; }
.home-problem .section-head .display-lg { font-size: clamp(2rem, 3.15vw, 2.8rem); line-height: 1.18; }
.home-problem .section-head .lede { margin: 0; font-size: 1rem; line-height: 1.8; }
.home .problem-grid { gap: clamp(1.5rem, 3vw, 2.75rem); margin: 0; }
.home .problem-item { max-width: none; border-top: 1px solid var(--hairline); padding-top: 1rem; }
.home .problem-visual {
  width: 100%;
  max-width: 290px;
  height: clamp(200px, 21vw, 265px);
  margin-bottom: 1.5rem;
  padding: 1rem;
}
.home .problem-visual img { transition: transform 0.7s var(--ease-out); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home .problem-item:hover .problem-visual img { transform: translateY(-6px) rotate(-2deg); }
}
.home .problem-num { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.home .problem-num::after { content: ""; width: 30px; height: 1px; background: var(--hairline); }
.home .problem-item h3 { font-size: 1.45rem; line-height: 1.2; min-height: 2.4em; margin-bottom: 0.8rem; }
.home .problem-item > p:last-child { font-size: 0.94rem; line-height: 1.8; }
.home .home-problem .callout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
  margin: clamp(3.5rem, 6vw, 5rem) 0 0;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-radius: 0;
  border: 0;
  border-block: 1px solid var(--hairline);
  background: none;
}
.home .callout::before { display: none; }
.home .callout p { font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.5; }
.home .callout cite { grid-column: 1; grid-row: 1; margin-top: 0.65rem; font-size: 0.7rem; }

/* A quiet live diagram accompanies a readable sequence of capabilities. */
.home-system { padding-block: clamp(4.5rem, 8vw, 7rem); }
.home-system-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.home-system-intro { position: sticky; top: 125px; }
.home-system .section-head { margin: 0; }
.home-system .section-head .eyebrow { margin-top: 0; }
.home-system .display-lg { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.home .home-system .home-system-visual {
  margin-top: 2rem;
  width: 100%;
  aspect-ratio: 1.15;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
/* A light, open association bloom replaces the enclosed terrain chart. */
.home-bloom { display: block; width: 100%; height: 100%; overflow: visible; }
.home-bloom__petal { stroke: var(--cream-faint); stroke-width: 1; }
.home-bloom__petal > path:first-child { fill: url(#bloom-fill); }
.home-bloom__vein { stroke: var(--copper); stroke-width: 0.7; opacity: 0.4; }
.home-bloom__petal > circle { stroke: none; fill: var(--copper); }
.home-bloom__hub { stroke: var(--copper); stroke-width: 1.2; }
.home-bloom__centre { fill: var(--copper); }
@media (prefers-reduced-motion: no-preference) {
  .home-system-visual.in .home-bloom__petal { animation: bloom-breathe 7s ease-in-out infinite; animation-delay: calc(var(--petal) * -1.15s); }
}
@keyframes bloom-breathe { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.95; } }
.home .benefit-grid { display: block; border: 0; background: none; }
.home .benefit-cell,
.home .benefit-cell:nth-child(n + 4) {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.7rem 1.25rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--hairline);
  background: none;
}
.home .benefit-cell:first-child { border-top: 0; }
.home-system-icon { grid-column: 1; grid-row: 1 / 3; width: 36px; height: 36px; stroke: var(--copper); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.home-icon-accent { stroke: var(--cream); }
.home .benefit-cell h3 { grid-column: 2; margin: 0; font-size: 1.5rem; }
.home .benefit-cell p { grid-column: 2; font-size: 0.95rem; line-height: 1.8; }

/* The closing links read as a destination, with the existing copy intact. */
.home main .home-next {
  background: var(--navy);
  border-color: var(--hairline-2);
  padding-block: clamp(3.5rem, 6vw, 5rem);
}
.home .home-next::before { display: none; }
.home-next .cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 4rem; max-width: none; text-align: left; }
.home-next .eyebrow { grid-column: 1 / -1; margin: 0; }
.home-next h2 { grid-column: 1; font-size: clamp(2.1rem, 3.6vw, 3rem); max-width: 20ch; }
.home-next .lede { grid-column: 1; margin: 0; max-width: 52ch; font-size: 1rem; }
.home-next .cta-actions { grid-column: 2; grid-row: 2 / 4; align-self: center; flex-direction: column; margin: 0; min-width: 210px; }
.home-next .btn { justify-content: space-between; }
.home-next .btn:first-child { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.home-next .btn:first-child:hover { color: var(--ink); border-color: var(--copper); }

@media (max-width: 1000px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: 0; }
  .home .hx--brand .hx-scene--intro .display-xl { font-size: clamp(2.45rem, 4.5vw, 3rem); }
  .home-problem .section-head { gap: 0 2rem; }
  .home-system-grid { gap: 2.5rem; }
}
@media (max-width: 860px) {
  .home .problem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
  .home .problem-visual { height: 190px; padding: 0.5rem; }
  .home .problem-item h3 { font-size: 1.2rem; }
  .home .problem-item > p:last-child { font-size: 0.88rem; }
  .home-problem .section-head { grid-template-columns: 1fr; }
  .home-problem .section-head .lede { max-width: 58ch; margin-top: 1.5rem; }
}
@media (max-width: 700px) {
  .home .hx--brand .hx-stage { min-height: auto; padding: 125px 0 48px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 1rem; }
  .home .hx--brand .hx-scene--intro .display-xl { font-size: clamp(2rem, 6.7vw, 2.9rem); line-height: 1.15; }
  .home .hx--brand .hx-sub { font-size: 0.95rem; max-width: 48ch; }
  .home .hx--brand .hx-logo-animation { width: min(100%, 360px); margin: 0 auto; transform: none; }
  .home .problem-grid { grid-template-columns: 1fr; gap: 2rem; }
  .home .problem-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 1.25rem; padding-top: 1.75rem; }
  .home .problem-visual { grid-column: 1; grid-row: 1 / 3; width: 100%; height: 100px; margin: 0; padding: 0; }
  .home .problem-num, .home .problem-item h3 { grid-column: 2; }
  .home .problem-num { align-self: end; }
  .home .problem-item h3 { min-height: 0; font-size: 1.35rem; }
  .home .problem-item > p:last-child { grid-column: 1 / -1; margin-top: 1rem; font-size: 0.95rem; }
  .home .home-problem .callout { grid-template-columns: 1fr; gap: 1rem; }
  .home .callout cite { margin: 0; }
  .home-system-grid { grid-template-columns: 1fr; gap: 1rem; }
  .home-system-intro { position: static; }
  .home .home-system .home-system-visual { max-width: 390px; margin: 0 auto 1rem; aspect-ratio: 1.35; }
  .home-next .cta-inner { display: block; }
  .home-next .cta-actions { flex-direction: row; justify-content: flex-start; margin-top: 2rem; }
  .home-next .btn { min-width: 180px; }
}
@media (max-width: 420px) {
  .home .problem-item { grid-template-columns: 90px minmax(0, 1fr); gap: 0 1rem; }
  .home .problem-visual { height: 100px; }
  .home .benefit-cell,
  .home .benefit-cell:nth-child(n + 4) { grid-template-columns: 30px minmax(0, 1fr); gap: 0.7rem 1rem; }
  .home-system-icon { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .home .hx--brand .hx-logo-animation { transform: none; transition: none; }

}
