/* Homepage sections fill the available screen, and grow when text needs more space. */
.home-page main > .section {
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: center;
  padding-block: clamp(24px, 4svh, 48px);
}
.hero {
  min-height: calc(100svh - var(--header));
  display: grid;
  grid-template-rows: 1fr auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-block: 32px;
}
.hero-copy,
.hero-scene {
  min-width: 0;
}
.hero-intro {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero h1 {
  margin-bottom: 24px;
  font-weight: 600;
}
.title-line {
  display: block;
}
.hero-description {
  max-width: 47ch;
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.65;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.development-note {
  display: flex;
  align-items: start;
  gap: 8px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
  max-width: 48ch;
}
.development-note > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 7px;
  flex-shrink: 0;
}
.hero-scene {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: #fff;
}
.scene-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
}
.scene-counter {
  font-family: var(--mono);
}
.orbital-stage {
  position: relative;
  width: 100%;
  height: min(44svh, 440px);
  isolation: isolate;
}
#motion-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.orbital-fallback {
  position: absolute;
  inset: 23%;
  border: 24px double #8b9da9;
  border-radius: 50%;
  transform: rotateX(30deg) rotateZ(-30deg);
  opacity: 0.4;
}
.has-canvas .orbital-fallback {
  display: none;
}
.scene-emblem {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(56px, 6vw, 84px);
  pointer-events: none;
}
.scene-emblem img {
  width: 100%;
}
.orbit-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  font: 11px/1.5 var(--mono);
  color: var(--muted);
  background: #ffffffeb;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  pointer-events: none;
}
.orbit-label i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}
.label-one {
  left: 0;
  top: 20%;
}
.label-two {
  right: 0;
  top: 52%;
}
.label-three {
  left: 12%;
  bottom: 12%;
}
.scene-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.scene-console > div:first-child {
  display: flex;
  flex-direction: column;
}
.scene-console > div > span {
  font-size: var(--text-xs);
  color: var(--muted);
}
.scene-console strong {
  font-size: 18px;
  font-weight: 650;
  white-space: nowrap;
}
.mode-selector {
  display: flex;
  background: var(--surface);
  padding: 3px;
  border-radius: var(--radius-sm);
}
.mode-button {
  min-height: 44px;
  padding: 8px 12px;
  font-size: var(--text-xs);
  font-weight: 550;
  border-radius: 4px;
  background: transparent;
}
.mode-button.active {
  background: var(--ink);
  color: white;
}
.mode-button:not(.active):hover {
  background: #dae4eb;
}
.concept-caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
}
.capability-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.capability-strip > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-sm);
}
.capability-strip span {
  font: var(--text-xs)/1.5 var(--mono);
  color: var(--red);
}
.technology {
  background: var(--dark);
  color: white;
}
.technology .section-heading > p {
  color: var(--on-dark-muted);
}
.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 16px;
}
.workflow-step {
  padding: 24px;
  background: var(--dark-surface);
  border: 1px solid #456171;
  border-radius: var(--radius);
}
.workflow-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #8c645f;
  border-radius: var(--radius-sm);
  font: var(--text-sm)/1 var(--mono);
  color: var(--on-dark-accent);
  margin-bottom: 32px;
}
.workflow-step h3 {
  font-size: clamp(18px, 1.8vw, 24px);
  margin-bottom: 12px;
}
.workflow-step p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--on-dark-muted);
  margin: 0;
}
.portfolio {
  background: var(--surface);
}
.software {
  background: white;
}
.applications {
  background: var(--paper);
}
.applications-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.application-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.application-card > .icon {
  width: 32px;
  height: 32px;
  color: var(--red);
  margin-bottom: 32px;
}
.application-card h3 {
  font-size: var(--title-md);
  margin-bottom: 12px;
}
.application-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.app-number {
  display: none;
}
.about {
  background: var(--surface);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 72px;
  align-items: center;
}
.about-brand {
  display: grid;
  place-items: center;
}
.about-brand img {
  width: min(260px, 100%);
}
.brand-orbit {
  display: none;
}
.about-copy h2 {
  margin-bottom: 20px;
}
.about-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: var(--text-base);
  max-width: 60ch;
}
.future-family {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  background: white;
}
.future-family > span {
  font-size: var(--text-xs);
  color: var(--red);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.future-family > strong {
  display: block;
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 6px 0;
}
.future-family p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}
.faq {
  background: white;
}
@media (max-width: 1100px) {
  .hero-grid {
    gap: 24px;
  }
  .hero-scene {
    padding: 16px;
  }
  .hero-description {
    font-size: 16px;
  }
  .workflow-step {
    padding: 18px;
  }
  .workflow {
    gap: 12px;
  }
  .product-art {
    height: 200px;
  }
  .about-grid {
    gap: 40px;
  }
}
@media (min-width: 701px) and (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-copy {
    max-width: 640px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .title-line {
    display: inline;
  }
  .title-line + .title-line::before {
    content: " ";
  }
  .hero-description {
    max-width: 60ch;
  }
  .hero-scene {
    max-width: 540px;
    width: 100%;
    justify-self: center;
  }
  .orbital-stage {
    height: 290px;
  }
  .workflow,
  .applications-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workflow-number {
    margin-bottom: 20px;
  }
}
@media (max-width: 700px) {
  .home-page main > .section {
    padding-block: 24px;
  }
  .hero {
    grid-template-rows: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 20px;
    padding-block: 24px;
  }
  .hero-intro {
    font-size: 11px;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
  }
  .hero h1 {
    font-size: clamp(30px, 8vw, 38px);
    margin-bottom: 12px;
  }
  .hero-description {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .button {
    padding-inline: 12px;
    font-size: 13px;
  }
  .development-note {
    margin-top: 12px;
    font-size: 12px;
  }
  .hero-scene {
    padding: 12px;
  }
  .scene-top,
  .capability-strip {
    display: none;
  }
  .orbital-stage {
    height: clamp(140px, 24svh, 240px);
  }
  .scene-emblem {
    width: 54px;
  }
  .orbit-label {
    font-size: 10px;
    padding: 3px 5px;
  }
  .label-three {
    bottom: 8%;
  }
  .scene-console {
    margin-top: 8px;
    padding-top: 8px;
    gap: 6px;
  }
  .scene-console strong {
    font-size: 16px;
  }
  .mode-button {
    padding-inline: 10px;
  }
  .concept-caption {
    font-size: 11px;
  }
  .workflow,
  .applications-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .workflow-step {
    padding: 16px 12px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px 8px;
    align-content: start;
  }
  .workflow-number {
    width: 24px;
    height: 24px;
    margin: 0;
    font-size: 12px;
  }
  .workflow-step h3 {
    font-size: 17px;
    margin: 0;
    align-self: center;
  }
  .workflow-step p {
    grid-column: 1 / -1;
  }
  .workflow-step p {
    font-size: 13px;
    line-height: 1.5;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .product-card-link {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    padding: 12px;
    column-gap: 12px;
  }
  .product-top {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    gap: 0;
  }
  .product-top .eyebrow,
  .product-card .technical-code,
  .product-card .art-caption {
    display: none;
  }
  .product-card .status-chip {
    font-size: 11px;
  }
  .product-card .product-art {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    height: 108px;
    padding: 0;
    grid-template-rows: minmax(0, 1fr);
  }
  .product-card .imu-board,
  .product-card .motor-board {
    height: 90px;
    max-width: 100%;
  }
  .product-copy {
    grid-column: 2;
    grid-row: 2;
    border: 0;
    padding: 4px 0 0;
  }
  .product-copy h3 {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 5px;
  }
  .product-copy p {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 6px;
  }
  .text-link {
    font-size: 12px;
    line-height: 1.4;
    padding-top: 6px;
    min-height: 24px;
  }
  .text-link .icon {
    width: 16px;
    height: 16px;
  }
  .application-card {
    padding: 18px 14px;
  }
  .application-card > .icon {
    margin-bottom: 20px;
    width: 28px;
    height: 28px;
  }
  .application-card h3 {
    font-size: 18px;
  }
  .application-card p {
    font-size: 13px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about-brand img {
    width: 100px;
  }
  .about-copy .eyebrow {
    margin-bottom: 8px;
  }
  .about-copy h2 {
    margin-bottom: 12px;
  }
  .about-copy > p:not(.eyebrow) {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .future-family {
    margin-top: 16px;
    padding: 16px;
  }
  .future-family > strong {
    font-size: 16px;
  }
  .future-family p {
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .home-page .section-heading {
    margin-bottom: 14px;
  }
  .home-page .section-heading h2 {
    font-size: 25px;
  }
  .hero-intro {
    display: none;
  }
  .home-page main > .section {
    padding-block: 10px;
  }
  .hero-grid {
    gap: 12px;
    padding-block: 16px;
  }
  .hero h1 {
    font-size: 29px;
  }
  .hero-intro {
    font-size: 10px;
  }
  .hero-description {
    font-size: 13px;
  }
  .hero-actions .button {
    padding-inline: 10px;
    font-size: 12px;
  }
  .hero-actions .icon {
    width: 16px;
    height: 16px;
  }
  .orbital-stage {
    height: 108px;
  }
  .orbit-label {
    display: none;
  }
  .concept-caption {
    font-size: 10px;
  }
  .mode-button {
    padding-inline: 8px;
  }
  .product-card-link {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 7px;
    column-gap: 8px;
  }
  .product-card .product-art {
    height: 88px;
  }
  .product-card .imu-board,
  .product-card .motor-board {
    height: 74px;
  }
  .product-copy h3 {
    font-size: 16px;
  }
  .product-copy p {
    font-size: 12px;
  }
  .product-grid {
    gap: 6px;
  }
  .status-chip {
    font-size: 11px;
  }
  .workflow-step {
    padding: 12px 10px;
  }
  .workflow-step h3 {
    font-size: 16px;
  }
  .workflow-number {
    margin-bottom: 0;
  }
  .about-brand img {
    width: 64px;
  }
  .about-grid {
    gap: 12px;
  }
  .about-copy h2 {
    font-size: 25px;
  }
  .about-copy > p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.5;
  }
  .future-family {
    padding: 12px;
    margin-top: 12px;
  }
  .future-family > strong {
    font-size: 14px;
  }
  .application-card {
    padding: 14px 10px;
  }
  .application-card > .icon {
    margin-bottom: 12px;
  }
  .application-card h3 {
    font-size: 16px;
  }
  .application-card p {
    font-size: 12px;
  }
  .studio-top {
    padding: 8px 10px;
  }
  .studio-brand {
    font-size: 11px;
  }
  .studio-top .small-square {
    display: none;
  }
  .studio-panel {
    padding: 10px;
  }
  .studio-copy h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  #studio-note {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .telemetry-chart {
    height: 64px;
  }
  .chart-y,
  .chart-bottom,
  .chart-disclaimer {
    font-size: 11px;
  }
  .chart-wrap {
    padding: 8px;
  }
  .software-details {
    margin-top: 4px;
  }
}
@media (min-width: 961px) and (max-height: 760px) {
  .hero-grid {
    padding-block: 24px;
  }
  .hero h1 {
    font-size: clamp(36px, 4vw, 54px);
  }
  .hero-description {
    margin-bottom: 20px;
  }
  .orbital-stage {
    height: 36svh;
  }
  .product-art {
    height: 24svh;
  }
  .imu-board,
  .motor-board {
    height: min(146px, 20svh);
  }
  .product-copy h3 {
    font-size: 21px;
  }
  .product-top {
    padding-top: 16px;
  }
  .product-copy {
    padding-block: 12px;
  }
}
