@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #07080b;
  --panel: #0d0f14;
  --panel-2: #141720;
  --border: #1d212b;
  --text: #eceef3;
  --muted: #8b91a1;
  --accent: #4a7bff;
  --accent-hover: #3a64d6;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 40px; position: sticky; top: 0; z-index: 20;
  background: rgba(7,8,11,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none; }
.nav-brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 13.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--border); white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--text); border-color: var(--text); color: #07080b; }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); border-color: #2b3040; }
.btn-lg { padding: 14px 24px; font-size: 14px; }
@media (max-width: 900px) {
  .nav { padding: 12px 20px; }
  .nav-links { order: 3; width: 100%; gap: 20px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav-links a { white-space: nowrap; }
  .nav-actions .btn-ghost { display: none; }
}

/* Generic type + page */
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; margin-bottom: 14px; }
.page { max-width: 1120px; margin: 0 auto; padding: 72px 40px 110px; }
.page-header { margin-bottom: 44px; }
.page-header h1 { font-size: 46px; line-height: 1.05; letter-spacing: -1.2px; margin: 0 0 14px; font-weight: 800; }
.page-header p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 600px; margin: 0; }
@media (max-width: 700px) { .page { padding: 48px 20px 80px; } .page-header h1 { font-size: 34px; } }
.rail-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 3px rgba(62,207,110,.15); }

/* Department cards */
.dp-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.dp-hero h1 { font-size: 64px; line-height: 1; letter-spacing: -2.4px; margin: 0 0 16px; font-weight: 800; }
.dp-hero h1 em { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -1.2px; color: #c9d6ff; }
.dp-hero p { color: var(--muted); font-size: 16.5px; line-height: 1.65; max-width: 520px; margin: 0; }
.dp-stats { display: flex; border: 1px solid var(--border); background: var(--panel); border-radius: 18px; overflow: hidden; }
.dp-stat { padding: 16px 26px; border-right: 1px solid var(--border); min-width: 110px; }
.dp-stat:last-child { border-right: none; }
.dp-stat .v { font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.dp-stat .k { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.dp-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.dp-chip { background: transparent; border: 1px solid var(--border); color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.dp-chip:hover { color: var(--text); border-color: #2b3040; }
.dp-chip.active { background: var(--text); border-color: var(--text); color: #07080b; }

.dept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .dept-grid { grid-template-columns: 1fr; } .dp-hero h1 { font-size: 42px; letter-spacing: -1.6px; } }
.dept-card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.dept-card.hide { display: none; }
.dept-card:hover { border-color: #33405f; transform: translateY(-4px); }
.dept-media { position: relative; height: 230px; background-size: cover; background-position: center; background-color: var(--panel-2); }
.dept-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,11,.05) 25%, rgba(13,15,20,1) 100%); }
.dept-media.placeholder { background-image: radial-gradient(circle at 20% 15%, rgba(74,123,255,.3), transparent 60%), repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px); }
.dept-media.tone-fire { background-image: radial-gradient(circle at 20% 15%, rgba(255,150,90,.22), transparent 60%), repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 14px); }
.dept-badge { position: absolute; left: 22px; top: 20px; z-index: 2; padding: 5px 12px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--text); border: 1px solid rgba(255,255,255,.18); background: rgba(7,8,11,.55); backdrop-filter: blur(4px); }
.dept-num { position: absolute; right: 22px; top: 20px; z-index: 2; font-size: 12px; letter-spacing: 1.5px; color: rgba(255,255,255,.55); }
.dept-card-title { position: absolute; left: 24px; right: 24px; bottom: 16px; z-index: 2; margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.7px; line-height: 1.1; }
.dept-media-icon { display: none; }
.dept-body { padding: 6px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.dept-card h3 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); margin: 20px 0 10px; font-weight: 700; }
.dept-card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0; }
.dept-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.dept-card li { font-size: 12.5px; font-weight: 500; color: #c3cadb; padding: 5px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); }
.dept-card .btn { margin-top: auto; align-self: flex-start; }
.dept-card .dept-foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dept-card .dept-foot .btn { margin-top: 0; }
.dept-card .dept-foot span { font-size: 12px; color: var(--muted); }

.dp-cta { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px 36px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(180deg, rgba(7,8,11,.55), rgba(7,8,11,.92)), url('/images/hero-bg.png') center/cover; }
.dp-cta h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.6px; }
.dp-cta h3 em { font-family: var(--serif); font-weight: 400; color: #c9d6ff; }
.dp-cta p { margin: 0; color: #aab0bf; font-size: 14.5px; line-height: 1.6; max-width: 440px; }

/* Forms */
.form-card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 34px; max-width: 640px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field .hint { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; line-height: 1.55; font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; color: var(--text); font-family: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,123,255,.16); }
.field textarea { min-height: 100px; resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.file-drop { border: 1px dashed #2b3040; border-radius: 10px; padding: 20px; text-align: center; cursor: pointer; background: var(--bg); transition: border-color .15s; }
.file-drop:hover { border-color: var(--accent); }
.file-drop input { display: none; }
.file-drop .file-drop-label { font-size: 13px; color: var(--muted); }
.file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.file-item { display: flex; align-items: center; justify-content: space-between; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 11px; font-size: 12px; }
.file-item button { background: none; border: none; color: #f06b6b; cursor: pointer; font-size: 12px; font-weight: 700; }
.form-msg { font-size: 14px; margin-top: 16px; display: none; }
.form-msg.success { color: #3ecf6e; }
.form-msg.error { color: #f06b6b; }

/* Legal */
.legal { max-width: 720px; }
.legal h2 { font-size: 18px; margin: 34px 0 10px; letter-spacing: -.2px; }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.legal ul { padding-left: 20px; }

/* Leadership */
.lead-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.lead-hero h1 { font-size: 64px; line-height: 1; letter-spacing: -2.4px; margin: 0 0 16px; font-weight: 800; }
.lead-hero h1 em { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -1.2px; color: #c9d6ff; }
.lead-hero p { color: var(--muted); font-size: 16.5px; line-height: 1.65; max-width: 520px; margin: 0; }
.lead-stats { display: flex; border: 1px solid var(--border); background: var(--panel); border-radius: 18px; overflow: hidden; }
.lead-stat { padding: 16px 26px; border-right: 1px solid var(--border); min-width: 110px; }
.lead-stat:last-child { border-right: none; }
.lead-stat .v { font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.lead-stat .k { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.lead-group { margin-bottom: 56px; }
.lead-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.lead-group-head h2 { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; color: var(--muted); }
.lead-group-count { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel-2); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; }

.lead-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.lead-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-height: 220px; padding: 26px; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: border-color .2s, transform .2s; }
.lead-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0% 0%, rgba(74,123,255,.16), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.lead-card:hover { border-color: #33405f; transform: translateY(-4px); }
.lead-card:hover::before { opacity: 1; }
.lead-card > * { position: relative; }
.lead-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--panel-2); border: 1px solid var(--border); box-shadow: 0 0 0 4px var(--panel); }
.lead-avatar-fallback { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px; color: var(--muted); }
.lead-info { min-width: 0; margin-top: auto; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.lead-role { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }
.lead-name { font-size: 20px; font-weight: 800; letter-spacing: -.4px; overflow-wrap: anywhere; line-height: 1.2; }
.lead-email { align-self: flex-start; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; overflow-wrap: anywhere; transition: background .15s, border-color .15s; }
.lead-email:hover { background: var(--panel-2); border-color: #2b3040; }

/* compact variant for the second tier */
.lead-group.compact .lead-card { flex-direction: row; align-items: center; min-height: 0; padding: 18px 20px; gap: 16px; border-radius: 16px; }
.lead-group.compact .lead-avatar { width: 52px; height: 52px; box-shadow: none; font-size: 20px; }
.lead-group.compact .lead-info { margin-top: 0; }
.lead-group.compact .lead-name { font-size: 16px; }
.lead-group.compact .lead-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.lead-skeleton { height: 220px; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%) 0 0/200% 100%; animation: leadshine 1.4s linear infinite; }
@keyframes leadshine { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .lead-skeleton { animation: none; } }
.lead-empty, .lead-error { color: var(--muted); font-size: 14px; }
.lead-error { color: #f87171; margin-bottom: 20px; padding: 12px 16px; border: 1px solid rgba(248,113,113,.3); background: rgba(248,113,113,.07); border-radius: 12px; }
.lead-note { border: 1px dashed #2b3040; border-radius: 18px; padding: 36px 20px; text-align: center; background: var(--panel); color: var(--muted); font-size: 14px; }
.lead-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px 36px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(180deg, rgba(7,8,11,.55), rgba(7,8,11,.92)), url('/images/hero-bg.png') center/cover; }
.lead-cta h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.6px; }
.lead-cta h3 em { font-family: var(--serif); font-weight: 400; color: #c9d6ff; }
.lead-cta p { margin: 0; color: #aab0bf; font-size: 14.5px; line-height: 1.6; max-width: 440px; }
@media (max-width: 700px) { .lead-hero h1 { font-size: 42px; letter-spacing: -1.6px; } .lead-cta { padding: 26px 22px; } }

/* Empty state */
.empty-state { border: 1px dashed #2b3040; border-radius: 18px; padding: 72px 24px; text-align: center; background: var(--panel); }
.empty-state h3 { font-size: 22px; margin: 0 0 8px; letter-spacing: -.3px; }
.empty-state p { color: var(--muted); font-size: 14.5px; margin: 0 auto 24px; max-width: 420px; line-height: 1.6; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 40px 36px; text-align: center; margin-top: 40px; }
.footer-actions { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 12px; opacity: .8; }

/* Gallery */
.gallery-grid { column-count: 3; column-gap: 18px; }
.gallery-item { break-inside: avoid; margin: 0 0 18px; border: 1px solid #2b3040; border-radius: 14px; overflow: hidden; background: var(--panel); cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.gallery-item:hover { transform: translateY(-2px); border-color: #3a4156; }
.gallery-item img { display: block; width: 100%; height: auto; }
.gallery-item figcaption { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.gallery-item figcaption strong { color: #fff; font-size: 14px; }
.gallery-item figcaption:empty { display: none; }
@media (max-width: 900px) { .gallery-grid { column-count: 2; } }
@media (max-width: 560px) { .gallery-grid { column-count: 1; } }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.88); align-items: center; justify-content: center; flex-direction: column; gap: 14px; padding: 32px; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 10px; }
.lightbox-caption { color: #d6d9e0; font-size: 14.5px; max-width: 720px; text-align: center; }
.lightbox-close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; line-height: 1; }

.gallery-emoji { height: 1.2em; width: 1.2em; vertical-align: -0.2em; display: inline; }
.gallery-item figcaption .gallery-emoji { width: 1.2em; }

/* Applications (scoped so appeal/partnership forms keep their own look) */
.apps-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.apps-side { position: sticky; top: 96px; }
.apps-side h1 { font-size: 54px; line-height: 1; letter-spacing: -2px; margin: 0 0 16px; font-weight: 800; }
.apps-side h1 em { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -1px; color: #c9d6ff; }
.apps-side .lead-text { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0 0 26px; }
.apps-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--border); background: var(--panel); border-radius: 16px; font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-bottom: 30px; }
.apps-note .rail-dot { margin-top: 6px; flex-shrink: 0; background: var(--accent); box-shadow: 0 0 0 3px rgba(74,123,255,.18); }
.apps-note b { color: var(--text); font-weight: 600; }
.apps-roles { border-top: 1px solid var(--border); }
.apps-role { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.apps-role .n { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 1px; padding-top: 3px; }
.apps-role h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.2px; }
.apps-role p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.apps-form { background: var(--panel); border: 1px solid var(--border); border-radius: 24px; padding: 8px 36px 36px; }
.apps-section { padding: 28px 0 6px; }
.apps-section + .apps-section { border-top: 1px solid var(--border); margin-top: 8px; }
.apps-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.apps-section-head .marker { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.apps-section-head h2 { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.apps-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apps-form .field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%238b91a1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.apps-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border); margin-top: 8px; }
.apps-submit .small { color: var(--muted); font-size: 12.5px; line-height: 1.5; max-width: 260px; }
.apps-form .form-msg { margin-top: 18px; }
@media (max-width: 960px) {
  .apps-layout { grid-template-columns: 1fr; gap: 36px; }
  .apps-side { position: static; }
  .apps-side h1 { font-size: 40px; letter-spacing: -1.5px; }
}
@media (max-width: 560px) { .apps-form { padding: 4px 20px 24px; } .apps-form .field-row { grid-template-columns: 1fr; gap: 0; } }
