/* ------------------------------------------------------------------
   AI Robot Technology Showcase — styles
   Tweak the look from the :root variables below.
------------------------------------------------------------------- */
:root {
  --rt-bg: #030303;              /* matches the robot image's background */
  --rt-accent: 255, 221, 0;      /* brand yellow #FFDD00 (RGB) */
  --rt-eye: 255, 190, 210;       /* the robot photo's own rose eyes: glow overlays keep this */
  --rt-icon-size: 78px;          /* overridden per breakpoint below */
  --rt-robot-width: 66%;         /* robot width relative to the stage */
  --rt-muted: #a4a0a3;           /* description text */
  --rt-font-display: Inter, "Segoe UI", system-ui, sans-serif;   /* headings: Regular 400 */
  --rt-font-body: Inter, "Segoe UI", system-ui, sans-serif;      /* descriptions: Regular 400 */
}

* { box-sizing: border-box; }
h1, h2, h3, h4 { font-weight: 400; }
html, body { margin: 0; height: 100%; background: var(--rt-bg); }
body {
  font-family: var(--rt-font-body);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- hero: copy on the left, robot animation on the right ---------- */
.rt-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: clamp(24px, 4vw, 56px) clamp(0px, 1vw, 12px);
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  /* kept deliberately close to the robot photo's own black so its edges never show */
  background: var(--rt-bg);
  isolation: isolate;
}
.rt-wrap {
  width: min(100%, 1280px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
}

/* ---------- copy ---------- */
.rt-copy { min-width: 0; }
.rt-brand {
  display: block;
  margin-bottom: .35em;
  font-size: .62em;
  letter-spacing: .14em;
  color: rgb(var(--rt-accent));
}
.rt-title {
  margin: 0;
  font-family: var(--rt-font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.1vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #f6f3f4;
}
.rt-desc {
  margin: clamp(16px, 2vw, 28px) 0 0;
  max-width: 30em;
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.6;
  color: var(--rt-muted);
  text-wrap: pretty;
}

/* ---------- stage: everything is positioned relative to this box ---------- */
.rt-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 6 / 5;
}

/* ---------- robot ---------- */
.rt-robot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--rt-robot-width);
  aspect-ratio: 735 / 530;            /* matches assets/images/robot.png */
  transform: translate(-51%, -47%);   /* centres the character + props as a group */
  z-index: 1;
}
.rt-robot-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 60% 80%;
  will-change: transform, opacity;
}
.rt-robot-img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
  /* feather the edges so the photo dissolves into the page */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 70%, transparent 100%);
          mask-composite: intersect;
}

/* eye overlays — positions are % of the robot image (see assets/images/robot.png) */
.rt-eye-glow, .rt-lid {
  position: absolute;
  top: 34.6%;
  width: 6.4%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;      /* centring is done by GSAP (xPercent/yPercent) in app.js */
}
.rt-eye-l { left: 48.2%; top: 34.2%; }   /* measured from the image's glowing eyes */
.rt-eye-r { left: 58.6%; top: 34.9%; }

.rt-eye-glow {
  width: 15%;
  background: radial-gradient(closest-side, rgba(var(--rt-eye), .55), rgba(var(--rt-eye), 0) 70%);
  mix-blend-mode: screen;
  opacity: .0;
}
/* the "lid" is only visible for a split second when blinking */
.rt-lid {
  width: 7.4%;
  background: #070707;
  opacity: 0;
}

/* light that blooms on the laptop each time an icon flies in */
.rt-laptop-glow {
  position: absolute;
  left: 41.5%;
  top: 60%;
  width: 34%;
  aspect-ratio: 1.5;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--rt-eye), .65), rgba(var(--rt-eye), 0) 72%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

/* soft ring that radiates from the head each time a technology connects */
.rt-ping {
  position: absolute;
  left: 59.5%;
  top: 27%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(var(--rt-eye), .55);
  opacity: 0;
  pointer-events: none;
}

/* ---------- connectors ---------- */
.rt-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;              /* above the robot so lines are never hidden behind its photo */
  pointer-events: none;
}
.rt-link {
  fill: none;
  stroke-width: 1.6;       /* stroke gradient is set per line in app.js */
  stroke-linecap: round;
  stroke-dasharray: 1;     /* paired with pathLength="1" for resolution-independent drawing */
  stroke-dashoffset: 1;
  opacity: .9;
}
.rt-node {
  fill: rgb(var(--rt-accent));
  opacity: 0;
}
.rt-pulse {
  fill: #fff;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(var(--rt-accent), .9));
}

/* ---------- icons ---------- */
.rt-icons {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.rt-icon {
  position: absolute;
  width: var(--rt-icon-size);
  height: var(--rt-icon-size);
  margin: calc(var(--rt-icon-size) / -2) 0 0 calc(var(--rt-icon-size) / -2);  /* centre on left/top */
  opacity: 0;
  will-change: transform, opacity;
}
.rt-icon-float { width: 100%; height: 100%; will-change: transform; }
.rt-icon-tile {
  position: relative;
  width: 100%;
  height: 100%;
  /* transparent logos: a soft shadow lifts them off the dark page */
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .7)) drop-shadow(0 0 14px rgba(var(--rt-accent), .14));
}
.rt-icon-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--zoom, 1));
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --rt-icon-size: 66px; --rt-robot-width: 62%; }
  .rt-wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rt-title { font-size: clamp(1.9rem, 6.4vw, 2.6rem); }
  .rt-stage { aspect-ratio: 1 / 1; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 560px) {
  :root { --rt-icon-size: 52px; --rt-robot-width: 66%; }
  .rt-stage { aspect-ratio: 1 / 1.05; }
}

/* ---------- reduced motion: show everything, calmly ---------- */
@media (prefers-reduced-motion: reduce) {
  .rt-icon { opacity: 1; }
  .rt-link { stroke-dashoffset: 0; }
}

/* ---------- Who We Are ---------- */
.wa {
  position: relative;
  padding: clamp(24px, 3vw, 48px) max(20px, env(safe-area-inset-left, 0px)) clamp(40px, 5vw, 72px) max(20px, env(safe-area-inset-right, 0px));
  background: var(--rt-bg);
}
.wa-wrap { width: min(100%, 1280px); margin-inline: auto; }

.wa-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: start;
}
.wa-title {
  margin: 0;
  font-family: var(--rt-font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: #f6f3f4;
}
.wa-lead {
  margin: clamp(16px, 2vw, 26px) 0 0;
  max-width: 20em;
  font-family: var(--rt-font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgb(var(--rt-accent));
}
.wa-text {
  margin: 0 0 18px;
  max-width: 34em;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  color: #b4b0b3;
}
.wa-text:last-child { margin-bottom: 0; }

.wa-body {
  margin-top: clamp(28px, 3.5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

/* wheel */
.wa-viz { min-width: 0; }
.wa-wheel { display: block; width: 100%; max-width: 560px; margin-inline: auto; height: auto; }
.wa-sec {
  fill: rgba(255, 255, 255, .035);
  stroke: var(--rt-bg);
  stroke-width: 4;
  cursor: pointer;
  transition: fill .4s ease;
}
.wa-sec:hover { fill: rgba(255, 255, 255, .07); }
.wa-sec.is-active { fill: rgba(var(--rt-accent), .13); }
.wa-ring { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.2; pointer-events: none; }
.wa-lab { color: #85818a; pointer-events: none; transition: color .4s ease; }
.wa-lab text { fill: currentColor; font: 400 22px var(--rt-font-body); }
.wa-lab.is-active { color: rgb(var(--rt-accent)); }
.wa-cube { pointer-events: none; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)); }
.wa-cube text { fill: #1d1015; font-family: var(--rt-font-display); font-weight: 400; }
.wa-cube-top { font-size: 13px; letter-spacing: .02em; }
.wa-cube-side { font-size: 17px; }

/* tabs + info */
.wa-info { min-width: 0; }
.wa-tabs { display: flex; flex-wrap: wrap; gap: clamp(8px, 2vw, 28px); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.wa-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 14px 2px;
  font: 400 .8rem/1 var(--rt-font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8c888b;
  cursor: pointer;
  transition: color .25s, border-color .25s;
}
.wa-tab:hover { color: #e9e5e7; }
.wa-tab:focus { outline: none; }
.wa-tab:focus-visible { box-shadow: 0 0 0 3px rgba(var(--rt-accent), .45); border-radius: 4px; }
.wa-tab.is-active { color: rgb(var(--rt-accent)); border-bottom-color: rgb(var(--rt-accent)); }

.wa-bar { display: flex; align-items: center; justify-content: space-between; margin-top: clamp(16px, 2vw, 24px); }
.wa-count { font: 400 .95rem/1 var(--rt-font-body); letter-spacing: .14em; color: #8c888b; }
.wa-arrows { display: flex; gap: 12px; }
.wa-arrow {
  appearance: none;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .07);
  color: rgb(var(--rt-accent));
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.wa-arrow:hover { background: rgba(var(--rt-accent), .2); transform: scale(1.06); }
.wa-arrow:focus { outline: none; }
.wa-arrow:focus-visible { box-shadow: 0 0 0 3px rgba(var(--rt-accent), .45); }

.wa-panel { margin-top: clamp(16px, 2vw, 28px); display: grid; }
.wa-item {
  grid-area: 1 / 1;           /* all three overlap, so the panel is always as tall as the longest */
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s .35s;
}
.wa-item.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s; }
.wa-ptitle {
  margin: 0;
  font-family: var(--rt-font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #f6f3f4;
}
.wa-pdesc {
  margin: clamp(12px, 1.4vw, 20px) 0 0;
  max-width: 24em;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  color: #cfcacd;
}
.wa-pmore {
  margin: clamp(12px, 1.4vw, 18px) 0 0;
  max-width: 32em;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: #a39fa2;
}

@media (max-width: 900px) {
  .wa-head, .wa-body { grid-template-columns: minmax(0, 1fr); }
  .wa-viz { order: 2; }
  .wa-wheel { max-width: 440px; }
}
@media (max-width: 560px) {
  .wa-tab { letter-spacing: .1em; font-size: .7rem; }
  .wa-lab text { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-item, .wa-tab, .wa-sec, .wa-lab, .wa-arrow { transition: none; }
}

/* ---------- What We Build (scroll-driven expanding cards) ---------- */
.wb {
  position: relative;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
  background: var(--rt-bg);
  /* scroll distance: one screen + one chunk per card change */
  height: calc(100vh + var(--steps, 3) * 65vh);
  height: calc(100svh + var(--steps, 3) * 65svh);
}
.wb-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(16px, 3vh, 40px);
}
.wb-wrap { width: min(100%, 1280px); margin-inline: auto; }
.wb-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: end;
}
.wb-eyebrow {
  margin: 0 0 clamp(10px, 1.4vh, 16px);
  font: 400 .85rem/1 var(--rt-font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgb(var(--rt-accent));
}
.wb-title {
  margin: 0;
  max-width: 14em;
  font-family: var(--rt-font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.06;
  color: #f6f3f4;
}
.wb-text {
  margin: 0;
  max-width: 30em;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
  color: #b4b0b3;
}

.wb-stack {
  margin-top: clamp(20px, 3.5vh, 40px);
  display: flex;
  gap: 14px;
  height: clamp(340px, 56vh, 540px);
}
.wb-card {
  position: relative;
  flex: 1 1 0;               /* flex-grow is driven by scroll in app.js */
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  color: #fff;
  text-decoration: none;
  will-change: flex-grow;
}
.wb-card:focus { outline: none; }
.wb-card:focus-visible { box-shadow: 0 0 0 3px rgba(var(--rt-accent), .7); }

/* collapsed label */
.wb-closed {
  position: absolute;
  inset: 0;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.wb-cnum { font: 400 .85rem/1 var(--rt-font-display); letter-spacing: .14em; color: rgba(255, 255, 255, .8); }
.wb-cname {
  writing-mode: vertical-rl;
  max-height: calc(100% - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--rt-font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  letter-spacing: .01em;
}

/* expanded content (fixed width, so text never re-wraps while the card grows) */
.wb-open {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: var(--open-w, 100%);
  padding: clamp(24px, 2.6vw, 40px);
  display: flex;
  flex-direction: column;
}
.wb-wm {
  position: absolute;
  right: -40px; bottom: -50px;
  width: clamp(200px, 26vw, 340px);
  height: auto;
  opacity: .12;
  pointer-events: none;
}
.wb-top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.wb-ico {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .16);
}
.wb-num { font: 400 .85rem/1 var(--rt-font-display); letter-spacing: .14em; color: rgba(255, 255, 255, .75); }
.wb-ctitle {
  position: relative;
  margin: clamp(18px, 3vh, 36px) 0 0;
  max-width: 12em;
  font-family: var(--rt-font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.wb-cdesc {
  position: relative;
  margin: clamp(10px, 1.6vh, 18px) 0 0;
  max-width: 26em;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
}
.wb-link {
  position: relative;
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #fff;
  color: #17151f;
  font: 400 .95rem/1 var(--rt-font-body);
  transition: transform .25s ease;
}
.wb-link svg { transition: transform .25s ease; }
.wb-card:hover .wb-link svg { transform: translateX(4px); }

/* phones: the stack runs top-to-bottom instead */
@media (max-width: 800px) {
  .wb-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 12px; }
  .wb-text { font-size: .95rem; line-height: 1.55; }
  .wb-title { font-size: clamp(1.7rem, 7vw, 2.3rem); }
  .wb-stack { flex-direction: column; height: clamp(360px, 54svh, 560px); gap: 10px; }
  .wb-card { min-height: 58px; border-radius: 18px; }
  .wb-closed { flex-direction: row; align-items: center; padding: 0 18px; height: 58px; gap: 14px; }
  .wb-cname { writing-mode: horizontal-tb; max-height: none; max-width: calc(100% - 40px); font-size: 1.05rem; }
  .wb-open { width: 100%; padding: 18px; }
  .wb-ico { width: 40px; height: 40px; border-radius: 12px; }
  .wb-ico svg { width: 22px; height: 22px; }
  .wb-ctitle { font-size: 1.5rem; margin-top: 12px; }
  .wb-cdesc { font-size: .95rem; line-height: 1.5; }
  .wb-link { padding: 11px 18px; font-size: .9rem; }
  .wb-wm { display: none; }
}

/* reduced motion: no pinning, every card open */
.wb.is-static { height: auto; }
.wb.is-static .wb-pin { position: static; height: auto; padding-block: clamp(24px, 4vw, 56px); }
.wb.is-static .wb-stack { height: auto; }
.wb.is-static .wb-card { flex: 1 1 0; min-height: 340px; }
.wb.is-static .wb-closed { display: none; }
.wb.is-static .wb-open { position: relative; width: 100%; }
@media (max-width: 800px) { .wb.is-static .wb-card { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .wb-link, .wb-link svg { transition: none; } }

/* ---------- How We Build (one-line timeline that lights up while scrolling) ---------- */
.hw {
  position: relative;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
  background: var(--rt-bg);
  height: calc(100vh + var(--steps, 4) * 60vh);
  height: calc(100svh + var(--steps, 4) * 60svh);
}
.hw-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(16px, 3vh, 40px);
}
.hw-wrap { width: min(100%, 1280px); margin-inline: auto; }

/* heading on one side, description on the other */
.hw-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: end;
}
.hw-eyebrow {
  margin: 0 0 clamp(10px, 1.4vh, 16px);
  font: 400 .85rem/1 var(--rt-font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgb(var(--rt-accent));
}
.hw-title {
  margin: 0;
  max-width: 14em;
  font-family: var(--rt-font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  letter-spacing: -0.025em;
  line-height: 1.06;
  color: #f6f3f4;
  text-wrap: balance;
}
.hw-title span { color: rgb(var(--rt-accent)); }
.hw-text {
  margin: 0;
  max-width: 30em;
  font-size: clamp(1.02rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  color: #b4b0b3;
}

/* the one-line structure */
.hw-track {
  --ic: clamp(52px, 4.4vw, 64px);
  --g: clamp(14px, 2vw, 32px);
  list-style: none;
  margin: clamp(40px, 9vh, 104px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--g);
}
.hw-step { position: relative; cursor: pointer; outline: none; }

/* line segment from this node to the next one; its fill is driven by scroll */
.hw-seg {
  position: absolute;
  top: calc(var(--ic) / 2 - 1px);
  left: calc(var(--ic) / 2);
  width: calc(100% + var(--g));
  height: 2px;
  background: rgba(255, 255, 255, .12);
}
.hw-fill {
  display: block;
  width: 100%; height: 100%;
  background: rgb(var(--rt-accent));
  transform-origin: left center;
  transform: scaleX(var(--s, 0));
}

.hw-ic {
  position: relative;
  z-index: 1;
  display: grid; place-items: center;
  width: var(--ic); height: var(--ic);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #77737a;
  background:
    linear-gradient(rgba(var(--rt-accent), calc(var(--a, 0) * .95)), rgba(var(--rt-accent), calc(var(--a, 0) * .95))),
    #0c0a0f;
  transition: color .35s ease, border-color .35s ease, box-shadow .45s ease, transform .45s ease;
}
.hw-ic svg { width: 46%; height: auto; }
.hw-step.is-on .hw-ic { color: #1a0f13; border-color: rgb(var(--rt-accent)); }
.hw-step.is-current .hw-ic {
  transform: scale(1.07);
  box-shadow: 0 0 0 8px rgba(var(--rt-accent), .14), 0 0 36px rgba(var(--rt-accent), .35);
}
.hw-step:focus-visible .hw-ic { box-shadow: 0 0 0 3px rgba(var(--rt-accent), .8); }

.hw-body { display: block; margin-top: clamp(18px, 2.6vh, 30px); padding-right: 4px; }
.hw-num {
  display: block;
  font: 400 .8rem/1 var(--rt-font-display);
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .3);
  transition: color .35s ease;
}
.hw-step.is-on .hw-num { color: rgb(var(--rt-accent)); }
.hw-ctitle {
  margin: 10px 0 0;
  font-family: var(--rt-font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #77737a;
  transition: color .35s ease;
}
.hw-step.is-on .hw-ctitle { color: #f6f3f4; }
.hw-cdesc {
  margin: 10px 0 0;
  font-size: clamp(.9rem, 1.05vw, 1rem);
  line-height: 1.6;
  color: #a9a5a8;
  opacity: var(--a, 0);
  transform: translateY(calc((1 - var(--a, 0)) * 12px));
}

/* phones and tablets: vertical timeline, no pinning (steps light up as you scroll past) */
@media (max-width: 800px) {
  .hw { height: auto; padding-block: clamp(24px, 6vw, 40px) clamp(40px, 8vw, 64px); }
  .hw-pin { position: static; height: auto; padding-block: 0; }
  .hw-head { grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
  .hw-track { --ic: 48px; --g: 30px; grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .hw-step { display: grid; grid-template-columns: var(--ic) minmax(0, 1fr); column-gap: 18px; }
  .hw-body { margin-top: 2px; }
  .hw-seg { top: calc(var(--ic) / 2); left: calc(var(--ic) / 2 - 1px); width: 2px; height: calc(100% + var(--g)); }
  .hw-fill { transform-origin: center top; transform: scaleY(var(--s, 0)); }
}

/* reduced motion: everything visible, no pinning */
.hw.is-static { height: auto; }
.hw.is-static .hw-pin { position: static; height: auto; padding-block: clamp(24px, 4vw, 56px); }
@media (prefers-reduced-motion: reduce) { .hw-ic, .hw-ctitle, .hw-num { transition: none; } }

/* ---------- Why WOLTS (rose band) ---------- */
.wy {
  --wy-ink: #1e1a2e;
  --wy-line: rgba(30, 26, 46, .22);
  position: relative;
  padding: clamp(24px, 3vw, 40px) max(20px, env(safe-area-inset-left, 0px)) clamp(32px, 4vw, 56px) max(20px, env(safe-area-inset-right, 0px));
  background: rgb(var(--rt-accent));
  color: var(--wy-ink);
}
.wy-wrap { width: min(100%, 1280px); margin-inline: auto; }
.wy-eyebrow { margin: 0; font: 400 .8rem/1.2 var(--rt-font-body); letter-spacing: .2em; text-transform: uppercase; }
.wy-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--wy-line);
}

.wy-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 56px);
}
.wy-title {
  margin: 0;
  display: flex; flex-direction: column;
  font-family: var(--rt-font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.wy-white { color: #fff; }
.wy-card {
  justify-self: end;
  width: min(100%, 36rem);
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: 28px;
  background: #f6f3f4;
  box-shadow: 0 24px 60px rgba(110, 90, 0, .22);
}
.wy-p1, .wy-p2 { margin: 0; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.65; }
.wy-p1 b { color: #3b46c4; font-weight: 400; }
.wy-p2 { margin-top: 16px; color: #6a6572; }
.wy-cta {
  margin-top: clamp(22px, 2.6vw, 32px);
  display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  padding: 18px 28px;
  border-radius: 999px;
  background: rgb(var(--rt-accent));
  color: var(--wy-ink);
  font: 400 1rem/1 var(--rt-font-body);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.wy-cta svg { transition: transform .25s ease; }
.wy-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(110, 90, 0, .28); }
.wy-cta:hover svg { transform: translateX(5px); }
.wy-cta:focus-visible { outline: 3px solid var(--wy-ink); outline-offset: 3px; }

.wy-flow {
  display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px);
  padding-block: clamp(14px, 1.8vw, 22px);
  border-block: 1px solid var(--wy-line);
}
.wy-lab { flex: none; font: 400 .78rem/1.2 var(--rt-font-body); letter-spacing: .18em; text-transform: uppercase; }
.wy-line { position: relative; flex: 1 1 24px; height: 1px; background: rgba(30, 26, 46, .18); }
.wy-line b { position: absolute; inset: 0; background: #fff; transform-origin: left center; }
.wy-line::after { content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: #d6204f; transform: translate(50%, -50%); }

.wy-quote {
  margin: 0;
  padding-top: clamp(20px, 2.6vw, 32px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}
.wy-qm { color: var(--wy-ink); opacity: .85; align-self: start; }
.wy-statement { margin: 0; font-size: clamp(1.1rem, 1.7vw, 1.5rem); line-height: 1.5; max-width: 40em; }
.wy-by { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--wy-line); display: grid; gap: 6px; }
.wy-by strong { font: 400 1.1rem/1.2 var(--rt-font-display); }
.wy-by span { font-size: .95rem; color: #4b4658; }

/* scroll reveal (only when JS has marked the section) */
.wy-anim [data-r] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .2, 1); transition-delay: var(--d, 0s); }
.wy-anim .wy-line b { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.65, 0, .35, 1) .5s; }
.wy-anim .wy-line::after { opacity: 0; transition: opacity .4s ease 1.6s; }
.wy-anim.is-in [data-r] { opacity: 1; transform: none; }
.wy-anim.is-in .wy-line b { transform: scaleX(1); }
.wy-anim.is-in .wy-line::after { opacity: 1; }

@media (max-width: 900px) {
  .wy-main { grid-template-columns: minmax(0, 1fr); }
  .wy-card { justify-self: stretch; width: 100%; }
  .wy-quote { grid-template-columns: auto minmax(0, 1fr); }
  .wy-by { grid-column: 1 / -1; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--wy-line); }
}
@media (max-width: 600px) {
  .wy-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wy-eyebrow { font-size: .72rem; letter-spacing: .16em; }
  .wy-flow { flex-wrap: wrap; row-gap: 10px; }
  .wy-lab { font-size: .68rem; letter-spacing: .12em; }
  .wy-qm { width: 40px; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .wy-anim [data-r], .wy-anim .wy-line b, .wy-anim .wy-line::after, .wy-cta, .wy-cta svg { transition: none; }
}

/* =====================================================================
   Corporate polish: one spacing rhythm, one type scale, scroll animation
   ===================================================================== */
:root {
  --sec-y: clamp(56px, 6.5vw, 96px);                 /* space above/below each section */
  --fs-title: clamp(2.2rem, 4.6vw, 3.8rem);          /* every section heading */
  --fs-lead: clamp(1.02rem, 1.35vw, 1.2rem);         /* every section description */
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* spacing between sections */
.wa { padding-block: var(--sec-y); }
.wy { padding-block: clamp(40px, 5vw, 72px); }
.wb-pin, .hw-pin { padding-block: clamp(20px, 4vh, 48px); }

/* same heading + description sizes everywhere */
.wa-title, .wb-title, .hw-title { font-size: var(--fs-title); line-height: 1.08; letter-spacing: -0.02em; }
.wa-text, .wb-text, .hw-text { font-size: var(--fs-lead); line-height: 1.7; }
.wa-lead, .wb-eyebrow, .hw-eyebrow { letter-spacing: .02em; }
.wb-eyebrow, .hw-eyebrow { letter-spacing: .2em; }
.count { font-variant-numeric: tabular-nums; }

/* ---------- scroll reveal ---------- */
.rv-js .rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s ease, transform .95s cubic-bezier(.22, .8, .2, 1);
  transition-delay: var(--d, 0s);
}
.rv-js .rv.is-in { opacity: 1; transform: none; }
.rv-js .wa-viz.rv { transform: scale(.94); }
.rv-js .wa-viz.rv.is-in { transform: none; }

/* wheel builds itself: ring draws, sectors fade in one by one, then the cube pops */
.rv-js .wa-ring { stroke-dasharray: 1810; stroke-dashoffset: 1810; transition: stroke-dashoffset 1.8s cubic-bezier(.65, 0, .35, 1) .1s; }
.rv-js .wa-viz.is-in .wa-ring { stroke-dashoffset: 0; }
.rv-js .wa-sec { opacity: 0; transition: fill .4s ease, opacity .9s ease; transition-delay: 0s, .5s; }
.rv-js .wa-sec:nth-of-type(2) { transition-delay: 0s, .75s; }
.rv-js .wa-sec:nth-of-type(3) { transition-delay: 0s, 1s; }
.rv-js .wa-viz.is-in .wa-sec { opacity: 1; }
.rv-js .wa-lab { opacity: 0; transition: color .4s ease, opacity .7s ease 1.2s; }
.rv-js .wa-viz.is-in .wa-lab { opacity: 1; }
.rv-js .wa-cube { opacity: 0; transform: scale(.55); transform-box: fill-box; transform-origin: center; transition: opacity .6s ease 1.3s, transform .9s cubic-bezier(.34, 1.56, .64, 1) 1.3s; }
.rv-js .wa-viz.is-in .wa-cube { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv-js .rv, .rv-js .wa-sec, .rv-js .wa-lab, .rv-js .wa-cube, .rv-js .wa-ring { transition: none; }
}
