*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 40px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.masthead {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--night) 92%, transparent);
  backdrop-filter: blur(10px);
  color: var(--night-ink);
  border-bottom: 1px solid var(--night-2);
}
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 1.05rem; }
.wordmark__mark { width: 28px; height: 28px; flex: none; }
.nav { list-style: none; padding: 0; display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--night-ink-2); }
.nav a:hover { color: var(--night-ink); }
.nav .nav__cta { white-space: nowrap; color: var(--night); background: var(--night-ink); padding: 8px 16px; border-radius: 999px; font-weight: 500; }
.nav .nav__cta:hover { color: var(--night); background: var(--accent-soft); }

.hero { background: var(--night); color: var(--night-ink); padding: 72px 0 88px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero__kicker { color: var(--accent-soft); font-size: 0.95rem; margin-bottom: 20px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.hero__lead { color: var(--night-ink-2); max-width: 34em; margin-bottom: 20px; }
.hero__stage {
  color: var(--night-ink); max-width: 34em; padding-left: 16px;
  border-left: 2px solid var(--accent-2); margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.btn--light { background: var(--night-ink); color: var(--night); }
.btn--light:hover { background: var(--accent-soft); }
.btn--ghost { border: 1px solid var(--night-ink-2); color: var(--night-ink); }
.btn--ghost:hover { border-color: var(--night-ink); }

.twin { margin: 0; }
.twin__svg { width: 100%; height: auto; display: block; overflow: visible; }
.twin__floor path { stroke: var(--night-2); stroke-width: 1; fill: none; }
.twin__frame rect, .twin__frame path, .twin__frame circle { stroke: var(--night-ink-2); stroke-width: 1.4; fill: none; stroke-linejoin: round; }
.twin__shell { stroke: var(--accent-2); stroke-width: 1.6; fill: color-mix(in srgb, var(--accent) 22%, var(--night)); }
.twin__cap { stroke: var(--accent-2); stroke-width: 1.6; fill: var(--night-2); }
.twin__axle { stroke: var(--night-ink-2); stroke-width: 2; stroke-dasharray: 2 5; }
.twin__hub { fill: var(--night-ink); }
#ports ellipse { fill: var(--night); stroke: var(--accent-soft); stroke-width: 1; }
.twin__leader { stroke: var(--night-ink-2); stroke-width: 1; fill: none; }
.twin__notes text { fill: var(--night-ink); font-family: var(--font-body); font-size: 15px; }
.twin figcaption { color: var(--night-ink-2); font-size: 0.9rem; margin-top: 18px; max-width: 40em; }

.twin__body, .twin__frame, .twin__notes { animation: draw-in 1.2s ease-out both; }
.twin__frame { animation-delay: 0.15s; }
.twin__notes { animation-delay: 0.5s; }
@keyframes draw-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.intro { padding: 112px 40px 96px; }
.intro__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.18; letter-spacing: -0.01em;
  max-width: 24em;
}

.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.01em;
  max-width: 18em;
}

.platform { padding-bottom: 112px; }
.platform .section-title { margin-bottom: 40px; }
.bands { border-top: 1px solid var(--rule); }
.band {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px;
  padding: 32px 0; border-bottom: 1px solid var(--rule);
}
.band__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; }
.band__body p { color: var(--ink-2); max-width: 36em; }
.band__body a { color: var(--accent); text-underline-offset: 3px; }

.community { background: var(--accent); color: var(--paper); padding: 112px 0; }
.community__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 72px; }
.community__lead { color: var(--accent-soft); margin-top: 24px; max-width: 32em; }
.offer { list-style: none; padding: 0; align-self: end; border-top: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); }
.offer li {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.2;
  padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
}
.showroom { grid-column: 1 / -1; margin-top: 40px; padding: 28px 32px; border-radius: var(--radius); background: color-mix(in srgb, var(--night) 28%, var(--accent)); max-width: 52em; }
.showroom h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.showroom p { color: var(--accent-soft); }

.geogro { padding: 112px 0; }
.geogro__lead { color: var(--ink-2); max-width: 40em; margin: 24px 0 56px; }
.chain { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.chain__node { position: relative; padding: 28px 40px 28px 0; border-top: 2px solid var(--ink); }
.chain__node:not(:last-child)::after {
  content: ""; position: absolute; top: -7px; right: 18px;
  width: 12px; height: 12px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink);
  transform: rotate(45deg);
}
.chain__node--here { border-top-color: var(--accent); }
.chain__name { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; margin-bottom: 10px; }
.chain__node--here .chain__name { color: var(--accent); }
.chain__what { display: block; color: var(--ink-2); max-width: 22em; }

.audience { padding: 0 40px 112px; }
.audience__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.audience__col { background: var(--paper-2); border-radius: var(--radius); padding: 36px; }
.audience__col h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }
.audience__col p { color: var(--ink-2); }

.stage { background: var(--paper-2); padding: 96px 0; border-top: 1px solid var(--rule); }
.stage__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
.stage__body p { color: var(--ink-2); max-width: 36em; }
.stage__body p + p { margin-top: 16px; }

.contact { background: var(--night); color: var(--night-ink); padding: 120px 0; }
.contact__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.02em; }
.contact__lead { color: var(--night-ink-2); max-width: 32em; margin: 24px 0 40px; }
.contact__mail {
  display: inline-block; font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.4vw, 3.2rem); line-height: 1.15;
  color: var(--accent-soft); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px;
  overflow-wrap: anywhere;
}
.contact__mail:hover { color: var(--night-ink); }

.footer { background: var(--night); color: var(--night-ink-2); border-top: 1px solid var(--night-2); font-size: 0.9rem; }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; padding-bottom: 28px; }
.footer a { color: var(--night-ink-2); }

@media (max-width: 900px) {
  .hero__grid, .community__grid, .stage__grid { grid-template-columns: 1fr; gap: 40px; }
  .band { grid-template-columns: 1fr; gap: 10px; }
  .chain { grid-template-columns: 1fr; }
  .chain__node { padding: 24px 0 28px 24px; border-top: none; border-left: 2px solid var(--ink); }
  .chain__node--here { border-left-color: var(--accent); }
  .chain__node:not(:last-child)::after { top: auto; bottom: -8px; right: auto; left: -8px; transform: rotate(135deg); }
  .audience__grid { grid-template-columns: 1fr; }
  .nav li:not(:last-child) { display: none; }
}

@media (max-width: 600px) {
  .wrap, .intro, .audience { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 48px 0 64px; }
  .intro { padding-top: 72px; padding-bottom: 64px; }
  .platform, .geogro, .audience { padding-bottom: 72px; }
  .community, .geogro, .stage, .contact { padding-top: 72px; padding-bottom: 72px; }
  .audience__col, .showroom { padding: 24px; }
  .wordmark { font-size: 0.95rem; }
  .masthead__row { gap: 12px; }
  .twin__notes text { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
