/* ═══════════════════════════════════════════════════════════════
   ORBNET UI — shared design system (v6)
   Two themes: dark (default) and light, switched with
   <html data-theme="light">. The logo's orange is the only accent.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces */
  --bg: #0d0c0a;
  --bg-raise: #131210;
  --surface: #181613;
  --surface-2: #201d19;
  --surface-3: #2a2621;
  --surface-hover: #1c1a16;
  --line: rgba(255, 236, 210, 0.08);
  --line-strong: rgba(255, 236, 210, 0.16);
  --tint: rgba(255, 236, 210, 0.05);
  --tint-2: rgba(255, 236, 210, 0.08);
  --header-bg: rgba(13, 12, 10, 0.78);

  /* Text */
  --text: #f4efe7;
  --text-2: #cfc7bb;
  --muted: #9b9387;
  --dim: #6f685e;

  /* Brand: fill colour comes from the logo swoosh; text colour is tuned per theme */
  --brand: #f7a334;
  --brand-hover: #ffbb55;
  --brand-text: #f7a334;
  --brand-ink: #1b1306;
  --brand-soft: rgba(247, 163, 52, 0.12);
  --brand-line: rgba(247, 163, 52, 0.32);

  /* Status */
  --ok: #4cc38a;
  --ok-soft: rgba(76, 195, 138, 0.12);
  --warn: #f2c94c;
  --warn-soft: rgba(242, 201, 76, 0.12);
  --bad: #f06a5e;
  --bad-soft: rgba(240, 106, 94, 0.12);
  --sky: #9cc2ff;
  --sky-soft: rgba(156, 194, 255, 0.1);

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Shape */
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grain: 0.035;

  --container: 1760px;
  --header-h: 64px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f2ec;
  --bg-raise: #efebe3;
  --surface: #fffdf9;
  --surface-2: #f4f0e9;
  --surface-3: #e8e2d8;
  --surface-hover: #fffaf2;
  --line: rgba(40, 30, 15, 0.1);
  --line-strong: rgba(40, 30, 15, 0.18);
  --tint: rgba(40, 30, 15, 0.04);
  --tint-2: rgba(40, 30, 15, 0.07);
  --header-bg: rgba(245, 242, 236, 0.85);

  --text: #1a1612;
  --text-2: #3f382f;
  --muted: #6c6459;
  --dim: #948b7f;

  --brand-hover: #f29318;
  --brand-text: #a85a00;
  --brand-soft: rgba(247, 163, 52, 0.16);
  --brand-line: rgba(200, 120, 20, 0.35);

  --ok: #1e7f52;
  --ok-soft: rgba(30, 127, 82, 0.1);
  --warn: #946200;
  --warn-soft: rgba(196, 140, 0, 0.12);
  --bad: #c0392b;
  --bad-soft: rgba(192, 57, 43, 0.09);
  --sky: #2a5db0;
  --sky-soft: rgba(42, 93, 176, 0.09);

  --shadow: 0 10px 30px -14px rgba(60, 40, 10, 0.25);
  --shadow-lg: 0 30px 70px -30px rgba(60, 40, 10, 0.35);
  --grain: 0.02;

  color-scheme: light;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 36px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
  transition: background-color 0.25s, color 0.25s;
}
/* Subtle paper grain keeps large flat areas from looking digital */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Component display rules (e.g. .btn's inline-flex) must never un-hide [hidden] elements */
[hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ── Layout ────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px); }
.container-narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 560px; margin-top: 10px; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.eyebrow { display: inline-block; font-size: 0.9rem; font-weight: 600; color: var(--brand-text); margin-bottom: 10px; }
.text-muted { color: var(--muted); }
.text-brand { color: var(--brand-text); }
.grid { display: grid; gap: 20px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--tint); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn.is-active { color: var(--brand-text); border-color: var(--brand-line); background: var(--brand-soft); }

/* ── Header: floating bar ──────────────────────────────── */
:root { --hl: rgba(255, 255, 255, 0.06); }
:root[data-theme="light"] { --hl: rgba(255, 255, 255, 0.9); }
.site-header {
  position: sticky; top: 12px; z-index: 100;
  width: min(var(--container), calc(100% - 32px));
  margin: 12px auto 0;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 var(--hl), 0 10px 30px -22px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s var(--ease), box-shadow 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: inset 0 1px 0 var(--hl), 0 18px 44px -22px rgba(0, 0, 0, 0.6); }
.site-header.is-tucked { transform: translateY(calc(-100% - 20px)); }
.header-row { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 10px 0 18px; }
.brand { display: inline-flex; align-items: center; justify-self: start; transition: opacity 0.2s; }
.brand:hover { opacity: 0.8; }
.brand img, .footer-brand img { height: 28px; width: auto; }
/* Logo has a white-text and a dark-text version; show the one that suits the theme */
.logo-for-light { display: none !important; }
:root[data-theme="light"] .logo-for-dark { display: none !important; }
:root[data-theme="light"] .logo-for-light { display: block !important; }

/* Scroll progress along the bottom edge of the bar */
.nav-progress {
  position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand) 30%, var(--brand-hover));
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* Links: a soft pill slides to whatever you point at and rests on the current page */
.nav { position: relative; }
.nav-list { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-glider {
  position: absolute; top: 50%; left: 0; height: 36px; width: var(--w, 0);
  transform: translate(var(--x, 0), -50%);
  border-radius: 10px; background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0; pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.5, 1), width 0.4s cubic-bezier(0.34, 1.3, 0.5, 1), opacity 0.25s;
}
.nav-glider::after {
  content: ''; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 2px; margin-left: -8px;
  border-radius: 2px; background: var(--brand);
}
.nav-glider.show { opacity: 1; }
.nav-item { position: relative; }
.nav-link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 13px; border: 0; background: none; border-radius: 10px;
  color: var(--text-2); font-size: 0.93rem; font-weight: 500; white-space: nowrap;
  transition: color 0.2s;
}
.nav-link i { font-size: 0.6rem; color: var(--dim); transition: transform 0.3s var(--ease), color 0.2s; }
.nav-link:hover, .nav-item.open > .nav-link, .nav-item.is-current > .nav-link { color: var(--text); }
.nav-item.open > .nav-link i { transform: rotate(180deg); color: var(--brand-text); }

/* Dropdowns grow down from their link; items arrive one after another */
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; z-index: 120;
  min-width: 240px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: inset 0 1px 0 var(--hl), var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px) scale(0.97); transform-origin: top center;
  transition: opacity 0.2s, transform 0.3s var(--ease), visibility 0.2s;
}
.nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.nav-menu::after {
  content: ''; position: absolute; top: -6px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px;
  background: var(--surface); border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong);
  border-radius: 3px 0 0 0; transform: rotate(45deg);
}
.nav-item.open > .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.nav-menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-size: 0.92rem; white-space: nowrap;
  opacity: 0; transform: translateY(4px); transition: opacity 0.25s, transform 0.3s var(--ease), background 0.15s, color 0.15s;
}
.nav-item.open > .nav-menu a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 25ms); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--surface-2); color: var(--text); outline: none; transition-delay: 0s; }
.nav-menu a i { width: 18px; text-align: center; color: var(--brand-text); font-size: 0.85rem; transition: transform 0.25s var(--ease); }
.nav-menu a:hover i { transform: translateX(2px); }
.nav-menu-wide { display: grid; grid-template-columns: auto 236px; gap: 6px; padding: 12px; }
.nav-menu-col { display: flex; flex-direction: column; }
.nav-menu-col + .nav-menu-col { border-left: 1px solid var(--line); padding-left: 6px; }
.nav-menu-title { display: block; padding: 4px 12px 6px; font-size: 0.76rem; font-weight: 600; color: var(--dim); letter-spacing: 0.02em; }

/* Safety note at the bottom of the Internships menu */
.nav-menu a.nav-feature {
  display: block; margin: auto 0 0; padding: 12px; white-space: normal;
  border-radius: 12px; border: 1px solid var(--brand-line); background: var(--brand-soft);
}
.nav-menu a.nav-feature:hover { background: var(--brand-soft); border-color: var(--brand); }
.nav-feature b { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 0.88rem; font-weight: 600; }
.nav-feature b i { width: auto; }
.nav-feature span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }

/* About menu: icon, title and a one-line description per item */
.nav-menu-rich { min-width: 340px; }
.nav-menu-rich a { align-items: center; gap: 12px; padding: 9px 10px; white-space: normal; }
.nav-menu-rich a > i {
  width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 0.85rem;
  transition: background 0.2s, border-color 0.2s;
}
.nav-menu-rich a:hover > i { transform: none; background: var(--brand-soft); border-color: var(--brand-line); }
.nav-menu-rich b { display: block; color: var(--text); font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.nav-menu-rich small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.35; margin-top: 1px; }

/* Right side */
.header-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.nav-search {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 7px 0 12px; margin-right: 4px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--tint);
  color: var(--muted); font-size: 0.88rem; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-search:hover { color: var(--text); border-color: var(--line-strong); background: var(--tint-2); }
.nav-search i { font-size: 0.82rem; }
.nav-search span { padding-right: 18px; }
kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  font-family: var(--font-mono); font-size: 0.72rem; line-height: 1; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px;
}
.theme-toggle {
  width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--text-2);
  display: inline-grid; place-items: center; transition: background 0.15s, color 0.15s;
}
.theme-toggle:hover { background: var(--tint); color: var(--text); }
.theme-toggle i { transition: transform 0.5s var(--ease); }
.theme-toggle:hover i { transform: rotate(25deg); }
.theme-toggle.spin i { animation: theme-spin 0.6s var(--ease); }
@keyframes theme-spin { from { transform: rotate(-180deg) scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: inline-block; }
.auth { display: flex; align-items: center; gap: 6px; }
.auth-link { display: inline-flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-size: 0.93rem; font-weight: 500; transition: color 0.15s, background 0.15s; }
.auth-link:hover { color: var(--text); background: var(--tint); }
.auth .btn-sm { height: 38px; padding: 0 16px; border-radius: 11px; }
.btn-arrow i { font-size: 0.78em; transition: transform 0.25s var(--ease); }
.btn-arrow:hover i { transform: translateX(3px); }
.nav-toggle { display: none; }

/* Profile menu */
.profile { position: relative; margin-left: 4px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 700; font-size: 0.92rem; border: 2px solid var(--surface-3);
  transition: border-color 0.2s;
}
.profile > button:hover .avatar { border-color: var(--brand-line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile > button { background: none; border: 0; padding: 0; border-radius: 50%; }
.menu {
  position: absolute; right: 0; top: calc(100% + 14px); width: 250px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: inset 0 1px 0 var(--hl), var(--shadow-lg); padding: 6px; display: none; z-index: 120;
}
.menu.open { display: block; animation: pop 0.2s var(--ease); }
.menu-head { padding: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head strong { display: block; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-head span { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  background: none; border: 0; border-radius: var(--r-sm); font-size: 0.9rem; color: var(--text-2); text-align: left;
}
.menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--text); }
.menu .danger { color: var(--bad); }
.menu i { width: 16px; text-align: center; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ── Phone menu: full-screen sheet that grows from the menu button ── */
.mnav {
  position: fixed; inset: 0; z-index: 95;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: calc(var(--header-h) + 36px) 24px 28px;
  background: var(--bg); overflow-y: auto;
  clip-path: circle(0 at var(--ox, 100%) var(--oy, 0));
  visibility: hidden;
  transition: clip-path 0.55s var(--ease), visibility 0s linear 0.55s;
}
.mnav.open { clip-path: circle(150vmax at var(--ox, 100%) var(--oy, 0)); visibility: visible; transition: clip-path 0.6s var(--ease), visibility 0s; }
.mnav-search {
  display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; margin-bottom: 10px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong);
  opacity: 0; transform: translateY(18px); transition: opacity 0.3s, transform 0.4s var(--ease), border-color 0.2s;
}
.mnav.open .mnav-search { opacity: 1; transform: none; transition-delay: 0.08s; }
.mnav-search:focus-within { border-color: var(--brand); }
.mnav-search i { color: var(--dim); }
.mnav-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 1rem; }
.mnav-search input::placeholder { color: var(--dim); }
.mnav-list li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(18px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.mnav.open .mnav-list li { opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i, 0) * 0.05s); }
.mnav-list > li > a, .mnav-list > li > button {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  padding: 16px 2px; border: 0; background: none; text-align: left;
  font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text);
}
.mnav-list > li.is-current > a, .mnav-list > li.is-current > button { color: var(--brand-text); }
.mnav-list button i { font-size: 1rem; color: var(--dim); transition: transform 0.3s var(--ease); }
.mnav-list li.open button i { transform: rotate(45deg); color: var(--brand-text); }
.mnav-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.mnav-sub > div { min-height: 0; overflow: hidden; }
.mnav-list li.open .mnav-sub { grid-template-rows: 1fr; }
.mnav-sub a { display: block; padding: 8px 2px; color: var(--text-2); font-size: 1.02rem; }
.mnav-sub a:last-child { padding-bottom: 18px; }
.mnav-foot { display: grid; gap: 10px; opacity: 0; transform: translateY(18px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.mnav.open .mnav-foot { opacity: 1; transform: none; transition-delay: 0.45s; }
.mnav-user { display: flex; align-items: center; gap: 12px; padding: 4px 2px 8px; }
.mnav-user strong { display: block; }
.mnav-user span { color: var(--muted); font-size: 0.85rem; }

@media (max-width: 1280px) {
  .nav-search { width: 38px; padding: 0; justify-content: center; margin-right: 0; border-color: transparent; background: none; }
  .nav-search span, .nav-search kbd { display: none; }
}
@media (max-width: 1020px) {
  .site-header { top: 10px; margin-top: 10px; width: calc(100% - 20px); border-radius: 16px; }
  .header-row { display: flex; gap: 4px; padding: 0 6px 0 14px; }
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .auth.is-guest { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 42px; height: 42px; margin-left: 2px; border: 0; border-radius: 11px; background: var(--tint);
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.35s var(--ease); }
  .site-header.menu-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .site-header.menu-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-header.menu-open { transform: none; }
}
html.nav-locked, html.search-locked { overflow: hidden; }
html.nav-locked .orbo, html.search-locked .orbo { display: none; }

/* ── Search overlay (header button, "/" or Ctrl+K) ─────── */
.search-overlay {
  position: fixed; inset: 0; z-index: 300; display: flex; justify-content: center; align-items: flex-start;
  padding: min(14vh, 120px) 16px 16px; visibility: hidden; transition: visibility 0s linear 0.25s;
}
.search-overlay.open { visibility: visible; transition: visibility 0s; }
.search-backdrop {
  position: absolute; inset: 0; background: rgba(8, 7, 6, 0.74);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s;
}
:root[data-theme="light"] .search-backdrop { background: rgba(40, 30, 15, 0.28); }
.search-overlay.open .search-backdrop { opacity: 1; }
.search-panel {
  position: relative; width: min(640px, 100%); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: inset 0 1px 0 var(--hl), var(--shadow-lg);
  opacity: 0; transform: translateY(-10px) scale(0.98); transition: opacity 0.2s, transform 0.3s var(--ease);
}
.search-overlay.open .search-panel { opacity: 1; transform: none; }
.search-form { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--line); }
.search-form > i { color: var(--brand-text); }
.search-form input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 1.05rem; }
.search-form input::placeholder { color: var(--dim); }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form button { border: 0; background: none; padding: 0; }
.search-body { display: grid; gap: 8px; padding: 14px 12px 16px; }
.search-title { padding: 4px 8px 0; font-size: 0.76rem; font-weight: 600; color: var(--dim); letter-spacing: 0.02em; }
.search-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.search-links a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--text-2); font-size: 0.93rem; transition: background 0.15s, color 0.15s; }
.search-links a i {
  width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--brand-text); font-size: 0.82rem; transition: background 0.2s, border-color 0.2s;
}
.search-links a:hover, .search-links a:focus-visible { background: var(--surface-2); color: var(--text); outline: none; }
.search-links a:hover i, .search-links a:focus-visible i { background: var(--brand-soft); border-color: var(--brand-line); }
.search-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px 0; }
.search-chips a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.85rem; color: var(--text-2); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.search-chips a:hover, .search-chips a:focus-visible { border-color: var(--brand-line); background: var(--brand-soft); color: var(--text); outline: none; }
.search-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--bg-raise); font-size: 0.78rem; color: var(--dim); }
.search-foot span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) {
  .search-overlay { padding-top: 12px; }
  .search-links { grid-template-columns: 1fr; }
  .search-foot { display: none; }
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raise); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 340px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 14px; letter-spacing: 0; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--brand-text); }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--text-2); transition: color 0.2s, border-color 0.2s; }
.socials a:hover { color: var(--brand-text); border-color: var(--brand-line); }
.footer-note { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 0.82rem; }
.footer-note p { max-width: 720px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ── Cards & chips ─────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color 0.25s, background 0.25s;
}
.card:hover { border-color: var(--line-strong); }
.card-pad { padding: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: 0.76rem; font-weight: 500; white-space: nowrap;
  background: var(--tint); border: 1px solid var(--line); color: var(--text-2);
}
.chip-brand { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-text); }
.chip-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.chip-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.chip-bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.chip-sky { background: var(--sky-soft); border-color: transparent; color: var(--sky); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Filter pills (toggle buttons) */
.pill {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text-2); font-size: 0.88rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.pill:hover { color: var(--text); background: var(--tint); }
.pill[aria-pressed="true"], .pill.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.tab { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: none; color: var(--muted); font-weight: 500; font-size: 0.9rem; transition: all 0.2s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ── Forms ─────────────────────────────────────────────── */
.field { display: grid; gap: 8px; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 16px; border-radius: var(--r-sm);
  background: var(--bg-raise); border: 1px solid var(--line-strong); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
:root[data-theme="light"] .input, :root[data-theme="light"] .select, :root[data-theme="light"] .textarea { background: var(--surface); }
.textarea { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; }
.select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%239b9387' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select option { background: var(--surface); color: var(--text); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input.is-invalid { border-color: var(--bad); }
.hint { font-size: 0.8rem; color: var(--bad); min-height: 1em; }
.alert { padding: 12px 14px; border-radius: var(--r-sm); font-size: 0.9rem; display: none; }
.alert.show { display: block; }
.alert-error { background: var(--bad-soft); border: 1px solid var(--bad-soft); color: var(--bad); }
.alert-ok { background: var(--ok-soft); border: 1px solid var(--ok-soft); color: var(--ok); }
.alert-info { background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-text); }

/* ── Job card (shared by home, explore, dashboard) ─────── */
.job-card {
  position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px;
  padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color 0.25s, background 0.25s;
  cursor: pointer; text-align: left; width: 100%; color: inherit;
}
.job-card:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.logo-box {
  width: 48px; height: 48px; border-radius: 12px; background: #fff; display: grid; place-items: center;
  overflow: hidden; flex-shrink: 0; border: 1px solid var(--line);
}
.logo-box img { width: 30px; height: 30px; object-fit: contain; }
.logo-box.letter { background: var(--surface-3); color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.job-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.job-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-company { color: var(--text-2); font-size: 0.88rem; margin-top: 2px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; color: var(--muted); font-size: 0.82rem; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta i { font-size: 0.75rem; color: var(--dim); }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.job-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.job-foot .when { color: var(--dim); font-size: 0.8rem; }
.job-actions { display: flex; gap: 8px; align-items: center; }

/* Skeletons */
.skeleton { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.skeleton::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--tint-2), transparent);
  animation: shimmer 1.4s infinite;
}
.sk-line { height: 12px; border-radius: 6px; background: var(--surface-3); margin: 10px 0; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Empty / status */
.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--muted); }
.empty i { font-size: 1.6rem; color: var(--dim); margin-bottom: 12px; display: block; }
.empty h3 { font-family: var(--font-body); font-size: 1.05rem; color: var(--text); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* Toast */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow-lg); animation: toastIn 0.3s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Server waking banner (Render free tier cold starts) */
.waking { display: none; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r); background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-text); font-size: 0.9rem; margin-bottom: 16px; }
.waking.show { display: flex; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal / drawer ────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 150; background: rgba(5, 4, 3, 0.6); backdrop-filter: blur(4px); display: none; align-items: flex-end; justify-content: center; }
.overlay.open { display: flex; animation: fade 0.2s; }
.sheet {
  width: min(720px, 100%); max-height: min(88vh, 900px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-lg); animation: rise 0.35s var(--ease);
}
@media (min-width: 760px) { .overlay { align-items: center; padding: 24px; } .sheet { border-radius: var(--r-xl); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* ── Scroll animations ─────────────────────────────────── */
/* Added by site.js only when motion is allowed, so content is never hidden without JS */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.split.in .w > span { transform: none; }
/* Lists that arrive from the API slide in, a few at a time */
.jobs-grid > *, .x-list > .job-card, .o-grid > *, .cards > .job-card, .co-grid > * { animation: rise-in 0.55s var(--ease) both; }
.jobs-grid > :nth-child(2), .x-list > :nth-child(2), .o-grid > :nth-child(2), .cards > :nth-child(2), .co-grid > :nth-child(2) { animation-delay: 50ms; }
.jobs-grid > :nth-child(3), .x-list > :nth-child(3), .o-grid > :nth-child(3), .cards > :nth-child(3), .co-grid > :nth-child(3) { animation-delay: 100ms; }
.jobs-grid > :nth-child(4), .x-list > :nth-child(4), .o-grid > :nth-child(4), .cards > :nth-child(4), .co-grid > :nth-child(4) { animation-delay: 150ms; }
.jobs-grid > :nth-child(n+5), .x-list > :nth-child(n+5), .o-grid > :nth-child(n+5), .cards > :nth-child(n+5), .co-grid > :nth-child(n+5) { animation-delay: 200ms; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Prose (legal pages, guides) ───────────────────────── */
.page-hero { padding: 64px 0 36px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.page-hero p { color: var(--muted); margin-top: 14px; max-width: 640px; font-size: 1.05rem; }
.prose { color: var(--text-2); font-size: 1.02rem; line-height: 1.8; }
.prose h2 { font-size: 1.5rem; color: var(--text); margin: 48px 0 14px; }
.prose h3 { font-family: var(--font-body); font-size: 1.1rem; color: var(--text); margin: 28px 0 10px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-line); }
.prose a:hover { text-decoration-color: var(--brand-text); }
.prose strong { color: var(--text); }
.prose blockquote { margin: 20px 0; padding: 14px 20px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text); }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }

/* ── Ambient background: fine grid, slow glow, cursor light ── */
/* Markup: <div class="fx" aria-hidden="true"> with .fx-grid, .fx-grid.hi, .fx-glow.a/.b and .fx-dots inside.
   site.js moves --mx/--my with the pointer so the grid lights up around it. */
:root { --fx-line: rgba(255, 236, 210, 0.06); --fx-hi: rgba(247, 163, 52, 0.75); --fx-glow: 0.55; }
:root[data-theme="light"] { --fx-line: rgba(40, 30, 15, 0.075); --fx-hi: rgba(214, 120, 10, 0.7); --fx-glow: 0.4; }
.fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; --mx: 50%; --my: 30%; --cell: 56px; }
.fx-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--fx-line) 1px, transparent 1px), linear-gradient(90deg, var(--fx-line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); background-position: center 0;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 30%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 30%, #000 25%, transparent 78%);
}
.fx-grid.hi {
  background-image: linear-gradient(var(--fx-hi) 1px, transparent 1px), linear-gradient(90deg, var(--fx-hi) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000, transparent 72%);
  mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000, transparent 72%);
  opacity: 0; transition: opacity 0.5s;
}
.fx.on .fx-grid.hi { opacity: 0.6; }
.fx-glow { position: absolute; border-radius: 50%; opacity: var(--fx-glow); will-change: transform; }
.fx-glow.a { width: 640px; height: 640px; right: 4%; top: -280px; background: radial-gradient(circle, rgba(247, 163, 52, 0.5), transparent 64%); animation: fx-a 16s ease-in-out infinite alternate; }
.fx-glow.b { width: 520px; height: 520px; left: -6%; top: 22%; background: radial-gradient(circle, rgba(232, 108, 46, 0.32), transparent 64%); animation: fx-b 21s ease-in-out infinite alternate; }
@keyframes fx-a { to { transform: translate(-160px, 100px) scale(1.12); } }
@keyframes fx-b { to { transform: translate(180px, -60px) scale(0.9); } }
/* A few grid crossings light up now and then */
.fx-dots i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  left: calc(50% - var(--cell) / 2 + var(--x) * var(--cell) - 2px); top: calc(var(--y) * var(--cell) - 2px);
  background: var(--brand); box-shadow: 0 0 14px 3px rgba(247, 163, 52, 0.55);
  opacity: 0; animation: fx-ping 7s ease-in-out infinite; animation-delay: calc(var(--d) * 1s);
}
@keyframes fx-ping { 0%, 100% { opacity: 0; transform: scale(0.4); } 10% { opacity: 1; transform: scale(1); } 28% { opacity: 0; transform: scale(0.4); } }
.fx.idle .fx-glow, .fx.idle .fx-dots i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .fx-glow, .fx-dots i { animation: none; } }

/* ── Utilities ─────────────────────────────────────────── */
.flex { display: flex; }
.center { display: grid; place-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.wrap { flex-wrap: wrap; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .job-card { grid-template-columns: 40px 1fr; gap: 12px; padding: 16px; }
  .logo-box { width: 40px; height: 40px; border-radius: 10px; }
  .logo-box img { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .split .w > span { opacity: 1; transform: none; }
}


/* "Use in Claude" entry in the navigation */
.nav-link-ai { color: var(--text); background: var(--brand-soft); border: 1px solid rgba(247, 163, 52, 0.28); padding: 0 12px; margin-left: 4px; gap: 7px; }
.nav-link-ai:hover { background: rgba(247, 163, 52, 0.2); }
.nav-ai-short { display: none; }
.nav-new, .mnav-new { display: inline-block; padding: 2px 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2; vertical-align: middle; }
.mnav-new { margin-left: 8px; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.06em; vertical-align: 6px; }
.auth-link { white-space: nowrap; }
/* The pill shrinks in steps so the header never wraps or overflows on smaller laptops */
@media (max-width: 1520px) { .nav-new { display: none; } }
@media (max-width: 1360px) { .nav-ai-long { display: none; } .nav-ai-short { display: inline; } }
@media (max-width: 1200px) { .nav-item[data-nav="claude"] { display: none; } } /* the About menu carries the link on small laptops */
