:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --ink: #172026;
  --muted: #657174;
  --line: rgba(23, 32, 38, .14);
  --soft-line: rgba(23, 32, 38, .08);
  --surface: rgba(255, 255, 255, .88);
  --accent: #1d6f67;
  --accent-2: #c9823a;
  --accent-3: #2f6fa3;
  --shadow: rgba(28, 38, 46, .13);
  --radius: 8px;
  --mx: 0;
  --my: 0;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}
body.site-aoww {
  --bg: #f8f3eb;
  --ink: #1f241f;
  --muted: #6e7168;
  --accent: #0d6c5d;
  --accent-2: #b97034;
  --accent-3: #3e7185;
}
body.site-yzo {
  --bg: #f2f8f7;
  --ink: #17242a;
  --muted: #607277;
  --accent: #177b77;
  --accent-2: #d19042;
  --accent-3: #4268a9;
}
body.site-nono {
  color-scheme: dark;
  --bg: #080b10;
  --ink: #eef6f4;
  --muted: #9badb5;
  --line: rgba(255, 255, 255, .14);
  --soft-line: rgba(255, 255, 255, .08);
  --surface: rgba(255, 255, 255, .07);
  --accent: #63e6c6;
  --accent-2: #f6b15e;
  --accent-3: #7cb7ff;
  --shadow: rgba(0, 0, 0, .36);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 3px;
  transform-origin: left;
  transform: scaleX(var(--scroll-progress, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  color: #fff;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 820;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.28)),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a,
.pill-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius);
  background: rgba(0,0,0,.18);
  color: #fff;
  backdrop-filter: blur(14px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.nav a { padding: 0 13px; }
.nav a:hover,
.pill-button:hover,
.ghost-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.46);
  background: rgba(255,255,255,.13);
}
.hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #111;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.018) translate(calc(var(--mx) * -6px), calc(var(--my) * -5px));
  transition: transform .18s ease-out;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.18) 50%, rgba(0,0,0,.26)),
    linear-gradient(180deg, rgba(0,0,0,.38), transparent 36%, rgba(0,0,0,.42));
}
.hero::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: auto 0 0 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, var(--bg));
  opacity: .72;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 58px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.82);
  font-size: .92rem;
  font-weight: 720;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent-2);
}
h1 {
  max-width: 790px;
  margin: 20px 0 20px;
  font-size: 5.25rem;
  line-height: .94;
  font-weight: 850;
  letter-spacing: 0;
  text-wrap: balance;
}
.lead {
  max-width: 640px;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: 1.12rem;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pill-button,
.ghost-link { padding: 0 18px; }
.pill-button { border-color: transparent; background: var(--accent); }
.section { padding: 66px 0; }
.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.12));
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, .56fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}
h2 {
  margin: 0;
  font-size: 2.36rem;
  line-height: 1.08;
  font-weight: 820;
  letter-spacing: 0;
  text-wrap: balance;
}
.section-head p { margin: 0; color: var(--muted); line-height: 1.7; }
.travel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.travel-card,
.route-card,
.system-card,
.timeline-card {
  --rx: 0deg;
  --ry: 0deg;
  --shine-x: 50%;
  position: relative;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 44px var(--shadow);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.travel-card::after,
.route-card::after,
.timeline-card::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0, rgba(255,255,255,.24) var(--shine-x), transparent 56%);
  opacity: 0;
  transition: opacity .22s ease;
}
.travel-card:hover,
.route-card:hover,
.timeline-card:hover {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--soft-line));
  box-shadow: 0 24px 54px rgba(28, 38, 46, .16);
}
.travel-card:hover::after,
.route-card:hover::after,
.timeline-card:hover::after { opacity: .62; }
.travel-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transform: scale(1.003);
  transition: transform .5s ease;
}
.travel-card:hover img { transform: scale(1.035); }
.travel-card-body,
.route-card,
.system-card,
.timeline-card { padding: 20px; }
.travel-card h3,
.route-card h3,
.system-card h3,
.timeline-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: 0;
}
.travel-card p,
.route-card p,
.system-card p,
.timeline-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.58);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 720;
}
.mood-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mood-strip button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  color: var(--ink);
  cursor: pointer;
}
.mood-strip button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, white);
}
.feature-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--soft-line);
  overflow: hidden;
}
.feature-band span {
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  text-align: center;
  font-weight: 780;
}
.route-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 20px;
  align-items: start;
}
.route-map {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(25,124,120,.12), rgba(66,104,169,.08)), #ffffff;
  overflow: hidden;
}
.route-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-main { stroke-dasharray: 1; stroke-dashoffset: 1; }
.route-map .map-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(12px);
}
.route-list { display: grid; gap: 12px; }
.route-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.route-card img {
  width: 92px;
  height: 92px;
  border-radius: var(--radius);
  object-fit: cover;
}
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.timeline-card { min-height: 190px; }
.timeline-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 28px;
  margin-bottom: 28px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  color: var(--accent);
}
.travel-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.travel-note div {
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.66);
}
.travel-note strong { display: block; margin-bottom: 5px; }
.travel-note span { color: var(--muted); line-height: 1.55; }
.nono-hero {
  min-height: 76svh;
  color: var(--ink);
  background: linear-gradient(120deg, rgba(99,230,198,.12), transparent 32%, rgba(124,183,255,.08)), #080b10;
}
.nono-hero .hero-media { opacity: .95; }
.nono-canvas { width: 100%; height: 100%; }
.nono-hero .hero-media::after {
  background:
    linear-gradient(90deg, rgba(8,11,16,.9), rgba(8,11,16,.54) 48%, rgba(8,11,16,.8)),
    linear-gradient(180deg, rgba(8,11,16,.62), transparent 38%, rgba(8,11,16,.82));
}
.nono-hero .pill-button { color: #06211a; background: var(--accent); }
.nono-shell { background: linear-gradient(180deg, #080b10, #0d131b 62%, #080b10); }
.system-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.system-card {
  min-height: 190px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
}
.system-card .index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 820;
}
.architecture {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 16px;
}
.arch-list { display: grid; gap: 10px; }
.arch-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
}
.arch-item strong { color: var(--accent); }
.arch-item span { color: var(--muted); }
.diagram {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    rgba(255,255,255,.045);
  background-size: 42px 42px;
  overflow: hidden;
}
.node {
  position: absolute;
  min-width: 122px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8,11,16,.78);
  box-shadow: 0 18px 38px rgba(0,0,0,.28);
}
.node strong,
.node span { display: block; }
.node span { margin-top: 4px; color: var(--muted); font-size: .84rem; }
.node.api { left: 12%; top: 18%; }
.node.db { right: 12%; top: 18%; }
.node.queue { left: 35%; top: 44%; }
.node.admin { left: 10%; bottom: 14%; }
.node.channels { right: 10%; bottom: 14%; }
.diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 48px;
  color: var(--muted);
  border-top: 1px solid var(--soft-line);
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: rise both;
    animation-timeline: view();
    animation-range: entry 10% cover 34%;
  }
  .hero-media img {
    animation: hero-drift both linear;
    animation-timeline: scroll(root);
    animation-range: 0 620px;
  }
  .route-main {
    animation: route-draw both ease-out;
    animation-timeline: view();
    animation-range: entry 18% cover 58%;
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-drift {
  from { scale: 1.01; }
  to { scale: 1.055; }
}
@keyframes route-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 980px) {
  .topbar { position: absolute; }
  .topbar-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .nav a { min-width: max-content; }
  h1 { font-size: 4rem; }
  .hero { min-height: 74svh; }
  .section-head,
  .route-layout,
  .architecture { grid-template-columns: 1fr; }
  .travel-grid,
  .timeline,
  .system-grid,
  .travel-note { grid-template-columns: 1fr 1fr; }
  .feature-band { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .shell,
  .hero-content { width: min(100% - 28px, 1180px); }
  body { font-size: 15px; }
  .topbar-inner { min-height: auto; }
  .brand-mark { width: 30px; height: 30px; }
  .nav a,
  .pill-button,
  .ghost-link,
  .mood-strip button { min-height: 34px; }
  .hero { min-height: 72svh; }
  .hero-content { padding: 132px 0 46px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 1.72rem; }
  .lead { font-size: 1rem; line-height: 1.55; }
  .section { padding: 42px 0; }
  .travel-grid,
  .timeline,
  .system-grid,
  .feature-band,
  .travel-note { grid-template-columns: 1fr; }
  .travel-card img { height: 210px; }
  .route-card { grid-template-columns: 72px minmax(0, 1fr); }
  .route-card img { width: 72px; height: 72px; }
  .route-map,
  .diagram { min-height: 340px; }
  .arch-item { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
