/* Shared MARS colors and media utilities. Site chrome lives in mars-shell.css. */
:root {
  --mars-navy: #0b1220;
  --mars-red: #db1530;
  --md-primary-fg-color: var(--mars-navy);
  --md-primary-fg-color--light: #17263c;
  --md-primary-fg-color--dark: #050a13;
  --md-accent-fg-color: #c3152d;
}
[data-md-color-scheme="default"] { --md-typeset-a-color: #a90f24; }
[data-md-color-scheme="slate"] { --md-accent-fg-color: #ff7386; --md-typeset-a-color: #ff8b9a; }
/* Natural-ratio panels keep the whole photograph visible. Titles sit on the
   photograph itself, never on an empty strip below a contained thumbnail. */
.mars-gallery { columns: 2; column-gap: 1.1rem; margin: 1.5rem 0; }
.md-typeset .mars-gallery figure { position: relative; display: block; width: 100%; max-width: none; min-width: 0; break-inside: avoid; margin: 0 0 1.1rem; border: 0; border-radius: .3rem; overflow: hidden; background: var(--mars-navy); isolation: isolate; }
.mars-gallery a { position: relative; display: block; }
.mars-gallery img { display: block; width: 100%; height: auto; max-height: none; margin: 0; object-fit: contain; }
.mars-gallery figure::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 55%, rgb(0 0 0 / 40%) 80%, rgb(0 0 0 / 85%) 100%); pointer-events: none; }
.md-typeset .mars-gallery figcaption { position: absolute; inset: auto 0 0; z-index: 2; max-width: none; margin: 0; padding: .9rem; color: #fff; font-size: .85rem; font-weight: 600; font-style: normal; text-align: left; line-height: 1.3; pointer-events: none; text-shadow: 0 1px 3px rgb(0 0 0 / 35%); }
.mars-gallery a:focus-visible { outline: 3px solid #ffbc5a; outline-offset: -5px; }
.mars-gallery figure:focus-within::before { content: ""; position: absolute; inset: 4px; border: 3px solid #ffbc5a; z-index: 3; pointer-events: none; }
.mars-video { position: relative; width: 100%; aspect-ratio: 16/9; margin: 1.5rem 0; }
.mars-video iframe { width: 100%; height: 100%; border: 0; }
.mars-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.md-typeset .mars-founders-letter { margin: 1.35rem 0 1.6rem; padding: .15rem 0 .15rem 1.1rem; border-left: 2px solid var(--md-typeset-a-color); color: var(--md-default-fg-color); font-family: Georgia, "Times New Roman", Times, serif; font-size: clamp(17px, 1.4vw, 19px); font-style: italic; }
.md-typeset .mars-founders-letter p { margin: .75rem 0; line-height: 1.75; }
.mars-founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 625px; gap: 25px; align-items: start; margin: 1.5rem 0; }
/* Square source portraits leave real shirt/chest pixels behind the compact caption.
   Do not stretch a background or crop the face to manufacture a taller card. */
.md-typeset .mars-founders figure { position: relative; display: block; width: 100%; min-width: 0; max-width: none; margin: 0; overflow: hidden; isolation: isolate; border-radius: .3rem; }
.mars-founders img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin: 0; }
.mars-founder__portrait { width: 100%; aspect-ratio: 1; overflow: hidden; }
/* Approximate1254px master landmarks: Nikolai54/748, Zeul50/950(crown/chin).
   Normalize the image plane only; no portrait master pixels are rewritten. */
.mars-founder__portrait--nikolai > img { transform: translateY(-1.6%) scale(1.297); transform-origin: 50% 0; }
.mars-founders figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 62%, rgb(0 0 0 / 35%) 82%, rgb(0 0 0 / 88%) 100%); pointer-events: none; z-index: 1; }
.md-typeset .mars-founders figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; max-width: none; margin: 0; padding: 10px 12px; color: #fff; text-align: left; font-style: normal; line-height: 1.25; z-index: 2; }
.mars-founder__identity { display: grid; gap: 3px; }
.mars-founder__identity strong { font-size: 16px; font-weight: 600; }
.mars-founder__identity span { font-size: 12px; font-style: normal; color: rgb(255 255 255 / 90%); }
.mars-founder__links { display: flex; flex-shrink: 0; gap: 2px; }
.md-typeset .mars-founder__link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: .3rem; color: #fff; }
.mars-founder__link svg { display: block; width: 20px; height: 20px; max-width: none; max-height: none; fill: currentColor; }
.md-typeset .mars-founder__link:hover { color: #fff; background: rgb(255 255 255 / 15%); }
.mars-founder__link:focus-visible { outline: 2px solid #ffcf74; outline-offset: -2px; }
@media (max-width: 640px) {
  .mars-founders { gap: 8px; }
  .md-typeset .mars-founders figcaption { gap: 4px; padding: 4px; }
  .mars-founder__identity { gap: 1px; line-height: 1.1; }
  .mars-founder__identity strong { font-size: 12px; }
  .mars-founder__identity span { font-size: 10px; }
  .md-typeset .mars-founder__link { width: 32px; height: 32px; }
  .mars-founder__link svg { width: 16px; height: 16px; }
}
@media (max-width: 384px) {
  .mars-founder__identity strong { font-size: 11px; }
  .mars-founder__identity span { font-size: 9px; }
  .md-typeset .mars-founder__link { width: 24px; height: 24px; }
  .mars-founder__link svg { width: 14px; height: 14px; }
}
@media (max-width: 40em) { .mars-gallery { columns: 1; } .md-typeset .mars-gallery figure { margin-bottom: 1rem; } }

/* Image-led homepage. Global navigation/footer live separately in mars-shell.css. */
body:has(.mars-home) .md-main__inner { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
body:has(.mars-home) .md-content { width: 100%; margin: 0; }
body:has(.mars-home) .md-content__inner { margin: 0; padding: 0; }
.mars-home { font-family: var(--md-text-font-family, sans-serif); font-size: 16px; line-height: 1.5; }
.mars-home :is(.mars-community, .mars-film, .mars-story) h2 { margin: 0; font-weight: 650; letter-spacing: -.04em; line-height: 1.05; }
.mars-hero { position: relative; isolation: isolate; background: var(--mars-navy); color: white; display: flex; align-items: flex-end; min-height: calc(100svh - 64px); padding: 76px max(48px, calc((100vw - 1280px) / 2)) 56px; }
.mars-hero__background { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.mars-hero__background img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.mars-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4,9,16,.04) 32%, rgba(4,9,16,.18) 55%, rgba(4,9,16,.78) 100%); }
.mars-hero__inner { position: relative; z-index: 2; width: 100%; max-width: none; text-align: center; }
/* Center the MARS lettering, not the canvas: its midpoint is 119px right of center in the 2172px source. */
.mars-hero__logo { display: block; height: auto; width: clamp(300px, 31vw, 470px); max-width: 100%; margin: 0 auto 12px; transform: translateX(-5.48%); filter: drop-shadow(0 2px 12px rgba(0,0,0,.28)); }
.mars-hero .mars-hero__subtitle { font-size: 19px; letter-spacing: .05em; font-weight: 450; margin: 0 0 24px; }
.mars-hero .mars-button { display: inline-flex; align-items: center; justify-content: center; color: white; border: 0; font-weight: 600; min-height: 48px; padding: 11px 28px; font-size: 15px; border-radius: 6px; text-transform: none; text-decoration: none; background: #d6102e; }
.mars-hero .mars-button:hover { background: #ef2342; }
.mars-hero .mars-button:focus-visible { outline: 3px solid #ffcf74; outline-offset: 4px; }
.mars-hero__scroll { position: absolute; z-index: 2; right: 48px; bottom: 46px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.mars-community { position: relative; min-height: 600px; isolation: isolate; overflow: hidden; }
.mars-community > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -1; }
.mars-community__copy { width: min(100%, 650px); padding: 64px 48px; color: #08111d; }
.mars-home .mars-community__copy h2 { color: inherit; font-size: clamp(35px, 4.1vw, 62px); max-width: 550px; }
.mars-community__copy p { font-size: 16px; margin: 17px 0 0; max-width: 420px; }
.mars-image-credit { position: absolute; right: 24px; bottom: 18px; color: white; font-size: 10px; letter-spacing: .02em; text-shadow: 0 1px 5px #000; }
.mars-film { padding: 72px max(48px, calc((100vw - 1280px) / 2)); background: #f0f1f0; color: #08111d; }
.mars-film__heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.mars-kicker { display: block; font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.mars-home .mars-film h2 { font-size: clamp(36px, 4vw, 56px); margin-top: 7px; color: inherit; }
.mars-film__detail { font-size: 12px; letter-spacing: .05em; }
.mars-film__detail span { opacity: .4; padding: 0 7px; }
.mars-film video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; background: black; }
.mars-film__caption { display: flex; justify-content: space-between; gap: 15px; margin-top: 17px; font-size: 11px; }
.mars-explore { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mars-story { display: block; min-height: 490px; position: relative; overflow: hidden; isolation: isolate; color: white !important; }
.mars-story > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; transition: transform .5s ease; }
.mars-story--learn > img { object-position: 50% 50%; }
.mars-story--gallery > img { object-position: 50% 50%; }
.mars-story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(3,8,15,.7) 100%); }
.mars-story__copy { position: absolute; left: 30px; right: 30px; bottom: 40px; }
.mars-story .mars-kicker { margin-bottom: 8px; }
.mars-home .mars-story h2 { color: white; font-size: clamp(32px, 3.1vw, 44px); }
.mars-story__arrow { position: absolute; right: 30px; top: 26px; font-size: 28px; line-height: 1; }
.mars-story:hover > img { transform: scale(1.025); }
.mars-story:focus-visible { outline: 4px solid #ffcf74; outline-offset: -5px; }
[data-md-color-scheme="slate"] .mars-film { background: #11171e; color: #f0f2f4; }
@media (min-width: 76.25em) { body:has(.mars-home) .md-sidebar { display: none; } }
@media (max-width: 900px) {
  .mars-hero { padding: 48px 32px; }
  .mars-community { min-height: 530px; }
  .mars-community__copy { padding: 45px 32px; max-width: 520px; }
  .mars-film { padding: 52px 32px; }
  .mars-explore { grid-template-columns: 1fr; }
  .mars-story { min-height: 440px; }
}
@media (max-width: 640px) {
  .mars-hero { min-height: calc(100svh - 64px); padding: 40px 24px; }
  .mars-hero__background img { object-position: 50% 42%; }
  .mars-hero__logo { width: 295px; margin-bottom: 10px; }
  .mars-hero .mars-hero__subtitle { font-size: 16px; margin-bottom: 20px; }
  .mars-hero__scroll { display: none; }
  .mars-community { min-height: 460px; }
  .mars-community > img { object-position: 50% 32%; }
  .mars-community__copy { padding: 28px 24px; max-width: 350px; }
  .mars-home .mars-community__copy h2 { max-width: 280px; font-size: 37px; }
  .mars-community__copy p { max-width: 245px; font-size: 14px; margin-top: 12px; }
  .mars-film { padding: 40px 20px; }
  .mars-film__heading { margin-bottom: 20px; }
  .mars-home .mars-film h2 { font-size: 36px; }
  .mars-film__caption { flex-direction: column; gap: 10px; font-size: 10px; }
  .mars-story { min-height: 380px; }
  .mars-story__copy { left: 24px; bottom: 30px; }
  .mars-home .mars-story h2 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { .mars-story > img { transition: none; } .mars-story:hover > img { transform: none; } }
@media (min-width: 641px) and (max-height: 600px) { .mars-hero__background img { object-position: 50% 0%; } }
