/* Matches dtimpano.com (Framer): charcoal grid background, Inter Tight headings, flat cards. */
:root {
  --bg: #161616;
  --surface: #1c1c1c;
  --surface-2: #232323;
  --line: #2a2a2a;
  --text: #ffffff;
  --text-2: #a3a3a3;
  --text-3: #7c7f82;
  --radius: 8px;
  --head: 'Inter Tight', Inter, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Grid backdrop from dtimpano.com, faded out below the hero */
.grid-bg {
  position: absolute; inset: 0 0 auto 0; height: 720px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--surface) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
          mask-image: linear-gradient(to bottom, #000 40%, transparent);
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(22,22,22,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--head); letter-spacing: -.2px; }
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.nav-links { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.nav-links a:not(.btn) { padding: 8px 10px; border-radius: 6px; }
.nav-links a:not(.btn):hover { color: var(--text); }
@media (max-width: 520px) { .nav-links .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 6px;
  font: 600 14px/1 var(--body); white-space: nowrap;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--text); color: #111; border-color: var(--text); }
.btn-primary:hover { background: #e6e6e6; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.arrow { transition: transform .15s; }
a:hover .arrow { transform: translateX(3px); }

/* Type */
.eyebrow { font: 600 12px/1 var(--body); letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-3); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: clamp(36px, 7vw, 60px); }
h2 { font-size: clamp(26px, 4vw, 34px); }
h3 { font-size: 17px; letter-spacing: -.01em; line-height: 1.3; }
.lead { font-size: clamp(16px, 2vw, 18px); color: var(--text-2); max-width: 600px; }
.muted { color: var(--text-2); }

/* Hero */
.hero { position: relative; padding: 72px 0 56px; }
.hero-center { text-align: center; }
.hero-center .lead { margin: 20px auto 0; }
.hero .eyebrow { margin-bottom: 20px; display: inline-block; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.hero-center .hero-actions { justify-content: center; }
.avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; filter: grayscale(1); margin: 0 auto 24px; }

/* Chips / meta */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: 6px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--text-2); white-space: nowrap;
}
.chip b { color: var(--text); font-weight: 600; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.15); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 20px; }
.stat-v { font: 600 28px/1 var(--head); letter-spacing: -.02em; }
.stat-l { font-size: 13px; color: var(--text-3); margin-top: 8px; line-height: 1.4; }

/* Sections */
section { padding: 48px 0; }
.sec-head { margin-bottom: 24px; }
.sec-head .eyebrow { display: block; margin-bottom: 12px; }
.sec-head p { color: var(--text-2); margin-top: 10px; max-width: 600px; }
.prose { font-size: 17px; color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }

/* Cards */
.cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .cards-2 { grid-template-columns: 1fr 1fr; } .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { color: var(--text-2); font-size: 14px; margin-top: 6px; line-height: 1.55; }
.card .num { font: 600 12px/1 var(--body); color: var(--text-3); margin-bottom: 14px; letter-spacing: .5px; }

/* Outcome rows */
.outcomes { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.outcome { display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; padding: 18px 20px; background: var(--surface); }
.outcome + .outcome { border-top: 1px solid var(--line); }
.outcome .n { font: 600 14px/1.5 var(--head); color: var(--text-3); grid-row: span 2; }
.outcome h3 { font-size: 16px; }
.outcome p { font-size: 13px; color: var(--text-3); }
@media (min-width: 640px) {
  .outcome { grid-template-columns: 32px 1fr auto; align-items: center; }
  .outcome .n { grid-row: auto; }
  .outcome p { text-align: right; }
}

/* Accountabilities (details) */
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.acc + .acc { margin-top: 10px; }
.acc summary { list-style: none; cursor: pointer; padding: 18px 20px; display: grid; grid-template-columns: 1fr 24px; gap: 4px 12px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h3 { font-size: 16px; }
.acc summary p { font-size: 14px; color: var(--text-2); grid-column: 1; }
.acc .plus { grid-row: 1; grid-column: 2; width: 24px; height: 24px; position: relative; color: var(--text-3); }
.acc .plus::before, .acc .plus::after { content: ''; position: absolute; left: 6px; top: 11px; width: 12px; height: 1.5px; background: currentColor; transition: transform .2s; }
.acc .plus::after { transform: rotate(90deg); }
.acc[open] .plus::after { transform: rotate(0); }
.acc ul { padding: 0 20px 18px; list-style: none; }
.acc li { position: relative; padding: 8px 0 8px 22px; font-size: 14px; color: var(--text-2); border-top: 1px solid var(--line); }
.acc li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid var(--text-3); }

/* Checklist */
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); font-size: 15px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Two-column block (who you are / requirements) */
.split { display: grid; gap: 12px; }
@media (min-width: 800px) { .split { grid-template-columns: 1.4fr 1fr; } }
.traits { display: grid; gap: 0; }
.trait { padding: 14px 0; border-top: 1px solid var(--line); }
.trait:first-child { border-top: 0; padding-top: 0; }
.trait b { display: block; font: 600 15px/1.3 var(--head); }
.trait span { display: block; font-size: 14px; color: var(--text-2); margin-top: 4px; }

/* Steps */
.steps { list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--text-2); font-size: 15px; }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font: 600 13px/1 var(--head); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font: 600 16px/1.4 var(--head); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { padding: 0 0 18px; color: var(--text-2); font-size: 15px; }

/* Role list (careers home) */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter { height: 34px; padding: 0 14px; border-radius: 6px; background: transparent; border: 1px solid var(--line); color: var(--text-2); font: 500 13px/1 var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.filter span { color: var(--text-3); font-size: 12px; }
.filter[aria-pressed='true'] { background: var(--text); color: #111; border-color: var(--text); }
.filter[aria-pressed='true'] span { color: #555; }
.role-list { display: grid; gap: 10px; }
.role-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: border-color .15s, background .15s;
}
.role-row:hover { border-color: #3a3a3a; background: #1f1f1f; }
.role-row .chips { margin-bottom: 10px; }
.role-row .chip { height: 24px; font-size: 12px; }
.role-row h3 { font-size: 20px; }
.role-row .role-sum { font-size: 14px; color: var(--text-3); margin-top: 4px; }
@media (max-width: 640px) { .role-row { flex-direction: column; align-items: flex-start; } .role-row .btn { width: 100%; } }
.role-row[hidden] { display: none; }

/* CTA band */
.cta { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; position: relative; overflow: hidden; }
.cta h2 { max-width: 560px; margin: 0 auto; }
.cta p { color: var(--text-2); margin: 12px auto 0; max-width: 480px; }
.cta .btn { margin-top: 28px; }

/* Footer */
footer { padding: 48px 0 40px; text-align: center; color: var(--text-3); font-size: 13px; }
footer .socials { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
footer .socials a { width: 40px; height: 40px; display: grid; place-items: center; background: var(--surface); border-radius: 6px; color: var(--text-2); }
footer .socials a:hover { color: var(--text); }
footer svg { width: 16px; height: 16px; }

/* Back link */
.back { display: flex; width: fit-content; align-items: center; gap: 6px; font-size: 14px; color: var(--text-3); margin-bottom: 28px; }
.back:hover { color: var(--text); }

/* Sticky apply bar (role pages, mobile) */
.apply-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(22,22,22,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .25s; }
.apply-bar.show { transform: none; }
.apply-bar .t { font: 600 15px/1.2 var(--head); }
.apply-bar .s { font-size: 12px; color: var(--text-3); }
@media (min-width: 900px) { .apply-bar { display: none; } }
.has-bar footer { padding-bottom: 110px; }
@media (min-width: 900px) { .has-bar footer { padding-bottom: 40px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media (max-width: 640px) { h1 br { display: none; } }

/* ---------- Homepage ---------- */
.home-hero { padding-top: 56px; padding-bottom: 40px; }
.avatar-xl { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 24px; }
.proof { margin-top: 14px; font-style: italic; color: var(--text); font-size: 15px; }
.home-hero .btn { gap: 8px; }
.home-hero .btn svg { width: 16px; height: 16px; color: var(--text-2); }
.home-main { padding-top: 8px; }
.bento { display: grid; gap: 12px; }
@media (min-width: 720px) { .bento { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; } .hire-card { grid-row: span 2; } }
.hire-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; transition: border-color .15s; background:
  radial-gradient(120% 80% at 100% 0%, rgba(74,222,128,.07), transparent 60%), var(--surface); }
.hire-card:hover, .link-card:hover { border-color: #3a3a3a; }
.hire-card h2 { margin-top: 4px; }
.hire-card .muted { font-size: 15px; }
.hire-card .btn { align-self: flex-start; margin-top: auto; }
.mini-roles { list-style: none; margin: 4px 0 12px; border-top: 1px solid var(--line); }
.mini-roles li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 600 15px/1.3 var(--head); }
.mini-meta { font: 400 13px/1.3 var(--body); color: var(--text-3); white-space: nowrap; }
@media (max-width: 420px) { .mini-roles li { flex-direction: column; gap: 2px; } }
.link-card { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; transition: border-color .15s; }
.link-icon { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.link-card p { margin-top: 2px; }
@media (min-width: 720px) and (max-width: 899px) { .link-card { grid-template-columns: 40px 1fr; } .link-card .btn { grid-column: 1 / -1; } }
.video-card { margin-top: 12px; }
.video-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; }
.video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #000 center / cover no-repeat; cursor: pointer; position: relative; }
.play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.6); border-radius: 12px; transition: background .15s; }
.play svg { width: 28px; height: 28px; }
.video:hover .play { background: #ff0033; }
.home .wrap { max-width: 880px; }

/* Referral bonus */
.referral { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; margin-bottom: 20px; border-radius: var(--radius);
  border: 1px solid rgba(74,222,128,.25); background: linear-gradient(90deg, rgba(74,222,128,.08), rgba(74,222,128,.02)), var(--surface); }
.referral h3 { font-size: 16px; }
.referral p { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.referral b { color: var(--text); }
.ref-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(74,222,128,.15); color: #4ade80; font: 600 16px/1 var(--head); }
.referral-sm { margin: 28px 0 0; max-width: 560px; }
.chip-ref { color: #4ade80; border-color: rgba(74,222,128,.25); background: rgba(74,222,128,.06); }
