/* Home page — editorial, sharp, foundation-style layout */
.home-editorial{
  --home-accent: #ffaa00;
  --home-accent-2: #087fa8;
  --home-ink: var(--heading, #0f172a);
  --home-text: color-mix(in oklab, var(--fg) 82%, var(--muted));
  --home-line: var(--border-strong, rgba(15,23,42,.16));
  --home-paper: var(--surface-solid, #fff);
  --home-soft: var(--surface-muted, #eef7fb);

  margin-inline: calc(50% - 50vw);
  padding-inline: max(1.25rem, calc((100vw - 1180px) / 2));
  color: var(--home-text);
}

.home-editorial a{
  text-decoration: none;
}

.home-kicker{
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1rem;
  color: var(--home-accent-2);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-kicker::before{
  content: "";
  width: 2.25rem;
  height: .16rem;
  background: var(--home-accent);
}

.home-hero{
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  min-height: clamp(340px, 44vh, 470px);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background:
    linear-gradient(90deg, var(--home-accent) 0 .55rem, transparent .55rem),
    linear-gradient(90deg, rgba(8,19,32,.90) 0%, rgba(8,19,32,.76) 46%, rgba(8,19,32,.48) 72%, rgba(8,19,32,.34) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.home-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.10) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.08) 0 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.48), transparent 72%);
}

.home-hero__copy{
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 880px;
  padding:
    clamp(3rem, 7vw, 6rem)
    clamp(1.25rem, 5vw, 4rem)
    clamp(3rem, 7vw, 6rem)
    clamp(1.75rem, 4vw, 3.5rem);
}

.home-hero .home-kicker{
  color: color-mix(in oklab, var(--home-accent) 65%, #fff);
}

.home-hero h1{
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.55rem, 5.7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: .93;
  text-wrap: balance;
}

.home-hero__lead{
  max-width: 650px;
  margin: 1.5rem 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  line-height: 1.7;
}

.home-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.home-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: .85rem 1.1rem;
  border: 1px solid var(--home-line);
  color: var(--home-ink);
  font-weight: 800;
  line-height: 1.1;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.home-button:hover{
  transform: translateY(-1px);
}

.home-button--primary{
  border-color: var(--home-accent-2);
  background: var(--home-accent-2);
  color: #fff;
}

.home-button--primary:hover{
  border-color: var(--home-accent);
  background: var(--home-accent);
  color: #111827;
}

.home-button--secondary{
  background: transparent;
}

.home-button--secondary:hover{
  border-color: var(--home-accent-2);
  color: var(--home-accent-2);
}

.home-hero .home-button--secondary{
  border-color: rgba(255,255,255,.42);
  color: #fff;
}

.home-hero .home-button--secondary:hover{
  border-color: var(--home-accent);
  color: var(--home-accent);
}

.home-facts{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--home-line);
}

.home-fact{
  padding: clamp(1.25rem, 3vw, 2rem);
  border-right: 1px solid var(--home-line);
  background: var(--home-paper);
}

.home-fact:last-child{
  border-right: 0;
}

.home-fact strong{
  display: block;
  color: var(--home-ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}

.home-fact span{
  display: block;
  margin-top: .55rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-statement,
.home-focus,
.home-partners,
.home-cta{
  padding-block: clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--home-line);
}

.home-statement{
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .65fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.home-section-copy{
  display: grid;
  align-content: start;
}

.home-statement h2,
.home-section-heading h2,
.home-feature-row h2,
.home-split h2,
.home-cta h2{
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .98;
}

.home-feature-row__content > p:not(.home-kicker),
.home-split p:not(.home-kicker){
  margin: 0;
  color: var(--home-text);
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.8;
}

.home-section-heading{
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(280px, .5fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: stretch;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.home-feature-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .66fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: stretch;
}

.home-feature-row--image-left{
  grid-template-columns: minmax(260px, .66fr) minmax(0, 1fr);
}

.home-feature-row__content{
  align-self: center;
}

.home-feature-row__image{
  min-height: clamp(260px, 30vw, 400px);
  border-top: 1px solid var(--home-line);
  border-right: .45rem solid var(--home-accent);
  border-bottom: 1px solid var(--home-line);
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--home-accent-2) 16%, transparent), transparent),
    var(--section-image);
  background-color: var(--home-soft);
  background-position: center;
  background-repeat: no-repeat;
  background-size: min(78%, 360px) auto;
}

.home-feature-row--image-left .home-feature-row__image{
  border-right: 0;
  border-left: .45rem solid var(--home-accent);
}

.home-focus-list{
  border-top: 1px solid var(--home-line);
}

.home-focus-item{
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2.1rem) 0;
  border-bottom: 1px solid var(--home-line);
  color: inherit;
}

.home-focus-item:hover{
  color: inherit;
}

.home-focus-item__number{
  color: var(--home-accent-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.home-focus-item__body{
  display: grid;
  grid-template-columns: minmax(220px, .35fr) minmax(0, .65fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: baseline;
}

.home-focus-item strong{
  color: var(--home-ink);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -.045em;
}

.home-focus-item:hover strong{
  color: var(--home-accent-2);
}

.home-focus-item__body span{
  color: var(--home-text);
  font-size: 1.05rem;
  line-height: 1.65;
}

.home-split{
  display: grid;
  grid-template-columns: minmax(260px, .66fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--home-line);
}

.home-split__image{
  min-height: clamp(260px, 30vw, 400px);
  border-left: .45rem solid var(--home-accent);
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--home-accent-2) 18%, transparent), transparent),
    var(--split-image);
  background-color: var(--home-soft);
  background-position: center;
  background-repeat: no-repeat;
  background-size: min(78%, 360px) auto;
  border-right: 1px solid var(--home-line);
}

.home-split__content{
  align-self: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.home-link{
  display: inline-flex;
  margin-top: 1.25rem;
  color: var(--home-accent-2);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: .12em;
  text-underline-offset: .25em;
}

.home-logo-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-line);
  border-left: 1px solid var(--home-line);
  list-style: none;
}

.home-logo-grid li{
  min-height: 150px;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  background: var(--home-paper);
}

.home-logo-grid a{
  display: grid;
  height: 100%;
  align-content: center;
  justify-items: center;
  gap: .85rem;
  padding: 1.1rem;
  color: var(--home-text);
}

.home-logo-grid img{
  max-width: min(150px, 80%);
  max-height: 66px;
  margin: 0;
  object-fit: contain;
  filter: saturate(.95);
}

.home-logo-grid span{
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.home-cta{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  background:
    linear-gradient(90deg, var(--home-accent) 0 .55rem, transparent .55rem),
    #10141d;
}

.home-cta h2{
  max-width: 820px;
  color: #fff;
}

.home-cta .home-kicker{
  color: color-mix(in oklab, var(--home-accent) 60%, #fff);
}

.home-cta .home-button--secondary{
  border-color: rgba(255,255,255,.26);
  color: #fff;
}

/* Back-to-top only: keep functional, not part of page layout language. */
.to_top{
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}
.to_top .icon{ width: 22px; height: 22px; }

html[data-mode="dim"] .home-editorial,
[data-bs-theme="dark"] .home-editorial{
  --home-paper: #10141d;
  --home-soft: rgba(255,255,255,.06);
  --home-line: rgba(255,255,255,.14);
}

html[data-mode="dim"] .home-logo-grid img,
[data-bs-theme="dark"] .home-logo-grid img{
  filter: saturate(.95) brightness(1.12);
}

@media (max-width: 1000px){
  .home-hero,
  .home-statement,
  .home-section-heading,
  .home-split,
  .home-cta{
    grid-template-columns: 1fr;
  }

  .home-hero__copy{
    padding-right: 0;
  }

  .home-feature-row__content{
    order: 1;
  }

  .home-feature-row__image{
    order: 2;
  }

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

  .home-fact:nth-child(even){
    border-right: 0;
  }

  .home-split__image{
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

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

@media (max-width: 680px){
  .home-editorial{
    margin-inline: 0;
    padding-inline: 0;
  }

  .home-hero{
    min-height: 0;
  }

  .home-hero__copy,
  .home-statement,
  .home-focus,
  .home-partners,
  .home-cta{
    padding-inline: 1rem;
  }

  .home-focus-item,
  .home-focus-item__body{
    grid-template-columns: 1fr;
    gap: .7rem;
  }

  .home-facts,
  .home-logo-grid{
    grid-template-columns: 1fr;
  }

  .home-fact,
  .home-fact:nth-child(2){
    border-right: 0;
  }

  .home-cta .home-actions{
    width: 100%;
  }
}
