:root {
  color-scheme: dark;
  --bg: #11120f;
  --surface: #191a16;
  --ink: #f1f0e8;
  --muted: #b4b7ac;
  --line: #3c3f34;
  --accent: #d8f55a;
  --gutter: clamp(18px, 4.5vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif; }
h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
section, main { scroll-margin-top: 22px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #15180c; }
.wrap { width: min(100% - 2 * var(--gutter), 1370px); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; top: 8px; left: 12px; z-index: 8; padding: 12px; background: var(--accent); color: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }
.mast { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand img { width: 44px; height: 44px; padding: 3px; object-fit: contain; background: #edf2e9; border-radius: 6px; }
.brand b, .brand small { display: block; }
.brand b { font-size: 15px; line-height: 1.15; letter-spacing: .065em; }
.brand small { color: var(--muted); margin-top: 4px; font-size: 11px; }
.desktop-nav, .footer nav { display: flex; gap: clamp(18px, 3.5vw, 50px); }
.desktop-nav a, .footer nav a, .mast-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; font-size: 14px; }
.desktop-nav a:hover, .footer nav a:hover, .text-link:hover, .subtle:hover { color: var(--accent); }
.mast-link { padding-inline: 15px; color: var(--accent); border: 1px solid #626c3f; }
.mast-link:hover { border-color: var(--accent); background: #22291a; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); list-style: none; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { width: 180px; position: absolute; z-index: 5; right: 0; top: calc(100% + 8px); padding: 5px 10px; background: #191b16; border: 1px solid var(--line); box-shadow: 0 22px 40px #0008; }
.mobile-nav nav a { display: flex; align-items: center; min-height: 44px; padding-inline: 8px; }
.mobile-nav nav a:hover { color: var(--accent); }

.hero-slide { position: relative; min-height: clamp(505px, 46vw, 690px); display: flex; align-items: center; isolation: isolate; overflow: hidden; border: 1px solid #393d32; background: #181a16; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -2; }
.hero-art img { object-fit: cover; object-position: center 52%; }
.hero-slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#0e100ce8 0%,#0e100cb0 28%,#0e100c32 58%,transparent 76%),linear-gradient(0deg,#0c0f0bd1,transparent 21%); }
.hero-copy { padding: clamp(24px, 6vw, 92px); width: min(100%, 790px); margin-bottom: 44px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 13px; font-weight: 650; letter-spacing: .07em; }
.hero-kicker span { background: var(--accent); width: 22px; height: 1px; }
.hero-slide .hero-title { font-size: clamp(59px, 7.2vw, 106px); line-height: 1.02; letter-spacing: -.055em; margin: 24px 0; }
.hero-slide .hero-title span { color: var(--accent); white-space: nowrap; }
.hero-copy p { font-size: clamp(15px, 1.3vw, 19px); max-width: 27em; line-height: 1.75; color: #e2e5d7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 26px; }
.primary, .subtle, .text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: inherit; font-size: 14px; font-weight: 650; }
.primary { padding: 0 15px; color: #161909; background: var(--accent); }
.primary:hover { background: #eaff9a; }
.subtle { color: var(--ink); }
.hero-caption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-top: 1px solid #ffffff42; background: #11140d55; color: #d7dccd; font-size: 12px; }
.hero-caption strong { color: var(--ink); }

.section { padding-block: clamp(44px, 7vw, 100px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(33px, 4.1vw, 60px); line-height: 1.12; letter-spacing: -.04em; }
.section-head p { max-width: 28em; color: var(--muted); }
.eyebrow { display: block; margin-bottom: 8px; color: var(--accent); font-size: 13px; font-weight: 650; }
.text-link { color: var(--accent); border: 0; border-bottom: 1px solid #707a4a; padding: 0; background: none; white-space: nowrap; }
.text-link:hover { color: var(--ink); border-color: var(--ink); }
.programs { display: grid; grid-template-columns: minmax(215px, .75fr) minmax(0, 2fr); gap: clamp(18px, 3vw, 42px); }
.course-tabs { border-block: 1px solid var(--line); align-self: start; }
.course-tab { display: grid; grid-template-columns: 23px 24px 1fr 18px; align-items: center; gap: 10px; text-align: left; width: 100%; min-height: 65px; padding: 12px 14px; border: 0; background: transparent; font-size: clamp(16px, 1.6vw, 22px); font-weight: 650; }
.course-tab + .course-tab { border-top: 1px solid var(--line); }
.course-num { color: var(--muted); font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.course-tab > .icon { color: var(--muted); }
.course-tab > .icon:last-child { width: 17px; }
.course-tab:hover { background: #23271b; }
.course-tab[aria-selected="true"] { color: #15190c; background: var(--accent); }
.course-tab[aria-selected="true"] > :is(.course-num,.icon) { color: #39491b; }
.course-panel { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); min-height: 325px; border: 1px solid var(--line); background: var(--surface); }
.course-photo { min-width: 0; overflow: hidden; position: relative; min-height: 245px; }
.course-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-copy { padding: clamp(18px, 2.6vw, 38px); align-self: center; }
.course-copy h3 { font-size: clamp(22px, 2.2vw, 31px); line-height: 1.26; margin-bottom: 12px; }
.course-copy p, .model-info p { color: var(--muted); font-size: 14px; }
.topics { margin: 16px 0 10px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.topics li { font-size: 12px; color: #d4d9c9; border: 1px solid #4a5240; padding: 3px 7px; }

.learning-summary { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding: 14px 0 20px; border-block: 1px solid var(--line); }
.learning-summary span { white-space: nowrap; color: var(--muted); font-size: 14px; }
.learning-summary strong { font-variant-numeric: tabular-nums; font-size: 25px; color: var(--accent); }
.learning-summary p { margin-left: auto; color: var(--muted); font-size: 14px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.steps li { border-bottom: 1px solid var(--line); }
.steps li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.step { min-height: 146px; padding: 17px 20px; display: flex; flex-direction: column; }
.step:hover { background: #202419; }
.step-code { font-size: 12px; letter-spacing: .05em; color: var(--accent); }
.step-title { font-size: 19px; font-weight: 700; margin: 4px 0; }
.step-project { color: var(--muted); font-size: 14px; }
.step-count { display: flex; align-items: center; justify-content: space-between; color: #d8dccd; font-size: 12px; margin-top: auto; padding-top: 12px; }
.step-count .icon { color: var(--accent); }

.work-grid, .model-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,2vw,26px); }
.work, .model-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.work-figure { overflow: hidden; background: #22261b; }
.work-figure img { width: 100%; aspect-ratio: 1.58; object-fit: cover; transition: transform 280ms var(--ease); }
.work-copy, .model-info { padding: 16px 18px 19px; }
.work-copy > span { color: var(--accent); font-size: 12px; }
.work h3 { display: flex; align-items: start; justify-content: space-between; gap: 8px; font-size: 20px; margin: 4px 0 8px; line-height: 1.26; }
.work h3 .icon { color: var(--accent); }
.work p { color: var(--muted); font-size: 14px; }
@media (hover:hover) and (pointer:fine) { .work:hover .work-figure img { transform: scale(1.04); } .work:hover { border-color: #6b7547; } }
.model-stage { position: relative; aspect-ratio: 1.6; overflow: hidden; background: #111e2f; }
.model-stage img, .model-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.model-stage canvas { visibility: hidden; cursor: grab; touch-action: pan-y; }
.model-stage canvas:active { cursor: grabbing; }
.model-ready canvas { visibility: visible; }
.model-ready .model-fallback { visibility: hidden; }
.model-info h3 { font-size: 20px; margin-bottom: 4px; }
.model-controls { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.model-controls button, .dialog-head button { min-height: 44px; border: 1px solid #525846; background: transparent; padding: 4px 11px; font-size: 13px; }
.model-controls button:hover, .dialog-head button:hover { color: var(--accent); border-color: var(--accent); }

.footer { border-top: 1px solid var(--line); padding-block: 21px 34px; display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
.footer nav { flex-wrap: wrap; gap: 4px 25px; }
.icp { font-size: 12px; color: var(--muted); }
dialog { width: min(620px,calc(100% - 24px)); max-height: 86dvh; overflow: auto; overscroll-behavior: contain; padding: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: #0a0d07cf; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 12px; }
.dialog-head h2 { font-size: 29px; line-height: 1.25; }
#detail-body p { color: var(--muted); }
#detail-body ol { padding-left: 25px; margin-top: 15px; }
#detail-body li { padding-block: 8px; }

@media (max-width: 920px) {
  .programs { grid-template-columns: minmax(165px,.65fr) minmax(0,2fr); gap: 16px; }
  .course-panel { grid-template-columns: 1fr; }
  .course-photo { min-height: 0; aspect-ratio: 1.9; }
  .learning-summary p { width: 100%; margin-left: 0; }
}
@media (max-width: 720px) {
  .mast { height: 68px; }
  .desktop-nav,.mast-link { display:none; }
  .mobile-nav { display:block; }
  .hero-slide { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-art { position: relative; order: 2; height: auto; aspect-ratio: 1.6; }
  .hero-art img { object-position: 79% 56%; }
  .hero-slide::after { display: none; }
  .hero-copy { margin: 0; padding: 24px 20px 20px; }
  .hero-slide .hero-title { font-size: clamp(46px, 9vw, 73px); margin: 15px 0; }
  .hero-caption { position: relative; order: 3; padding: 11px 13px; gap: 8px; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 19px; }
  .programs { grid-template-columns: 1fr; }
  .course-tabs { border: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .course-tab,.course-tab+.course-tab { border: 1px solid var(--line); min-height: 46px; padding: 8px; grid-template-columns: 16px 16px 1fr; gap: 5px; font-size: 14px; }
  .course-tab > .icon:last-child { display: none; }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .steps li:not(:nth-child(3n)) { border-right: 0; }
  .steps li:nth-child(odd) { border-right: 1px solid var(--line); }
  .step { padding: 12px; }
  .step-title { font-size: 16px; }
  .step-project { font-size: 13px; }
  .work-grid,.model-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 490px) {
  .work-grid,.model-grid { grid-template-columns: 1fr; }
  .hero-actions { gap: 7px 14px; margin-top: 14px; }
  .hero-actions a { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .work-figure img { transition: none; } .work:hover .work-figure img { transform: none; } }

/* The workbench frame and process strip share a single opening cue. */
.hero-art img { transform: translate3d(var(--hero-x, 0), var(--hero-y, 0), 0) scale(1.032); transition: transform 540ms var(--ease); }
.hero-frame { position: absolute; z-index: 0; inset: 22px 22px 70px auto; width: 46%; pointer-events: none; overflow: hidden; }
.hero-frame span { position: absolute; width: 23px; height: 23px; opacity: .68; border: 1px solid var(--accent); }
.hero-frame span:nth-child(1) { inset: 0 auto auto 0; border-right: 0; border-bottom: 0; }
.hero-frame span:nth-child(2) { inset: 0 0 auto auto; border-left: 0; border-bottom: 0; }
.hero-frame span:nth-child(3) { inset: auto auto 0 0; border-right: 0; border-top: 0; }
.hero-frame span:nth-child(4) { inset: auto 0 0 auto; border-left: 0; border-top: 0; }
.hero-frame::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 42%; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, #d8f55121 85%, #e2fa84b0 100%); }
.hero-copy, .hero-caption { position: relative; z-index: 1; }
.hero-caption { position: absolute; align-items: center; }
.hero-process { list-style: none; padding: 0; display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); white-space: nowrap; }
.hero-process li { display: flex; align-items: center; gap: 7px; }
.hero-process li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--accent); background: #20281b; }
.hero-process li:last-child::before { background: var(--accent); }

.section-head h2 { position: relative; padding-inline-start: 18px; }
.section-head h2::before { content: ""; position: absolute; inset: .19em auto .17em 0; width: 3px; background: var(--accent); transform-origin: top center; }
.course-panel { overflow: hidden; }
.model-spin { display: inline-flex; gap: 6px; align-items: center; }
.model-spin[aria-pressed="true"] { color: var(--accent); border-color: #8b9b55; background: #252d19; }
.spin-indicator { width: 8px; height: 8px; flex: none; background: currentColor; clip-path: polygon(0 0,100% 50%,0 100%); }
.model-spin[aria-pressed="true"] .spin-indicator { clip-path: polygon(0 0,35% 0,35% 100%,0 100%,0 0,65% 0,100% 0,100% 100%,65% 100%,65% 0); }
@media (hover:hover) and (pointer:fine) {
  .work h3 .icon, .course-tab > .icon:last-child, .step-count .icon, .hero-actions .icon { transition: transform 180ms var(--ease); }
  .work:hover h3 .icon, .step:hover .step-count .icon, .hero-actions a:hover .icon { transform: translate(3px,-2px); }
  .course-tab:hover > .icon:last-child { transform: translateX(4px); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-slide-ai .hero-frame::after { animation: workbench-light 940ms 140ms ease-out both; }
  .hero-slide-ai .hero-process li::before { animation: process-mark 450ms 180ms ease-out both; }
  .hero-process li:nth-child(2)::before { animation-delay: 290ms; }
  .hero-process li:nth-child(3)::before { animation-delay: 400ms; }
  .section.is-arriving h2::before { animation: section-marker 420ms var(--ease) both; }
}
@keyframes workbench-light {
  0% { opacity: 0; transform: translateX(-100%); }
  23% { opacity: 1; }
  76% { opacity: .65; }
  100% { opacity: 0; transform: translateX(260%); }
}
@keyframes process-mark {
  0% { opacity: .52; }
  46% { opacity: 1; background: var(--accent); transform: scale(1.34); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes section-marker {
  from { transform: scaleY(.34); opacity: .46; }
  to { transform: scaleY(1); opacity: 1; }
}
@media (max-width: 720px) {
  .hero-frame { display: none; }
  .hero-caption { position: relative; }
  .hero-art img { transform: none; }
  .section-head h2 { padding-inline-start: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img, .work h3 .icon, .course-tab > .icon:last-child, .step-count .icon, .hero-actions .icon { transition: none; }
  .hero-art img, .work:hover h3 .icon, .step:hover .step-count .icon, .hero-actions a:hover .icon, .course-tab:hover > .icon:last-child { transform: none; }
}

/* All slides share a grid track so the controls stay in place as text changes. */
.hero-deck { display: grid; background: #181a16; touch-action: pan-y; }
.hero-slide { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 320ms var(--ease), visibility 320ms; }
.hero-slide.is-current { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; }
.hero-slide .hero-title { font-size: clamp(48px, 6.08vw, 87px); }
.hero-slide-ai .hero-title { font-size: clamp(59px, 7.2vw, 106px); }
.hero-slide:not(.hero-slide-ai) .hero-art { left: 36%; width: 64%; mask-image: linear-gradient(90deg, transparent, black 26%); }
.hero-slide:not(.hero-slide-ai)::after { background: linear-gradient(90deg,#131611 0%,#131611 31%,#131611c5 43%,#10120c29 66%,transparent 85%),linear-gradient(0deg,#10130fd9,transparent 23%); }
.hero-slide-print .hero-art img { object-position: center 58%; }
.hero-slide-glider .hero-art img { object-position: 70% 55%; }
.hero-slide-rc .hero-art img { object-position: 60% 54%; }
.hero-slide-drone .hero-art img { object-position: 58% 46%; }

.hero-bar { display: flex; align-items: stretch; justify-content: space-between; min-height: 61px; padding: 0 12px 0 0; border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.hero-choices { display: grid; flex: 1; grid-template-columns: repeat(5,minmax(0,1fr)); min-width: 0; }
.hero-choice { display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; min-width: 0; min-height: 48px; padding: 7px; color: var(--ink); background: transparent; border: 0; border-right: 1px solid var(--line); white-space: nowrap; font-size: 14px; font-weight: 650; }
.hero-choice:focus-visible { outline-offset: -4px; }
.hero-choice span { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11px; }
.hero-choice:hover { background: #222719; }
.hero-choice[aria-pressed="true"] { color: var(--accent); background: #242a18; }
.hero-choice[aria-pressed="true"] span { color: #bed475; }
.hero-choice[aria-pressed="true"]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--accent); transform-origin: left; }
.hero.is-rotating .hero-choice[aria-pressed="true"]::after { animation: slide-time var(--slide-duration, 8.5s) linear both; }
@keyframes slide-time { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-transport { display: flex; align-items: center; gap: 3px; padding-left: 12px; }
.hero-counter { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; white-space: nowrap; margin-right: 6px; }
.hero-counter b { color: var(--accent); }
.hero-transport button { min-height: 44px; min-width: 44px; border: 1px solid transparent; display: grid; place-items: center; background: transparent; }
.hero-transport button:hover { color: var(--accent); border-color: var(--line); }
.hero-transport button span { line-height: 0; }
.hero .pause-glyph { display: none; }
.hero.rotation-enabled .pause-glyph { display: inline; }
.hero.rotation-enabled .play-glyph { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 720px) {
  .hero-slide .hero-title, .hero-slide-ai .hero-title { font-size: clamp(32px, 10vw, 62px); }
  .hero-slide:not(.hero-slide-ai) .hero-art { left: 0; width: 100%; mask-image: none; }
  .hero-slide:not(.hero-slide-ai)::after { display: none; }
  .hero-slide .hero-copy { flex: 1; }
  .hero-slide .hero-actions { margin-top: 12px; }
  .hero-bar { flex-wrap: wrap; padding: 0; }
  .hero-choices { width: 100%; flex-basis: 100%; }
  .hero-choice { flex-direction: column; justify-content: center; gap: 0; font-size: clamp(10px, 3.15vw, 13px); padding: 4px 2px; }
  .hero-choice span { font-size: 10px; }
  .hero-choice:last-child { border-right: 0; }
  .hero-transport { width: 100%; justify-content: end; border-top: 1px solid var(--line); padding: 2px 6px; }
  .hero-counter { margin-right: auto; padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero.is-rotating .hero-choice[aria-pressed="true"]::after { animation: none; }
}
@media (min-width: 721px) and (max-width: 990px) { .desktop-nav { gap: 13px; } }
