:root {
  --bg: #F5F3EE;
  --ink: #14171F;
  --blue: #3F55D9;
  --blue-deep: #2E3FA8;
  --blue-light: #E7EAFB;
  --blue-line: #C7CDF2;
  --periwinkle: #A9B4FF;
  --dot: #7C8CFF;
  --body: #3A3F4B;
  --muted: #5A5F6B;
  --muted-2: #4A4F5B;
  --faint: #8A8E98;
  --line: #E2DED4;
  --line-2: #D6D1C5;
  --sand: #F0EDE5;
  --on-dark: #C9CCD4;
  --card: #FFFFFF;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }
input, select, textarea, button { font-family: inherit; }

.display { font-family: 'Bricolage Grotesque', sans-serif; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 26px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--blue); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); padding: 13.5px 26px; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-md { padding: 14px 28px; font-size: 15px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink);
  display: grid; place-items: center;
}
.brand-mark span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.25);
}
.brand-name { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--body); }
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { color: var(--bg); }
.site-nav .btn:hover { color: #fff; }

/* Hero */
.hero {
  padding-top: 88px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 56px;
  align-items: end;
}
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.hero-side { padding-bottom: 10px; }
.hero-side p { font-size: 19px; line-height: 1.6; color: var(--body); margin: 0 0 30px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pillars */
.pillars-wrap { padding-bottom: 96px; }
.pillars {
  background: var(--ink);
  color: var(--bg);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 36px;
}
.pillars h3 { font-size: 22px; font-weight: 600; margin: 0 0 10px; color: var(--periwinkle); }
.pillars p { margin: 0; line-height: 1.6; color: var(--on-dark); }

/* Section headings */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-weight: 700;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.section-head p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Services */
#services { padding-bottom: 104px; scroll-margin-top: 90px; }
#services .section-head { margin-bottom: 44px; }
#services .section-head h2 { max-width: 620px; }
#services .section-head p { max-width: 400px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s;
}
.service:hover { border-color: var(--blue); }
.service .num { font-size: 14px; font-weight: 600; color: var(--blue); }
.service h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.service p { margin: 0; line-height: 1.6; color: var(--muted); }

/* Approach */
#approach { background: var(--blue-light); scroll-margin-top: 70px; }
.approach-inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
}
.approach-inner h2 {
  font-weight: 700;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
  text-wrap: balance;
}
.approach-inner .lede { margin: 0; font-size: 18px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--blue-line);
}
.step .num { font-size: 28px; font-weight: 700; color: var(--blue); }
.step h3 { font-family: inherit; font-weight: 600; font-size: 18px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted-2); line-height: 1.55; }

/* Positions */
#positions { padding-top: 104px; padding-bottom: 104px; scroll-margin-top: 70px; }
#positions .section-head { margin-bottom: 40px; }
#positions .eyebrow { margin-bottom: 14px; }
#positions .section-head p { max-width: 420px; }
.jobs { display: flex; flex-direction: column; gap: 14px; }
.job {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  align-items: center;
}
.job h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 10px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.tag-blue { background: var(--blue-light); color: var(--blue-deep); }
.tag-sand { background: var(--sand); color: var(--muted-2); }
.job p { margin: 0; color: var(--muted); line-height: 1.6; }
.job-action { display: flex; justify-content: flex-end; }

/* Contact */
#contact { padding-bottom: 104px; scroll-margin-top: 90px; }
.contact-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 40px;
  align-items: end;
}
.contact-card h2 {
  font-weight: 700;
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.contact-card .lede { margin: 0; color: var(--on-dark); line-height: 1.6; max-width: 460px; }
.contact-details { display: flex; flex-direction: column; gap: 22px; }
.contact-label {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--periwinkle); margin-bottom: 6px; font-weight: 600;
}
.contact-email { color: var(--bg); font-size: clamp(18px, 2vw, 22px); font-weight: 500; word-break: break-all; }
.contact-email:hover { color: #fff; }
.contact-address { font-size: 18px; line-height: 1.5; }

/* Footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.footer-bar {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand .name { font-weight: 700; font-size: 18px; }
.footer-brand .addr { color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.footer-nav a { color: var(--body); }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { padding-bottom: 32px; color: var(--faint); font-size: 13px; }

/* Document pages (About, Services, Privacy) */
.doc { max-width: 780px; width: 100%; margin: 0 auto; padding: 64px 24px 96px; }
.doc .back { font-weight: 600; font-size: 15px; }
.doc h1 {
  font-weight: 700;
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 28px 0 12px;
}
.doc .meta { margin: 0 0 40px; color: var(--muted); font-size: 15px; }
.doc .intro { font-size: 19px; line-height: 1.65; color: var(--body); margin: 0 0 40px; text-wrap: pretty; }
.doc section, .doc .doc-contact { padding: 28px 0; border-top: 1px solid var(--line); }
.doc section h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 12px; }
.doc section p { margin: 0 0 12px; line-height: 1.7; color: var(--body); text-wrap: pretty; }
.doc section p:last-child { margin-bottom: 0; }
.doc .doc-contact { line-height: 1.7; color: var(--body); }
.doc .doc-contact .name { font-weight: 600; color: var(--ink); margin-bottom: 6px; }

/* Application modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 23, 31, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative;
  background: var(--bg);
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  padding: clamp(24px, 4vw, 40px);
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--ink); color: #fff; }
.modal .eyebrow { margin-bottom: 10px; }
.modal-title { font-weight: 700; font-size: 32px; letter-spacing: -0.025em; line-height: 1.1; margin: 0 48px 8px 0; }
.modal-summary { margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.duties {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 26px;
}
.duties-h { font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.duty { display: flex; gap: 10px; line-height: 1.5; color: var(--body); font-size: 15px; margin-top: 4px; }
.duty .bullet { color: var(--blue); }

.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  padding: 13px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  outline: none;
  color: var(--ink);
}
.form input[type="date"] { padding: 12px 14px; }
.form textarea { resize: vertical; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); }
.form .consent { flex-direction: row; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--body); }
.form .consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); padding: 0; }
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form-foot .note { font-size: 13px; color: var(--muted); }
.form-foot .btn { padding: 15px 30px; }

.done { padding: 20px 0 8px; }
.done .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-size: 26px;
  margin-bottom: 22px;
}
.done h2 { font-weight: 700; font-size: 32px; letter-spacing: -0.025em; margin: 0 0 12px; }
.done p { margin: 0 0 14px; line-height: 1.6; color: var(--body); }
.done p.last { margin-bottom: 26px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
