/* Maya Workflow Kit — product site. The page is a Maya shelf: Maya 2022 greys, Maya logo teal as the one accent,
   Autodesk Hello Yellow only for the press moment (docs/distribution/marketing/style.md). */

@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --canvas: #1e1e1e;
  --base: #2b2b2b;
  --panel: #373737;
  --rule: #444444;
  --vp-top: #889db3;
  --vp-bottom: #0d0d0d;
  --text-strong: #eeeeee;
  --text: #c8c8c8;
  --text-muted: #9a9a9a;        /* 5.9:1 on --canvas */
  --teal: #00bcbb;
  --yellow: #ffff00;
  --ink: #000000;
  --radius: 5px;
  --measure: 66ch;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad-x: clamp(20px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.6 "Inter", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--teal); color: var(--ink); }
a { color: var(--teal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:not(.btn):hover { color: #3fd6d5; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
code, .path { font: 500 .92em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text-strong); }
.path { font-family: inherit; font-weight: 600; white-space: nowrap; }
img, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { color: var(--text-strong); text-wrap: balance; margin: 0; }
h2 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0; text-wrap: pretty; }
html { scrollbar-color: var(--rule) var(--canvas); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- menu bar (Maya's main menu bar) */
.menubar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 28px;
  height: 48px; padding: 0 var(--pad-x);
  background: rgba(43, 43, 43, .96);
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.menubar__brand { color: var(--text-strong); font-weight: 700; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.menubar__menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menubar__menu a, .menubar__repo {
  display: block; padding: 6px 10px; border-radius: 3px; color: var(--text); text-decoration: none;
}
.menubar__menu a:hover, .menubar__repo:hover { background: #005f61; color: var(--text-strong); }   /* 6.4:1 */
.menubar__repo { margin-left: auto; border: 1px solid var(--rule); }

/* ---------------------------------------------------------------- lockup (style.md: name + 0.66 x line) */
.lockup { display: flex; flex-direction: column; gap: .06em; }
.lockup__name { font-size: clamp(36px, 3.5vw, 56px); font-weight: 750; line-height: 1; letter-spacing: -.03em; color: var(--text-strong); }
.lockup__line { font-size: calc(clamp(36px, 3.5vw, 56px) * .66); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; color: var(--teal); }

/* ---------------------------------------------------------------- hero: copy left, the Maya shelf + viewport right */
.hero {
  display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); gap: clamp(28px, 3.5vw, 56px);
  align-items: center;
  padding: clamp(40px, 6vh, 80px) var(--pad-x) clamp(48px, 7vh, 88px);
  background:
    radial-gradient(60% 70% at 72% 45%, rgba(0, 139, 141, .18), transparent 70%),
    linear-gradient(180deg, #252525, var(--canvas));
}
.hero__copy { display: flex; flex-direction: column; gap: 22px; max-width: 34rem; }
.hero__tagline { font-size: clamp(19px, 1.5vw, 22px); color: var(--text-strong); font-weight: 500; line-height: 1.35; }
.hero__lede { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__meta { font-size: 14px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border-radius: var(--radius); font-weight: 650; font-size: 16px; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn--press { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .7); }
.btn--press:hover, .btn--press:focus-visible { color: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .8); }
.btn--press:active { transform: translateY(1px); }
.btn--quiet { color: var(--text-strong); border: 1px solid var(--rule); background: var(--base); }
.btn--quiet:hover { color: var(--text-strong); border-color: var(--teal); }

/* the Maya window fragment */
.maya {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
  box-shadow: 0 18px 32px -18px rgba(0, 0, 0, .85), 0 2px 6px rgba(0, 0, 0, .3);
}
.maya__shelf { display: flex; align-items: stretch; background: var(--base); border-bottom: 1px solid var(--rule); }
.handle {
  flex: none; width: 18px;
  background: radial-gradient(circle, #8a8a8a 1px, transparent 1.4px) 0 0 / 4px 4px;
  margin: 10px 6px 10px 10px; opacity: .7;
}
.shelf { display: flex; overflow-x: auto; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf__tab {
  flex: none; position: relative; border: 0; background: none; cursor: pointer;
  padding: 10px 13px 9px; color: var(--text); font: 500 12.5px/1.2 "Inter", system-ui, sans-serif; white-space: nowrap;
  border-right: 1px solid #333;
}
.shelf__tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--teal);
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.shelf__tab:hover { color: var(--text-strong); background: #323232; }
.shelf__tab[aria-selected="true"] { color: var(--text-strong); background: var(--panel); }
.shelf__tab[aria-selected="true"]::after { transform: scaleX(1); }
.shelf__tab:focus-visible { outline-offset: -3px; }

.maya__body { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; }
.maya__body:focus-visible { outline-offset: -3px; }
.viewport { margin: 0; position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--vp-top), var(--vp-bottom)); }
.viewport__crop { overflow: hidden; aspect-ratio: 16 / 9; }
.viewport__media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .3s var(--ease), filter .3s var(--ease); }
/* the feature clips are 1920 x 1080 frames with the window at (144, 22, 1632 x 918) above a caption band: show the
   window only (the page sets its own caption) — scale 1920 / 1632, centre (960, 481) moved to the middle */
video.viewport__media { transform: translateY(6.43%) scale(1.1765); transform-origin: 50% 50%; }
.viewport.is-swapping .viewport__media { opacity: .25; filter: blur(6px); }
.viewport__caption {
  padding: 10px 14px; font-size: 14px; line-height: 1.45; color: var(--text); background: var(--base);
  border-top: 1px solid var(--rule); min-height: 3.6em; flex: 1;
}

/* the Channel Box column: node name, then attribute rows */
.channels { border-left: 1px solid var(--rule); padding: 12px 0 14px; font-size: 13px; display: flex; flex-direction: column; }
.channels__node { padding: 0 14px 8px; color: var(--text-strong); font-weight: 600; border-bottom: 1px solid var(--rule); }
.channels__list { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; }
.channels__list dt, .channels__list dd { margin: 0; padding: 5px 14px; line-height: 1.35; }
.channels__list dt { color: var(--teal); text-align: right; font-weight: 600; padding-right: 8px; white-space: nowrap; }
.channels__list dd { color: var(--text-strong); padding-left: 6px; }
.channels__list dt:nth-of-type(odd), .channels__list dt:nth-of-type(odd) + dd { background: rgba(255, 255, 255, .025); }
.channels__credit { margin-top: auto; padding: 14px 14px 0; font-size: 11.5px; line-height: 1.4; color: var(--text-muted); }

/* ---------------------------------------------------------------- choose: Maya | Blender */
.choose {
  display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: clamp(28px, 4vw, 72px); align-items: center;
  padding: clamp(48px, 6vw, 88px) var(--pad-x) clamp(56px, 7vw, 96px);
  border-top: 1px dotted #5a5a5a;
}
.choose__copy { display: flex; flex-direction: column; gap: 18px; max-width: var(--measure); }
.choose__copy strong, .faq strong, .steps strong { color: var(--text-strong); font-weight: 650; }
.switcher { display: flex; flex-direction: column; gap: 12px; }
.switcher__toggle {
  align-self: flex-end; display: inline-flex; align-items: center; gap: 2px;
  background: var(--base); border: 1px solid var(--rule); border-radius: 4px; padding: 3px;
}
.switcher__opt {
  border: 0; border-radius: 3px; cursor: pointer; padding: 7px 16px; font: 600 14px "Inter", system-ui, sans-serif;
  background: none; color: var(--text-muted); transition: background-color .2s, color .2s;
}
.switcher__opt[aria-pressed="true"] { background: var(--teal); color: var(--ink); }
.switcher__opt:not([aria-pressed="true"]):hover { color: var(--text-strong); }
.switcher__bar { color: var(--rule); }
.switcher__frame { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--base); box-shadow: 0 16px 30px -20px #000; }
.switcher__note { font-size: 14px; color: var(--text-muted); text-align: right; }
.credit { font-size: 12px; color: var(--text-muted); }

/* ---------------------------------------------------------------- tour */
.tour { padding: clamp(40px, 6vw, 80px) var(--pad-x); background: var(--base); border-block: 1px solid var(--rule); }
.tour h2 { margin-bottom: 28px; }
.tour__frame { margin: 0; max-width: 1100px; }
.tour__frame video { width: 100%; border-radius: 6px; border: 1px solid var(--rule); background: #000; }
.tour__frame figcaption { margin-top: 12px; font-size: 14px; color: var(--text-muted); max-width: var(--measure); }

/* ---------------------------------------------------------------- install */
.install, .limits, .faq { padding: clamp(56px, 7vw, 96px) var(--pad-x) 0; }
.limits, .faq { margin-top: clamp(56px, 7vw, 96px); border-top: 1px dotted #5a5a5a; }   /* Maya's dotted tear-off line */
.install h2, .limits h2, .faq h2 { margin-bottom: 32px; }
.optwin { max-width: 1100px; background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.optwin__title { display: flex; align-items: center; gap: 4px; padding: 8px 14px 8px 0; background: var(--base); border-bottom: 1px solid var(--rule); font-size: 13.5px; font-weight: 600; color: var(--text-strong); }
.optwin__title .handle { height: 14px; margin: 0 8px 0 10px; }
.steps { list-style: none; margin: 0; padding: 4px 24px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 22px 26px 4px 0; display: flex; flex-direction: column; gap: 10px; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--rule); }
.steps h3::before { content: counter(step) "  "; color: var(--teal); font-variant-numeric: tabular-nums; }
.install__more { margin-top: 28px; max-width: var(--measure); color: var(--text-muted); font-size: 15px; }

/* ---------------------------------------------------------------- limits */
.limits > p { max-width: var(--measure); }
.limits__list { margin: 18px 0 22px; padding: 0; list-style: none; max-width: var(--measure); }
.limits__list li { padding: 12px 0 12px 22px; border-top: 1px solid var(--rule); position: relative; color: var(--text-strong); }
.limits__list li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 9px; height: 1px; background: var(--teal); }

/* ---------------------------------------------------------------- faq */
/* FAQ entries as Attribute Editor frames: a header bar with a disclosure triangle */
.faq details { max-width: 56rem; background: var(--base); border: 1px solid var(--rule); border-radius: 4px; margin-bottom: 8px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 12px 16px 12px 40px; position: relative;
  background: #3a3a3a; border-radius: 3px; color: var(--text-strong); font-weight: 600; font-size: 17px;
}
.faq summary:hover { background: #424242; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; position: absolute; left: 16px; top: 50%; margin-top: -5px;
  border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--teal);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::before { transform: rotate(90deg); }
.faq details p { padding: 14px 18px 18px 40px; max-width: calc(var(--measure) + 58px); }

/* ---------------------------------------------------------------- close + footer */
.close {
  margin-top: clamp(80px, 10vw, 140px); padding: clamp(56px, 8vw, 112px) var(--pad-x);
  display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, #3a4654, var(--canvas));   /* Maya's viewport gradient, darkened under the text */
  border-top: 1px solid var(--rule);
}
.close__title { font-size: clamp(26px, 2.8vw, 40px); max-width: 18ch; letter-spacing: -.025em; }
.footer { padding: 40px var(--pad-x) 56px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--text-muted); display: grid; gap: 12px; }
.footer p { max-width: 90ch; }
.footer__brand .lockup__name, .footer__brand .lockup__line { font-size: 18px; letter-spacing: -.01em; }
.footer__brand .lockup__line { font-size: 12px; margin-left: 6px; }
.footer__legal { font-size: 12.5px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { max-width: 40rem; }
  .choose { grid-template-columns: 1fr; }
  .switcher__toggle { align-self: flex-start; }
  .switcher__note { text-align: left; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menubar { gap: 12px; }
  .menubar__repo { display: none; }
  .menubar nav { overflow-x: auto; scrollbar-width: none; }
  .menubar__menu a { padding: 6px 8px; white-space: nowrap; }
  .maya__body { grid-template-columns: 1fr; }
  .channels { border-left: 0; border-top: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr; }
  .steps { padding: 4px 18px 16px; }
  .steps li, .steps li + li { padding: 20px 0 6px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--rule); }
  .close { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
