:root {
  --bg: #06080c;
  --panel: #0c1118;
  --text: #f7fbff;
  --muted: #b9c5d4;
  --blue: #39a7ff;
  --blue-2: #7cc8ff;
  --line: rgba(255,255,255,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.hero {
  min-height: 100vh;
  position: relative;
  background: #05080d;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}


.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,5,10,.06) 0%, rgba(2,5,10,.02) 52%, rgba(2,5,10,.42) 100%);
  z-index: -1;
}

.site-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 5vw;
  position: relative;
  z-index: 2;
}

.solid-header {
  background: rgba(5,8,13,.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
}

.brand {
  font-family: Orbitron, Inter, sans-serif;
  font-weight: 500;
  letter-spacing: .20em;
  font-size: .90rem;
  color: #69bdff;
  text-shadow: 0 0 20px rgba(57,167,255,.35);
}

.nav { display: flex; gap: 30px; align-items: center; }
.nav a {
  font-family: Orbitron, Inter, sans-serif;
  color: #66baff;
  font-size: .78rem;
  letter-spacing: .08em;
  transition: color .2s ease, text-shadow .2s ease;
}
.nav a:hover { color: #fff; text-shadow: 0 0 14px rgba(57,167,255,.55); }

.hero-content {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 6vh 5vw 8vh;
}

.hero-copy { max-width: 520px; padding: 22px 26px; border-radius: 18px; background: rgba(2,7,15,.34); backdrop-filter: blur(3px); }
.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-2);
  font-family: Orbitron, Inter, sans-serif;
  font-weight: 500;
  letter-spacing: .16em;
  font-size: .66rem;
}

h1, h2 { margin: 0; line-height: 1.05; }
h1 {
  font-family: Orbitron, Inter, sans-serif;
  font-weight: 500;
  color: #75c5ff;
  font-size: clamp(1.85rem, 3.5vw, 3.6rem);
  max-width: 720px;
  letter-spacing: .01em;
  text-shadow: 0 0 20px rgba(36,155,255,.38);
}

.subhead {
  max-width: 580px;
  margin: 24px 0 34px;
  color: rgba(255,255,255,.82);
  font-size: clamp(.82rem, 1.1vw, 1rem);
  line-height: 1.65;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(111,197,255,.75);
  background: rgba(23,126,201,.22);
  color: #fff;
  border-radius: 999px;
  padding: 19px 42px;
  font-family: Orbitron, Inter, sans-serif;
  font-size: 1.06rem;
  letter-spacing: .08em;
  font-weight: 500;
  box-shadow: 0 0 38px rgba(45,155,255,.42), inset 0 0 24px rgba(67,178,255,.14);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.cta:hover {
  transform: translateY(-2px);
  background: rgba(30,139,218,.34);
  box-shadow: 0 0 38px rgba(45,155,255,.36);
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: 1.5rem;
}

.section {
  border-top: 1px solid var(--line);
  padding: 100px 5vw;
  background: #070a0f;
}
.section.alt { background: #0b1017; }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-label {
  font-family: Orbitron, Inter, sans-serif;
  color: var(--blue-2);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 600;
}
.section h2 {
  font-family: Orbitron, Inter, sans-serif;
  color: #69bdff;
  font-weight: 500;
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  letter-spacing: -.03em;
  margin: 12px 0 22px;
}
.section p:not(.section-label) {
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.8;
  max-width: 760px;
}
.text-link { font-family: Orbitron, Inter, sans-serif; color: var(--blue-2); font-size: .86rem; font-weight: 500; display: inline-block; margin-top: 8px; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 5vw;
  border-top: 1px solid var(--line);
  color: #7f8a97;
  font-size: .85rem;
  background: #05070a;
}

.start-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 15%, rgba(34,119,210,.18), transparent 32%),
    linear-gradient(180deg, #07101b, #05070a 65%);
}
.start-wrap {
  min-height: calc(100vh - 88px);
  padding: 70px 5vw;
  display: grid;
  place-items: center;
}
.start-card {
  width: min(820px, 100%);
  padding: 50px;
  background: rgba(11,17,25,.82);
  border: 1px solid rgba(111,197,255,.2);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.start-card h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
.start-card > p:not(.eyebrow):not(.thanks) { color: var(--muted); line-height: 1.75; max-width: 700px; }
.starter-form { margin-top: 32px; display: grid; gap: 14px; }
.starter-form label { font-weight: 600; }
textarea {
  min-height: 150px;
  resize: vertical;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.04);
  color: #fff;
  padding: 18px;
  font: inherit;
  line-height: 1.55;
}
textarea:focus { outline: 1px solid var(--blue); box-shadow: 0 0 0 4px rgba(57,167,255,.08); }
.starter-form .cta { border: none; cursor: pointer; width: fit-content; margin-top: 8px; }
.thanks { color: #c8eaff; margin-top: 22px; }
.back-link { display: inline-block; margin-top: 26px; color: #95a6b8; }

@media (max-width: 760px) {
  .site-header { padding: 20px 22px; }
  .nav { gap: 16px; }
  .nav a { font-size: .86rem; }
  .brand { font-size: .95rem; }
  .hero { background-position: 55% center; }
  .overlay { background: linear-gradient(180deg, rgba(2,5,10,.03), rgba(2,5,10,.48)); }
  .hero-content { align-items: flex-end; padding: 110px 24px 70px; }
  .hero-copy { max-width: 100%; }
  .section { padding: 72px 24px; }
  .footer { flex-direction: column; padding: 24px; }
  .start-card { padding: 30px 22px; border-radius: 18px; }
}

/* --- Career Agent Page --- */
.career-page { background: #05080d; }
.career-shell {
  width: min(1280px, 92vw);
  margin: 0 auto;
  padding: 68px 0 80px;
}
.career-intro { max-width: 850px; margin-bottom: 38px; }
.career-intro h1 {
  font-size: clamp(2.05rem, 4.5vw, 4.4rem);
  max-width: 880px;
}
.career-intro > p:last-child {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.75;
  font-size: .98rem;
}
.career-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.career-panel {
  background: linear-gradient(180deg, rgba(14,22,33,.94), rgba(8,13,20,.96));
  border: 1px solid rgba(86,180,255,.18);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
}
.search-panel { grid-column: span 7; }
.results-panel { grid-column: span 5; min-height: 480px; }
.resume-panel { grid-column: span 6; }
.letter-panel { grid-column: span 6; }
.apply-panel { grid-column: 4 / span 6; text-align: center; }
.panel-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.compact-heading { margin-bottom: 18px; }
.step-number {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(87,185,255,.55);
  color: #74c7ff;
  font-family: Orbitron, Inter, sans-serif;
  font-size: .72rem;
  box-shadow: 0 0 22px rgba(38,151,255,.13);
  flex: 0 0 auto;
}
.panel-kicker {
  margin: 0 0 4px;
  color: #5cbaff;
  font-family: Orbitron, Inter, sans-serif;
  letter-spacing: .14em;
  font-size: .62rem;
}
.career-panel h2 {
  margin: 0;
  color: #e9f6ff;
  font-family: Orbitron, Inter, sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: .01em;
}
.career-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field-wide { grid-column: 1 / -1; }
.field-group { display: grid; gap: 8px; }
.field-group label { color: #b9d9ef; font-size: .78rem; font-weight: 600; }
.field-group input,
.field-group select {
  width: 100%;
  background: #080e16;
  color: #edf8ff;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 11px;
  min-height: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: .88rem;
}
.field-group input:focus,
.field-group select:focus { outline: none; border-color: rgba(74,178,255,.8); box-shadow: 0 0 0 3px rgba(57,167,255,.08); }
.primary-action,
.secondary-action {
  border: 1px solid rgba(91,188,255,.65);
  background: rgba(25,120,191,.20);
  color: #dff3ff;
  border-radius: 11px;
  min-height: 48px;
  padding: 0 18px;
  font-family: Orbitron, Inter, sans-serif;
  font-size: .75rem;
  letter-spacing: .05em;
  cursor: pointer;
  transition: .2s ease;
}
.primary-action { margin-top: 20px; width: 100%; }
.primary-action:hover, .secondary-action:hover:not(:disabled) { background: rgba(36,147,225,.30); box-shadow: 0 0 25px rgba(51,159,239,.14); }
.secondary-action { width: 100%; margin-top: 15px; }
.secondary-action:disabled { opacity: .38; cursor: not-allowed; }
.microcopy { color: #73879a; font-size: .70rem; line-height: 1.5; margin: 12px 0 0; }
.job-results { display: grid; gap: 11px; }
.empty-state {
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
  color: #8397aa;
  font-size: .84rem;
}
.search-orbit {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1px solid rgba(74,178,255,.45);
  box-shadow: inset 0 0 25px rgba(43,145,226,.09), 0 0 28px rgba(43,145,226,.09);
  position: relative;
}
.search-orbit::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #59baff; box-shadow: 0 0 14px #59baff; position: absolute; top: 10px; left: 50%; }
.job-card {
  width: 100%; text-align: left; color: inherit;
  background: #080e16;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  padding: 16px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.job-card:hover { transform: translateY(-2px); border-color: rgba(83,183,255,.45); }
.job-card.selected { border-color: #54b8ff; background: rgba(20,99,157,.13); box-shadow: 0 0 0 2px rgba(57,167,255,.05); }
.job-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.fit-pill { color: #75c6ff; background: rgba(57,167,255,.10); border-radius: 999px; padding: 5px 8px; font-size: .62rem; }
.job-source { color: #718598; font-size: .64rem; }
.job-card h3 { margin: 13px 0 4px; font-size: .96rem; color: #f1f8fd; }
.job-card p { margin: 0; color: #93a7b9; font-size: .76rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.job-meta span { color: #9eb4c6; border: 1px solid rgba(255,255,255,.09); padding: 4px 7px; border-radius: 6px; font-size: .62rem; }
.select-job { color: #65bdff; font-size: .70rem; font-weight: 600; }
.upload-zone {
  min-height: 150px;
  border: 1px dashed rgba(94,188,255,.45);
  border-radius: 14px;
  display: grid; place-items: center; align-content: center; gap: 7px;
  color: #bcdced; cursor: pointer;
  background: rgba(57,167,255,.025);
}
.upload-zone:hover { background: rgba(57,167,255,.055); }
.upload-icon { font-size: 1.6rem; color: #65bdff; }
.upload-zone strong { font-size: .88rem; }
.upload-zone span:last-of-type { color: #73899d; font-size: .70rem; }
.file-name { color: #8095a8; font-size: .72rem; margin: 9px 0 17px; }
.selected-job-box { background: #080e16; border-left: 2px solid #4eaff5; border-radius: 9px; padding: 13px 15px; display: grid; gap: 4px; }
.selected-job-box span { color: #6d8499; text-transform: uppercase; letter-spacing: .10em; font-size: .59rem; }
.selected-job-box strong { color: #dcefff; font-size: .82rem; font-weight: 600; }
.panel-copy { color: #91a6b8; line-height: 1.65; font-size: .82rem; }
.ai-output { margin-top: 18px; padding: 16px; border-radius: 12px; background: rgba(4,10,17,.85); border: 1px solid rgba(86,180,255,.18); color: #a8bdcc; font-size: .78rem; line-height: 1.65; }
.ai-output-head { display: flex; gap: 9px; align-items: center; margin-bottom: 10px; color: #dff3ff; }
.ai-output-head span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #55b7fa; color: #55b7fa; font-family: Orbitron, Inter, sans-serif; font-size: .57rem; }
.output-placeholder { color: #bdd4e3; margin-top: 10px; }
.cover-letter p { margin: 0 0 11px; }
.apply-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px;
  min-width: 210px; min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: Orbitron, Inter, sans-serif;
  font-size: .88rem;
  letter-spacing: .06em;
  color: #fff;
  border: 1px solid rgba(101,193,255,.8);
  background: rgba(31,135,211,.26);
  box-shadow: 0 0 28px rgba(35,149,232,.18);
}
.apply-action:hover { background: rgba(36,151,231,.36); }
.disabled-link { opacity: .38; pointer-events: none; }
.apply-source { color: #758a9c; font-size: .70rem; }
.career-back { margin-top: 34px; }

@media (max-width: 960px) {
  .search-panel, .results-panel, .resume-panel, .letter-panel, .apply-panel { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .career-shell { width: min(92vw, 100%); padding-top: 42px; }
  .career-fields { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .career-panel { padding: 21px; }
  .career-intro h1 { font-size: 2rem; }
}


/* --- Profile + account navigation --- */
.header-right { display:flex; align-items:center; gap:20px; margin-left:auto; }
.profile-menu { position:relative; }
.profile-trigger {
  appearance:none; border:0; background:transparent; color:#66baff; cursor:pointer;
  display:flex; align-items:center; gap:7px; padding:5px 0;
  font-family:Orbitron,Inter,sans-serif; font-size:.78rem; letter-spacing:.08em;
}
.profile-trigger:hover { color:#fff; text-shadow:0 0 14px rgba(57,167,255,.55); }
.profile-avatar { width:29px; height:29px; border-radius:50%; border:1px solid rgba(105,189,255,.55); display:grid; place-items:center; overflow:hidden; box-shadow:0 0 14px rgba(57,167,255,.12); }
.profile-photo { width:100%; height:100%; object-fit:cover; display:block; }
.chevron { font-family:Inter,sans-serif; font-size:.9rem; transition:transform .2s ease; }
.profile-menu.open .chevron { transform:rotate(180deg); }
.profile-dropdown {
  display:none; position:absolute; top:calc(100% + 12px); right:0; width:225px; padding:10px;
  background:rgba(6,12,21,.98); border:1px solid rgba(105,189,255,.28); border-radius:14px;
  box-shadow:0 22px 55px rgba(0,0,0,.48),0 0 28px rgba(57,167,255,.08); backdrop-filter:blur(16px); z-index:30;
}
.profile-menu.open .profile-dropdown { display:block; }
.profile-dropdown a { display:block; padding:11px 12px; border-radius:9px; font-family:Inter,sans-serif; font-size:.84rem; color:#d7ebfa; }
.profile-dropdown a:hover { background:rgba(57,167,255,.11); color:#fff; }
.photo-upload { display:flex; align-items:center; gap:10px; padding:9px 10px 12px; margin-bottom:6px; border-bottom:1px solid var(--line); cursor:pointer; color:#dff2ff; }
.upload-avatar { width:33px; height:33px; border-radius:50%; display:grid; place-items:center; border:1px dashed rgba(105,189,255,.7); color:#69bdff; font-size:1.1rem; }
.photo-upload span:last-child { display:flex; flex-direction:column; gap:2px; }
.photo-upload strong { font-size:.8rem; font-weight:600; }
.photo-upload small { color:#8295a9; font-size:.67rem; }
.account-actions { display:flex; align-items:center; gap:8px; }
.account-btn { font-family:Orbitron,Inter,sans-serif; font-size:.67rem; letter-spacing:.06em; padding:9px 13px; border-radius:999px; white-space:nowrap; transition:.2s ease; }
.create-account { color:#7cc8ff; border:1px solid rgba(105,189,255,.42); background:rgba(30,122,190,.08); }
.login-btn { color:#06111d; background:#69bdff; border:1px solid #69bdff; box-shadow:0 0 17px rgba(57,167,255,.18); }
.account-btn:hover { transform:translateY(-1px); box-shadow:0 0 20px rgba(57,167,255,.22); }
.account-shell { min-height:calc(100vh - 86px); display:grid; place-items:start center; padding:80px 5vw; }
.account-card { width:min(720px,100%); padding:42px; background:rgba(9,16,25,.82); border:1px solid rgba(105,189,255,.18); border-radius:22px; box-shadow:0 26px 70px rgba(0,0,0,.36); }
.account-card h1 { font-size:clamp(1.8rem,4vw,3.3rem); }
.account-form { display:grid; gap:17px; margin-top:30px; }
.account-form input { width:100%; border:1px solid rgba(255,255,255,.13); background:rgba(255,255,255,.04); color:#fff; border-radius:12px; padding:14px 15px; font:inherit; }
.account-form input:focus { outline:1px solid var(--blue); box-shadow:0 0 0 4px rgba(57,167,255,.08); }
.account-form label { display:block; margin-bottom:8px; font-size:.8rem; color:#c7d7e6; }
.profile-lead,.application-empty p { color:var(--muted); line-height:1.7; }
.wide-account { width:min(900px,100%); }
.application-empty { margin-top:30px; border:1px dashed rgba(105,189,255,.2); border-radius:16px; padding:42px; text-align:center; background:rgba(255,255,255,.018); }
.application-empty > span { font-size:2rem; color:#69bdff; }
.application-empty h2 { font-family:Orbitron,Inter,sans-serif; color:#d7efff; margin:12px 0; }
.inline-action { display:inline-flex; margin-top:15px; }

@media (max-width: 980px) {
  .site-header { align-items:flex-start; }
  .header-right { flex-direction:column; align-items:flex-end; gap:10px; }
  .nav { flex-wrap:wrap; justify-content:flex-end; }
}
@media (max-width: 760px) {
  .site-header { flex-direction:column; align-items:stretch; gap:14px; }
  .header-right { width:100%; align-items:stretch; margin:0; }
  .nav { justify-content:flex-start; gap:14px 18px; }
  .profile-trigger,.nav a { font-size:.7rem; }
  .account-actions { width:100%; }
  .account-btn { flex:1; text-align:center; }
  .profile-dropdown { left:0; right:auto; }
  .account-card { padding:28px 22px; }
}


/* --- Latest navigation + Team + Gallery additions --- */
.site-header { gap: 18px; }
.header-right { gap: 14px; }
.nav { gap: 18px; }
.nav > a { white-space: nowrap; }
.team-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:34px; }
.team-card { padding:22px; border:1px solid rgba(105,189,255,.18); border-radius:16px; background:rgba(10,17,26,.7); }
.team-photo-placeholder { width:72px; height:72px; border-radius:50%; display:grid; place-items:center; border:1px dashed rgba(105,189,255,.45); color:#69bdff; font-size:1.5rem; margin-bottom:18px; }
.team-card h3 { margin:0 0 6px; color:#e8f6ff; font-family:Orbitron,Inter,sans-serif; font-size:.95rem; font-weight:500; }
.team-card .team-role { margin:0 0 12px !important; color:#71c2fb !important; font-size:.73rem !important; line-height:1.4 !important; }
.team-card .team-bio { margin:0 0 14px !important; font-size:.78rem !important; line-height:1.6 !important; }
.team-link { color:#7cc8ff; font-size:.75rem; }
.gallery-shell { width:min(1240px,92vw); margin:0 auto; padding:70px 0 90px; }
.gallery-intro { max-width:760px; margin-bottom:30px; }
.gallery-intro h1 { font-size:clamp(2.2rem,4.5vw,4.5rem); }
.gallery-intro > p:last-child { color:var(--muted); line-height:1.75; max-width:680px; }
.gallery-filters { display:flex; gap:9px; flex-wrap:wrap; margin:28px 0 24px; }
.gallery-filter { border:1px solid rgba(105,189,255,.25); background:rgba(30,122,190,.05); color:#9fcfec; padding:9px 15px; border-radius:999px; cursor:pointer; font-family:Orbitron,Inter,sans-serif; font-size:.68rem; letter-spacing:.04em; }
.gallery-filter:hover,.gallery-filter.active { color:#fff; border-color:rgba(105,189,255,.7); background:rgba(30,122,190,.22); }
.gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.gallery-card { border:1px solid rgba(105,189,255,.16); border-radius:16px; overflow:hidden; background:rgba(9,16,25,.8); }
.gallery-image-placeholder { aspect-ratio:4/3; display:grid; place-items:center; background:radial-gradient(circle at 50% 40%,rgba(41,132,204,.16),transparent 55%),linear-gradient(145deg,#0c1622,#070b10); color:#5aaee9; font-family:Orbitron,Inter,sans-serif; letter-spacing:.14em; font-size:.68rem; border-bottom:1px solid rgba(105,189,255,.12); }
.gallery-meta { padding:16px 17px 18px; }
.gallery-meta h2 { margin:0 0 6px; color:#e5f4ff; font-family:Orbitron,Inter,sans-serif; font-size:.9rem; font-weight:500; }
.gallery-meta span { color:#72899d; font-size:.69rem; }
.gallery-card[hidden] { display:none; }
@media (max-width:1100px){ .nav{gap:12px;} .account-btn{padding:8px 10px;} }
@media (max-width:900px){ .team-grid,.gallery-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:620px){ .team-grid,.gallery-grid{grid-template-columns:1fr;} .gallery-shell{width:90vw;padding-top:44px;} }

/* === Responsive navigation + mobile refinements (Vercel build) === */
.mobile-menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(105,189,255,.42);
  background: rgba(5,12,20,.72);
  color: #8bd0ff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 0;
}
.mobile-menu-toggle span {
  display:block;
  width:18px;
  height:1.5px;
  border-radius:999px;
  background:currentColor;
  transition:transform .2s ease,opacity .2s ease;
}
.site-header.menu-open .mobile-menu-toggle span:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
.site-header.menu-open .mobile-menu-toggle span:nth-child(2){opacity:0}
.site-header.menu-open .mobile-menu-toggle span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}

@media (max-width: 820px) {
  html,body{max-width:100%;overflow-x:hidden}
  body{-webkit-text-size-adjust:100%}

  .site-header,.solid-header{
    padding:15px 18px;
    flex-direction:row;
    align-items:center;
    gap:12px;
  }
  .site-header{
    position:absolute;
    top:0;left:0;right:0;
    background:linear-gradient(180deg,rgba(3,7,12,.82),rgba(3,7,12,.12));
  }
  .solid-header{
    position:sticky;
    background:rgba(5,8,13,.97);
  }
  .brand{font-size:.76rem;letter-spacing:.16em}
  .mobile-menu-toggle{display:inline-flex;margin-left:auto;flex:0 0 auto}

  .header-right{
    display:none;
    position:absolute;
    top:100%;left:0;right:0;
    width:100%;margin:0;
    padding:12px 16px 16px;
    background:rgba(5,9,15,.985);
    border-top:1px solid rgba(255,255,255,.06);
    border-bottom:1px solid rgba(105,189,255,.18);
    box-shadow:0 18px 40px rgba(0,0,0,.34);
    backdrop-filter:blur(16px);
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    z-index:50;
  }
  .site-header.menu-open .header-right{display:flex}
  .nav{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
  .nav>a,.profile-trigger{
    width:100%;min-height:42px;display:flex;align-items:center;
    padding:9px 11px;border-radius:9px;background:rgba(255,255,255,.025);
    border:1px solid rgba(255,255,255,.05);font-size:.65rem;
  }
  .profile-menu{width:100%;min-width:0}
  .profile-trigger{justify-content:flex-start}
  .profile-dropdown{position:static;width:100%;margin-top:7px;box-shadow:none;border-radius:10px}
  .account-actions{width:100%;gap:8px}
  .account-btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;font-size:.63rem;padding:9px 11px}

  /* Mobile home: render the hero artwork as a real image so it cannot disappear. */
  .hero{
    min-height:0;
    display:flex;
    flex-direction:column;
    background:#05080d;
  }
  .hero-media{
    position:relative;
    inset:auto;
    width:100%;
    margin-top:0;
    z-index:0;
    overflow:hidden;
    background:#05080d;
  }
  .hero-media img{
    width:100%;
    height:auto;
    aspect-ratio:1320 / 889;
    object-fit:contain;
    object-position:center;
  }
  .overlay{display:none;}
  .site-header{z-index:5;}
  .hero-content{
    min-height:0;
    display:block;
    padding:28px 20px 42px;
    background:linear-gradient(180deg,#05080d 0%,#070b11 100%);
  }
  .hero-copy{
    width:100%;max-width:560px;margin:0 auto;
    padding:0;
    border-radius:0;
    background:transparent;
    backdrop-filter:none;
  }
  .eyebrow{font-size:.58rem;margin:0 0 10px;letter-spacing:.14em}
  h1{font-size:clamp(1.9rem,7.2vw,2.35rem);line-height:1.08;max-width:12em}
  .subhead{margin:15px 0 24px;font-size:.91rem;line-height:1.55;max-width:31rem}
  .cta{
    width:auto;min-width:170px;min-height:48px;
    padding:13px 26px;font-size:.78rem;
    box-shadow:0 0 24px rgba(45,155,255,.20),inset 0 0 16px rgba(67,178,255,.10);
  }
  .scroll-cue{display:none}

  .section{padding:58px 20px}
  .section h2{font-size:clamp(1.45rem,6.7vw,2.05rem)}
  .section p:not(.section-label){font-size:.91rem;line-height:1.7}
  .footer{padding:22px 20px}

  .start-wrap{min-height:auto;padding:42px 18px 64px;display:block}
  .start-card{padding:26px 20px;width:100%}
  .starter-form .cta{width:100%}

  .career-shell{width:100%;padding:42px 18px 70px}
  .career-intro{margin-bottom:26px}
  .career-intro h1{font-size:clamp(1.85rem,8vw,2.5rem)}
  .career-grid{grid-template-columns:1fr;gap:14px}
  .search-panel,.results-panel,.resume-panel,.letter-panel,.apply-panel{grid-column:1}
  .career-panel{padding:20px 16px;border-radius:16px;min-width:0}
  .career-fields{grid-template-columns:1fr}
  .field-wide{grid-column:auto}
  .field-group input,.field-group select,textarea{font-size:16px}
  .job-card-top{align-items:flex-start;flex-wrap:wrap}
  .job-meta{gap:5px}
  .apply-action{width:100%;min-width:0}

  .account-shell{min-height:auto;padding:42px 18px 64px}
  .account-card,.wide-account{width:100%;padding:26px 20px;border-radius:16px}
  .application-empty{padding:28px 16px}

  .gallery-shell{width:100%;padding:42px 18px 70px}
  .gallery-intro h1{font-size:clamp(1.9rem,8vw,2.6rem)}
  .gallery-filters{gap:7px;margin:22px 0}
  .gallery-filter{min-height:42px;padding:8px 12px}
  .team-grid,.gallery-grid{grid-template-columns:1fr;gap:14px}
}

@media (max-width:430px){
  .nav{grid-template-columns:1fr}
  .site-header,.solid-header{padding-left:14px;padding-right:14px}
  .header-right{padding-left:14px;padding-right:14px}
  .hero-content{padding-left:18px;padding-right:18px;padding-bottom:38px}
  .account-actions{flex-direction:column}
  .account-btn{width:100%}
  .section{padding-left:18px;padding-right:18px}
  .career-shell,.gallery-shell,.account-shell{padding-left:14px;padding-right:14px}
  .career-panel{padding:18px 14px}
  .panel-heading{align-items:flex-start}
}
