:root {
  color-scheme: dark;
  --background: #08090b;
  --text: #eae9e4;
  --muted: #9699a2;
  --amber: #efa858;
  --line: #ffffff20;
  --header-height: 112px;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; min-width: 320px; overflow: hidden; }
a { color: inherit; }
::selection { background: #efa858; color: #08090b; }

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.page-viewport {
  position: fixed;
  inset: 0;
  /* Keep the stationary fade separate from the scrolling element. Masking the
     scroller itself prevents accelerated scrolling in Chromium. */
  -webkit-mask-image: linear-gradient(to bottom, transparent var(--header-height), #000 calc(var(--header-height) + 44px));
  mask-image: linear-gradient(to bottom, transparent var(--header-height), #000 calc(var(--header-height) + 44px));
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  height: 100svh;
  overflow: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  will-change: scroll-position;
  scroll-padding-top: calc(var(--header-height) + 44px);
  padding: var(--header-height) clamp(28px, 6.25vw, 110px) 28px;

}
.page > main { flex-shrink: 0; }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
  height: var(--header-height);
  padding: 18px clamp(28px, 6.25vw, 110px);
  background: transparent;
  cursor: default;
}
.header .wordmark { justify-self: start; width: 273.03125px; height: 64.8px; }
.header .site-nav { grid-column: 2; justify-self: center; width: fit-content; gap: clamp(36px, 4.5vw, 72px); }
.header .site-nav .nav-control { min-height: 48px; padding-inline: 9px; font-size: 17px; letter-spacing: .14em; }
.site-nav { display: inline-flex; align-items: center; width: fit-content; gap: 14px; min-height: 46px; }
.site-nav .nav-control { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 6px; border: 0; color: var(--muted); font: 12px "Courier New", monospace; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; white-space: nowrap; }
.site-nav .nav-control:hover, .site-nav .nav-control[aria-current] { color: var(--text); }
.site-nav .nav-control::before { content: "["; color: transparent; }
.site-nav .nav-control::after { content: "]"; color: transparent; }
.site-nav .nav-control[aria-current]::before, .site-nav .nav-control[aria-current]::after { color: var(--amber); }
.site-nav .nav-control:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; }
a:focus-visible { outline: 1px solid var(--amber); outline-offset: 6px; }
main[tabindex="-1"]:focus { outline: none; }
.wordmark { display: inline-flex; align-items: center; gap: 0; text-decoration: none; }
.wordmark-logo { display: block; width: 82px; height: 82px; object-fit: contain; flex-shrink: 0; }
.wordmark-text { display: flex; flex-direction: column; flex-shrink: 0; gap: 2px; line-height: 1.15; }
.wordmark-name { text-transform: uppercase; letter-spacing: .17em; font-size: 26px; font-weight: 700; }
.wordmark-category, .eyebrow {
  font-family: "Courier New", Courier, monospace;
  text-transform: uppercase;
}
.wordmark-category { color: var(--amber); font-size: 26px; font-weight: 700; letter-spacing: .24em; }

.about { position: relative; flex: 1; padding-top: clamp(100px, 16vh, 180px); padding-bottom: 65px; }
/* The complete disk reaches x=1200, beyond the old 1000-unit drawing area.
   Preserve its scale/anchor on smaller screens while allowing the full canvas. */
.orbital-art { --art-width: min(79vw, 1120px); position: absolute; width: calc(var(--art-width) * 1.3); right: calc(-17% - var(--art-width) * .3); top: -115px; pointer-events: none; }
.orbital-art svg { display: block; width: 100%; height: auto; }
.orbit-flow { position: absolute; inset: 38.888889% 0 auto; width: 100%; height: 22.222222%; }
.intro, .contact { position: relative; z-index: 1; }
.eyebrow { display: flex; gap: 15px; margin: 0; font-size: 11px; font-weight: 400; letter-spacing: .23em; }
.eyebrow span { color: var(--amber); }
h1 { margin: 25px 0 0; max-width: 700px; font-size: clamp(29px, 3.2vw, 49px); font-weight: 500; line-height: 1.06; letter-spacing: -.055em; }
.period { color: var(--amber); }
.about-description { max-width: 440px; margin: 24px 0 0; color: #b4b6bc; font-size: 15px; line-height: 1.75; }
.contact { width: min(440px, 100%); margin-top: 75px; }
.contact h2 { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.email { margin: 20px 0 9px; font-size: clamp(17px, 1.8vw, 23px); letter-spacing: -.025em; overflow-wrap: anywhere; }
.about .email { font-size: 16px; }
.email a { text-decoration: none; }
.email a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }
.wordmark:focus-visible { outline: 1px solid var(--amber); outline-offset: 10px; }
.sky-dragging, .sky-dragging * { user-select: none !important; -webkit-user-select: none !important; }

@media (hover: hover) and (pointer: fine) {
  .sky-draggable { cursor: grab; }
  .sky-draggable a { cursor: pointer; }
  .sky-dragging, .sky-dragging * { cursor: grabbing !important; }
}

@media (min-width: 1600px) {
  .page-viewport { max-width: 1800px; margin: 0 auto; }
  .page { max-width: 1800px; margin: 0 auto; }
  /* Fit the complete disk inside the capped page, including its glow. */
  .orbital-art { width: min(1300px, calc(100% - 380px)); right: 0; top: 0; }
}

@media (max-width: 1050px) and (min-width: 761px) {
  .header { grid-template-columns: max-content 1fr; }
  .header .site-nav { gap: 30px; }
}

@media (max-width: 760px) {
  :root { --header-height: 156px; }
  .header { grid-template-columns: 1fr; grid-template-rows: auto auto; row-gap: 8px; padding-block: 14px; }
  .header .site-nav { grid-column: 1; gap: 34px; }
  .header .site-nav .nav-control { min-height: 42px; font-size: 14px; padding-inline: 5px; }
  .header .wordmark { width: 233.984375px; height: 56.7px; }
  .wordmark-logo { width: 69.7px; height: 69.7px; }
  .wordmark-name, .wordmark-category { font-size: 22.1px; }
}

@media (max-width: 700px) {
  .page { padding-bottom: 23px; }
  .about { padding-top: 265px; padding-bottom: 50px; }
  .orbital-art { --art-width: 650px; right: -450px; top: -125px; opacity: .85; }
  h1 { font-size: clamp(25px, 5vw, 35px); }
  .contact { margin-top: 48px; }
  .about .email { font-size: 15px; }
  .site-nav { gap: 26px; }
}

/* Careers shares the same quiet typography, amber accents and interactive sky. */
.careers-main { position: relative; flex: 1; width: 100%; max-width: 1160px; padding: 95px 0 80px; }
.careers-intro { max-width: 640px; }
.careers-intro h1, .role-intro h1 { line-height: 1.12; }
.lead { max-width: 620px; margin: 24px 0 0; color: #b4b6bc; font-size: 16px; line-height: 1.75; }
.open-roles { margin-top: 68px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.role-count, .back-link, .role-facts, .vacancy-tags { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; margin: 0; list-style: none; }
.vacancy-tags li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding-block: 6px; color: #bfc1c8; font: 13px/1.5 "Courier New", monospace; }
.vacancy-tags li::before { content: "["; color: #d59c5c; }
.vacancy-tags li::after { content: "]"; color: #d59c5c; }
.text-link { font-family: "Courier New", Courier, monospace; }
.role-count { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.job-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 24px; align-items: start; padding: 32px 0; border-top: 1px solid var(--line); }
.job-number { padding-top: 6px; color: var(--amber); font: 11px "Courier New", Courier, monospace; letter-spacing: .12em; }
.job-card h3 { margin: 0; font-size: clamp(23px, 2.3vw, 30px); font-weight: 400; letter-spacing: -.035em; }
.job-card h3 a { text-decoration: none; }
.job-card h3 a:hover { color: var(--amber); }
.job-card .job-summary { max-width: 580px; margin: 16px 0; color: #b4b6bc; font-size: 15px; line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: 14px; padding: 8px 0; color: var(--text); font-size: 12px; text-decoration: none; white-space: nowrap; }
.text-link span { color: var(--amber); font-size: 18px; }
.text-link:hover { color: var(--amber); }
.back-link { display: inline-block; margin-bottom: 40px; color: var(--muted); font-size: 11px; text-decoration: none; }
.back-link:hover { color: var(--text); }
.role-intro { max-width: 760px; }
.role-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 80px; margin-top: 56px; align-items: start; }
.role-details { display: grid; gap: 40px; }
.role-section h2, .application-panel h2 { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.role-section ul { display: grid; gap: 14px; padding: 0; margin: 22px 0 0; list-style: none; }
.role-section li { position: relative; padding-left: 24px; color: #b4b6bc; font-size: 15px; line-height: 1.7; }
.role-section li::before { position: absolute; left: 0; content: "—"; color: var(--amber); }
.role-section p, .application-panel > p { color: #b4b6bc; font-size: 14px; line-height: 1.75; }
.role-facts { display: grid; gap: 20px; margin: 0 0 35px; }
.role-facts dt { margin-bottom: 7px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.role-facts dd { margin: 0; font-size: 12px; color: var(--text); }
.application-panel .email { font-size: 15px; color: var(--text); }

@media (max-width: 800px) {
  .careers-main { padding-top: 65px; }
  .role-layout { grid-template-columns: 1fr; gap: 45px; }
  .application-panel { max-width: 480px; }
  .job-card { grid-template-columns: 25px minmax(0, 1fr); gap: 15px; }
  .job-card > .text-link { grid-column: 2; justify-self: start; }
}

@media (max-width: 500px) {
  .site-nav { width: 100%; }
  .careers-main { padding-top: 52px; padding-bottom: 45px; }
  .careers-intro h1, .role-intro h1 { font-size: 34px; }
  .lead { font-size: 15px; }
  .open-roles { margin-top: 44px; }
  .section-heading { align-items: start; }
  .role-count { font-size: 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Shared page shell: every current and future main gets the same entrance.
     Replacing main during navigation naturally restarts it, without animating
     the persistent header or the interactive sky. */
  .page > main { animation: page-enter .8s ease-out backwards; }
  @keyframes page-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
