/* =====================================================================
   ALE v2 · Alex's feedback 02 (Nov 2026) applied to the reviewed site (HY-E)
   New order: Hero, Overview, How It Works, Applications, Status, Ask, Team, Contact.
   ===================================================================== */

/* ---------- Hero: new pack (chassis with body), logo composite, length line ---------- */
.ale2 .s1-track { height: 400vh; }
.ale2 .v2-logos {
  position: absolute; z-index: 1;
  top: max(calc(6.5 * var(--u)), 84px); right: calc(7 * var(--u));   /* same distance from the right as the wordmark from the left (L1) */
  height: calc(3.6 * var(--u)); width: auto;
}
.ale2 .s1-tags, .ale2 .s1-line { margin-left: 0; padding-left: 0; }
.ale2 .s1-chassis { right: calc(2 * var(--u)); bottom: calc(2.6 * var(--u)); width: calc(58 * var(--u)); }
.ale2 .s1-ready .v2-logos { transition-delay: 0.35s; }

.omo-length {
  --omo-len-min: 45%; --omo-len-max: 60%; --e: 0;
  position: relative; margin: 0 auto; height: 24px; color: var(--signal, #6fe0ff);
  width: calc(var(--omo-len-min) + (var(--omo-len-max) - var(--omo-len-min)) * var(--e));
}
.omo-length::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; opacity: 0.75;
  background: linear-gradient(90deg, currentColor calc(50% - 36px), transparent calc(50% - 36px), transparent calc(50% + 36px), currentColor calc(50% + 36px)); }
.omo-length::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 6px); height: 12px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; opacity: 0.75; }
.omo-length span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0 10px;
  color: #fff;
  font: 500 14px/1 var(--mono, monospace); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------- How It Works: five steps, request sources ---------- */
.ale2 .s4-track { height: 350vh; }
.ale2 .s4-steps li { padding-top: calc(1 * var(--u)); padding-bottom: calc(1 * var(--u)); }
.ale2 .s4-steps strong { font-size: max(16px, calc(1.5 * var(--u))); }
.ale2 .s4-steps span { font-size: max(14px, calc(1.15 * var(--u))); }
.omo-how-src { display: flex; flex-wrap: wrap; gap: 0.4em 1.4em; margin-top: 4px; }
.omo-how-src em {
  font-style: normal; font-family: var(--mono, monospace); font-size: max(11px, calc(0.85 * var(--u))); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--signal, #6fe0ff); opacity: 0.3; transition: opacity 0.3s ease;
}
.omo-how-src em.is-lit { opacity: 1; }

/* ---------- Applications: one row per sector, title + four lines + animation ---------- */
.v2-sector {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "media body";
  align-items: center; gap: calc(4 * var(--u));
  border-top: 1px solid var(--hair); padding-block: calc(3 * var(--u)); scroll-margin-top: 72px;
}
.v2-sector:first-of-type { margin-top: calc(2.4 * var(--u)); }
.v2-sector:last-of-type { border-bottom: 1px solid var(--hair); }
.v2-sector.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "body media"; }
.v2-media { grid-area: media; display: flex; justify-content: center; }
.v2-media canvas { display: block; width: 100%; max-width: calc(44 * var(--u)); height: auto; max-height: calc(32 * var(--u)); object-fit: contain; }
.v2-body { grid-area: body; }
.v2-body h3 { margin: 0 0 14px; font-weight: 600; font-size: max(24px, calc(2.4 * var(--u))); letter-spacing: -0.015em; line-height: 1.15; }
.v2-body .e-list { max-width: 26em; }

/* ---------- Contact: one sentence and the address ---------- */
.ale2 .e-contact-body { margin-top: calc(1.4 * var(--u)); }
.ale2 .e-contact-body p { max-width: 34em; }
.ale2 .e-mail { margin-top: 18px !important; font-size: max(18px, calc(1.5 * var(--u))) !important; }

/* phones and portrait screens */
@media (max-width: 767px), (max-aspect-ratio: 1/1) {
  .ale2 .s1-track { height: 400vh; }
  .ale2 .v2-logos { position: static; order: -1; align-self: flex-start; height: clamp(34px, 9vw, 56px); margin-bottom: 18px; }
  .ale2 .s1-chassis { width: 100%; flex-direction: column; justify-content: center; }
  .ale2 .s1-chassis canvas { width: 100%; max-width: 100%; height: auto; max-height: 46svh; object-fit: contain; }
  .omo-length span { font-size: 13px; }
  .ale2 .s4-steps li { padding-top: 8px; padding-bottom: 8px; }
  .ale2 .s4-steps strong { font-size: clamp(15px, 4.2vw, 20px); }
  .ale2 .s4-steps span { font-size: clamp(13px, 3.4vw, 16px); }
  .omo-how-src em { font-size: 11px; }
  .v2-sector, .v2-sector.flip { grid-template-columns: 1fr; grid-template-areas: "media" "body"; gap: 14px; padding-block: 22px; }
  .v2-media canvas { max-width: 100%; max-height: none; }
}

/* reduced motion: still visible and complete (the site keeps slow loops for the animations) */
@media (prefers-reduced-motion: reduce) {
  .ale2 .s1-track { height: auto; }
  .omo-how-steps > li, .omo-how-src em { opacity: 1 !important; }
}

/* HY-D v2: pull the length line up under the chassis (the frames leave empty space below the wheels) */
.omo-length { transform: translateY(calc(-5 * var(--u))); }
@media (max-width: 767px), (max-aspect-ratio: 1/1) { .omo-length { transform: translateY(-30px); } }

/* HY-D v3 · Team: names only, no portrait or monogram boxes.
   Three open columns, each opened by a short accent rule; role above the name. */
.ale2 .e-people { border: 0; gap: calc(3 * var(--u)); margin-top: calc(3.4 * var(--u)); background: none; }
.ale2 .e-person { border: 0 !important; padding: calc(1.6 * var(--u)) 0 0; position: relative; border-top: 1px solid var(--hair) !important; }
.ale2 .e-person::before { content: ""; position: absolute; left: 0; top: -1px; width: 36px; height: 2px; background: var(--signal); }
.ale2 .e-person .e-role { margin: 0 0 8px; }
.ale2 .e-person h3 { font-size: max(22px, calc(2 * var(--u))); font-weight: 600; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.01em; }
.ale2 .e-person p { max-width: 22em; }
.ale2 .e-awards { margin-top: calc(3.4 * var(--u)); padding-top: calc(1.4 * var(--u)); border-top: 1px solid var(--hair); }
@media (max-width: 767px), (max-aspect-ratio: 1/1) {
  .ale2 .e-people { gap: 26px; }
  .ale2 .e-person { padding: 16px 0 0; border-bottom: 0 !important; }
  .ale2 .e-person h3 { font-size: 22px; }
}

/* ---------- HY-D v4 ---------- */
/* Hero: the slogan at 80% of its earlier size, optically aligned with the tags and the line below */
.ale2 .s1-wordmark { font-size: calc(7.4 * 0.8 * var(--u)); margin-left: -0.045em; }
/* the hero frames carry a faint dark haze up to their edges; feather the canvas edges so no box shows on the gradient */
.ale2 #omo-chassis {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
          mask-composite: intersect;
}
/* ASK: back to HY-D's pinned timeline (one phase per quarter of the scroll, the line draws to each new dot) */
.ale2 .e-engage.s8-track { padding: 0; }
.ale2 .e-engage .s8-stage { gap: calc(5 * var(--u)); align-content: center; }
.ale2 .e-engage .s8-stage > .hy-tag { align-self: end; }
@media (max-width: 767px), (max-aspect-ratio: 1/1) {
  .ale2 .s1-wordmark { font-size: clamp(40px, 11.6vw, 96px); }
  .ale2 .e-engage .s8-stage { gap: 3vh; padding-top: 84px; }
}
/* Team: two partners, two columns */
.ale2 .e-people.e-people-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc(64 * var(--u)); }
@media (max-width: 767px), (max-aspect-ratio: 1/1) { .ale2 .e-people.e-people-2 { grid-template-columns: 1fr; max-width: none; } }
/* ASK timeline: every phase keeps its rows at the top so all four dots sit on one line;
   titles stay on one line on wide screens */
.ale2 .tl-ph { align-content: start; }
.ale2 .tl-who { min-height: 2.6em; white-space: nowrap; }
@media (min-width: 768px) and (min-aspect-ratio: 1/1) {
  .ale2 .tl-title { white-space: nowrap; font-size: max(15px, calc(1.4 * var(--u))); }
}
