:root {
  --plum: #241634;
  --plum-2: #180E24;
  --paper: #FBF7F0;
  --gold: #F2A93B;
  --gold-dim: #C7871F;
  --ink: #1A1420;
  --grey: #6E6478;
  --line: rgba(26,20,32,0.14);
  --line-on-dark: rgba(251,247,240,0.18);
  --max: 1160px;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 26px; }

/* header */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(251,247,240,0.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 20px; }
.wordmark { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
.wordmark i { font-style: normal; color: var(--gold-dim); }
nav.links { display: none; align-items: center; gap: 22px; font-size: 0.92rem; font-weight: 600; }
nav.links a:not(.btn) { text-decoration: none; color: var(--grey); padding-bottom: 3px; border-bottom: 2px solid transparent; }
nav.links a:not(.btn):hover { color: var(--ink); }
nav.links a.active:not(.btn) { color: var(--ink); border-bottom-color: var(--gold); }
@media (min-width: 860px) { nav.links { display: flex; } }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; color: var(--ink); }
@media (min-width: 860px) { .menu-btn { display: none; } }
.mobile-menu { display: none; flex-direction: column; border-top: 1px solid var(--line); padding: 6px 0 16px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--grey); font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .mobile-menu { display: none !important; } }

.flash-error { margin-top: 16px; padding: 14px 18px; border: 1px solid var(--gold-dim); border-radius: 10px; color: var(--gold-dim); font-size: 0.92rem; font-weight: 600; }
.flash-success { margin-top: 16px; padding: 14px 18px; border: 1px solid #3C7A5A; border-radius: 10px; color: #2C5C43; font-size: 0.92rem; font-weight: 600; background: rgba(60,122,90,0.08); }

/* page title band */
.page-band { background: var(--plum); color: var(--paper); padding: 56px 0 44px; }
.page-band .kicker { color: var(--gold); font-weight: 700; font-size: 0.85rem; }
.page-band h1 { margin-top: 12px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
.page-band p { margin-top: 16px; color: #D9CFE0; max-width: 50ch; font-size: 1.05rem; }

/* hero (home only) */
.hero { position: relative; background: var(--plum); color: var(--paper); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, transparent 0%, transparent 58%, var(--paper) 58%, var(--paper) 100%); z-index: 0; }
@media (max-width: 859px) { .hero::after { display: none; } }
.hero .wrap { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.3fr 0.7fr; align-items: center; padding-top: 88px; padding-bottom: 80px; min-height: 480px; } }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 600; color: var(--gold); }
.hero .eyebrow .dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.hero h1 { margin-top: 22px; font-size: clamp(2.3rem, 7vw, 4.2rem); line-height: 1.02; font-weight: 700; }
.hero .lede { margin-top: 24px; max-width: 42ch; color: #D9CFE0; font-size: 1.08rem; }
.hero .actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn { font-weight: 700; font-size: 0.94rem; padding: 14px 26px; text-decoration: none; display: inline-block; border-radius: 999px; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--gold); color: var(--plum-2); }
.btn-primary:hover { background: #FFC169; }
.btn-ghost { border-color: var(--line-on-dark); color: var(--paper); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { border-color: var(--line); color: var(--ink); }
.btn-dark:hover { border-color: var(--gold-dim); color: var(--gold-dim); }

.draft { justify-self: center; width: 100%; max-width: 300px; }

.marquee { background: var(--gold); color: var(--plum-2); overflow: hidden; white-space: nowrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.marquee-track { display: inline-flex; animation: scroll 22s linear infinite; }
.marquee-track span { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 0.95rem; padding: 0 28px; display: inline-flex; align-items: center; gap: 10px; }
.marquee-track span::after { content: "●"; font-size: 0.5rem; opacity: 0.6; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

section { padding: 72px 0; }
section + section:not(.marquee) { border-top: 1px solid var(--line); }
.kicker { font-size: 0.85rem; font-weight: 700; color: var(--gold-dim); }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-top: 10px; font-weight: 700; }

.about-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; } }
.about-grid p { color: var(--grey); max-width: 58ch; font-size: 1.05rem; }
.stat-row { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.stat b { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--gold-dim); line-height: 1; }
.stat span { font-size: 0.9rem; color: var(--grey); display: block; margin-top: 8px; }

.services-split { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (min-width: 780px) { .services-split { grid-template-columns: 1fr 1fr; } }
.service-col { padding: 36px 32px; }
.service-col + .service-col { border-top: 1px solid var(--line); }
@media (min-width: 780px) { .service-col + .service-col { border-top: none; border-left: 1px solid var(--line); } }
.service-col .tag { font-size: 0.85rem; color: var(--gold-dim); font-weight: 700; }
.service-col h3 { margin-top: 10px; font-size: 1.45rem; font-weight: 700; }
.service-col p { margin-top: 14px; color: var(--grey); }
.service-col ul { list-style: none; margin: 20px 0 0; padding: 0; }
.service-col li { padding: 11px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 0.95rem; }
.service-col li:first-child { border-top: none; }
.service-col li::after { content: "→"; color: var(--gold-dim); }

.process-grid { display: grid; gap: 2px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (min-width: 780px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.p-step { background: var(--paper); padding: 30px 26px; }
.p-step .num { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 2.1rem; color: var(--gold-dim); line-height: 1; }
.p-step h4 { margin-top: 16px; font-size: 1.05rem; font-weight: 700; }
.p-step p { margin-top: 8px; color: var(--grey); font-size: 0.94rem; }

/* careers */
.careers-band { background: var(--gold); color: var(--plum-2); padding: 56px 0 50px; }
.careers-band .kicker { color: var(--plum-2); opacity: 0.7; }
.careers-band h1 { margin-top: 12px; font-size: clamp(2rem, 5.4vw, 3.2rem); font-weight: 800; max-width: 18ch; }
.careers-band p { margin-top: 16px; max-width: 48ch; font-size: 1.05rem; opacity: 0.85; }

.values-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { padding: 26px 24px; border: 1px solid var(--line); border-radius: 16px; }
.value-card .num { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; color: var(--gold-dim); font-size: 1.3rem; }
.value-card h4 { margin-top: 12px; font-size: 1.08rem; font-weight: 700; }
.value-card p { margin-top: 10px; color: var(--grey); font-size: 0.93rem; }

.roles-list { border-top: 1px solid var(--line); }
.role { border-bottom: 1px solid var(--line); padding: 22px 0; }
.role summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.role summary::-webkit-details-marker { display: none; }
.role-head h4 { font-size: 1.08rem; font-weight: 700; }
.role-title-row { display: flex; align-items: center; gap: 12px; }
.client-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); flex-shrink: 0; }
.role-tags { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.role-tags span { font-size: 0.78rem; font-weight: 700; color: var(--gold-dim); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.role-toggle { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--gold-dim); transition: transform .2s ease; }
.role[open] .role-toggle { transform: rotate(45deg); }
.role-body { margin-top: 16px; color: var(--grey); font-size: 0.95rem; max-width: 62ch; }
.role-actions { margin-top: 16px; }

.empty-note { padding: 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--grey); text-align: center; }

.careers-cta { margin-top: 44px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.careers-cta h3 { font-size: 1.2rem; font-weight: 700; }
.careers-cta p { margin-top: 6px; color: var(--grey); font-size: 0.94rem; }

/* login / forms */
.form-wrap { max-width: 460px; margin: 0 auto; }
.tabs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.tab-btn { flex: 1; border: none; background: none; padding: 10px 14px; border-radius: 999px; font-family: "Manrope", sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--grey); cursor: pointer; }
.tab-btn.active { background: var(--plum); color: var(--paper); }
.tab-panel { display: none; margin-top: 32px; }
.tab-panel.active { display: block; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: "Manrope", sans-serif; font-size: 0.96rem; background: var(--paper); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.85rem; color: var(--grey); margin-top: 18px; text-align: center; }
.form-note a { color: var(--gold-dim); font-weight: 700; text-decoration: none; }

/* job posting form - conditional sections, chips, radios */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.form-grid.cols-2 .field-full { grid-column: 1 / -1; }
fieldset.conditional-section {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 0 0 18px;
}
fieldset.conditional-section legend { font-size: 0.85rem; font-weight: 700; color: var(--gold-dim); padding: 0 6px; }
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.radio-row input[type="radio"] { width: auto; }
.check-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.check-row input[type="checkbox"] { width: auto; }
.check-row label { font-size: 0.92rem; font-weight: 600; }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input { flex: 1; }
.range-row span.sep { color: var(--grey); font-weight: 600; }
.chip-input-row { display: flex; gap: 8px; }
.chip-input-row input { flex: 1; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--line);
  border-radius: 999px; padding: 6px 8px 6px 14px; font-size: 0.85rem; font-weight: 600;
}
.chip button {
  border: none; background: var(--plum); color: var(--paper); width: 18px; height: 18px;
  border-radius: 50%; cursor: pointer; font-size: 0.75rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.hidden-section { display: none; }

/* pipeline stage badges */
.stage-badge { font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 4px 12px; display: inline-block; white-space: nowrap; }
.stage-APPLIED { background: rgba(110,100,120,0.12); color: var(--grey); }
.stage-FOLLOW_UP { background: rgba(242,169,59,0.18); color: var(--gold-dim); }
.stage-INTERVIEW_SCHEDULED { background: rgba(36,22,52,0.1); color: var(--plum); }
.stage-REJECTED { background: rgba(179,38,30,0.1); color: #b3261e; }
.stage-SELECTED { background: rgba(44,92,67,0.12); color: #2C5C43; }
.stage-JOINED { background: var(--plum); color: var(--paper); }
select.stage-select { width: auto; min-width: 170px; padding: 8px 12px; font-size: 0.85rem; font-weight: 600; }

/* dashboards / tables */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { font-family: "Bricolage Grotesque", sans-serif; font-size: 0.82rem; color: var(--grey); }
table.data tr:last-child td { border-bottom: none; }
.tag-pill { font-size: 0.78rem; font-weight: 700; color: var(--gold-dim); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* contact */
.contact-band { background: var(--plum); color: var(--paper); }
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-grid h2 { color: var(--paper); font-size: clamp(1.7rem, 3.8vw, 2.4rem); font-weight: 700; }
.contact-grid .lede { margin-top: 14px; color: #D9CFE0; max-width: 42ch; }
address { font-style: normal; color: #D9CFE0; line-height: 1.9; margin-top: 26px; }
.contact-card { border: 1px solid var(--line-on-dark); border-radius: 16px; padding: 28px; }
.contact-card .label { font-size: 0.8rem; color: #B7ABC4; margin-top: 20px; }
.contact-card .label:first-child { margin-top: 0; }
.contact-card a { display: block; margin-top: 6px; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.contact-card a:hover { color: var(--gold); }

footer { background: var(--plum-2); color: #A79BB2; padding: 22px 0; font-size: 0.85rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
