/* ==========================================================================
   Home — page-specific styles (common tokens/components come from common.css)
   ========================================================================== */

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(calc(100svh - 2 * var(--frame)), 980px);
  margin: var(--frame); padding-top: calc(var(--header-h) + 1.5rem); border-radius: var(--r-xl);
  color: var(--on-dark);
  background:
    radial-gradient(60% 70% at 88% 85%, rgb(192 225 71 / 0.2), transparent 62%),
    radial-gradient(75% 85% at 8% 0%, var(--green-700), transparent 72%),
    var(--green-900);
}
.hero::before {            /* legibility scrim over the photo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(0 21 15 / 0.5) 0%, rgb(0 34 25 / 0.22) 38%, rgb(0 21 15 / 0.78) 100%),
              linear-gradient(90deg, rgb(0 21 15 / 0.55) 0%, transparent 62%);
}
.hero::after {             /* topographic lines */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime-400); opacity: 0.09;
  -webkit-mask: var(--mask-topo) center / cover no-repeat; mask: var(--mask-topo) center / cover no-repeat;
}
.hero .bgimg { z-index: -2; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes hero-parallax { to { translate: 0 9%; scale: 1.08; } }
    .hero .bgimg > img { animation: hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  }
}

.hero__grid { display: grid; gap: 2.5rem; align-items: center; padding-block: 2rem 2.25rem; }
@media (min-width: 1040px) { .hero__grid { grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr); gap: clamp(2rem, 5vw, 5rem); } }
.hero__copy { display: grid; gap: 1.6rem; justify-items: start; max-width: 52rem; }
.hero__title { font-size: var(--fs-display); font-weight: 400; letter-spacing: -0.045em; line-height: 1.02; }
.hero .lead { color: rgb(255 255 255 / 0.8); max-width: 54ch; }
.hero .btn-row { margin-top: 0.4rem; }
/* short laptop screens (e.g. 1280×720): keep the CTAs above the fold */
@media (min-width: 1040px) and (max-height: 820px) {
  .hero { padding-top: calc(var(--header-h) + 0.5rem); }
  .hero__title { font-size: clamp(2.6rem, 1rem + 3.2vw, 3.6rem); }
  .hero__copy { gap: 1.1rem; }
  .hero .lead { font-size: 1.0625rem; }
  .hero__grid { padding-block: 1rem 1.25rem; }
  .hero__facts li { padding: 0.8rem 1.1rem; }
}

/* illustrative output card */
.dossier {
  display: grid; gap: 0.9rem; padding: 1rem; border-radius: var(--r-lg); color: var(--green-900);
  background: rgb(255 255 255 / 0.93); box-shadow: 0 30px 70px -24px rgb(0 0 0 / 0.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); max-width: 27rem; width: 100%; justify-self: start;
}
@media (min-width: 1040px) { .dossier { justify-self: end; } }
.dossier__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.15rem 0.35rem 0; }
.dossier__title { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.9375rem; }
.dossier__title .icon { width: 1.15rem; height: 1.15rem; color: var(--green-600); }
.dossier__tag { padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--lime-100); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.dossier__map { position: relative; border-radius: var(--r-md); overflow: hidden; line-height: 0; }
.dossier__map svg { width: 100%; height: auto; }
.dossier__pin { position: absolute; left: 0.6rem; bottom: 0.6rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: rgb(0 21 15 / 0.7); color: #fff; font: 700 0.6875rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dossier__rows { display: grid; gap: 0.15rem; font-size: 0.875rem; }
.dossier__rows li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7rem; padding: 0.5rem 0.35rem; border-radius: 10px; }
.dossier__rows li + li { border-top: 1px solid var(--line); border-radius: 0; }
.dossier__rows em { font-style: normal; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.dossier__ok { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--green-900); color: var(--lime-400); }
.dossier__ok .icon { width: 0.8rem; height: 0.8rem; stroke-width: 2.6; }
.dossier__ok--warn { background: var(--lime-400); color: var(--green-900); }
.dossier__hash { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.9rem; border-radius: var(--r-sm); background: var(--green-900); color: var(--on-dark-muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.dossier__hash code { color: var(--lime-400); font: 600 0.875rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; text-transform: none; }

.hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; padding-bottom: 1.1rem; }
@media (min-width: 900px) { .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; } }
.hero__facts li {
  display: grid; gap: 0.2rem; padding: 1.1rem 1.25rem; border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hero__facts strong { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; color: var(--lime-400); }
.hero__facts span { font-size: 0.8125rem; line-height: 1.4; color: rgb(255 255 255 / 0.75); }

/* ---------- Platforms marquee ------------------------------------------ */
.platforms { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.platforms__title { text-align: center; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem; }
.marquee { overflow: hidden; padding-block: 0.9rem; }
.marquee__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.8rem 3.5rem; padding-inline: var(--gutter); }
.marquee__list li { display: flex; align-items: center; }

/* One sprite holds every logo: /static/img/home/platform-logo.png (9979 x 246 px, ten logos side by side).
   Each .plat--* rule is a tight crop around one logo, in sprite pixels:
     --cx / --cy = top-left corner of the crop     --cw / --ch = its width / height
     --r         = size of the logo relative to the common box (--box-h), so every logo looks the same size:
                   a logo is fitted into a box 4.5x as wide as it is tall. Wide wordmarks are limited by the
                   box width (r below 1); compact marks fill the box height (r = 1).
   If you replace the PNG, re-measure the logos and update the numbers (see README, "Platform logos"). */
.plat {
  --sprite-w: 9979; --sprite-h: 246;
  --box-h: clamp(2.1rem, 1.6rem + 1.2vw, 2.8rem);                    /* height of the common box */
  --r: 1;
  --h: calc(var(--box-h) * var(--r));                                /* rendered height of this crop */
  --u: calc(var(--h) / var(--ch));                                   /* rendered size of one sprite pixel */
  display: block; flex: none; height: var(--h); width: calc(var(--cw) * var(--u));
  background: url("/static/img/home/platform-logo.png") no-repeat;
  background-size: calc(var(--sprite-w) * var(--u)) calc(var(--sprite-h) * var(--u));
  background-position: calc(var(--cx) * var(--u) * -1) calc(var(--cy) * var(--u) * -1);
}
.plat--microsoft    { --cx: 0; --cy: 0; --cw: 1158; --ch: 246; --r: 0.956; }
.plat--sap          { --cx: 1384; --cy: 0; --cw: 509; --ch: 246; --r: 1.0; }
.plat--databricks   { --cx: 2258; --cy: 13; --cw: 1321; --ch: 220; --r: 0.749; }
.plat--snowflake    { --cx: 3906; --cy: 0; --cw: 1105; --ch: 246; --r: 1.0; }
.plat--aws          { --cx: 5239; --cy: 0; --cw: 418; --ch: 246; --r: 1.0; }
.plat--azure        { --cx: 5886; --cy: 0; --cw: 271; --ch: 246; --r: 1.0; }
.plat--google-cloud { --cx: 6495; --cy: 17; --cw: 1357; --ch: 223; --r: 0.739; }
.plat--copernicus   { --cx: 8251; --cy: 0; --cw: 694; --ch: 246; --r: 1.0; }
.plat--salesforce   { --cx: 9171; --cy: 0; --cw: 355; --ch: 246; --r: 1.0; }
.plat--mcp          { --cx: 9753; --cy: 7; --cw: 226; --ch: 232; --r: 1.0; }


.marquee.is-ready { -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee.is-ready .marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-d, 60s) linear infinite; }
.marquee.is-ready .marquee__list { flex-wrap: nowrap; justify-content: flex-start; gap: 3.5rem; padding-inline: 0 3.5rem; }
.marquee.is-ready:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee.is-ready .marquee__track { animation: none; } }

/* ---------- Short answers ---------------------------------------------- */
.answers { display: grid; gap: 1.1rem; }
@media (min-width: 900px) { .answers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; } }
.answer { display: grid; align-content: start; gap: 1rem; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.answer:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.answer p { color: var(--muted); }

/* ---------- Why first-mile data breaks --------------------------------- */
.why__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) { .why__grid { grid-template-columns: 1.05fr 0.95fr; } .why__copy { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.why__copy { display: grid; gap: 1.25rem; justify-items: start; }
.why__copy p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.0625rem; }
.why__copy a { text-decoration: underline; text-decoration-color: var(--lime-500); text-decoration-thickness: 2px; text-underline-offset: 0.2em; font-weight: 600; }

.timeline { padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.timeline__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.timeline__list { position: relative; display: grid; gap: 0; }
.timeline__list::before { content: ""; position: absolute; left: 0.45rem; top: 0.8rem; bottom: 0.8rem; width: 1px; background: var(--line-dark); }
.timeline__list li { position: relative; display: grid; gap: 0.35rem; padding: 0 0 1.75rem 2.2rem; }
.timeline__list li:last-child { padding-bottom: 0.2rem; }
.timeline__list li::before {
  content: ""; position: absolute; left: 0; top: 0.5rem; width: 0.95rem; height: 0.95rem; border-radius: 50%;
  background: var(--green-900); border: 2px solid var(--lime-400);
}
.timeline__list li:nth-child(2)::before, .timeline__list li:nth-child(3)::before { background: var(--lime-400); }
.timeline__list time, .timeline__ha { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.15; }
.timeline__list p { color: var(--on-dark-muted); max-width: 40ch; }
.timeline__src { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line-dark); font-size: 0.8125rem; color: rgb(255 255 255 / 0.6); }

/* ---------- Statement: words light up with scroll ----------------------- */
.statement-section { padding-block: clamp(1rem, 3vw, 2.5rem) 0; }
.statement { font-size: clamp(1.7rem, 1rem + 2.7vw, 3.3rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.16; text-align: center; text-wrap: balance; }
.statement__mark { width: 4rem; height: 4rem; margin: clamp(2rem, 4vw, 3rem) auto 0; border-radius: 1rem; }
.statement .w { display: inline; }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes word-on { from { opacity: 0.16; } to { opacity: 1; } }
    .statement.is-split { view-timeline: --stmt block; }
    .statement.is-split .w { animation: word-on linear both; animation-timeline: --stmt; animation-range: cover var(--s) cover var(--e); }
  }
}

/* ---------- Accelerators scroller -------------------------------------- */
.accelerators .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.accelerators__tools { display: grid; gap: 1.25rem; justify-items: start; }
@media (min-width: 900px) { .accelerators__tools { justify-items: end; text-align: right; } .accelerators__tools .lead { margin-left: auto; } }
.accelerators__nav { display: flex; align-items: center; gap: 0.6rem; }
.accelerators__nav .text-link { margin-left: 0.9rem; }

.scroller {
  display: flex; gap: 1.25rem; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0.5rem max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))) 1.5rem;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
}
.scroller::-webkit-scrollbar { display: none; }
.acc-card {
  flex: 0 0 min(84vw, 24.5rem); scroll-snap-align: start; display: grid; align-content: start; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.acc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.acc-card .media { border-radius: 0; }
.acc-card__body { display: grid; gap: 0.85rem; justify-items: start; padding: 1.4rem 1.5rem 1.7rem; }
.acc-card__meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.acc-card h3 { font-weight: 600; }
.acc-card p { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Audiences --------------------------------------------------- */
.audiences { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .audiences { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.audience { display: grid; align-content: start; gap: 1rem; min-height: 15rem; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.audience:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.audience h3 { font-size: 1.3rem; font-weight: 600; }
.audience p { color: var(--muted); }

/* ---------- Engineering standard --------------------------------------- */
.standard { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.1rem, 2.5vw, 1.75rem); }
@media (min-width: 960px) { .standard { grid-template-columns: 0.82fr 1.18fr; align-items: stretch; } }
.standard__media { --ar: 4 / 5; height: 100%; min-height: 20rem; border-radius: var(--r-lg); aspect-ratio: auto; }
@media (max-width: 959px) { .standard__media { aspect-ratio: 4 / 3; min-height: 0; } }
.standard__media > img { object-position: 50% 82%; }   /* when cropped to a landscape frame on phones keep the people (low in the photo), not the sky */
.standard__body { display: grid; align-content: center; gap: 1.5rem; justify-items: start; padding: clamp(0.5rem, 2vw, 1.5rem) clamp(0.25rem, 2vw, 1.5rem); }
.standard__body .accordion { width: 100%; }
