:root {
  color-scheme: dark;
  --background: #0b0e13;
  --surface: #121720;
  --surface-raised: #171d27;
  --text: #f4f6f1;
  --muted: #9aa4b2;
  --accent: #c3f879;
  --line: rgba(255, 255, 255, .09);
  --radius: 16px;
  --font: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(130, 168, 91, .09), transparent 48%),
    var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
}

body, a { color: var(--text); }
a { text-decoration: none; }
::selection { background: var(--accent); color: #10140c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
section[id], article[id] { scroll-margin-top: 94px; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(6.5vw, 24px);
}

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 19, .82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.1;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(195, 248, 121, .5);
  border-radius: 11px;
  background: rgba(195, 248, 121, .08);
  color: var(--accent);
  font-size: 19px;
}

.brand-name > span { color: var(--accent); }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: .2em; }
.header-link { color: #d1d5dd; font-size: 13px; transition: color .2s ease; }
.header-link:hover { color: var(--accent); }
.header-link span { padding-left: 7px; color: var(--accent); }

.hero {
  position: relative;
  display: flex;
  min-height: 555px;
  align-items: center;
  overflow: hidden;
  padding: 80px max(10vw, 24px) 92px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 78% 47%, rgba(157, 214, 97, .08), transparent 33%),
    linear-gradient(180deg, rgba(255, 255, 255, .012), transparent);
}

.hero-copy { position: relative; z-index: 1; width: min(590px, 60%); }

.eyebrow {
  margin: 0 0 17px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 700; }

h1 {
  margin-bottom: 19px;
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: -.075em;
  line-height: 1.02;
}

h1 span { color: var(--accent); text-shadow: 0 0 48px rgba(195, 248, 121, .15); }
.hero-description { max-width: 440px; margin-bottom: 28px; color: var(--muted); font-size: 16px; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 19px;
  border: 0;
  border-radius: 9px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #11150d; box-shadow: 0 8px 28px rgba(195, 248, 121, .13); }
.button-primary:hover { background: #d2ff9a; box-shadow: 0 10px 34px rgba(195, 248, 121, .22); }

.hero-art {
  position: absolute;
  top: 50%;
  right: 8%;
  display: grid;
  width: min(38vw, 410px);
  aspect-ratio: 1;
  place-items: center;
  transform: translateY(-50%);
}

.hero-art::before {
  position: absolute;
  width: 67%;
  height: 67%;
  border: 1px solid rgba(195, 248, 121, .2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 248, 121, .14), transparent 68%);
  box-shadow: 0 0 100px rgba(195, 248, 121, .06);
  content: "";
}

.orbit { position: absolute; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; }
.orbit-one { width: 86%; height: 86%; }
.orbit-two { width: 100%; height: 100%; border-style: dashed; opacity: .55; animation: orbit-turn 70s linear infinite; }

@keyframes orbit-turn { to { transform: rotate(360deg); } }

.hero-emblem { z-index: 1; color: var(--text); font-size: clamp(75px, 13vw, 155px); font-weight: 800; letter-spacing: -.12em; text-shadow: 0 0 70px rgba(195, 248, 121, .2); }
.hero-emblem span { color: var(--accent); }
.art-label, .art-coordinate { position: absolute; color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.art-label { top: 13%; right: 0; line-height: 1.8; }
.art-coordinate { bottom: 12%; left: 0; }

.hero-footer {
  position: absolute;
  right: max(6.5vw, 24px);
  bottom: 23px;
  left: max(6.5vw, 24px);
  display: flex;
  justify-content: space-between;
  color: #858d9a;
  font-size: 9px;
  letter-spacing: .12em;
}

.opportunities { padding: 112px max(10vw, 24px); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 37px;
}

h2 { margin-bottom: 0; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.055em; line-height: 1.1; }
.section-note { max-width: 310px; margin-bottom: 4px; color: var(--muted); }
.opportunity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.opportunity-card {
  position: relative;
  min-height: 230px;
  padding: 29px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(195, 248, 121, .055), transparent 32%),
    linear-gradient(135deg, #171d27, #11151c);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.opportunity-card:hover { transform: translateY(-4px); border-color: rgba(195, 248, 121, .28); box-shadow: 0 18px 50px rgba(0, 0, 0, .2); }
.card-number { position: absolute; top: 28px; right: 28px; color: #858d9a; font-size: 11px; }
.card-icon { display: block; margin-bottom: 20px; color: var(--accent); font-size: 24px; }
.opportunity-card h3 { margin-bottom: 8px; font-size: 21px; }
.opportunity-card p { max-width: 390px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.role-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.role-tags a, .role-tag-muted { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .025); color: #c4c9d1; font-size: 10px; }
.role-tags a { transition: color .2s ease, border-color .2s ease, background .2s ease; }
.role-tags a:hover { border-color: rgba(195, 248, 121, .35); background: rgba(195, 248, 121, .07); color: var(--accent); }
.role-tags a span { padding-left: 3px; color: var(--accent); }
.role-tag-muted { color: #929aa7; }

.application-section {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 7vw;
  padding: 95px max(10vw, 24px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 100% 0, rgba(151, 193, 98, .045), transparent 35%),
    #10141b;
}

.applications { display: grid; gap: 44px; }
.application-category { scroll-margin-top: 96px; }
.category-heading { margin-bottom: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.category-heading .eyebrow { margin-bottom: 7px; }
.category-heading h3 { margin: 0 0 5px; font-size: 25px; letter-spacing: -.04em; }
.category-heading > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.application-list { display: grid; gap: 14px; }

.application-intro { position: sticky; top: 105px; }
.application-intro h2 { margin-bottom: 17px; }
.application-intro > p:not(.eyebrow) { max-width: 340px; color: var(--muted); font-size: 13px; }
.application-intro strong { color: var(--text); }

.profile-note {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  margin-top: 28px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.profile-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: rgba(195, 248, 121, .12); color: var(--accent); font-size: 18px; font-weight: 700; }
.profile-note > span:nth-child(2) { display: grid; gap: 1px; font-size: 12px; }
.profile-note small { color: var(--muted); font-size: 10px; }
.profile-status { margin-left: auto; color: var(--accent); font-size: 8px; letter-spacing: .08em; }

.application-card {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(23, 29, 39, .96), rgba(14, 17, 24, .98));
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}

.application-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.application-heading .eyebrow { margin-bottom: 7px; font-size: 9px; }
.application-heading h4 { margin: 0; font-size: 20px; }
.application-index { color: var(--accent); font-size: 11px; }
.application-copy { margin-top: 22px; color: #c7ccd5; font-size: 13px; line-height: 1.85; }
.application-copy p { margin-bottom: 16px; }
.application-copy strong { color: var(--text); }
.application-signoff { margin-bottom: 0 !important; color: var(--text); }
.application-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); color: #9aa4b2; font-size: 9px; letter-spacing: .1em; }
.loading-message, .empty-message, .error-message { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; }
.error-message { border-color: rgba(255, 120, 120, .25); color: #ffaaaa; }

.site-footer { min-height: 100px; border-top: 1px solid var(--line); }
.footer-brand { transform: scale(.85); transform-origin: left center; }
.site-footer p, .site-footer > span { margin: 0; color: var(--muted); font-size: 11px; }
.footer-meta { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 11px; }
.footer-meta a, .footer-home { color: var(--muted); transition: color .2s ease; }
.footer-meta a:hover, .footer-home:hover { color: var(--accent); }

.admin-main { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); align-items: start; gap: 7vw; max-width: 1250px; margin: 0 auto; padding: 90px max(6vw, 24px) 120px; }
.admin-intro { position: sticky; top: 110px; }
.admin-intro h1 { margin-bottom: 18px; font-size: clamp(42px, 5vw, 60px); }
.admin-intro h1 span { color: var(--accent); }
.admin-intro > p:last-child { max-width: 340px; color: var(--muted); font-size: 13px; }
.admin-panel { min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(23, 29, 39, .96), rgba(14, 17, 24, .98)); box-shadow: 0 16px 50px rgba(0, 0, 0, .18); }
.admin-login { max-width: 430px; margin: 0 auto; }
.admin-login h2, .editor-topbar h2 { margin: 0 0 6px; font-size: 24px; }
.admin-login > p:not(.admin-error) { margin-bottom: 24px; color: var(--muted); font-size: 12px; }
.admin-field { display: grid; gap: 8px; margin-bottom: 17px; color: #d7dbe1; font-size: 11px; font-weight: 600; }
.admin-field input, .admin-field select, .admin-field textarea { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #2a303b; border-radius: 8px; outline: none; background: var(--surface); color: var(--text); font-size: 12px; font-weight: 400; }
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus { border-color: var(--accent); }
.admin-field textarea { min-height: 280px; resize: vertical; line-height: 1.7; }
.admin-field small { color: var(--muted); font-size: 10px; font-weight: 400; }
.admin-field select { cursor: pointer; }
.admin-login .button { width: 100%; margin-top: 4px; }
.admin-error { min-height: 18px; margin: 12px 0 0; color: #ffaaaa; font-size: 11px; }
.admin-message { padding: 16px; border: 1px solid rgba(255, 120, 120, .25); border-radius: 10px; color: #ffaaaa; font-size: 12px; }
.admin-message[hidden], #login-form[hidden], #editor[hidden] { display: none; }
.editor-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 25px; }
.editor-topbar .eyebrow { margin-bottom: 4px; }
.button-secondary { min-height: 40px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font-size: 11px; }
.button-secondary:hover { border-color: rgba(195, 248, 121, .35); background: rgba(195, 248, 121, .07); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.application-editor { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.editor-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.editor-actions .button { min-height: 46px; font-size: 12px; }
.editor-actions p { margin: 0; color: var(--accent); font-size: 11px; }

@media (max-width: 760px) {
  .hero { min-height: 550px; align-items: start; padding-top: 92px; }
  .hero-copy { width: 100%; }
  .hero-art { top: auto; right: 5%; bottom: 10px; width: 53vw; transform: none; opacity: .58; }
  .hero-footer { font-size: 8px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-note { margin-bottom: 0; }
  .application-section { grid-template-columns: 1fr; gap: 30px; }
  .application-intro { position: static; }
  .admin-main { grid-template-columns: 1fr; gap: 28px; padding-top: 60px; }
  .admin-intro { position: static; }
}

@media (max-width: 520px) {
  .site-header, .site-footer { padding-right: 20px; padding-left: 20px; }
  .header-link { font-size: 11px; }
  .hero { min-height: 510px; padding-right: 24px; padding-left: 24px; }
  .hero-description { max-width: 340px; font-size: 14px; }
  .hero-footer { right: 20px; left: 20px; }
  .hero-footer span:last-child { display: none; }
  .opportunities, .application-section { padding: 70px 20px; }
  .opportunity-grid { grid-template-columns: 1fr; }
  .opportunity-card { min-height: 210px; }
  .application-card { padding: 21px 16px; }
  .site-footer { flex-wrap: wrap; gap: 8px; }
  .site-footer p { display: none; }
  .footer-meta { gap: 10px; font-size: 10px; }
  .admin-panel { padding: 21px 16px; }
  .admin-grid { grid-template-columns: 1fr; }
  .editor-topbar { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
