/* Homepage V2: sections. Flat/tactical physics, fluid transitions. */

/* ---------- Edge line: the rising "step" line (blue; red is reserved for CTAs + dividers) ---------- */
.edge { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; width: 100%; height: 5rem; pointer-events: none; overflow: visible; }
.edge path { fill: none; stroke: var(--blue); stroke-width: 4px; stroke-linecap: round; stroke-linejoin: round; }
.edge-sentinel { position: absolute; left: 0; bottom: 0; width: 1px; height: 5rem; pointer-events: none; }
.js .edge { clip-path: inset(-10px 100% -10px 0); transition: clip-path 1.6s var(--ease) .2s; }
.js .edge.is-in { clip-path: inset(-10px 0 -10px 0); }
.js .hero .edge { clip-path: none; transition: none; animation: edge-in 1.8s var(--ease) .9s both; }
@keyframes edge-in { from { clip-path: inset(-10px 100% -10px 0); } to { clip-path: inset(-10px 0 -10px 0); } }

/* ---------- Hero: asymmetric editorial column over rotating full-bleed images ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-950); color: #fff;
  min-height: min(52rem, 100svh); display: flex; align-items: flex-end; padding-block: 13rem 6.5rem; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { animation: drift 9s ease-out both; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgb(10 18 25 / .95) 0%, rgb(10 18 25 / .82) 40%, rgb(10 18 25 / .35) 78%, rgb(10 18 25 / .2) 100%),
              linear-gradient(0deg, var(--ink-950) 0%, transparent 28%), linear-gradient(180deg, rgb(10 18 25 / .6), transparent 24%); }
.hero__inner { position: relative; width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.hero__title { color: #fff; }
.hero__title::after { display: none; }
.hero__lede { max-width: 44rem; margin: var(--sp-3) 0 var(--sp-4); color: var(--on-dark); padding-left: var(--sp-3); border-left: 2px solid var(--blue); }
.hero__actions .btn { min-height: 3.4rem; padding-inline: 2rem; }
.hero__badges { display: inline-flex; align-items: center; gap: 0; margin-top: var(--sp-4); padding: .5rem 0; background: #fff; border-radius: var(--r-m); }
.hero__badges img { height: 3.2rem; width: auto; }
.hero__badges li { padding-inline: 1.1rem; }
.hero__badges li:nth-child(2) img { height: 4.2rem; }

/* One orchestrated entrance */
.header { animation: nav-in .9s var(--ease) .1s both; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-1.2rem); } to { opacity: 1; transform: none; } }
.hero__title, .hero__lede, .hero__actions, .hero__badges { animation: rise .9s var(--ease) both; }
.hero__title { animation-delay: .3s; } .hero__lede { animation-delay: .5s; } .hero__actions { animation-delay: .65s; } .hero__badges { animation-delay: .8s; }
@keyframes rise { from { opacity: 0; transform: translateY(1.6rem); } to { opacity: 1; transform: none; } }

/* ---------- Router: dark band continues from the hero; cards straddle the join ---------- */
.router__dark { background: var(--ink-950); color: var(--on-dark); padding-block: var(--sp-5) 9rem; }
.router__dark h2 { color: #fff; }
.router__dark .section-head { margin-bottom: 0; }
.router__light { display: flow-root; background: var(--paper); padding-bottom: var(--sp-section); }
.router__grid { position: relative; display: grid; gap: var(--sp-3); margin-top: -6.5rem; }
@media (min-width: 800px) { .router__grid { grid-template-columns: repeat(3, 1fr); align-items: start; } .router__grid li:nth-child(2) { margin-top: 2.5rem; } .router__grid li:nth-child(3) { margin-top: 5rem; } }
.router__card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: var(--sp-4); background: var(--white); color: var(--ink); text-decoration: none; overflow: hidden;
  border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--r-m); transition: transform .4s var(--ease), border-color .3s; }
.router__card::before { content: ""; position: absolute; right: -3rem; bottom: -3rem; width: 9rem; height: 9rem; border-radius: 50%; background: var(--paper); transition: transform .6s var(--ease); z-index: 0; }
.router__card > * { position: relative; z-index: 1; }
.router__card:hover { transform: translateY(-5px); color: var(--ink); }
.router__card:hover::before { transform: scale(3.2); }
.router__ico { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: var(--r-m); background: var(--ink-950); margin-bottom: .6rem; box-shadow: inset 0 1px 0 var(--hl-dark); }
.router__ico svg { width: 2rem; height: 2rem; }
.router__who { color: var(--ink); }
.router__what { color: var(--slate); }
.router__go { margin-top: auto; padding-top: var(--sp-2); font-weight: 700; color: var(--blue-deep); }
.router__go i { font-style: normal; display: inline-block; transition: transform .35s var(--ease); }
.router__card:hover .router__go i { transform: translateX(6px); }

/* ---------- Stats: a spec plate floating across the section join ---------- */
.trust { position: relative; z-index: 3; margin-top: calc(var(--sp-section) * -.5); padding-bottom: 0; }
.trust__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3) var(--sp-2); padding: var(--sp-4); background: var(--ink-950); color: #fff;
  border: 1px solid var(--bd-dark); border-top-color: var(--hl-dark); border-radius: var(--r-m); }
.trust__list li { display: flex; flex-direction: column; gap: .15rem; }
.trust__list strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.5rem, 1.7rem + 2.4vw, 3.5rem); letter-spacing: .03em; line-height: 1; color: #fff; }
.trust__list span { color: var(--on-dark-dim); }
@media (min-width: 800px) { .trust__list { grid-template-columns: repeat(4, 1fr); } .trust__list li + li { padding-left: var(--sp-3); border-left: 1px solid var(--bd-dark); } }

/* ---------- Expertise: sticky copy left, staggered cards right ---------- */
.services__layout { display: grid; gap: var(--sp-5); }
@media (min-width: 1000px) { .services__layout { grid-template-columns: 5fr 7fr; gap: var(--sp-6); align-items: start; } .services__layout .section-head { position: sticky; top: calc(var(--header-h) - 1rem); margin-bottom: 0; } }
.services__grid { display: grid; gap: var(--sp-3); }
@media (min-width: 600px) { .services__grid { grid-template-columns: 1fr 1fr; } .services__grid .svc:nth-child(even) { margin-top: 3.5rem; } }
.svc { position: relative; min-height: 24rem; display: flex; align-items: flex-end; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate;
  border-radius: var(--r-m); background: var(--ink-950); }
.svc img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 18 25 / .05) 30%, rgb(10 18 25 / .85) 76%, rgb(10 18 25 / .96)); }
.svc:hover { color: #fff; }
.svc:hover img { transform: scale(1.06); }
.svc__body { padding: var(--sp-3); width: 100%; position: relative; }
.svc h3 { color: #fff; margin-bottom: 0; position: relative; z-index: 2; max-width: calc(100% - 3.2rem); }
.svc h3::after { margin-bottom: 0; }
.svc__more { position: absolute; z-index: 1; right: var(--sp-3); top: var(--sp-3); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: #fff; }
.svc__more::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--blue); transition: transform .6s var(--ease); }
.svc:hover .svc__more::before, .svc:focus-visible .svc__more::before { transform: scale(6); }
.svc__arrow { width: 17px; height: 17px; transition: width .6s var(--ease), height .6s var(--ease), transform .6s var(--ease); }
.svc:hover .svc__arrow, .svc:focus-visible .svc__arrow { width: 36px; height: 36px; transform: rotate(-45deg); }

/* ---------- Our Services + How It Works: one continuous dark block ---------- */
.all, .steps { overflow: hidden; }
.all { padding-bottom: calc(var(--sp-section) * .6); }
.steps { padding-top: calc(var(--sp-section) * .6); padding-bottom: calc(var(--sp-section) + 1.5rem); }
.all .wrap, .steps .wrap { position: relative; z-index: 1; }
.all::after, .steps::after { z-index: 0; }
.all__intro { display: grid; gap: var(--sp-3) var(--sp-6); margin-bottom: var(--sp-6); }
@media (min-width: 900px) { .all__intro { grid-template-columns: 4fr 7fr; align-items: start; } }
.all__text p { max-width: 62ch; }
.all__text .btn { margin-top: var(--sp-1); }

/* Sector filter: vertical rail left, list right */
.tabs { display: grid; gap: var(--sp-3); }
.tabs__bar { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--bd-dark); }
.tabs__bar button { padding: .8rem 1.1rem; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--on-dark-dim); font-weight: 700; cursor: pointer; white-space: nowrap; text-align: left; transition: color .2s, border-color .2s; }
.tabs__bar button:hover { color: #fff; }
.tabs__bar button[aria-selected="true"] { color: #fff; border-bottom-color: var(--blue); }
@media (min-width: 800px) {
  .tabs { grid-template-columns: 13rem 1fr; gap: var(--sp-5); align-items: start; }
  .tabs__bar { flex-direction: column; border-bottom: 0; border-left: 1px solid var(--bd-dark); gap: 0; overflow: visible; }
  .tabs__bar button { padding: 1rem 1.25rem; border-bottom: 0; border-left: 2px solid transparent; margin-left: -1px; }
  .tabs__bar button[aria-selected="true"] { border-left-color: var(--blue); }
  .tabs__panel { grid-column: 2; grid-row: 1; }
}
.tabs__panel:not([hidden]) .tags li { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.tags li { padding: .6rem 1rem; border: 1px solid var(--bd-dark); border-top-color: var(--hl-dark); border-radius: var(--r-s); background: var(--ink-900); color: var(--on-dark); font-weight: 500; transition: border-color .25s, transform .3s var(--ease); }
.tags li:hover { border-color: var(--blue); transform: translateY(-2px); }
.tags li.is-hot { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }

/* How It Works: a descending staircase echoing the edge line; plain square nodes, no numerals */
.steps__list { display: grid; gap: var(--sp-4); }
.steps__list li { position: relative; padding-top: var(--sp-3); border-top: 1px solid var(--bd-dark); }
.steps__node { position: absolute; left: 0; top: -.4rem; width: .8rem; height: .8rem; background: var(--blue); }
.steps h3 { margin-bottom: .5rem; }
.steps h3::after { display: none; }
.steps p { margin: 0; color: var(--on-dark); }
@media (min-width: 900px) {
  .steps__list { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); align-items: start; padding-bottom: 5rem; }
  .steps__list li:nth-child(2) { margin-top: 1.75rem; } .steps__list li:nth-child(3) { margin-top: 3.5rem; } .steps__list li:nth-child(4) { margin-top: 5.25rem; }
}

/* ---------- About ---------- */
.about { padding-bottom: calc(var(--sp-section) + 3rem); }
.about__inner { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 950px) { .about__inner { grid-template-columns: 1fr 1.1fr; gap: var(--sp-6); } }
.about__media { position: relative; width: 100%; aspect-ratio: 1170 / 1385; }
.about__img { position: absolute; width: 71.8%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r-l); }
.about__media::before { content: ""; position: absolute; inset: -1.5rem; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgb(14 26 36 / .14) 1.4px, transparent 1.8px); background-size: 22px 22px;
  mask-image: radial-gradient(75% 75% at 50% 50%, #000 40%, transparent 100%); -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 40%, transparent 100%); }
.about__img { z-index: 1; }
.about__line { z-index: 2; }
.about__img--a { left: 0; top: 0; }
.about__img--b { right: 0; bottom: 0; }
.about__line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.about__line path { fill: none; stroke: var(--blue); stroke-width: var(--sw, 4); stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease) .2s; }
.about__media.is-in .about__line path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .about__line path { stroke-dashoffset: 0; } }
.about__copy p:last-child { margin-bottom: 0; }

/* Facebook CTA: flat blue panel */
.fbcta { display: grid; grid-template-columns: 1fr; margin-top: var(--sp-6); overflow: hidden; border-radius: var(--r-m); color: #fff; background: var(--blue-deep); border-top: 1px solid rgb(255 255 255 / .28); }
@media (min-width: 850px) { .fbcta { grid-template-columns: 60fr 40fr; } }
.fbcta__copy { padding: var(--sp-5); align-self: center; }
.fbcta h2 { color: #fff; font-size: var(--fs-h3); line-height: 1.2; display: flex; flex-wrap: wrap; align-items: center; column-gap: .75rem; }
.fbcta h2::after { background: #fff; flex: 0 0 100%; }
.fbcta__icon { flex: none; width: 2.2rem; height: 2.2rem; }
.fbcta p { margin: 0 0 var(--sp-3); max-width: 62ch; }
.fbcta .btn { margin-top: var(--sp-1); }
/* Two auto-scrolling image streams clipped by the banner: left column drifts down, right column drifts up */
.fbcta__reel { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding-inline: .75rem; min-height: 20rem; }
.reel__col { position: relative; overflow: hidden; }
.reel__track { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; will-change: transform; }
.reel__track img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: .75rem; border-radius: var(--r-s, 6px); }
.reel__col--down .reel__track { animation: reel-down 55s linear infinite; }
.reel__col--up .reel__track { animation: reel-up 62s linear infinite; }
@keyframes reel-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes reel-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .reel__track { animation: none !important; } }

/* Supplier banner: half over About, half over Reviews */
.seam { position: relative; z-index: 4; height: 0; }
.seam .wrap { position: relative; }
.logos { position: absolute; left: 0; right: 0; top: 0; transform: translateY(-50%); display: grid; gap: var(--sp-3) var(--sp-5); align-items: center;
  padding: var(--sp-4) var(--sp-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); }
.js .logos.reveal { transform: translateY(calc(-50% + 1.25rem)); }
.js .logos.reveal.is-in { transform: translateY(-50%); }
@media (min-width: 900px) { .logos { grid-template-columns: minmax(14rem, 20rem) 1fr; } }
.logos__intro h3::after { margin-bottom: 0; }
.logos__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: var(--sp-3) var(--sp-4); }
.logos__list img { height: 3.2rem; width: auto; max-width: 9rem; object-fit: contain; }

/* ---------- Night: reviews, FAQ panel and quote share one continuous dark surface ---------- */
.night { position: relative; overflow: clip; background: var(--ink-950); color: var(--on-dark); }
.night::before { z-index: 0; }
.night > * { position: relative; z-index: 1; }
.reviews { padding-top: calc(var(--sp-section) + 3rem); padding-bottom: var(--sp-6); }
.reviews h2, .quote h2 { color: #fff; }
.reviews__grid { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-4); }
@media (min-width: 850px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } .reviews__grid li:nth-child(2) { margin-top: 1.75rem; } .reviews__grid li:nth-child(3) { margin-top: 3.5rem; } }
.review { padding: var(--sp-4); background: var(--ink-900); border: 1px solid var(--bd-dark); border-top-color: var(--hl-dark); border-radius: var(--r-m); }
.review__stars { color: var(--blue); font-size: 1.3rem; letter-spacing: .2em; margin-bottom: var(--sp-2); }
.review blockquote { margin: 0 0 var(--sp-2); font-family: var(--f-body); font-weight: 500; font-size: 1.25rem; line-height: 1.4; color: #fff; opacity: .75; }
.review__by { margin: 0; color: var(--on-dark-dim); }

/* FAQ: a light panel floating on the dark surface; sticky title left, hairline accordion right */
.faq { padding-block: 0; }
.faq__panel { display: grid; gap: var(--sp-4); padding: var(--sp-5); background: var(--paper); color: var(--ink); border-radius: var(--r-m); border-top: 1px solid #fff; }
@media (min-width: 900px) { .faq__panel { grid-template-columns: 4fr 7fr; gap: var(--sp-6); padding: var(--sp-6) var(--sp-5); } .faq__title { position: sticky; top: calc(var(--header-h) - 1rem); align-self: start; } }
.faq__title h2 { color: var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); padding: 1.2rem 0; cursor: pointer; list-style: none; font-family: var(--f-body); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--f-body); font-weight: 400; font-size: 1.8rem; line-height: 1; color: var(--blue-deep); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 0 1.3rem; color: var(--slate); max-width: 62ch; }

/* Quote: blue section */
.faq { z-index: 2; }
.quote { margin-top: -12rem; padding-top: calc(var(--sp-section) + 12rem); padding-bottom: var(--sp-section); background: var(--blue-deep); border-top: 1px solid rgb(255 255 255 / .22); }
.quote::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(55% 80% at 100% 100%, rgb(2 17 26 / .35), transparent 70%), radial-gradient(40% 60% at 0% 0%, rgb(255 255 255 / .1), transparent 70%); }
.quote h2::after { background: #fff; }
.quote .quote__copy p { color: #fff; }
.quote__inner { position: relative; z-index: 1; display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 950px) { .quote__inner { grid-template-columns: 1fr 1.05fr; gap: var(--sp-6); } }
.quote__card { padding: var(--sp-4); background: var(--paper); color: var(--ink); border-radius: var(--r-m); border-top: 1px solid #fff; }
.quote__card .btn { width: 100%; }
