/* jobs.21-draw.co — 21 Draw internship
   Design: "ledger" precision. Full-width hairline rules, disciplined type system
   (Bricolage Grotesque display / Instrument Sans text), warm ivory + graphite
   themes, one orange accent. No panels floating in space, no gimmicks. */

:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --ink: #16130f;
  --body-c: #403c35;
  --muted: #7d776d;
  --line: #e5e1d8;
  --line-strong: #d2ccc0;
  --accent: #e56a0b;
  --accent-text: #c25400;
  --accent-soft: rgba(229, 106, 11, .08);
  --shadow: 0 24px 48px -24px rgba(22, 19, 15, .18);
  --display: "Bricolage Grotesque", "Poppins", sans-serif;
  --text: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --maxw: 1200px;
}

:root[data-theme="dark"] {
  --bg: #121110;
  --surface: #1a1816;
  --ink: #f5f3ee;
  --body-c: #c7c2b9;
  --muted: #8d877c;
  --line: #282521;
  --line-strong: #3a362f;
  --accent: #f0761a;
  --accent-text: #f68b3d;
  --accent-soft: rgba(240, 118, 26, .1);
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, .5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--text);
  color: var(--body-c);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
}

::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--ink); }

.label {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 22px;
}
.label span { color: var(--muted); }

h2 {
  font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; letter-spacing: -.02em;
  line-height: 1.08; margin-bottom: 20px; max-width: 22ch; text-wrap: balance;
}
.sec-intro { font-size: 18.5px; max-width: 58ch; color: var(--body-c); }
.prose p { margin-bottom: 18px; max-width: 60ch; }
.prose p:last-child { margin-bottom: 0; }
p strong { font-weight: 600; color: var(--ink); }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  height: 64px; display: flex; align-items: center; gap: 8px;
}
.nav .logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav .logo img { height: 22px; width: auto; display: block; }
:root:not([data-theme="dark"]) .nav .logo img,
:root:not([data-theme="dark"]) .foot-logo img { filter: invert(1); }
.nav .spacer { flex: 1; }

.langs { display: flex; gap: 2px; margin-right: 8px; }
.langs a {
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--muted); text-decoration: none; padding: 6px 10px;
  border-radius: 999px; transition: color .15s, background .15s;
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] { color: var(--ink); background: var(--line); }

#theme-toggle {
  background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  width: 36px; height: 36px; cursor: pointer; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 12px; transition: color .15s, border-color .15s;
}
#theme-toggle:hover { color: var(--ink); border-color: var(--muted); }
#theme-toggle svg { width: 15px; height: 15px; display: block; }
#theme-toggle .moon { display: none; }
:root[data-theme="dark"] #theme-toggle .sun { display: none; }
:root[data-theme="dark"] #theme-toggle .moon { display: block; }

/* ---------- buttons ---------- */
.btn, .cta-mini {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--text); font-weight: 600; color: #fff;
  background: var(--ink); text-decoration: none;
  border-radius: 999px; transition: background .18s, transform .18s, box-shadow .18s;
}
:root[data-theme="dark"] .btn, :root[data-theme="dark"] .cta-mini { color: #121110; }
.cta-mini { font-size: 13.5px; padding: 9px 20px; }
.btn { font-size: 15.5px; padding: 15px 30px; }
.btn::after { content: "→"; font-weight: 400; transition: transform .18s; }
.btn:hover, .cta-mini:hover { background: var(--accent); color: #fff; }
.btn:hover::after { transform: translateX(3px); }
.btn-note { display: inline-block; margin-left: 18px; font-size: 13.5px; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 0; }
.hero .kicker {
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 30px;
  display: flex; align-items: center; gap: 12px;
}
.hero .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 86px); font-weight: 640; letter-spacing: -.03em;
  line-height: .98; margin-bottom: 12px; text-wrap: balance;
}
.hero h1 .dim { color: var(--muted); }
.hero .hero-lead {
  font-size: clamp(18px, 2vw, 21px); line-height: 1.55; max-width: 52ch;
  margin: 30px 0 38px;
}
.hero .hero-lead strong { color: var(--ink); font-weight: 600; }
.hero .cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 74px; }

/* fact table */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.facts div { padding: 24px 28px 26px 0; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: none; }
.facts div + div { padding-left: 28px; }
.facts dt {
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.facts dd {
  font-family: var(--display); font-size: 19px; font-weight: 600;
  color: var(--ink); letter-spacing: -.01em;
}
.facts dd small { display: block; font-family: var(--text); font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 3px; letter-spacing: 0; }

/* ---------- statement band ---------- */
.statement { padding: 110px 0; border-top: 1px solid var(--line); }
.statement blockquote {
  font-family: var(--display); font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 520; letter-spacing: -.02em; line-height: 1.18;
  color: var(--ink); max-width: 26ch; text-wrap: balance; margin-bottom: 30px;
}
.statement blockquote em { font-style: normal; color: var(--accent-text); }
.statement .prose { max-width: 58ch; }

/* ---------- sections ---------- */
.sec { padding: 110px 0; border-top: 1px solid var(--line); }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: start; margin-top: 44px; }

/* stat rail */
.rail { border-top: 1px solid var(--line-strong); }
.rail > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.rail .n {
  font-family: var(--display); font-size: 40px; font-weight: 620; letter-spacing: -.02em;
  color: var(--ink); line-height: 1.05;
}
.rail .n em { font-style: normal; color: var(--accent-text); }
.rail .l { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* comparison */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 52px;
}
.compare > div { border: 1px solid var(--line-strong); border-radius: 18px; padding: 34px 34px 30px; background: var(--surface); }
.compare > div.win { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); background: linear-gradient(180deg, var(--accent-soft), transparent 55%), var(--surface); }
.compare h3 { font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; }
.compare > div:not(.win) h3 { color: var(--muted); }
.compare .win h3 { color: var(--accent-text); }
.compare ul { list-style: none; }
.compare li { padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; font-size: 15.5px; }
.compare li::before { position: absolute; left: 2px; top: 12px; font-weight: 600; }
.compare > div:not(.win) li::before { content: "×"; color: var(--muted); }
.compare .win li::before { content: "✓"; color: var(--accent-text); }

/* callout */
.callout {
  margin-top: 44px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0;
  background: var(--accent-soft); padding: 24px 30px; max-width: 640px;
}
.callout p { margin: 0; color: var(--ink); font-size: 16.5px; }

/* aside card (checklist) */
.side-card {
  border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface);
  padding: 30px 30px 12px; box-shadow: var(--shadow);
}
.side-card h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.side-card ul { list-style: none; }
.side-card li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink); display: flex; gap: 12px; align-items: baseline; }
.side-card li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex: 0 0 7px; transform: translateY(-1px); }
.side-card .foot-note { padding: 15px 0 18px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); }

/* work grid */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 52px 0; }
.work-grid > div {
  border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface);
  padding: 28px; transition: border-color .2s, transform .2s;
}
.work-grid > div:hover { border-color: var(--accent); transform: translateY(-2px); }
.work-grid svg { width: 22px; height: 22px; color: var(--accent-text); margin-bottom: 18px; }
.work-grid p { font-size: 15.5px; margin: 0; color: var(--body-c); }
.work-grid p b { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); margin-bottom: 6px; letter-spacing: -.01em; }

/* requirements */
.reqs { margin-top: 52px; border-top: 1px solid var(--line-strong); }
.reqs > div {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.reqs .no { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--accent-text); letter-spacing: .04em; }
.reqs p { margin: 0; max-width: 70ch; color: var(--ink); font-size: 16.5px; }
.reqs p small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 52px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.perks > div { border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 26px 24px 28px; background: var(--surface); }
.perks b { display: block; font-family: var(--display); font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.perks p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.perks-after { margin-top: 34px; font-size: 17px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 52px 0 46px; }
.steps > div { border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); padding: 30px 30px 28px; }
.steps .no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-family: var(--display); font-weight: 600; font-size: 14px; margin-bottom: 20px;
}
.steps h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.steps p { font-size: 15px; margin-bottom: 10px; }
.steps p:last-child { margin-bottom: 0; }
.steps ol { margin: 12px 0 0; padding-left: 0; list-style: none; counter-reset: q; }
.steps ol li { counter-increment: q; padding: 10px 0 10px 26px; border-top: 1px solid var(--line); font-size: 14.5px; position: relative; }
.steps ol li::before { content: counter(q); position: absolute; left: 0; top: 10px; font-weight: 600; color: var(--accent-text); font-size: 13px; }

/* final */
.final { padding: 130px 0 140px; border-top: 1px solid var(--line); text-align: center; }
.final h2 { margin: 0 auto 22px; max-width: none; font-size: clamp(34px, 4.4vw, 58px); }
.final .sec-intro { margin: 0 auto 44px; max-width: 54ch; }

/* footer */
footer { border-top: 1px solid var(--line-strong); font-size: 14px; color: var(--muted); background: var(--surface); }
.foot { max-width: var(--maxw); margin: 0 auto; padding: 56px 32px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.foot-logo img { height: 20px; display: block; margin-bottom: 16px; }
.foot .col { max-width: 46ch; line-height: 1.7; }
.foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.foot a:hover { border-color: var(--accent); }
.foot .legal { text-align: right; line-height: 1.9; }

/* sticky apply */
#sticky-apply {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  display: flex; justify-content: center;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 92%, transparent) 50%, transparent);
  transform: translateY(130%); transition: transform .35s ease;
  pointer-events: none;
}
#sticky-apply.show { transform: none; }
#sticky-apply .btn { pointer-events: auto; padding: 13px 26px; font-size: 14.5px; box-shadow: var(--shadow); }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div { border-right: none; padding-left: 0 !important; }
  .facts div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 24px; }
  .facts div:nth-child(even) { padding-left: 24px !important; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 22px; }
  .nav { padding: 0 16px; height: 56px; gap: 4px; }
  .nav .logo img { height: 17px; }
  .langs { margin-right: 2px; }
  .langs a { padding: 5px 6px; font-size: 11.5px; }
  #theme-toggle { margin-right: 4px; width: 32px; height: 32px; }
  .cta-mini { padding: 8px 13px; font-size: 12px; white-space: nowrap; }
  .hero { padding-top: 64px; }
  .hero .cta-row { margin-bottom: 56px; }
  .btn-note { margin: 12px 0 0; display: block; }
  .statement, .sec { padding: 76px 0; }
  .compare { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .reqs > div { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .final { padding: 90px 0 100px; }
  .foot .legal { text-align: left; }
  #sticky-apply .btn { width: 100%; justify-content: center; }
}
