/* Asteron Robotics — a separate visual world; shared education styles stay intact. */
.robotics-page {
  --rb-bg: #08090b;
  --rb-white: #f4f5f7;
  --rb-muted: #b3b7c0;
  --rb-line: rgba(244,245,247,.2);
  --rb-side: clamp(24px, 5vw, 80px);
  color: var(--rb-white);
  background: var(--rb-bg);
}
.robotics-page ::selection { color: var(--rb-bg); background: #bdcaff; }
.robotics-page :focus-visible { outline-color: #b5c4ff; outline-offset: 6px; }
.robotics-page .site-header { color: var(--rb-white); border-bottom-color: rgba(244,245,247,.12); }
.robotics-page .site-header.is-scrolled { background: rgba(8,9,11,.96); border-bottom-color: var(--rb-line); }
.robotics-page .site-header::after { background: #a4b5ff; }
.robotics-page .brand img { filter: brightness(0) invert(1); }
.robotics-page .desktop-nav > a:not(.nav-contact)::after { background: var(--rb-white); }
.robotics-page .nav-contact { color: var(--rb-bg); background: var(--rb-white); }
.robotics-page .nav-contact:is(:hover, :focus-visible) { background: #c7d2ff; }
.robotics-page .site-footer { border-top: 1px solid var(--rb-line); background: var(--rb-bg); }
.rb-main { overflow: clip; }
.rb-main h1, .rb-main h2 { font-family: var(--sans); font-weight: 500; }
.rb-journey { position: relative; isolation: isolate; }
.rb-stage-track { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rb-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--rb-bg); }
.rb-fallback, .rb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rb-fallback { object-fit: cover; transition: opacity .6s var(--ease); }
.rb-canvas { opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.rb-scene-ready .rb-canvas { opacity: 1; }
.rb-scene-ready .rb-fallback { opacity: 0; }
.rb-stage-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(8,9,11,.92), rgba(8,9,11,.84) 30%, rgba(8,9,11,.3) 48%, transparent 63%), linear-gradient(0deg, rgba(8,9,11,.94), transparent 30%); }
.rb-hero { position: relative; min-height: 860px; min-height: max(820px, 100svh); padding: calc(var(--header-h) + 32px) var(--rb-side) 32px; display: flex; flex-direction: column; }
.rb-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rb-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--rb-muted); font-family: var(--jp); font-size: 12px; line-height: 1.8; }
.rb-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rb-white); }
.rb-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 5px; }
.rb-status { margin: 0; padding-left: 16px; border-left: 1px solid #a4b5ff; color: var(--rb-muted); font-family: var(--jp); font-size: 12px; line-height: 1.8; white-space: nowrap; }
.rb-hero-copy { margin-top: clamp(48px, 9vh, 112px); width: 40%; }
.rb-kicker { display: flex; gap: 24px; margin: 0; color: var(--rb-muted); font-size: 12px; font-weight: 500; line-height: 1.6; letter-spacing: .08em; }
.rb-kicker > span:first-child:not(:only-child) { color: #acbdff; font-variant-numeric: tabular-nums; }
.rb-statement { margin: 24px 0 0; font-family: var(--jp); font-size: clamp(32px, 3.4vw, 52px); font-weight: 500; line-height: 1.48; letter-spacing: -.035em; }
.rb-hero-description { margin: 24px 0 0; color: var(--rb-muted); font-family: var(--jp); font-size: 14px; line-height: 2; }
.rb-wordmark { width: max-content; max-width: 100%; margin: auto 0 0 -.065em; padding-top: 48px; font-size: clamp(64px, 15.2vw, 252px); line-height: .85; letter-spacing: -.065em; }
.rb-hero-bottom { padding-right: 184px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 40px; }
.rb-scroll { display: flex; align-items: center; gap: 40px; min-height: 44px; font-size: 12px; letter-spacing: .04em; }
.rb-scroll span:last-child { font-size: 20px; transition: transform .2s var(--ease); }
.rb-scroll:is(:hover, :focus-visible) span:last-child { transform: translateY(4px); }
.rb-concept-note { max-width: 42em; margin: 0; color: var(--rb-muted); font-family: var(--jp); font-size: 12px; line-height: 1.8; }
.rb-hero-copy .rb-concept-note { margin-top: 16px; font-size: 13px; }
.rb-chapter { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: 112px var(--rb-side); }
.rb-chapter-copy { width: 43%; }
.rb-chapter h2 { margin: 36px 0; font-family: var(--jp); font-size: clamp(36px, 4.2vw, 64px); line-height: 1.45; letter-spacing: -.035em; }
.rb-body { margin: 0; color: var(--rb-white); font-family: var(--jp); font-size: clamp(14px, 1.2vw, 16px); line-height: 2.2; }
.rb-secondary { margin-top: 28px; color: var(--rb-muted); }
.rb-experience { min-height: 110vh; min-height: 110svh; padding-bottom: 144px; }
.rb-experience h2 { line-height: 1.45; }
.rb-experience-bottom { position: absolute; bottom: 96px; left: var(--rb-side); right: var(--rb-side); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
/* One background control stays available throughout the moving scene. */
.rb-motion-toggle { position: fixed; z-index: 60; right: var(--rb-side); bottom: 24px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--rb-line); background: rgba(8,9,11,.94); color: var(--rb-white); font-family: var(--jp); font-size: 12px; white-space: nowrap; cursor: pointer; visibility: hidden; }
.rb-scene-ready.rb-stage-visible .rb-motion-toggle { visibility: visible; }
.robotics-page.menu-open .rb-motion-toggle { visibility: hidden; }
.rb-motion-toggle:is(:hover, :focus-visible) { border-color: #a4b5ff; }
.rb-motion-toggle > span:first-child { display: grid; width: 16px; height: 20px; place-items: center; font-size: 14px; }
.rb-purpose { position: relative; padding: 112px var(--rb-side) 128px; border-top: 1px solid var(--rb-line); background: var(--rb-bg); }
.rb-purpose-top { display: flex; align-items: center; gap: 48px; }
.rb-rule { flex: 1; height: 1px; background: var(--rb-line); }
.rb-purpose h2 { margin: 104px 0 80px; font-family: var(--jp); font-size: clamp(46px, 7.4vw, 112px); line-height: 1.4; letter-spacing: -.05em; }
.rb-purpose h2 > .rb-purpose-emphasis { color: #abb8da; font-style: normal; }
.rb-purpose-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.rb-purpose-bottom .rb-body { color: var(--rb-muted); }
.rb-text-link { display: flex; align-items: center; justify-content: space-between; gap: 64px; min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--rb-line); font-family: var(--jp); font-size: 14px; white-space: nowrap; }
.rb-text-link span, .rb-contact span { display: inline-block; transition: transform .2s var(--ease); }
.rb-text-link:is(:hover, :focus-visible) span, .rb-contact:is(:hover, :focus-visible) span { transform: translate(3px,-3px); }
.rb-next { padding: 80px var(--rb-side) 120px; border-top: 1px solid var(--rb-line); background: #111318; }
.rb-next-status { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--rb-line); }
.rb-next-status > p:last-child { display: flex; gap: 32px; margin: 0; color: var(--rb-muted); font-family: var(--jp); font-size: 12px; }
.rb-next-status > p:last-child span { color: var(--rb-white); }
.rb-next-main { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: end; padding-top: 80px; }
.rb-next h2 { margin: 0; font-family: var(--jp); font-size: clamp(44px, 6vw, 88px); line-height: 1.4; letter-spacing: -.035em; }
.rb-next-detail .rb-body { color: var(--rb-muted); }
.rb-contact { display: flex; justify-content: space-between; align-items: center; gap: 32px; min-height: 64px; margin-top: 32px; padding: 18px 24px; border: 1px solid var(--rb-white); color: var(--rb-bg); background: var(--rb-white); font-family: var(--jp); font-size: 15px; transition: background .2s var(--ease), border-color .2s var(--ease); }
.rb-contact:is(:hover, :focus-visible) { border-color: #c7d2ff; background: #c7d2ff; }
.rb-mail { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--rb-muted); font-size: 14px; }
.rb-mail:is(:hover, :focus-visible) { color: var(--rb-white); text-decoration: underline; text-underline-offset: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .js .rb-hero-copy { animation: reveal .9s .15s var(--ease) both; }
  .js .rb-wordmark { animation: reveal 1s .3s var(--ease) both; }
  .js .rb-hero-top, .js .rb-hero-bottom { animation: reveal .7s .1s var(--ease) both; }
}
@media (max-width: 1100px) {
  .rb-chapter-copy { width: 48%; }
  .rb-next-main { gap: 48px; }
}
@media (max-width: 900px) {
  .rb-hero { min-height: max(780px, 100svh); padding-top: calc(var(--header-h) + 16px); }
  .rb-hero-top { align-items: flex-start; gap: 16px; }
  .rb-breadcrumb { gap: 10px; font-size: 12px; }
  .rb-status { margin-top: 11px; padding-left: 10px; }
  .rb-hero-copy { position: relative; isolation: isolate; width: 100%; margin-top: 36px; }
  /* Keep the copy legible across every background scene and robot position. */
  .rb-hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -24px calc(-1 * var(--rb-side)) -32px; background: linear-gradient(180deg, rgba(8,9,11,.96) 0%, rgba(8,9,11,.96) calc(100% - 32px), transparent); pointer-events: none; }
  .rb-statement { margin-top: 16px; font-size: clamp(30px, 8.4vw, 42px); line-height: 1.35; }
  .rb-hero-description { margin-top: 16px; font-size: 13px; }
  .rb-wordmark { font-size: 15.2vw; padding-top: 148px; }
  .rb-hero-bottom { padding-right: 0; padding-bottom: 56px; align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 24px; }
  .rb-scroll { gap: 32px; }
  .rb-concept-note { font-size: 12px; }
  .rb-stage-shade { background: linear-gradient(180deg, rgba(8,9,11,.94), rgba(8,9,11,.9) 25%, rgba(8,9,11,.82) 42%, rgba(8,9,11,.3) 57%, transparent 70%, rgba(8,9,11,.94) 100%); }
  .rb-fallback { inset: 30% auto auto 50%; width: min(200vw, 1100px); max-width: none; height: auto; object-fit: contain; transform: translateX(-70%); }
  .rb-chapter { align-items: flex-start; min-height: 100svh; padding-top: 104px; padding-bottom: 400px; }
  .rb-chapter-copy { width: 100%; }
  .rb-chapter h2 { margin: 24px 0; font-size: clamp(30px, 8vw, 42px); line-height: 1.45; }
  .rb-body { font-size: 14px; line-height: 2; }
  .rb-secondary { margin-top: 20px; }
  .rb-experience { padding-bottom: 360px; }
  .rb-experience h2 { font-size: clamp(30px, 8vw, 42px); line-height: 1.45; }
  .rb-experience-bottom { bottom: 96px; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 12px; background: var(--rb-bg); }
  .rb-motion-toggle { bottom: 16px; }
  .rb-purpose { padding-top: 64px; padding-bottom: 72px; }
  .rb-purpose-top { gap: 24px; }
  .rb-purpose h2 { margin: 64px 0 40px; font-size: clamp(34px, 9vw, 56px); }
  .rb-purpose-bottom { flex-direction: column; align-items: stretch; gap: 32px; }
  .rb-purpose-bottom .rb-body br { display: none; }
  .rb-text-link { max-width: 100%; }
  .rb-next { padding-top: 48px; padding-bottom: 72px; }
  .rb-next-status { align-items: flex-start; flex-direction: column; gap: 24px; }
  .rb-next-main { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .rb-next h2 { font-size: clamp(38px, 10vw, 56px); }
  .rb-contact { gap: 16px; font-size: 14px; padding: 18px 20px; }
}
@media (max-width: 360px) {
  .rb-wordmark { padding-top: 116px; }
}
/* On short phones, leave the first-view control clear of the wordmark. */
@media (max-width: 600px) and (max-height: 740px) {
  .rb-wordmark { padding-top: 356px; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-scroll:is(:hover, :focus-visible) span:last-child,
  .rb-text-link:is(:hover, :focus-visible) span, .rb-contact:is(:hover, :focus-visible) span { transform: none; }
  .rb-stage { position: absolute; inset: 0 0 auto; }
  .rb-vision, .rb-experience { background: var(--rb-bg); }
  .rb-chapter { min-height: 0; padding-top: 80px; padding-bottom: 80px; }
  .rb-chapter-copy { width: min(100%, 720px); }
  .rb-experience-bottom { position: static; margin-top: 32px; }
  .rb-experience { flex-direction: column; align-items: stretch; }
}
@media print {
  .rb-stage, .rb-motion-toggle { display: none; }
  .robotics-page, .rb-main, .rb-purpose, .rb-next { color: #111; background: white; }
  .rb-hero, .rb-chapter { min-height: 0; padding: 32px 0; }
  .rb-hero-copy, .rb-chapter-copy { width: 100%; }
  .rb-wordmark { font-size: 64px; padding-top: 32px; }
  .rb-main p, .rb-main h2, .rb-main a { color: #111; }
}
