/* BrickX, the public page. Light like the app: white, the app's blue-grey
   text, one teal for actions, the logo's navy and orange for the headline,
   the packs in their own colours, as on the road. */

:root {
  --navy: #0b1d4a;
  --navy-2: #13296b;
  --ink: #2b3445;
  --text: #48586b;
  --muted: #8e9eb2;
  --line: #e6ebf2;
  --line2: #dce1e7;
  --bg: #ffffff;
  --soft: #f7f9fb;
  --brand: #00a88e;
  --brand-hover: #00957e;
  --brand-deep: #00806c;
  --brand-tint: #e8f8f4;
  --orange: #f35a20;
  --danger: #c0392b;
  --amber: #a15c00;
  --wrap: 1360px;
  --gut: 32px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--brand-deep); }
h1, h2, h3, h4, p { margin: 0; }
button, input, select { font: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wide { max-width: 1696px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- type */
.eb {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-deep);
}
.h1 {
  margin-top: 14px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--navy);
  text-wrap: balance;
}
/* the headline's end in the logo's own orange, as the X is */
.h1-em {
  background: linear-gradient(90deg, #f35a20 0%, #ff8a1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}
.h2 {
  margin-top: 10px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.032em;
  color: var(--navy);
  text-wrap: balance;
}
.sec-head { margin-bottom: 40px; }
.sec-head.center { text-align: center; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 20px rgba(0, 168, 142, 0.3);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.btn:hover { background: var(--brand-hover); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.75; cursor: progress; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.btn-wide { width: 100%; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.stuck { border-bottom-color: var(--line); }
.nav-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--navy); }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding-bottom: 72px; }
/* the road's floor, faint, behind the headline */
.hero::before {
  content: "";
  position: absolute;
  inset: -40px 0 0;
  background-image:
    repeating-linear-gradient(30deg, rgba(150, 172, 200, 0.16) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(-30deg, rgba(150, 172, 200, 0.16) 0 1px, transparent 1px 38px);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 50% 35%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  width: 1100px;
  height: 520px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(0, 168, 142, 0.1), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(243, 90, 32, 0.06), transparent);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 2; text-align: center; padding-top: 64px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 11px;
  border: 1px solid #cdeee6;
  background: rgba(232, 248, 244, 0.9);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 22px;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 168, 142, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(0, 168, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 168, 142, 0); }
}
.hero .su { max-width: 940px; margin: 44px auto 0; text-align: left; }

.perks { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 14.5px; color: var(--text); }
.perk { display: inline-flex; align-items: center; gap: 7px; }
.perk svg { width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.perks-dark { justify-content: flex-start; margin-top: 30px; color: #c9d4e8; }
.perks-dark .perk svg { stroke: #5fe0c6; }

/* ------------------------------------------------------------ the form */
.su { position: relative; }
.su-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.25fr auto;
  align-items: stretch;
  padding: 7px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line2);
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(15, 40, 60, 0.04), 0 22px 50px rgba(15, 40, 60, 0.12);
}
.fl {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  height: 60px;
  border-radius: 14px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.su:not(.su-stack) .fl + .fl::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--line);
}
.fl:focus-within { background: #f2fbf8; box-shadow: inset 0 0 0 1.5px rgba(0, 168, 142, 0.45); }
.fl:focus-within::before, .fl:focus-within + .fl::before { opacity: 0; }
.fl-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; pointer-events: none; }
.fl-ic svg { width: 100%; height: 100%; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fl:focus-within .fl-ic svg { stroke: var(--brand-deep); }
.fl input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 20px 14px 4px 44px;
  font-size: 16px;
  color: var(--ink);
}
.fl input:focus { outline: none; }
.fl label {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15.5px;
  color: var(--muted);
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}
.fl input:focus + label,
.fl input:not(:placeholder-shown) + label { top: 17px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--brand-deep); }
.fl.bad label { color: var(--danger); }
.fl.bad { box-shadow: inset 0 0 0 1.5px rgba(192, 57, 43, 0.5); background: #fff8f7; }
.fl-ok { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--brand-tint); display: flex; align-items: center; justify-content: center; }
.fl-ok svg { width: 13px; height: 13px; fill: none; stroke: var(--brand); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
/* the phone: a country code, then the number; its label always sits on top */
.fl-phone select {
  flex: none;
  width: 92px;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 0 0 44px;
  font-size: 0;
  color: transparent;
  cursor: pointer;
  appearance: none;
}
.fl-phone select:focus { outline: none; }
.fl-phone select option { font-size: 15px; color: var(--ink); }
/* the select shows the code alone (data-cc, kept by main.js); its menu shows the countries */
.fl-phone::after {
  content: attr(data-cc) "  \25BE";
  position: absolute;
  left: 44px;
  top: 29px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  pointer-events: none;
  white-space: pre;
}
.fl-phone input { padding-left: 8px; }
.fl-phone input::placeholder { color: #b3bfcc; }
.fl-phone label,
.fl-phone input:focus + label,
.fl-phone input:not(:placeholder-shown) + label { top: 17px; left: 44px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--brand-deep); }
.fl-phone.bad label { color: var(--danger); }
.su-btn { height: 60px; padding: 0 26px; font-size: 16.5px; border-radius: 14px; margin-left: 7px; }

.hint { min-height: 22px; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); padding-left: 6px; }
.hint:empty { min-height: 0; margin-top: 0; }
.hint.bad { color: var(--danger); }
.hint.ask { color: var(--amber); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hint.ask b { color: var(--ink); }
.hint-btn { height: 28px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.hint-btn.quiet { background: #fff; color: var(--text); border-color: var(--line2); }
.su-note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.su-note a { color: var(--muted); }

/* after joining */
.su-done {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #cdeee6;
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(15, 40, 60, 0.1);
  text-align: left;
}
.su-done-top { display: flex; gap: 14px; align-items: center; }
.su-done-i { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-tint); display: flex; align-items: center; justify-content: center; }
.su-done-i svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.su-done h3 { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.su-done p { font-size: 15px; }
.su-more { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line2); }
.su-more-t { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.chips { margin-top: 8px; }
.chips legend { float: left; width: 100px; padding-top: 7px; font-size: 13px; color: var(--muted); }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-o input { position: absolute; opacity: 0; pointer-events: none; }
.chip-o span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chip-o span:hover { border-color: #b8c4d2; }
.chip-o input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-o input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.su-thanks { margin-top: 14px; color: var(--brand-deep); font-weight: 600; }
.su-small { margin-top: 12px; font-size: 13px !important; color: var(--muted); }
.linkish { border: 0; padding: 0; background: none; color: var(--brand-deep); font-weight: 600; text-decoration: underline; cursor: pointer; font-size: inherit; }

/* the stacked form, in the card at the foot */
.su-stack .su-row { grid-template-columns: 1fr; gap: 12px; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.su-stack .fl { border: 1px solid var(--line2); background: #fff; }
.su-stack .fl:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 168, 142, 0.14); }
.su-stack .fl.bad { border-color: rgba(192, 57, 43, 0.6); box-shadow: none; }
.su-stack .su-btn { margin: 16px 0 0; width: 100%; }
.su-opt { margin-top: 14px; display: grid; gap: 10px; }
.su-opt .chips { margin: 0; }
.su-opt .chips legend { float: none; width: auto; padding: 0 0 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.su-opt .chips legend span { font-weight: 500; color: var(--muted); margin-left: 4px; font-size: 12.5px; }
.su-opt .chip-o span { height: 30px; font-size: 13px; padding: 0 11px; }
.su-stack .su-note { text-align: left; }
.su-stack .su-done { box-shadow: none; border: 0; padding: 4px 0 0; }

/* ----------------------------------------------------------------- road */
.road-sec { padding-top: 40px; }
.road-scroll { position: relative; }
.road-scroll.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; border-radius: 20px; }
.road { position: relative; }
.road > .jr-panel { transform-origin: 0 0; }
.road-hint { display: none; margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.road-scroll.scroll + .road-hint { display: block; }

/* the road as Home draws it (journey.css, the map's rules) */
.jr-panel {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #f4fbf9 0%, #f7f9fd 50%, #f7f5ff 100%);
  overflow: hidden;
  color: #4d4c4d;
  font-family: Inter, sans-serif;
  line-height: normal;
}
.jr-svg { position: absolute; left: 0; top: 0; display: block; }
.jr-at { position: absolute; }
.jr-card { display: block; box-sizing: border-box; padding: 10px 12px; background: rgba(255, 255, 255, 0.96); border: 1px solid #e6ebf2; border-radius: 12px; box-shadow: 0 6px 18px rgba(15, 40, 60, 0.07); text-align: left; }
.jr-kick { display: block; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; color: #00806c; margin-bottom: 5px; }
.jr-row { display: flex; align-items: baseline; gap: 8px; }
.jr-nm { font-size: 14.5px; font-weight: 600; color: #4d4c4d; white-space: nowrap; }
.jr-ct { font-size: 11px; color: #8e9eb2; white-space: nowrap; }
.jr-ln { display: block; font-size: 11.5px; color: #48586b; margin-top: 6px; line-height: 1.35; }
.jr-names { display: flex; flex-wrap: wrap; }
.jr-name { display: inline-flex; align-items: center; gap: 6px; margin: 0 12px 5px 0; font-size: 12.5px; color: #4d4c4d; white-space: nowrap; }
.jr-pill { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid; background: rgba(255, 255, 255, 0.96); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 3px 10px rgba(15, 40, 60, 0.06); }
.jr-legend { position: absolute; left: 26px; top: 20px; display: flex; gap: 16px; font-size: 11.5px; color: #48586b; align-items: center; flex-wrap: wrap; }
.jr-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }

html.js .road [data-d] {
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 1.6s);
}
html.js .road .jr-at[data-d] { transform: translateY(8px); transition-delay: calc(var(--d, 0) * 1.6s + 0.35s); }
html.js .road svg > line { opacity: 0; transition: opacity 0.6s ease 1.4s; }
html.js .road.play [data-d],
html.js .road.play svg > line { opacity: 1; transform: none; }

/* ------------------------------------------- the wall of screens (glimpse) */
.wall-sec {
  position: relative;
  margin-top: 112px;
  padding-top: 88px;
  overflow: hidden;
  background: linear-gradient(180deg, #f3f6fb 0%, #f7f9fc 60%, #ffffff 100%);
  border-top: 1px solid #edf1f6;
}
.wall-sec .sec-head { margin-bottom: 0; position: relative; z-index: 3; }
.wall {
  position: relative;
  height: 640px;
  margin-top: -10px;
  overflow: hidden;
  perspective: 2600px;
}
/* only the edges fade: the screens themselves stay clear */
.wall::before,
.wall::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.wall::before { background: linear-gradient(180deg, #f5f8fc 0%, rgba(245, 248, 252, 0) 14%, rgba(255, 255, 255, 0) 74%, #ffffff 97%); }
.wall::after { background: linear-gradient(90deg, #f6f8fc 0%, rgba(246, 248, 252, 0) 9%, rgba(246, 248, 252, 0) 91%, #f6f8fc 100%); }
.wall-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3400px;
  transform: translate(-50%, -50%) rotateX(44deg) rotateZ(-17deg);
  transform-style: preserve-3d;
}
.wall-row { margin-bottom: 36px; }
.wall-row:nth-child(3) { transform: translateX(-330px); }
.wall-track { display: flex; gap: 36px; width: max-content; animation: slide var(--dur, 120s) linear infinite; animation-delay: var(--delay, 0s); }
.wall-row.rev .wall-track { animation-direction: reverse; }
.wall:hover .wall-track { animation-play-state: paused; }
.wall.still .wall-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wall-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(15, 40, 60, 0.05);
}
.wall-hint svg { width: 15px; height: 15px; fill: none; stroke: var(--brand-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wt {
  position: relative;
  display: block;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  flex: none;
  width: 640px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9e1ea;
  box-shadow: 0 2px 4px rgba(15, 40, 60, 0.06), 0 40px 60px -24px rgba(15, 40, 60, 0.42);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.wt:hover { transform: translateY(-14px) scale(1.03); box-shadow: 0 2px 4px rgba(15, 40, 60, 0.06), 0 60px 80px -24px rgba(15, 40, 60, 0.5); }
.wt-open {
  position: absolute;
  right: 12px;
  top: 32px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(11, 29, 74, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.wt-open svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wt:hover .wt-open, .wt:focus-visible .wt-open { opacity: 1; }
.wt:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.wt-bar { display: flex; gap: 6px; align-items: center; height: 22px; padding: 0 10px; background: #fbfcfd; border-bottom: 1px solid #edf1f5; }
.wt-bar i { width: 7px; height: 7px; border-radius: 50%; background: #e0e6ed; }
.wt img { width: 100%; height: auto; }

.sec { padding-top: 112px; }

/* ---------------------------------------------------------------- packs */
.stages { position: relative; margin-top: 44px; }
/* one line down the stages, in their colours, like the road's kerb */
.stages::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(180deg, #00a88e, #2e90fa 18%, #7a5af8 40%, #f76b15 62%, #e8459b 78%, #e09400 92%, #f35a20);
  opacity: 0.35;
  border-radius: 2px;
}
.stage { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; padding: 18px 0; }
.stage + .stage { border-top: 1px dashed #e3e8ef; }
.stage-h { display: flex; gap: 16px; align-items: flex-start; padding-top: 4px; }
.stage-n {
  position: relative;
  z-index: 1;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--c);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px #fff, 0 8px 18px color-mix(in srgb, var(--c) 35%, transparent);
}
.stage-flag svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stage-t { font-size: 19px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; line-height: 1.25; margin-top: 2px; }
.stage-e { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.bricks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bricks.cols5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.brick {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
  padding: 14px 14px 14px 12px;
  background: #fff;
  border: 1px solid #e7ebf0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 40, 60, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.brick:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 40%, #e7ebf0); box-shadow: 0 14px 30px rgba(15, 40, 60, 0.1); }
.brick-cube { flex: none; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; }
.brick-cube svg { width: 100%; height: 100%; overflow: visible; }
.brick:hover .brick-cube svg { transform: translateY(-3px); transition: transform 0.25s ease; }
.brick-tx { min-width: 0; }
.brick h3 { font-size: 15.5px; font-weight: 650; color: var(--ink); line-height: 1.3; }
.brick p { margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.brick-ct {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 10%, #fff);
  color: color-mix(in srgb, var(--c) 70%, #1b2433);
  font-size: 12px;
  font-weight: 650;
}
/* five in a row are narrower: the block sits above the words */
.cols5 .brick { flex-direction: column; gap: 10px; }
.cols5 .brick-cube { width: 46px; height: 46px; }
.stage-end { align-items: center; }
.end-cube { width: 74px; height: 74px; }
html.js .stage .brick,
html.js .stage .end-cube { opacity: 0; transform: translateY(-22px); }
html.js .stage.laid .brick,
html.js .stage.laid .end-cube {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  transition-delay: calc(var(--k, 0) * 45ms);
}
html.js .stage.laid .brick:hover { transform: translateY(-3px); transition-delay: 0s; }

/* ------------------------------------------------------------ features */
.fts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ft { display: flex; flex-direction: column; background: #fff; border: 1px solid #e8ebef; border-radius: 16px; overflow: hidden; min-width: 0; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ft:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 40, 60, 0.08); }
.ft-art { display: flex; align-items: center; justify-content: center; height: 140px; background: #f7f9fb; border-bottom: 1px solid #eef1f4; padding: 0 16px; }
.ft-art svg { width: 100%; max-width: 196px; height: auto; }
.ft-tx { padding: 13px 15px 16px; }
.ft h3 { font-size: 15.5px; font-weight: 650; color: var(--ink); }
.ft p { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--text); }

html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------- join */
.join-sec { padding: 112px 0 104px; }
.join-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: 64px;
  align-items: center;
  padding: 72px 64px;
  border-radius: 32px;
  overflow: hidden;
  color: #c9d4e8;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(0, 168, 142, 0.3), transparent 55%),
    radial-gradient(80% 100% at 100% 100%, rgba(243, 90, 32, 0.18), transparent 60%),
    linear-gradient(135deg, #0b1d4a 0%, #102a63 55%, #0d2155 100%);
}
.join-in::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(30deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(-30deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 38px);
  -webkit-mask-image: radial-gradient(80% 90% at 30% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(80% 90% at 30% 50%, #000 30%, transparent 85%);
  pointer-events: none;
}
.join-in > * { position: relative; }
.eb-on-dark { color: #5fe0c6; }
.h2.on-dark { color: #fff; }
.join-cubes { position: absolute; inset: 0; pointer-events: none; }
.jc { position: absolute; width: 56px; height: 56px; animation: bob 7s ease-in-out infinite; }
.jc svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.3)); }
.jc0 { left: 3%; top: 8%; animation-delay: -1s; }
.jc1 { left: 44%; top: 6%; width: 44px; height: 44px; animation-delay: -3s; }
.jc2 { left: 5%; bottom: 8%; width: 48px; height: 48px; animation-delay: -5s; }
.jc3 { left: 40%; bottom: 7%; width: 42px; height: 42px; animation-delay: -2s; }
.jc4 { right: 2.5%; top: 5%; width: 46px; height: 46px; animation-delay: -4s; }
.jc5 { left: 25%; top: 4%; width: 36px; height: 36px; animation-delay: -6s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.who { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.who li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.who b { color: #fff; font-weight: 650; }
.who-i { flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); display: flex; align-items: center; justify-content: center; margin-top: -6px; }
.who-i svg { width: 22px; height: 22px; fill: none; stroke: #5fe0c6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.join-perks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 30px; }
.join-perks p { width: 100%; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa3c4; }
.perk-dark { background: rgba(255, 196, 87, 0.12); border-color: rgba(255, 196, 87, 0.35); color: #ffd98a; }
.perk-dark svg { fill: rgba(255, 217, 138, 0.35); stroke: #ffc457; }
.join-card {
  padding: 30px 28px 26px;
  background: #fff;
  border-radius: 24px;
  color: var(--text);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}
.join-card-t { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -0.015em; }
.join-card-s { font-size: 14px; color: var(--muted); margin: 2px 0 18px; }

/* ------------------------------------------- a screen opened in full */
.lb {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 84px 40px;
  background: rgba(7, 16, 38, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: lb-in 0.2s ease;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-frame {
  margin: 0;
  max-width: min(1600px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  animation: lb-zoom 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lb-zoom { from { transform: scale(0.94); opacity: 0.4; } to { transform: none; opacity: 1; } }
.lb-bar { display: flex; gap: 7px; align-items: center; height: 30px; padding: 0 14px; background: #fbfcfd; border-bottom: 1px solid #edf1f5; flex: none; }
.lb-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e0e6ed; }
.lb-frame img { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: #fff; }
.lb-top { position: absolute; top: 14px; left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; }
.lb-count { font-size: 14px; font-weight: 600; color: #c9d4e8; letter-spacing: 0.04em; }
.lb-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-tip { display: none; font-size: 13px; color: #8fa3c4; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
body.lb-open { overflow: hidden; }

/* --------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); background: #fbfcfd; }
.foot-in { display: flex; gap: 28px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding-top: 28px; padding-bottom: 32px; }
.foot-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--ink); }
.foot-brand img { height: 32px; width: auto; }
.foot-by { font-size: 14px; color: var(--text); }
.foot-by b { font-weight: 650; color: var(--ink); }
.foot-c { color: var(--muted); font-weight: 500; font-size: 14px; }
.privacy { max-width: 620px; font-size: 14px; }
.privacy summary { cursor: pointer; color: var(--brand-deep); font-weight: 600; text-align: right; list-style-position: inside; }
.privacy p { margin-top: 10px; color: var(--text); }

.dock { display: none; }

/* ------------------------------------------------------------ narrower */
@media (max-width: 1240px) {
  .stage { grid-template-columns: 1fr; gap: 16px; }
  .bricks, .bricks.cols5 { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 60px; }
  .cols5 .brick { flex-direction: row; gap: 14px; }
  .stages::before { bottom: 30px; }
  .fts { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .ft-art { height: 116px; padding: 0 10px; }
  .ft-tx { padding: 11px 12px 14px; }
  .ft h3 { font-size: 14.5px; }
  .ft p { font-size: 13px; }
}
@media (max-width: 1080px) {
  .hero .su-row { grid-template-columns: 1fr 1fr; gap: 6px 0; }
  .su:not(.su-stack) .fl:nth-child(3)::before { display: none; }
  .hero .su-btn { margin: 0 0 0 7px; height: 60px; }
  .join-in { grid-template-columns: 1fr; gap: 40px; padding: 56px 40px; }
  .jc1, .jc3 { display: none; }
}
@media (max-width: 860px) {
  :root { --gut: 20px; }
  .nav-links { display: none; }
  .nav-in { height: 60px; justify-content: space-between; }
  .nav-logo img { height: 34px; }
  .hero-in { padding-top: 40px; }
  .sec { padding-top: 80px; }
  .wall-sec { margin-top: 80px; padding-top: 64px; }
  .wall { height: 420px; }
  .wall-plane { width: 2200px; }
  .wt { width: 380px; border-radius: 10px; }
  .wall-track { gap: 22px; animation-delay: var(--delay-m, var(--delay, 0s)); }
  .wall-row { margin-bottom: 22px; }
  .wall-row:nth-child(3) { transform: translateX(-200px); }
  .wt-bar { height: 16px; }
  .wt-open { top: 22px; right: 8px; width: 28px; height: 28px; opacity: 1; }
  .lb { padding: 64px 10px 84px; }
  .lb-arrow { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 58px); }
  .lb-next { right: calc(50% - 58px); }
  .lb-frame img { max-height: calc(100vh - 190px); }
  .lb-tip { display: block; }
  .lb-frame { max-height: calc(100vh - 150px); overflow: auto; -webkit-overflow-scrolling: touch; }
  .lb-frame.zoomed img { max-width: none; max-height: none; width: 260%; }
  .lb-bar { height: 20px; }
  .wt-bar i { width: 5px; height: 5px; }
  .bricks, .bricks.cols5 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; }
  .stages::before { display: none; }
  /* two rows of five do not fit a phone: the row scrolls sideways, in order */
  .fts {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-template-rows: auto auto;
    grid-auto-columns: 210px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gut));
    padding: 0 var(--gut) 10px;
    scroll-padding-left: var(--gut);
    scrollbar-width: thin;
  }
  .ft { scroll-snap-align: start; }
  .join-sec { padding: 80px 0 96px; }
  .join { padding: 0 12px; }
  .join-in { padding: 40px 20px 24px; border-radius: 24px; }
  .jc { display: none; }
  .join-card { padding: 24px 20px; }
  .foot-in { flex-direction: column; padding-bottom: 96px; }
  .privacy summary { text-align: left; }
  .dock {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15, 40, 60, 0.16);
    transform: translateY(140%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .dock.on { transform: none; }
}
@media (max-width: 640px) {
  .hero .su-row { grid-template-columns: 1fr; gap: 6px; padding: 8px; }
  .su:not(.su-stack) .fl + .fl::before { display: none; }
  .hero .fl { background: var(--soft); }
  .hero .su-btn { margin: 4px 0 0; width: 100%; }
  .perks { display: grid; justify-content: center; justify-items: start; gap: 6px; }
  .perks-dark { justify-content: start; }
  .bricks, .bricks.cols5 { grid-template-columns: 1fr; }
  .brick-cube, .cols5 .brick-cube { width: 46px; height: 46px; }
  .chips legend { float: none; width: auto; padding: 0 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip-dot, .jc { animation: none; }
  html.js .road [data-d],
  html.js .road svg > line,
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .wall-track { animation: none; }
  html.js .stage .brick,
  html.js .stage .end-cube { opacity: 1; transform: none; transition: none; }
}
