/* ============================================================
   $FLYIT — landing page styles
   Palette from logo: deep navy space + neon green
   ============================================================ */

:root {
  --bg-0: #05080f;
  --bg-1: #0a1020;
  --bg-2: #0e1730;
  --panel: #0d1428;
  --panel-2: #111a33;
  --line: rgba(125, 160, 220, 0.13);
  --text: #e9eef8;
  --muted: #98a4bd;
  --accent: #3edc64;
  --accent-soft: rgba(62, 220, 100, 0.14);
  --accent-glow: rgba(62, 220, 100, 0.38);
  --glow-mult: 1;
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; }

a { color: inherit; text-decoration: none; }

img { display: block; }

::selection { background: var(--accent); color: #04140a; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- starfield ---------- */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #dfe8ff;
  opacity: 0.7;
}
.star.big {
  box-shadow: 0 0 8px rgba(223, 232, 255, 0.8);
}
.star.tw { animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

main, header.site, footer.site-footer { position: relative; z-index: 1; }
#top { scroll-margin-top: 120px; }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 9, 18, 0.72);
  border-bottom: 1px solid rgba(62, 220, 100, 0.45);
  box-shadow: 0 1px calc(16px * var(--glow-mult)) rgba(62, 220, 100, 0.28);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(62, 220, 100, 0.45), 0 0 calc(18px * var(--glow-mult)) rgba(62, 220, 100, 0.35);
}
.brand .tick { color: var(--accent); }
nav.main-nav {
  display: flex;
  gap: 6px;
  grid-column: 2;
  justify-self: center;
}
nav.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.18s, background 0.18s;
}
nav.main-nav a:hover { color: var(--text); background: rgba(125, 160, 220, 0.09); }
.mobile-menu-toggle,
.mobile-menu {
  display: none;
}
.mobile-menu-toggle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(62, 220, 100, 0.4);
  background: rgba(62, 220, 100, 0.08);
  color: var(--accent);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.16s;
}
.mobile-menu-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle[aria-expanded="true"] {
  background: rgba(62, 220, 100, 0.14);
  border-color: rgba(62, 220, 100, 0.62);
  box-shadow: 0 0 calc(18px * var(--glow-mult)) rgba(62, 220, 100, 0.18);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s, border-color 0.16s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #04140a;
  box-shadow: 0 0 calc(26px * var(--glow-mult)) var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 calc(40px * var(--glow-mult)) var(--accent-glow);
}
.btn-ghost {
  background: rgba(125, 160, 220, 0.07);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(62, 220, 100, 0.5); background: rgba(62, 220, 100, 0.07); }
.btn-sm { padding: 10px 20px; font-size: 15px; }

/* header CTA — compact modern outline chip with neon accent */
.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-buy {
  position: relative;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(62, 220, 100, 0.08);
  border: 1px solid rgba(62, 220, 100, 0.4);
  box-shadow: inset 0 0 0 1px rgba(62, 220, 100, 0.04);
  transition: transform 0.16s, background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.btn-buy:hover {
  transform: translateY(-1px);
  color: #04140a;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 calc(22px * var(--glow-mult)) var(--accent-glow);
}
.btn-buy:active { transform: translateY(0); }
.header-cta.is-pending {
  cursor: default;
}

/* ---------- hero (fills the first screen, clouds anchored to the bottom) ---------- */
.hero {
  position: relative;
  height: calc(100svh - 72px);
  min-height: 560px;
  background: #050810 url("assets/hero-bg-face-v2.png?v=face-hero-20260623") 80% bottom / cover no-repeat;
  overflow: hidden;
}
/* gentle bottom fade so the clouds aren't hard-cut — just a soft blend
   into the next section */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 15, 0) 0%,
    rgba(5, 8, 15, 0.45) 60%,
    var(--bg-0) 100%
  );
}

.gr { color: var(--accent); font-weight: 600; }

.hero-copy {
  position: absolute;
  left: 5.7%;
  top: 7%;
  width: 50%;
  z-index: 3;
  font-size: min(0.848vw, 1.392vh);
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 6.4em;
  line-height: 1.04;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-shadow: 0 2px 20px rgba(5, 8, 15, 0.55);
}
.hero-title .accent {
  color: var(--accent);
  text-shadow: 0 0 calc(36px * var(--glow-mult)) var(--accent-glow);
}
.hero-sub {
  margin: 1.8em 0 0;
  font-size: 1.68em;
  font-weight: 600;
  line-height: 1.3;
  color: #eef2fb;
  text-wrap: balance;
}
.hero-sub .gr { color: var(--accent); }

.hero-points {
  list-style: none;
  margin: 1.3em 0 0;
  padding: 0;
}
.hero-points li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.6em;
  padding: 1em 0;
}
.hero-points li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56%;
  height: 1px;
  background: linear-gradient(90deg, rgba(150, 175, 225, 0.32), rgba(150, 175, 225, 0.07) 62%, transparent);
}
.hp-ico {
  flex: none;
  width: 3em;
  height: 3em;
  color: var(--accent);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 70%);
}
.hp-ico svg {
  width: 78%;
  height: 78%;
  filter: drop-shadow(0 0 calc(6px * var(--glow-mult)) var(--accent-glow));
}
.hero-points p {
  margin: 0;
  font-size: 1.08em;
  line-height: 1.5;
  color: #d7deec;
}
.hero-points .gr { color: var(--accent); font-weight: 600; }

/* CA (contract address) chip — copy on click */
.ca-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 1.7em;
  padding: 0.62em 0.62em 0.62em 0.85em;
  font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: 0.92em;
  line-height: 1;
  color: var(--text);
  background: rgba(8, 14, 28, 0.55);
  border: 1px solid rgba(62, 220, 100, 0.32);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.18s, background 0.18s, transform 0.16s, box-shadow 0.18s;
}
.ca-chip .ca-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82em;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 0.3em 0.6em;
  border-radius: 999px;
  background: rgba(62, 220, 100, 0.12);
}
.ca-chip .ca-value {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #cdd6e6;
  white-space: nowrap;
}
.ca-chip .ca-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(62, 220, 100, 0.1);
}
.ca-chip.ca-live:hover {
  transform: translateY(-1px);
  border-color: rgba(62, 220, 100, 0.6);
  background: rgba(62, 220, 100, 0.08);
  box-shadow: 0 0 calc(22px * var(--glow-mult)) var(--accent-glow);
}
.ca-chip.ca-copied {
  border-color: var(--accent);
  background: rgba(62, 220, 100, 0.14);
}
/* pending state: no CA yet, but the chip is ready for the launch address */
.ca-chip.ca-pending {
  cursor: pointer;
  border-color: rgba(62, 220, 100, 0.24);
}
.ca-chip.ca-pending .ca-copy {
  opacity: 0.68;
}
.ca-chip.ca-pending .ca-value {
  color: var(--muted);
  font-style: italic;
}
.ca-chip.ca-pending:hover {
  transform: translateY(-1px);
  border-color: rgba(62, 220, 100, 0.42);
  background: rgba(62, 220, 100, 0.06);
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.live-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.55; box-shadow: 0 0 0 6px transparent; }
}

/* ---------- sections ---------- */
section.block { padding: 110px 0; position: relative; overflow: hidden; }
section.block[id] { scroll-margin-top: 72px; }
section.block > .wrap { position: relative; z-index: 1; }

/* cloud decor (cropped from hero artwork) */
.cloud-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  height: auto;
  /* soft fade-out so the decal never shows a hard image edge —
     mask reaches full transparency BEFORE the image bounds on every side */
  -webkit-mask-image: radial-gradient(55% 52% at 50% 50%, #000 28%, rgba(0, 0, 0, 0.5) 58%, transparent 88%);
  mask-image: radial-gradient(55% 52% at 50% 50%, #000 28%, rgba(0, 0, 0, 0.5) 58%, transparent 88%);
}
.cloud-bl { left: 0; bottom: 0; width: min(46vw, 640px); opacity: 0.85; }
.cloud-br { right: 0; bottom: 0; width: min(46vw, 640px); opacity: 0.85; transform: scaleX(-1); }
.cloud-tr { right: 0; top: 0; width: min(40vw, 560px); opacity: 0.6; transform: scale(-1, -1); }
.cloud-tl { left: 0; top: 0; width: min(40vw, 560px); opacity: 0.6; transform: scaleY(-1); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.block h2 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.block .lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 0 48px;
  text-wrap: pretty;
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 30px 28px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 220, 100, 0.4);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4), 0 0 calc(30px * var(--glow-mult)) rgba(62, 220, 100, 0.08);
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 22px;
}
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card .icon svg { width: 28px; height: 28px; }

/* summary */
.summary-block {
  background: none;
}
#tech {
  padding-bottom: 70px;
}
#summary {
  padding-top: 58px;
}
.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}
.summary-copy,
.milestone-panel {
  border: 1.5px solid rgba(62, 220, 100, 0.45);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 240px at 12% 0%, rgba(62, 220, 100, 0.07), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45),
    0 0 calc(40px * var(--glow-mult)) rgba(62, 220, 100, 0.1),
    inset 0 0 0 1px rgba(62, 220, 100, 0.06);
}
.summary-copy {
  padding: 42px clamp(28px, 4vw, 54px) 40px;
}
.summary-copy .pipeline-label,
.milestone-panel .pipeline-label {
  margin-bottom: 18px;
}
.summary-copy h2 {
  margin-bottom: 14px;
}
.summary-lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.summary-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.summary-list li:first-child {
  padding-top: 0;
  border-top: none;
}
.summary-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(62, 220, 100, 0.1);
  border: 1px solid rgba(62, 220, 100, 0.32);
  box-shadow: 0 0 calc(16px * var(--glow-mult)) rgba(62, 220, 100, 0.14);
}
.summary-list p {
  margin: 0;
  color: #c4cee0;
  font-size: 16px;
  line-height: 1.52;
  text-wrap: pretty;
}
.milestone-panel {
  padding: 42px clamp(24px, 3vw, 40px) 38px;
  display: flex;
  flex-direction: column;
}
.milestone-panel h3 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.milestone-track {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}
.milestone-track::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 13px;
  bottom: 13px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(62, 220, 100, 0.16));
  border-radius: 2px;
  box-shadow: 0 0 calc(16px * var(--glow-mult)) rgba(62, 220, 100, 0.22);
}
.milestone {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  padding: 0;
}
.milestone:last-child {
  padding-bottom: 0;
}
.milestone:last-child::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 24px;
  bottom: 0;
  z-index: 1;
  width: 4px;
  background: var(--panel-2);
}
.milestone-dot {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 2px solid rgba(62, 220, 100, 0.55);
  box-shadow: 0 0 calc(16px * var(--glow-mult)) rgba(62, 220, 100, 0.18);
}
.milestone-dot::after {
  content: none;
}
.milestone-text {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding-top: 1px;
}
.milestone-cap {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.milestone-goal {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.milestone-key .milestone-goal,
.milestone-moon .milestone-goal {
  color: var(--accent);
  font-weight: 700;
}
.milestone-moon .milestone-dot {
  border-color: var(--accent);
  background: var(--panel-2);
}
@media (max-width: 980px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

/* read me — founder's letter */
.readme-letter {
  max-width: 760px;
  margin: 0 auto;
  border: 1.5px solid rgba(62, 220, 100, 0.45);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 44px clamp(26px, 4vw, 56px) 40px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45),
    0 0 calc(40px * var(--glow-mult)) rgba(62, 220, 100, 0.1),
    inset 0 0 0 1px rgba(62, 220, 100, 0.06);
  position: relative;
}
.readme-letter::before {
  content: none;
}
.readme-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.readme-avatar {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(62, 220, 100, 0.35);
  box-shadow: 0 0 calc(26px * var(--glow-mult)) rgba(62, 220, 100, 0.16);
}
.readme-avatar svg { width: 34px; height: 34px; }
.readme-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.readme-meta .kicker { margin-bottom: 8px; }
.readme-meta h2 { font-size: clamp(26px, 3vw, 36px); }
.readme-body p {
  color: #c4cee0;
  font-size: 17.5px;
  line-height: 1.75;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.readme-body .readme-lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 22px;
}
.readme-body .gr { color: var(--accent); font-weight: 600; }
.readme-muted { color: var(--muted); }
.readme-contact {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--font-body);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 20, 40, 0.6);
  padding: 9px 12px;
  cursor: pointer;
  color: var(--text);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.contact-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 220, 100, 0.55);
  box-shadow: 0 0 calc(26px * var(--glow-mult)) rgba(62, 220, 100, 0.16);
}
.contact-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}
.contact-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; min-width: 0; }
.contact-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.contact-chip-communities .contact-label {
  font-size: 8.5px;
  letter-spacing: 0.055em;
}
.contact-value { font-family: var(--font-display); font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-ico-img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  background: var(--accent-soft);
  border: 1px solid rgba(62, 220, 100, 0.35);
  box-shadow: 0 0 calc(22px * var(--glow-mult)) rgba(62, 220, 100, 0.16);
  transform: translateY(-1px);
}
.contact-ico-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contact-ico-img img.ico-discord { transform: scale(1.1); }
.contact-copy {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(62, 220, 100, 0.35);
  border-radius: 999px;
  padding: 3px 8px;
  flex: 0 0 auto;
}

/* tokenomics */
.tokenomics-bg {
  background: none;
}
.tok-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.tok-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fact {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 20, 40, 0.6);
  padding: 20px 22px;
}
.fact .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.fact .value {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
}
.fact .value.green { color: var(--accent); }
.tok-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 13px; }
.tok-points li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--muted);
  font-size: 16px;
}
.tok-points li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  font-family: var(--font-display);
}
.cashback-panel {
  border: 1px solid rgba(62, 220, 100, 0.3);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 220px at 20% 0%, rgba(62, 220, 100, 0.1), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 34px 32px;
}
.cashback-panel h3 { font-size: 24px; margin-bottom: 14px; }
.cashback-panel h3 span { color: var(--accent); }
.cashback-panel p { color: var(--muted); margin: 0 0 14px; font-size: 16px; }
.cashback-panel p:last-child { margin-bottom: 0; }

/* roadmap */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.phase {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.phase .num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.phase h3 { font-size: 20px; margin-bottom: 12px; text-wrap: pretty; }
.phase p { color: var(--muted); font-size: 15px; margin: 0; }
.phase.active { border-color: rgba(62, 220, 100, 0.45); }
.phase.active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 calc(40px * var(--glow-mult)) rgba(62, 220, 100, 0.12) inset;
}
.roadmap-motto {
  margin-top: 52px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.7;
  color: var(--text);
}
.roadmap-motto .accent { color: var(--accent); text-shadow: 0 0 calc(24px * var(--glow-mult)) var(--accent-glow); }

/* stream */
.stream-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(62, 220, 100, 0.3);
  overflow: hidden;
  background: #060a14;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 calc(60px * var(--glow-mult)) rgba(62, 220, 100, 0.08);
}
.stream-frame .ratio { position: relative; padding-top: 56.25%; }
.stream-frame iframe,
.stream-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.stream-placeholder {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(125, 160, 220, 0.04) 0 14px, transparent 14px 28px),
    radial-gradient(700px 380px at 50% 110%, rgba(62, 220, 100, 0.08), transparent 70%),
    #070c18;
}
.stream-placeholder .inner { text-align: center; padding: 24px; }
.stream-placeholder .play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  background: var(--accent-soft);
  border: 1px solid rgba(62, 220, 100, 0.45);
  color: var(--accent);
  font-size: 28px;
  padding-left: 6px;
}
.stream-placeholder .note {
  font-family: monospace;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.stream-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: rgba(13, 20, 40, 0.8);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.stream-bar .right { margin-left: auto; color: var(--muted); font-size: 13px; }

/* community */
.community-inner {
  text-align: center;
  border-radius: 32px;
  border: 1px solid var(--line);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 360px at 50% 120%, rgba(62, 220, 100, 0.12), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--bg-1));
}
.community-inner .kicker { justify-content: center; }
.community-inner .kicker::before { display: none; }
.community-inner h2 { margin-bottom: 14px; }
.community-inner .lede { margin-left: auto; margin-right: auto; margin-bottom: 40px; }
.social-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 16, 32, 0.7);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.social-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 220, 100, 0.55);
  box-shadow: 0 0 calc(30px * var(--glow-mult)) rgba(62, 220, 100, 0.18);
}
.social-btn .glyph-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.social-btn .glyph {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

/* footer */
.footer-emblem {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.footer-emblem img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 calc(60px * var(--glow-mult)) rgba(62, 220, 100, 0.38);
}
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 54px;
  background: transparent;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner .brand { font-size: 17px; }
.footer-inner .brand img { width: 34px; height: 34px; }
.footer-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.disclaimer {
  margin-top: 26px;
  font-size: 13px;
  color: rgba(152, 164, 189, 0.65);
  max-width: 760px;
  text-wrap: pretty;
}

/* ---------- motion off ---------- */
body[data-motion="off"] .star.tw,
body[data-motion="off"] .live-pill .dot {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .star.tw, .live-pill .dot { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    position: relative;
  }
  nav.main-nav { display: none; }
  .mobile-menu-toggle {
    display: inline-flex;
    grid-column: 1;
    justify-self: start;
  }
  .header-actions {
    grid-column: 3;
    justify-self: end;
    gap: 6px;
  }
  .header-cta {
    font-size: 12.5px;
    padding: 7px 12px;
  }
  .mobile-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(62, 220, 100, 0.35);
    border-radius: 18px;
    background:
      radial-gradient(260px 120px at 20% 0%, rgba(62, 220, 100, 0.08), transparent 70%),
      rgba(9, 14, 28, 0.96);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), 0 0 calc(24px * var(--glow-mult)) rgba(62, 220, 100, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.16s, visibility 0.16s, transform 0.16s;
  }
  body.mobile-menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    background: rgba(13, 20, 40, 0.74);
  }
  .mobile-menu a:hover {
    color: var(--accent);
    border-color: rgba(62, 220, 100, 0.45);
    background: rgba(62, 220, 100, 0.08);
  }
  .about-grid { grid-template-columns: 1fr; }
  .tok-layout { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr 1fr; }
}

/* hero mobile fallback: flow layout over darkened backdrop */
@media (max-width: 760px) {
  .hero {
    aspect-ratio: auto;
    height: auto;
    min-height: calc(100svh - 72px);
    background: #050810 url("assets/hero-bg-face-v2.png?v=face-hero-20260623") 74% 100% / cover no-repeat;
    padding: 44px 22px 56px;
    display: flex;
    align-items: center;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 16, 0.82), rgba(5, 8, 16, 0.5) 55%, rgba(5, 8, 16, 0.2));
    pointer-events: none;
  }
  .hero-copy {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    z-index: 2;
    font-size: 16px;
  }
  .hero-title { font-size: clamp(46px, 13vw, 68px); white-space: normal; }
  .hero-sub { font-size: clamp(17px, 4.6vw, 21px); margin-top: 20px; }
  .hero-points { margin-top: 22px; }
  .hero-points li { gap: 14px; padding: 16px 0; align-items: flex-start; }
  .hp-ico { width: 34px; height: 34px; margin-top: 2px; }
  .hero-points p { font-size: clamp(14px, 3.7vw, 16px); }
  .hero-points br { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 20px; }
  section.block { padding: 58px 0; }
  #tech { padding-bottom: 34px; }
  #summary { padding-top: 34px; }
  .phases { grid-template-columns: 1fr; }
  .tok-facts { grid-template-columns: 1fr; }
  .readme-letter,
  .tech-card,
  .summary-copy,
  .milestone-panel {
    padding: 28px 20px 26px;
    border-radius: 20px;
  }
  .readme-head {
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }
  .readme-avatar {
    width: 50px;
    height: 50px;
  }
  .readme-meta .kicker {
    margin-bottom: 5px;
  }
  .readme-meta h2 {
    font-size: 28px;
  }
  .readme-body p,
  .pipeline-note {
    font-size: 14.5px;
    line-height: 1.55;
  }
  .readme-body p {
    margin-bottom: 14px;
  }
  .readme-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
  }
  .contact-chip {
    min-width: 0;
    width: 100%;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 15px;
  }
  .contact-ico,
  .contact-ico-img {
    width: 34px;
    height: 34px;
  }
  .contact-label {
    font-size: 7.8px;
    letter-spacing: 0.08em;
  }
  .contact-chip-communities .contact-label {
    font-size: 7.2px;
    letter-spacing: 0.02em;
  }
  .contact-value {
    font-size: 12px;
  }
  .contact-copy {
    font-size: 8px;
    padding: 2px 6px;
  }
  .tech-card .pipeline-label {
    margin-bottom: 16px;
  }
  .pipeline-wrap {
    padding: 28px 20px 26px;
    border-radius: 20px;
  }
  .pipeline-label {
    font-size: 11px;
    letter-spacing: 0.17em;
    margin-bottom: 18px;
  }
  .pipeline-label::before {
    width: 22px;
  }
  .pl-node {
    gap: 12px;
    padding: 4px 2px;
  }
  .pl-ico {
    width: 48px;
    height: 48px;
  }
  .pl-name {
    font-size: 13px;
  }
  .pl-role {
    font-size: 11px;
  }
  .pl-arrow {
    margin-left: 23px;
  }
  .summary-list {
    gap: 12px;
  }
  .summary-list li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding-top: 12px;
  }
  .summary-num {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .summary-list p {
    font-size: 14.5px;
  }
  .milestone-panel h3 {
    font-size: 28px;
    margin-bottom: 22px;
  }
  .milestone-track {
    min-height: 300px;
  }
  .footer-emblem img {
    width: 190px;
    height: 190px;
  }
  .community-inner { padding: 56px 22px; }
  .social-btn { width: 100%; justify-content: center; }
  .cloud-bl, .cloud-br { width: 72vw; }
}

/* ============================================================
   TECH section — RTMP → RTMPS pipeline
   ============================================================ */
/* text card — matches the Read me card style/width */
.tech-card {
  max-width: 760px;
  margin: 0 auto 28px;
  border: 1.5px solid rgba(62, 220, 100, 0.45);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 40px clamp(26px, 4vw, 56px) 38px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45),
    0 0 calc(40px * var(--glow-mult)) rgba(62, 220, 100, 0.1),
    inset 0 0 0 1px rgba(62, 220, 100, 0.06);
}
.tech-card .pipeline-label { margin: 0 0 22px; }
.tech-card .pipeline-note {
  margin: 0;
  padding: 0;
  border: none;
  max-width: none;
  text-align: left;
}
.tech-subhead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(23px, 2.7vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 64px 0 20px;
  text-wrap: balance;
}
.tech-subhead .num {
  color: var(--accent);
  font-size: 0.62em;
  letter-spacing: 0.14em;
  margin-right: 0.5em;
  vertical-align: 0.12em;
}

/* protocol comparison strip */
.proto-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
  margin: 6px 0 4px;
}
.proto-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 26px 28px;
}
.proto-card .who {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.proto-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.01em;
}
.proto-tag .lock { width: 26px; height: 26px; color: var(--accent); }
.proto-card .desc { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; }
.proto-card.secure { border-color: rgba(62, 220, 100, 0.4); }
.proto-card.secure .proto-tag { color: var(--accent); }
.proto-mid { display: grid; place-items: center; color: var(--muted); }
.proto-mid .x {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px dashed rgba(150, 175, 225, 0.35);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: #ff7a7a;
}

/* explainer body (verbatim copy) */
.tech-prose {
  max-width: 760px;
  color: #c4cee0;
  font-size: 18px;
  line-height: 1.75;
}
.tech-prose p { margin: 0 0 20px; text-wrap: pretty; }
.tech-prose a { color: var(--accent); font-weight: 600; border-bottom: 1px solid rgba(62, 220, 100, 0.4); }
.tech-prose a:hover { border-bottom-color: var(--accent); }

/* pipeline diagram */
.pipeline-wrap {
  border: 1.5px solid rgba(62, 220, 100, 0.45);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(680px 300px at 50% -10%, rgba(62, 220, 100, 0.08), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 40px clamp(20px, 3vw, 40px) 36px;
  margin-top: 24px;
}
.pipeline-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 28px;
  display: flex; align-items: center; gap: 10px;
}
.pipeline-label::before { content: ""; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.pipeline { display: flex; align-items: stretch; gap: 6px; }
.pl-node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 8px 4px;
}
.pl-ico {
  width: 66px; height: 66px;
  flex: none;
  border-radius: 18px;
  display: grid; place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(62, 220, 100, 0.28);
  box-shadow: 0 0 calc(22px * var(--glow-mult)) rgba(62, 220, 100, 0.12);
}
.pl-ico svg { width: 60%; height: 60%; }
/* photographic node icon (e.g. real drone) — sits on its own, no tinted box */
.pl-ico.photo {
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
}
.pl-ico.photo img {
  width: 132%;
  height: 132%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}
/* RTMP server node icon — accent-tinted mask of the supplied glyph */
.pl-ico.term {
  background-color: var(--accent);
  background-image: none;
  border: none;
  box-shadow: none;
  overflow: visible;
  -webkit-mask: url("assets/rtmp-icon.png") center / 66% no-repeat;
  mask: url("assets/rtmp-icon.png") center / 66% no-repeat;
  filter: drop-shadow(0 0 calc(8px * var(--glow-mult)) var(--accent-glow));
}
.pl-node.endpoint .pl-ico {
  background: var(--accent);
  color: #04140a;
  box-shadow: 0 0 calc(30px * var(--glow-mult)) var(--accent-glow);
}
.pl-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.25;
  color: var(--text);
  text-wrap: balance;
}
.pl-role { font-size: 11.5px; color: var(--muted); line-height: 1.3; text-wrap: balance; }
.pl-arrow {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: clamp(48px, 6vw, 86px);
}
.pl-proto {
  font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(62, 220, 100, 0.1);
  border: 1px solid rgba(62, 220, 100, 0.22);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.pl-proto.plain { color: var(--muted); background: rgba(150, 175, 225, 0.07); border-color: var(--line); }
.pl-line { width: 100%; height: 18px; display: block; color: var(--accent); opacity: 0.85; }
.pl-net { margin-top: 26px; display: flex; justify-content: center; }
.pl-net-inner {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px dashed rgba(150, 175, 225, 0.28);
  border-radius: 999px;
  padding: 7px 16px;
  text-align: center;
}
.pl-net-inner b { color: var(--accent); font-weight: 700; }

/* explainer text inside the signal-path panel */
.pipeline-note {
  margin: 0 auto 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  max-width: 820px;
  text-align: left;
  color: #c4cee0;
  font-size: 16px;
  line-height: 1.7;
}
.pipeline-note p { margin: 0 0 16px; text-wrap: pretty; }
.pipeline-note p:last-child { margin-bottom: 0; }
.pipeline-note a { color: var(--accent); font-weight: 600; text-decoration: none; word-break: break-word; }
.pipeline-note a:hover { text-decoration: underline; }
.pipeline-note a .gh-mark {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.17em;
  margin-right: 0.34em;
}

/* repo callout */
.repo-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(62, 220, 100, 0.3);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 22px 26px;
  margin-top: 22px;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.repo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 220, 100, 0.55);
  box-shadow: 0 0 calc(30px * var(--glow-mult)) rgba(62, 220, 100, 0.16);
}
.repo-ico {
  width: 46px; height: 46px; flex: none;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.repo-ico svg { width: 26px; height: 26px; }
.repo-text { min-width: 0; }
.repo-text .rl { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.repo-text .rv { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text); }
.repo-text .ru { font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: 12.5px; color: var(--accent); word-break: break-all; }
.repo-open { margin-left: auto; flex: none; }

.tech-path {
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 14px;
  color: var(--muted);
  margin-top: 22px;
  text-wrap: pretty;
}

@media (max-width: 820px) {
  .proto-strip { grid-template-columns: 1fr; }
  .proto-mid { padding: 4px 0; }
  .proto-mid .x { width: 44px; height: 44px; font-size: 20px; }
  .pipeline { flex-direction: column; align-items: stretch; }
  .pl-node { flex-direction: row; align-items: center; text-align: left; gap: 16px; padding: 6px 4px; }
  .pl-ico { width: 56px; height: 56px; }
  .pl-arrow { flex-direction: row; align-self: stretch; width: auto; margin: 2px 0 2px 28px; justify-content: flex-start; }
  .pl-line.h { display: none; }
  .pl-line.v { display: block; width: 18px; height: 26px; }
}
@media (min-width: 821px) {
  .pl-line.v { display: none; }
}
@media (max-width: 560px) {
  .repo-card { flex-wrap: wrap; }
  .repo-open { margin-left: 0; }
  .pipeline-wrap {
    padding: 28px 20px 26px;
    border-radius: 20px;
  }
  .pl-node {
    gap: 12px;
    padding: 4px 2px;
  }
  .pl-ico {
    width: 48px;
    height: 48px;
  }
  .pl-name {
    font-size: 13px;
  }
  .pl-role {
    font-size: 11px;
  }
  .pl-arrow {
    margin-left: 23px;
  }
}

/* Laptop / MacBook compact mode
   Keeps the same visual style, but reduces vertical density for shorter viewports. */
@media (min-width: 900px) and (max-height: 900px) {
  html { scroll-padding-top: 58px; }

  .wrap {
    max-width: 1060px;
  }

  .hero {
    height: calc(100svh - 50px);
    min-height: 500px;
  }

  .hero-copy {
    top: 38px;
    left: 8%;
    width: min(620px, 55%);
    font-size: 16px;
  }

  .hero-title {
    font-size: 58px;
    line-height: 1.02;
    letter-spacing: 0;
  }

  .hero-sub {
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.35;
  }

  .hero-points {
    margin-top: 20px;
  }

  .hero-points li {
    gap: 16px;
    padding: 14px 0;
  }

  .hp-ico {
    width: 36px;
    height: 36px;
  }

  .hero-points p {
    font-size: 15px;
    line-height: 1.48;
  }

  .ca-chip {
    margin-top: 20px;
    font-size: 13px;
  }

  section.block {
    padding: clamp(34px, 5.4vh, 52px) 0;
  }

  #tech {
    padding-bottom: clamp(24px, 4vh, 36px);
  }

  #summary {
    padding-top: clamp(24px, 4vh, 36px);
  }

  section.block[id] {
    scroll-margin-top: 58px;
  }

  .cloud-tr {
    width: min(34vw, 460px);
    opacity: 0.46;
  }

  .readme-letter {
    max-width: min(760px, 74vw);
    padding: clamp(22px, 3.4vh, 30px) clamp(24px, 3.2vw, 42px) clamp(20px, 3.1vh, 28px);
    border-radius: 20px;
  }

  .readme-head {
    gap: 14px;
    margin-bottom: clamp(14px, 2vh, 18px);
    padding-bottom: clamp(12px, 2vh, 16px);
  }

  .readme-avatar {
    width: clamp(46px, 6.2vh, 52px);
    height: clamp(46px, 6.2vh, 52px);
  }

  .readme-meta .kicker {
    margin-bottom: 5px;
  }

  .kicker,
  .pipeline-label {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .kicker::before,
  .pipeline-label::before {
    width: 22px;
  }

  .readme-meta h2 {
    font-size: clamp(27px, 2.4vw, 31px);
  }

  .readme-body p {
    font-size: clamp(14px, 1.42vw, 15.2px);
    line-height: 1.48;
    margin-bottom: clamp(8px, 1.5vh, 11px);
  }

  .summary-grid {
    gap: 16px;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  }

  .summary-copy,
  .milestone-panel {
    padding: clamp(22px, 3.4vh, 30px) clamp(24px, 3vw, 38px) clamp(20px, 3.1vh, 28px);
    border-radius: 20px;
  }

  .summary-copy .pipeline-label,
  .milestone-panel .pipeline-label {
    margin-bottom: 12px;
  }

  .summary-copy h2 {
    font-size: clamp(27px, 2.4vw, 32px);
    margin-bottom: 10px;
  }

  .summary-lede {
    margin-bottom: 16px;
    font-size: 14.5px;
    line-height: 1.45;
  }

  .summary-list {
    gap: 9px;
  }

  .summary-list li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    padding-top: 9px;
  }

  .summary-num {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }

  .summary-list p {
    font-size: 13.6px;
    line-height: 1.42;
  }

  .milestone-panel h3 {
    font-size: clamp(27px, 2.4vw, 32px);
    margin-bottom: 18px;
  }

  .milestone {
    gap: 12px;
    padding-bottom: 0;
  }

  .milestone-cap {
    font-size: 14.5px;
  }

  .milestone-goal {
    font-size: 12.5px;
  }

  .readme-contact {
    gap: 8px;
    margin-top: clamp(14px, 2vh, 18px);
    padding-top: clamp(12px, 1.9vh, 16px);
  }

  .contact-chip {
    gap: 8px;
    padding: 7px 9px;
    border-radius: 14px;
  }

  .contact-ico,
  .contact-ico-img {
    width: 30px;
    height: 30px;
  }

  .contact-label {
    font-size: 8px;
  }

  .contact-chip-communities {
    gap: 6px;
    padding-left: 7px;
    padding-right: 7px;
  }

  .contact-chip-communities .contact-label {
    font-size: 7.3px;
    letter-spacing: 0.02em;
  }

  .contact-value {
    font-size: 12px;
  }

  .contact-copy {
    font-size: 8.5px;
    padding: 2px 6px;
  }

  .tech-card {
    max-width: min(760px, 74vw);
    margin-bottom: 18px;
    padding: clamp(22px, 3.4vh, 30px) clamp(24px, 3.2vw, 42px) clamp(20px, 3.1vh, 28px);
    border-radius: 20px;
  }

  .tech-card .pipeline-label {
    margin-bottom: 14px;
  }

  .pipeline-note {
    margin-bottom: 20px;
    padding-bottom: 18px;
    font-size: 14.5px;
    line-height: 1.5;
  }

  .pipeline-note p {
    margin-bottom: 10px;
  }

  .pipeline-wrap {
    margin-top: 16px;
    padding: 24px clamp(18px, 2.4vw, 30px) 22px;
    border-radius: 20px;
  }

  .pipeline-label {
    margin-bottom: 18px;
  }

  .pipeline {
    gap: 4px;
  }

  .pl-node {
    gap: 8px;
    padding: 4px 2px;
  }

  .pl-ico {
    width: clamp(50px, 6.4vh, 56px);
    height: clamp(50px, 6.4vh, 56px);
  }

  .pl-name {
    font-size: 12.5px;
  }

  .pl-role {
    font-size: 10px;
  }

  .pl-arrow {
    width: clamp(38px, 5vw, 64px);
    margin-top: 12px;
    gap: 5px;
  }

  .pl-proto {
    font-size: 9px;
    padding: 2px 7px;
  }
}

/* Large desktop / PC monitor mode
   Uses the same artwork and components, with wider composition and balanced text scale. */
@media (min-width: 1440px) and (min-height: 901px) {
  .wrap {
    max-width: 1320px;
    padding: 0 44px;
  }

  .hero {
    height: calc(100svh - 50px);
    min-height: 760px;
    background-position: 80% top;
    background-size: cover;
  }

  .hero-copy {
    left: clamp(104px, 8vw, 168px);
    top: clamp(92px, 10vh, 132px);
    width: min(720px, 48vw);
    font-size: 17px;
  }

  .hero-title {
    font-size: clamp(80px, 5.3vw, 104px);
    line-height: 1.02;
    letter-spacing: 0;
  }

  .hero-sub {
    margin-top: 28px;
    font-size: 24px;
    line-height: 1.35;
  }

  .hero-points {
    margin-top: 24px;
  }

  .hero-points li {
    gap: 22px;
    padding: 18px 0;
  }

  .hero-points li::before {
    width: 68%;
  }

  .hp-ico {
    width: 46px;
    height: 46px;
  }

  .hero-points p {
    font-size: 17px;
    line-height: 1.55;
  }

  .ca-chip {
    margin-top: 28px;
    font-size: 15px;
  }

  section.block {
    padding: 130px 0;
  }

  #tech {
    padding-bottom: 76px;
  }

  #summary {
    padding-top: 76px;
  }

  .readme-letter,
  .tech-card {
    max-width: 880px;
    padding: 54px 64px 50px;
  }

  .summary-grid {
    gap: 34px;
  }

  .summary-copy,
  .milestone-panel {
    padding: 54px 58px 50px;
  }

  .summary-list p {
    font-size: 17px;
  }

  .milestone-cap {
    font-size: 18px;
  }

  .milestone-goal {
    font-size: 15px;
  }

  .readme-head {
    margin-bottom: 30px;
    padding-bottom: 28px;
  }

  .readme-avatar {
    width: 66px;
    height: 66px;
  }

  .readme-meta h2 {
    font-size: 40px;
  }

  .readme-body p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .readme-contact {
    margin-top: 32px;
    padding-top: 28px;
  }

  .tech-card {
    margin-bottom: 34px;
  }

  .pipeline-note {
    font-size: 17.5px;
    line-height: 1.68;
  }

  .pipeline-wrap {
    padding: 48px 44px 42px;
  }

  .pl-node {
    gap: 14px;
    padding: 10px 6px;
  }

  .pl-ico {
    width: 76px;
    height: 76px;
  }

  .pl-name {
    font-size: 15.5px;
  }

  .pl-role {
    font-size: 12px;
  }

  .pl-arrow {
    width: clamp(64px, 5.2vw, 96px);
    margin-top: 18px;
  }
}
