/* Homepage compositions. Shared branding and the approved hero remain in styles.css. */
.home-section {
  padding: clamp(64px, 7vw, 100px) var(--page-inset);
}

.home-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 3.3vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-section p {
  margin-top: 0;
}

.home-section .eyebrow {
  margin-bottom: 18px;
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(32px, 5vw, 72px);
  margin-bottom: 44px;
}

.home-heading-copy > p,
.home-connected-copy > p:not(.eyebrow),
.home-approach-copy > p:not(.eyebrow) {
  max-width: 55ch;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.home-link span {
  font-size: 1.25rem;
  transition: transform 160ms ease;
}

.home-link:hover {
  text-decoration: underline;
}

.home-link:hover span {
  transform: translateX(3px);
}

.home-icon {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 36px;
}

.home-capability {
  min-width: 0;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}

.home-capability h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.home-capability a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  text-decoration: none;
}

.home-capability .home-icon {
  color: var(--blue);
}

.home-arrow {
  color: var(--blue);
  font-size: 1.15rem;
  transition: transform 160ms ease;
}

.home-capability a:hover {
  color: var(--blue);
}

.home-capability a:hover .home-arrow {
  transform: translate(2px, -2px);
}

.home-capability > p {
  margin: 10px 0 0 38px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.home-modernization {
  background: var(--frost);
  border-block: 1px solid var(--line);
}

.home-journey,
.home-workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-journey::before,
.home-workflow::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 21px;
  right: calc(25% - 46px);
  height: 1px;
  background: #c8d7e4;
}

.home-journey li,
.home-workflow li {
  position: relative;
  min-width: 0;
  margin: 0;
}

.home-step-number {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--blue);
  background: var(--frost);
  border: 1px solid #b6ccdf;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.home-journey li:last-child .home-step-number {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.home-journey h3,
.home-workflow h3 {
  margin: 20px 0 8px;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.home-journey p,
.home-workflow p {
  max-width: 26ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.home-connected {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.home-connected-copy {
  grid-column: 2;
  grid-row: 1;
}

.home-connected-copy h2,
.home-approach-copy h2 {
  margin-bottom: 24px;
}

.home-connection-map {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  padding: 30px;
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.home-connection-map figcaption {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-map-inputs,
.home-map-outputs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-map-outputs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-map-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 5px;
  text-align: center;
}

.home-map-node .home-icon {
  margin-bottom: 5px;
  color: var(--blue);
}

.home-map-node strong {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.5;
}

.home-map-node > span {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.home-map-inputs::after,
.home-map-outputs::before {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  height: 18px;
  border: 1px solid #90afc7;
  pointer-events: none;
}

.home-map-inputs::after {
  bottom: -26px;
  border-top: 0;
}

.home-map-outputs::before {
  top: -26px;
  left: 16.66%;
  right: 16.66%;
  border-bottom: 0;
}

.home-map-outputs .home-map-node:nth-child(2)::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 50%;
  height: 18px;
  border-left: 1px solid #90afc7;
}

.home-map-hub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(100%, 260px);
  min-height: 94px;
  margin: 46px auto;
  padding: 18px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid #254960;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(7, 29, 48, 0.1);
}

.home-map-hub::before,
.home-map-hub::after {
  content: "";
  position: absolute;
  left: 50%;
  height: 20px;
  border-left: 1px solid #90afc7;
}

.home-map-hub::before {
  top: -21px;
}

.home-map-hub::after {
  bottom: -21px;
}

.home-map-hub .home-icon {
  width: 30px;
  height: 30px;
  color: #a9d6ff;
}

.home-map-hub strong,
.home-map-hub span {
  display: block;
}

.home-map-hub strong {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-map-hub span {
  color: #b5cee0;
  font-size: 0.7rem;
}

.home-ai {
  color: var(--white);
  background: var(--navy);
}

.home-ai h2,
.home-ai .home-workflow h3,
.home-ai .home-link {
  color: var(--white);
}

.home-ai .eyebrow {
  color: #9ecbf0;
}

.home-ai .home-heading-copy > p,
.home-ai .home-workflow p {
  color: #b8ccdc;
}

.home-workflow-label {
  margin-bottom: 24px;
  color: #9ecbf0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-workflow::before {
  background: #36556d;
}

.home-workflow .home-step-number {
  color: #d9ebf9;
  background: var(--navy);
  border-color: #52718a;
}

.home-workflow li:nth-child(3) .home-step-number {
  color: var(--navy);
  background: #b5dbfa;
  border-color: #b5dbfa;
}

.home-ai-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #36556d;
}

.home-ai-footer p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  color: #b8ccdc;
  font-size: 0.78rem;
}

.home-ai-footer .home-icon {
  width: 20px;
  height: 20px;
  color: #9ecbf0;
}

.home-approach {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(40px, 7vw, 100px);
}

.home-approach-list {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.home-approach-list details {
  border-bottom: 1px solid var(--line);
}

.home-approach-list summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
}

.home-approach-list summary::-webkit-details-marker {
  display: none;
}

.home-approach-list summary::marker {
  content: "";
}

.home-approach-list summary:focus-visible {
  outline: 3px solid #1674cc;
  outline-offset: 5px;
  border-radius: 4px;
}

.home-approach-list summary:hover h3 {
  color: var(--blue);
}

.home-approach-list h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.home-approach-number {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 600;
}

.home-disclosure-icon {
  position: relative;
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.home-disclosure-icon::before,
.home-disclosure-icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 1px;
  width: 14px;
  height: 1px;
  background: currentColor;
}

.home-disclosure-icon::after {
  transform: rotate(90deg);
}

.home-approach-list details[open] .home-disclosure-icon::after {
  display: none;
}

.home-approach-detail {
  padding: 0 32px 24px 44px;
}

.home-approach-detail p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.home-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  background: var(--ice);
  border-top: 1px solid var(--line);
}

.home-contact h2 {
  margin-bottom: 20px;
}

.home-contact > div > p:not(.eyebrow) {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

@media (max-width: 1100px) {
  .home-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .home-connected {
    gap: 40px;
  }

  .home-connection-map {
    padding: 24px;
  }
}

@media (max-width: 860px) {
  .home-section-heading {
    align-items: start;
    gap: 32px;
  }

  .home-journey,
  .home-workflow {
    gap: 24px;
  }

  .home-journey::before,
  .home-workflow::before {
    right: calc(25% - 40px);
  }

  .home-connected {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .home-connected-copy,
  .home-connection-map {
    grid-column: auto;
    grid-row: auto;
  }

  .home-connection-map {
    width: 100%;
    max-width: 620px;
    justify-self: center;
    padding: 32px;
  }

  .home-approach {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .home-section {
    padding-block: 56px;
  }

  .home-section h2 {
    font-size: clamp(1.85rem, 7.8vw, 2.4rem);
  }

  .home-section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 30px;
  }

  .home-heading-copy > p,
  .home-connected-copy > p:not(.eyebrow),
  .home-approach-copy > p:not(.eyebrow) {
    font-size: 0.93rem;
    line-height: 1.8;
  }

  .home-capability-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-capability {
    padding: 20px 0 24px;
  }

  .home-capability h3 {
    font-size: 1rem;
  }

  .home-capability > p {
    margin-top: 4px;
    font-size: 0.88rem;
  }

  .home-journey,
  .home-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .home-journey::before,
  .home-workflow::before {
    display: none;
  }

  .home-journey h3,
  .home-workflow h3 {
    margin-top: 14px;
    font-size: 1.05rem;
  }

  .home-journey p,
  .home-workflow p {
    font-size: 0.83rem;
  }

  .home-connection-map {
    padding: 24px 18px;
  }

  .home-connection-map figcaption {
    font-size: 0.6rem;
  }

  .home-map-inputs,
  .home-map-outputs {
    gap: 10px;
  }

  .home-map-inputs .home-map-node strong {
    font-size: 0.77rem;
  }

  .home-map-outputs .home-map-node strong {
    font-size: 0.75rem;
  }

  .home-map-node > span {
    font-size: 0.75rem;
  }

  .home-map-hub {
    width: 78%;
    padding: 16px;
  }

  .home-map-hub strong {
    font-size: 1.1rem;
  }

  .home-map-hub .home-icon {
    width: 26px;
    height: 26px;
  }

  .home-ai-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 32px;
  }

  .home-ai-footer p {
    align-items: flex-start;
    font-size: 0.75rem;
  }

  .home-approach-list summary {
    gap: 12px;
    grid-template-columns: 24px minmax(0, 1fr) 16px;
    min-height: 72px;
    padding-block: 18px;
  }

  .home-approach-list h3 {
    font-size: 0.92rem;
  }

  .home-approach-detail {
    padding: 0 20px 22px 36px;
  }

  .home-approach-detail p {
    font-size: 0.86rem;
  }

  .home-contact {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
  }

  .home-contact > div > p:not(.eyebrow) {
    font-size: 0.93rem;
  }
}
