/* NOTED – cinematic theme (black, bold red, big condensed type) */
:root {
  --bg: #060606;
  --surface: #0f0f10;
  --surface-2: #17171a;
  --text: #f5f5f5;
  --muted: #9a9aa0;
  --border: #232327;
  --primary: #e50914;
  --primary-hover: #ff1f2b;
  --primary-soft: rgba(229, 9, 20, .14);
  --accent: #ff3b47;
  --new: #2ee07a;
  --new-soft: rgba(46, 224, 122, .12);
  --danger: #ff4d4d;
  --shadow: 0 20px 60px rgba(0, 0, 0, .55);
  --radius: 14px;
  --display: "Anton", "Bebas Neue", Impact, sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-2: #ece8e1;
  --text: #0d0d0d;
  --muted: #5f5f66;
  --border: #ddd8cf;
  --primary: #d1000c;
  --primary-hover: #b0000a;
  --primary-soft: rgba(209, 0, 12, .09);
  --accent: #d1000c;
  --new: #0f9d4a;
  --new-soft: rgba(15, 157, 74, .1);
  --shadow: 0 20px 50px rgba(0, 0, 0, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5rem; }
h2 { font-family: var(--display); font-weight: 400; font-size: 2rem; letter-spacing: .02em; text-transform: uppercase; }
h3 { font-size: 1.05rem; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 16px; }
[hidden] { display: none !important; }
::selection { background: var(--primary); color: #fff; }

/* Film grain + vignette */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 100; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
:root[data-theme="light"] .grain { opacity: .04; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 6px;
  padding: 13px 22px; font: inherit; font-weight: 800; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 30px -10px rgba(229, 9, 20, .7); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 14px 40px -10px rgba(229, 9, 20, .9); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.icon-btn {
  background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; width: 38px; height: 38px; cursor: pointer; font-size: 1rem;
}
.icon-btn:hover { border-color: var(--primary); }
.link-btn { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo, .footer-logo { font-family: var(--display); font-size: 1.6rem; letter-spacing: .03em; line-height: 1; white-space: nowrap; }
.logo span, .footer-logo span { color: var(--muted); }
.logo i, .footer-logo i { color: var(--primary); font-style: normal; }
.header-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--primary), transparent); opacity: .7; }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.pill {
  display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 4px;
  background: var(--primary); color: #fff; font-size: .7rem; text-align: center; letter-spacing: 0;
}
.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--text); cursor: pointer; margin-left: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 0; isolation: isolate; }
.hero-word {
  position: absolute; z-index: -1; top: 40px; left: 50%; transform: translateX(-38%);
  font-family: var(--display); font-size: clamp(9rem, 28vw, 26rem); line-height: .85; letter-spacing: .01em;
  background: linear-gradient(180deg, rgba(229, 9, 20, .55), rgba(229, 9, 20, .05) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; white-space: nowrap; animation: drift 18s ease-in-out infinite alternate;
}
:root[data-theme="light"] .hero-word { background: linear-gradient(180deg, rgba(209, 0, 12, .22), rgba(209, 0, 12, .02) 85%); -webkit-background-clip: text; background-clip: text; }
@keyframes drift { from { transform: translateX(-38%); } to { transform: translateX(-44%); } }
.hero-glow {
  position: absolute; z-index: -2; inset: 0;
  background:
    radial-gradient(700px 420px at 75% 30%, rgba(229, 9, 20, .28), transparent 70%),
    radial-gradient(600px 400px at 10% 90%, rgba(229, 9, 20, .12), transparent 70%);
}
.hero::after { /* bottom fade into page */
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(transparent, var(--bg));
}
.hero-inner { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 28px; padding: 6px 12px; border-radius: 4px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.hero-hello { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-style: italic; font-weight: 500; }
.hero-title {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(4.2rem, 12vw, 9rem); line-height: .88; letter-spacing: .005em;
  text-shadow: 0 10px 50px rgba(0, 0, 0, .5);
}
.hero-title span { color: var(--primary); }
.brand-s { font-size: .5em; text-transform: lowercase; }
.hero-title .brand-s, .logo .brand-s, .footer-logo .brand-s { color: inherit; }
.hero-bar { display: block; width: 56px; height: 4px; background: var(--primary); margin: 26px 0 16px; }
.hero-tagline { margin: 0 0 10px; font-size: 1rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 560px; margin: 0; }

.search {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 8px;
  margin-top: 32px; padding: 8px; max-width: 880px;
  background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
}
.field { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 6px; background: var(--surface-2); }
.field-icon { color: var(--primary); font-size: 1.2rem; font-weight: 700; }
.field input, .field-select { flex: 1; border: 0; background: none; padding: 13px 0; font: inherit; color: var(--text); outline: none; min-width: 0; }
.field-select option { background: var(--surface); color: var(--text); }
.field:focus-within { outline: 2px solid var(--primary); }
.hero-link { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.hero-link a { color: var(--primary); font-weight: 700; }
.hero-link a:hover { text-decoration: underline; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 56px; padding-bottom: 40px; }
.stats div { display: flex; align-items: center; gap: 14px; }
.stats strong { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--primary); }
.stats span { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; }

/* Red marquee ribbon */
.marquee { background: var(--primary); color: #fff; overflow: hidden; padding: 14px 0; transform: rotate(-1deg); margin: 8px -20px; box-shadow: 0 10px 40px -10px rgba(229, 9, 20, .6); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; padding: 0 22px; display: inline-flex; align-items: center; gap: 22px; }
.marquee-track span::after { content: "•"; font-family: "Inter", sans-serif; font-size: 1rem; opacity: .9; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Section labels */
.section-label { margin: 0 0 22px; font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.section-label b { color: var(--primary); }

/* Featured role ("job of the day") */
.jotd {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  min-height: 260px; padding: 36px; border-radius: var(--radius);
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(229, 9, 20, .45), transparent 70%),
    linear-gradient(135deg, #1a0204, #0a0a0a 60%);
  border: 1px solid rgba(229, 9, 20, .35); color: #fff;
}
.jotd::before, .jotd::after { /* cinematic letterbox bars, pinned to top & bottom edges */
  content: ""; position: absolute; left: 0; right: 0; height: 12px; background: #000; opacity: .55; pointer-events: none;
}
.jotd::before { top: 0; }
.jotd::after { bottom: 0; }
.jotd small { color: #ff6b73; text-transform: uppercase; letter-spacing: .22em; font-weight: 800; font-size: .72rem; }
.jotd h3 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.6rem); line-height: .95; text-transform: uppercase; margin: 10px 0; max-width: 820px; }
.jotd p { margin: 0; color: rgba(255, 255, 255, .75); letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; font-weight: 600; }
.jotd .btn { background: var(--primary); color: #fff; }
.jotd .btn::after { content: "→"; }

/* Categories */
.categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cat {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; text-align: left; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font: inherit;
  transition: border-color .2s, transform .2s, background .2s;
}
.cat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary); transform: scaleY(0); transition: transform .25s; }
.cat:hover { border-color: rgba(229, 9, 20, .5); transform: translateY(-3px); }
.cat:hover::before, .cat.active::before { transform: scaleY(1); }
.cat.active { border-color: var(--primary); background: var(--primary-soft); }
.cat-icon { font-size: 1.4rem; filter: saturate(.8); }
.cat-more { justify-content: center; color: var(--primary); font-weight: 800; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; border-style: dashed; }
.cat b { display: block; font-size: .9rem; }
.cat small { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }

/* Jobs layout */
.jobs-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.filters {
  position: sticky; top: 88px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters-head h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.4rem; letter-spacing: .04em; text-transform: uppercase; }
fieldset { border: 0; border-top: 1px solid var(--border); margin: 0; padding: 14px 0 6px; }
legend { float: left; width: 100%; font-weight: 800; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; }
legend + * { clear: left; }
fieldset label { display: flex; gap: 10px; align-items: center; padding: 5px 0; cursor: pointer; font-size: .92rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; }

.results-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-head h2 { margin: 0; font-size: 2.4rem; line-height: 1; }
.results-head p { margin: 4px 0 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.results-actions { display: flex; gap: 8px; }
select {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px;
}
select:focus { outline: 2px solid var(--primary); border-color: transparent; }
.show-filters { display: none; }

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 4px;
  background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border: 0; cursor: pointer;
}

/* Job card */
.job-list { display: grid; gap: 10px; }
.job {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: start;
  padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s;
  animation: rise .45s ease both;
}
.job::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primary); transform: scaleY(0); transform-origin: top; transition: transform .25s; }
.job:hover { border-color: rgba(229, 9, 20, .45); transform: translateX(4px); box-shadow: var(--shadow); }
.job:hover::before { transform: scaleY(1); }
.job:focus-visible { outline: 2px solid var(--primary); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.co-logo {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 10px;
  font-size: 1.5rem; background: var(--surface-2) !important; border: 1px solid var(--border);
}
.job h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; }
.job-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: .85rem; }
.job-summary { margin: 8px 0 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { padding: 3px 9px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); font-size: .72rem; color: var(--muted); font-weight: 600; }
.job-side { display: flex; flex-direction: column; align-items: end; gap: 8px; text-align: right; }
.badge-new, .badge-applied, .badge-priority {
  padding: 3px 9px; border-radius: 4px; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.badge-new { background: var(--primary); color: #fff; }
.badge-applied { background: var(--new-soft); color: var(--new); }
.badge-priority { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.verified { font-size: .66rem; color: var(--new); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.filter-select { width: 100%; }
.filter-hint { margin: 6px 0 0; font-size: .75rem; color: var(--muted); }
.posted { font-size: .7rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.save-btn { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: var(--muted); padding: 0; line-height: 1; transition: color .2s, transform .2s; }
.save-btn:hover { color: var(--primary); transform: scale(1.15); }
.save-btn.saved { color: var(--primary); }
#loadMore { margin-top: 14px; }

.empty { text-align: center; padding: 56px 16px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty-icon { font-size: 2.5rem; }
.empty a { color: var(--primary); font-weight: 700; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); }
.step { padding: 28px 24px 8px 0; border-right: 1px solid var(--border); margin-right: 24px; }
.step:last-child { border-right: 0; }
.step span { display: block; font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--primary); margin-bottom: 10px; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .03em; text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); }

/* Founder */
.founder-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  background:
    radial-gradient(500px 300px at 20% 10%, rgba(229, 9, 20, .18), transparent 70%),
    linear-gradient(135deg, #140203, #0a0a0a 60%);
  border: 1px solid rgba(229, 9, 20, .35); border-radius: var(--radius); padding: 36px;
}
.founder-photo { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(229, 9, 20, .4); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.founder-photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.founder-role { margin: 0 0 6px; color: var(--primary); font-weight: 800; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; }
.founder-name { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; text-transform: uppercase; margin: 0 0 16px; }
.founder-bio { margin: 0 0 14px; color: rgba(255, 255, 255, .8); max-width: 620px; line-height: 1.6; }
.founder-link { margin-top: 8px; }

/* Generic card (used on sync page) */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-logo small { font-family: "Inter", sans-serif; font-size: .75rem; color: var(--muted); letter-spacing: 0; }
.site-footer .muted { max-width: 720px; }
.site-footer a { color: var(--primary); }
.admin-link { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted) !important; border: 1px solid var(--border); padding: 8px 14px; border-radius: 6px; transition: color .2s, border-color .2s; }
.admin-link:hover { color: var(--primary) !important; border-color: var(--primary); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; width: 100%; max-width: 720px; max-height: 90vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--primary);
  border-radius: 14px; padding: 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: pop .25s ease-out;
}
@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 16px; right: 16px; }
.modal-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; padding-right: 40px; }
.modal-head h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 18px 0; }
.detail-grid div { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; border-left: 2px solid var(--primary); }
.detail-grid small { display: block; color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.detail-grid b { font-size: .95rem; }
.modal-panel h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .03em; text-transform: uppercase; }
.description { white-space: pre-line; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); z-index: 60;
  background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 6px; font-weight: 800;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .3s; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(229, 9, 20, .5);
}
.toast.show { transform: translate(-50%, 0); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; pointer-events: none; }
.reveal.in { opacity: 1; transform: none; pointer-events: auto; }

/* Hero entrance */
.hero-inner > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-inner > :nth-child(2) { animation-delay: .1s; }
.hero-inner > :nth-child(3) { animation-delay: .2s; }
.hero-inner > :nth-child(4) { animation-delay: .35s; }
.hero-inner > :nth-child(5) { animation-delay: .45s; }
.hero-inner > :nth-child(6) { animation-delay: .55s; }
.hero-inner > :nth-child(n+7) { animation-delay: .65s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .jobs-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: 300px; max-width: 85vw; z-index: 40; overflow: auto;
    border-radius: 0; transform: translateX(-105%); transition: transform .25s; }
  .filters.open { transform: none; box-shadow: var(--shadow); }
  .show-filters { display: inline-flex; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--border); margin-right: 0; padding-bottom: 24px; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .header-line { display: none; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); display: none; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .hero { padding-top: 40px; }
  .search { grid-template-columns: 1fr; }
  .job { grid-template-columns: 44px 1fr; }
  .co-logo { width: 44px; height: 44px; }
  .job-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .stats div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .jotd { padding: 28px 20px; }
  .marquee-track span { font-size: 1.2rem; }
}

/* ===================== Mobile version ===================== */
html, body { overflow-x: clip; }              /* nothing can make the page scroll sideways */
.filters-close, .filters-footer, .filters-backdrop, .mobile-bar { display: none; }
.mb-badge { display: inline-block; }

@media (max-width: 960px) {
  /* Filters slide in from the left, with a dimmed backdrop */
  .filters { display: flex; flex-direction: column; padding-bottom: 0; }
  .filters-head { position: sticky; top: 0; z-index: 2; background: var(--surface); margin: -20px -20px 8px; padding: 16px 20px; border-bottom: 1px solid var(--border); gap: 12px; }
  .filters-head h3 { flex: 1; }
  .filters-close { display: inline-grid; place-items: center; }
  .filters-footer { display: block; position: sticky; bottom: 0; margin: auto -20px 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
  .filters-backdrop { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); }
  .filters-backdrop[hidden] { display: none !important; }
  .filter-select { min-height: 46px; font-size: 1rem; }
  fieldset label { padding: 9px 0; font-size: 1rem; }        /* bigger tap targets */
}

@media (max-width: 720px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 40px 16px; }

  /* Header + menu */
  .site-header { padding-top: env(safe-area-inset-top); }
  .header-inner { height: 58px; }
  .logo { font-size: 1.45rem; }
  .nav { top: calc(58px + env(safe-area-inset-top)); box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
  .nav a { padding: 14px 0; font-size: .85rem; border-bottom: 1px solid var(--border); }
  .nav .icon-btn { margin-top: 12px; }

  /* Hero */
  .hero { padding-top: 28px; }
  .eyebrow { font-size: .62rem; margin-bottom: 18px; max-width: 100%; }
  .hero-hello { font-size: 1.15rem; line-height: 1.35; }
  .hero-title { font-size: clamp(4rem, 22vw, 6rem); }
  .hero-bar { margin: 18px 0 12px; }
  .hero-tagline { font-size: .74rem; letter-spacing: .2em; }
  .search { margin-top: 22px; }
  .field input, .field-select { font-size: 1rem; padding: 14px 0; }   /* 16px+ stops iPhone zoom-on-focus */
  .search .btn { min-height: 50px; }
  .stats { gap: 18px 12px; padding-top: 32px; padding-bottom: 28px; }
  .stats strong { font-size: 2.6rem; }
  .marquee { margin: 4px 0; }
  .marquee-track span { font-size: 1.1rem; padding: 0 16px; gap: 16px; }

  /* Featured role + categories */
  .jotd { min-height: 0; padding: 26px 18px; }
  .jotd::before, .jotd::after { display: none; }
  .jotd .btn { width: 100%; }
  .categories { grid-template-columns: 1fr 1fr; gap: 8px; }
  .founder-card { grid-template-columns: 1fr; gap: 22px; padding: 22px; text-align: center; }
  .founder-photo { max-width: 240px; margin: 0 auto; }
  .founder-bio { margin-left: auto; margin-right: auto; }
  .cat { padding: 12px; gap: 8px; }
  .cat b { font-size: .82rem; }
  .cat-icon { font-size: 1.2rem; }

  /* Results header */
  .results-head h2 { font-size: 2rem; }
  .results-actions { width: 100%; }
  .results-actions .btn, .results-actions select { flex: 1; min-height: 46px; }

  /* Job cards */
  .job { grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 14px; }
  .job:hover { transform: none; }
  .co-logo { width: 40px; height: 40px; font-size: 1.2rem; }
  .job h3 { font-size: 1rem; }
  .job-meta { font-size: .8rem; gap: 2px 12px; }
  .job-summary { font-size: .85rem; }
  .tags { margin-top: 10px; }
  .job-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start;
    gap: 6px 12px; padding-top: 10px; border-top: 1px solid var(--border); text-align: left; }
  .job-side .save-btn { order: 9; margin-left: auto; font-size: 1.5rem; padding: 4px 6px; }
  .posted, .verified { font-size: .62rem; }

  /* Job details: full-screen bottom sheet with a sticky Apply bar */
  .modal { padding: 0; place-items: end stretch; }
  .modal-panel { max-width: none; width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; padding: 22px 18px 0;
    animation: sheet .3s cubic-bezier(.2, .7, .2, 1); }
  .modal-panel::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--border); margin: -8px auto 14px; }
  @keyframes sheet { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
  .modal-close { top: 12px; right: 12px; position: absolute; }
  .modal-head { padding-right: 44px; gap: 12px; }
  .modal-head h2 { font-size: 1.7rem; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid div { padding: 9px 10px; }
  .detail-grid b { font-size: .85rem; }
  .modal-actions { gap: 8px; }
  .modal-actions .btn { flex: 1; padding: 13px 10px; }
  .top-actions { position: sticky; top: -22px; z-index: 2; background: var(--surface); margin: 0 -18px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
  .top-actions #applyBtn { flex-basis: 100%; }
  .modal-panel > #modalBody > :last-child { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

  /* App-style bottom bar */
  .mobile-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mobile-bar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center;
    background: none; border: 0; color: var(--muted); font: inherit; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
  .mobile-bar button span { font-size: 1.3rem; line-height: 1; color: var(--text); }
  .mobile-bar button:active span, .mobile-bar button.active span { color: var(--primary); }
  .mb-badge { position: absolute; top: 4px; left: calc(50% + 8px); min-width: 18px; padding: 1px 5px; border-radius: 9px;
    background: var(--primary); color: #fff; font-style: normal; font-size: .62rem; letter-spacing: 0; }
  .mb-badge[hidden] { display: none; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

  /* Steps + footer */
  .step { padding-right: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Small phones */
@media (max-width: 360px) {
  .categories { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .stats strong { font-size: 2.2rem; }
}

/* Footer nav (About / Sources / Privacy / Contact / Report) */
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { font-size: .8rem; font-weight: 600; color: var(--muted); }
.footer-nav a:hover { color: var(--primary); }
.footer-inner { align-items: center; }
#infoBody h2 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 12px; }
#infoBody p, #infoBody li { color: color-mix(in srgb, var(--text) 85%, var(--muted)); line-height: 1.6; }
#infoBody ul { padding-left: 20px; }
#infoBody a { color: var(--primary); }
@media (max-width: 720px) { .footer-nav { gap: 6px 14px; } }
