/* =====================================================================
   HY-D v5 · design review fixes (agreed with Alex, 2026-11-09)
   1. Section labels: "01" instead of "S/01"
   2. One type scale: 13 / 15 / 17 / 21 / 28 / 40 px at 1440 wide (the hero keeps its own sizes)
   3. Three text levels: primary 100%, secondary 75%, disabled 55%
   4. Contrast: inactive How It Works steps, table notes and footer readable (WCAG AA)
   5. Overview: real column headings, key phrases in bold
   6. Shorter gaps between sections
   7. Nav links 44px tall, 15px; section labels 13px with narrower tracking
   8. Applications: a length line under each sector title follows its vehicle
   ===================================================================== */
.ale2 {
  --fs-xs: clamp(13px, 0.9vw, 15px);
  --fs-sm: clamp(15px, 1.04vw, 17px);
  --fs-base: clamp(17px, 1.18vw, 20px);
  --fs-md: clamp(21px, 1.46vw, 26px);
  --fs-lg: clamp(28px, 1.95vw, 34px);
  --fs-xl: clamp(34px, 2.78vw, 48px);
  --t1: #ffffff;
  --t2: rgba(255, 255, 255, 0.75);
  --t3: rgba(255, 255, 255, 0.55);
  --text: var(--t1);
  --text-soft: var(--t2);
  --text-dim: var(--t2);
}

/* ---------- 1 + 7: section labels ---------- */
.ale2 .hy-tag { font-size: var(--fs-xs); letter-spacing: 0.12em; color: var(--t2); }
.ale2 .hy-tag .t { color: var(--t1); }
.ale2 .hy-tag .n::before { content: none; }
.ale2 .hy-tag::after { color: var(--t3); letter-spacing: 0.12em; }

/* ---------- 7: navigation ---------- */
.ale2 .hy-nav-links a { font-size: var(--fs-sm); padding: 11px 14px; line-height: 20px; min-height: 44px; display: inline-flex; align-items: center; }
.ale2 .hy-nav-cta { font-size: var(--fs-sm); min-height: 44px; padding: 0 18px; }
.ale2 .e-menu a.sub, .ale2 .e-menu a { color: var(--t1); }

/* ---------- 2 + 3: one type scale, three text levels ---------- */
.ale2 .h-section { font-size: var(--fs-xl); }
.ale2 .s4-head { font-size: var(--fs-lg); }
.ale2 .e-lead, .ale2 .e-cell p, .ale2 .e-list li, .ale2 .e-table td, .ale2 .e-person p, .ale2 .e-team .e-lead, .ale2 .s8-lead { font-size: var(--fs-base); }
.ale2 .e-contact-body p { font-size: var(--fs-md); }
.ale2 .e-mail { font-size: var(--fs-md) !important; }
.ale2 .v2-body h3, .ale2 .e-person h3, .ale2 .v5-cell-h { font-size: var(--fs-md); }
.ale2 .tl-title { font-size: var(--fs-md); }
.ale2 .s4-steps strong { font-size: var(--fs-md); }
.ale2 .s4-steps span, .ale2 .tl-detail, .ale2 .e-table td span, .ale2 .e-awards { font-size: var(--fs-sm); }
.ale2 .e-k, .ale2 .e-role, .ale2 .tl-who, .ale2 .s8-label, .ale2 .e-table th, .ale2 .omo-how-src em, .ale2 .foot-name, .ale2 .foot-year, .ale2 .e-pill, .ale2 .hy-dim .lbl { font-size: var(--fs-xs); }
.ale2 .e-list li, .ale2 .e-table td, .ale2 .e-lead, .ale2 .e-person p, .ale2 .tl-detail, .ale2 .e-awards, .ale2 .e-table td span, .ale2 .tl-who, .ale2 .foot-name, .ale2 .foot-year { color: var(--t2); }
.ale2 .e-table td b, .ale2 .e-list.ok li, .ale2 .tl-title { color: var(--t1); }
.ale2 .e-table td span { margin-top: 4px; }

/* ---------- 4: How It Works, inactive steps stay readable ---------- */
.ale2 .omo-how-steps > li { opacity: 1 !important; }
.ale2 .omo-how-steps > li strong, .ale2 .omo-how-steps > li > span { transition: color 0.3s ease; }
.ale2 .omo-how-steps > li:not(.is-active) strong, .ale2 .omo-how-steps > li:not(.is-active) > span { color: var(--t3); }
.ale2 .omo-how-steps > li.is-active strong { color: var(--t1); }
.ale2 .omo-how-steps > li.is-active > span { color: var(--t2); }
.ale2 .omo-how-src em { opacity: 0.55; }
.ale2 .omo-how-steps > li.is-active .omo-how-src em.is-lit { opacity: 1; }

/* ---------- 5: Overview, column headings and key phrases ---------- */
.ale2 .v5-cell-h { margin: 0 0 12px; font-weight: 600; line-height: 1.2; color: var(--t1); letter-spacing: -0.005em; }
.ale2 .e-cell p { color: var(--t2); line-height: 1.55; }
.ale2 .e-cell p b { color: var(--t1); font-weight: 600; }
.ale2 .e-cell { padding-top: calc(1.8 * var(--u)); }

/* ---------- 6: shorter gaps between sections ---------- */
.ale2 .section { padding-top: max(84px, calc(5.6 * var(--u))); padding-bottom: max(40px, calc(3 * var(--u))); }
.ale2 .e-glance { padding-bottom: max(48px, calc(3.5 * var(--u))); }
.ale2 .e-team { padding-bottom: max(24px, calc(1.6 * var(--u))); }
.ale2 .e-contact { padding-top: max(40px, calc(3 * var(--u))); }
.ale2 .v2-sector { padding-block: calc(2.4 * var(--u)); }

/* ---------- 8: Applications, the title's length line follows the vehicle ---------- */
.ale2 .v5-title { display: inline-grid; gap: 10px; margin-bottom: 16px; }
.ale2 .v2-body h3 { margin: 0; }
.ale2 .v5-len {
  --e: 0; --min: 42%;
  position: relative; display: block; height: 11px; justify-self: start;
  width: calc(var(--min) + (100% - var(--min)) * var(--e));
}
.ale2 .v5-len::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--signal); opacity: 0.85; }
.ale2 .v5-len::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 11px; border-left: 1px solid var(--signal); border-right: 1px solid var(--signal); opacity: 0.85; }
.ale2 .v2-sector.flip .v5-title { justify-self: start; }
/* one-time connector: a hairline drawn from the vehicle to its title when the row comes into view */
.ale2 .v2-body { position: relative; }
.ale2 .v2-body::before {
  content: ""; position: absolute; top: calc(var(--fs-md) * 0.62); height: 1px; width: calc(4 * var(--u));
  right: 100%; background: linear-gradient(90deg, rgba(111, 211, 255, 0), var(--signal));
  transform: scaleX(0); transform-origin: left center; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.ale2 .v2-sector.flip .v2-body::before { right: auto; left: 100%; transform-origin: right center; background: linear-gradient(270deg, rgba(111, 211, 255, 0), var(--signal)); }
.ale2 .v2-sector.is-in .v2-body::before { transform: scaleX(1); }

@media (max-width: 767px), (max-aspect-ratio: 1/1) {
  .ale2 .hy-nav-cta { min-height: 40px; }
  .ale2 .v2-body::before { display: none; }
  .ale2 .section { padding-top: 72px; padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .ale2 .v2-body::before { transform: scaleX(1); transition: none; }
}
.ale2 .e-menu a { font-size: var(--fs-lg); }
.ale2 .e-menu a i { font-size: var(--fs-xs); }
.ale2 .s4-head .hy-tag { font-size: var(--fs-xs); }
.ale2 .omo-length span { font-size: var(--fs-xs); }
/* sector titles are the focal point next to each animation: one step up the scale */
.ale2 .v2-body h3 { font-size: var(--fs-lg); }
.ale2 .v2-body::before { top: calc(var(--fs-lg) * 0.62); }
.ale2 .v2-body::before { right: calc(100% + 12px); }
.ale2 .v2-sector.flip .v2-body::before { right: auto; left: calc(100% + 12px); }

/* ---------- v6 (agreed 2026-11-09) ---------- */
/* Applications: the length line under each title is enough; no connector line */
.ale2 .v2-body::before { content: none; }
/* Patent pending: outline capsule after the lead sentence */
.ale2 .e-ip .e-lead { max-width: none; }
.ale2 .e-pill {
  display: inline-flex; align-items: center; margin-left: 14px; vertical-align: 0.1em; white-space: nowrap;
  background: transparent; color: var(--t2); border: 1px solid rgba(111, 211, 255, 0.55);
  padding: 3px 12px; border-radius: 999px; font-weight: 400; letter-spacing: 0.04em; line-height: 1.4;
}
/* Footer: the same 03 x OMO composite as the hero, small and soft */
.ale2 .foot-in img.foot-logos { width: auto; height: max(22px, calc(1.6 * var(--u))); opacity: 0.85; margin-right: 6px; }
/* phones: the capsule wraps under the sentence, aligned to its left edge */
@media (max-width: 767px), (max-aspect-ratio: 1/1) { .ale2 .e-pill { margin-left: 0; margin-top: 8px; } }
/* awards: the label sits on its own line so the list reads as one clean line */
.ale2 .e-awards .e-k { display: block; margin: 0 0 8px; }

/* ---------- v7 · ASK ---------- */
/* one ASK only (the section label); the sentence leads the section at the size of the phase titles, in Light */
.ale2 .e-engage .s8-ask { display: block; }
.ale2 .e-engage .s8-lead { font-size: var(--fs-md); font-weight: 300; line-height: 1.45; color: var(--t1); max-width: 34em; margin: 0; }

/* timeline: every line of text may wrap; columns keep a fixed gap; the dots stay on one line */
.ale2 ol.tl .tl-ph { padding-inline: max(12px, calc(1 * var(--u))); }
.ale2 ol.tl .tl-who {
  white-space: normal; line-height: 1.3; min-height: 2.6em;
  display: flex; align-items: flex-end; justify-content: center; text-align: center;
  font-size: clamp(11px, 0.9vw, 15px);
}
.ale2 ol.tl .tl-title { white-space: normal; text-wrap: balance; font-size: clamp(17px, 1.46vw, 26px); line-height: 1.2; }
.ale2 ol.tl .tl-detail { text-wrap: pretty; }
.ale2 ol.tl .tl-who, .ale2 ol.tl .tl-title, .ale2 ol.tl .tl-detail { max-width: 100%; overflow-wrap: break-word; }

/* narrow windows (small laptops, tablets in landscape): the timeline runs down the left, as on phones */
@media (min-width: 768px) and (max-width: 1023px) and (min-aspect-ratio: 1/1) {
  .ale2 .s8-pin { align-items: stretch; }
  .ale2 .e-engage .s8-stage { width: 100%; height: 100%; padding: 84px max(28px, 5vw) 3vh; gap: 3.5vh; align-content: center; }
  .ale2 .e-engage .s8-lead { font-size: 20px; }
  .ale2 ol.tl { grid-template-columns: 1fr; row-gap: 2.2vh; }
  .ale2 ol.tl .tl-ph { grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto auto; justify-items: start; text-align: left; column-gap: 14px; row-gap: 2px; padding: 0; }
  .ale2 ol.tl .tl-node { grid-column: 1; grid-row: 1 / span 3; align-self: stretch; width: 22px; height: auto; display: block; }
  .ale2 ol.tl .tl-dot { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); width: 12px; height: 12px; min-width: 0; min-height: 0; }
  .ale2 ol.tl .tl-seg { top: 10px; left: 50%; width: 1px; height: calc(100% + 2.2vh); }
  .ale2 ol.tl .tl-seg::after { transform: scaleY(0); transform-origin: center top; background: linear-gradient(180deg, var(--violet), var(--a-cyan)); }
  .ale2 ol.tl .tl-ph.fill .tl-seg::after { transform: scaleY(1); }
  .ale2 ol.tl .tl-who, .ale2 ol.tl .tl-title, .ale2 ol.tl .tl-detail { grid-column: 2; text-align: left; justify-content: flex-start; }
  .ale2 ol.tl .tl-who { min-height: 0; font-size: 12px; }
  .ale2 ol.tl .tl-title { font-size: 19px; }
  .ale2 ol.tl .tl-detail { font-size: 15px; max-width: none; }
}
@media (max-width: 767px), (max-aspect-ratio: 1/1) {
  .ale2 ol.tl .tl-ph { padding: 0; }
  .ale2 ol.tl .tl-who { min-height: 0; justify-content: flex-start; text-align: left; font-size: 12px; }
  .ale2 ol.tl .tl-title { font-size: clamp(17px, 4.6vw, 21px); }
  .ale2 .e-engage .s8-lead { font-size: clamp(18px, 4.8vw, 21px); }
}
