/* ---- Base ---------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #faf7f2;
  color: #211c18;
  font-family: "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #6d3bd6;
  text-decoration: none;
}

a:hover {
  color: #4c1d95;
}

::selection {
  background: #e6dbfb;
}

strong {
  font-weight: 600;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7b7166;
  margin-bottom: 20px;
}

.card {
  border: 1px solid #ebe4d9;
  background: #fffdfa;
  border-radius: 12px;
  padding: 26px;
}

/* ---- Nav ----------------------------------------------------------- */

.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  position: sticky;
  top: 0;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(10px);
  z-index: 20;
  border-bottom: 1px solid #ebe4d9;
}

.nav-logo {
  font-family: Newsreader, Georgia, serif;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: #211c18;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
}

.nav-links a {
  color: #6b6158;
}

.nav-links a:hover {
  color: #211c18;
}

/* ---- Hero ---------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 72px;
  align-items: start;
  padding: 96px 0 88px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border: 1px solid #ddd1f5;
  background: #f4effe;
  border-radius: 999px;
  font-size: 13px;
  color: #5b34b8;
  margin-bottom: 32px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c3aed;
  display: block;
}

.hero-title {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: 76px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  text-wrap: pretty;
}

.hero-title em {
  font-style: italic;
  color: #6d3bd6;
}

.hero-lede {
  font-size: 19px;
  line-height: 1.62;
  color: #4a423b;
  margin: 0 0 22px;
  max-width: 60ch;
  text-wrap: pretty;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.62;
  color: #6b6158;
  margin: 0 0 40px;
  max-width: 60ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}

.btn-dark {
  background: #211c18;
  color: #faf7f2;
}

.btn-dark:hover {
  background: #38312a;
  color: #faf7f2;
}

.btn-outline {
  border: 1px solid #d9d0c4;
  color: #211c18;
  background: #fffdfa;
}

.btn-outline:hover {
  border-color: #b8ac9b;
  color: #211c18;
}

.btn-primary {
  background: #7c3aed;
  color: #ffffff;
}

.btn-primary:hover {
  background: #6d3bd6;
  color: #ffffff;
}

.current-card {
  border-radius: 14px;
  padding: 30px;
  margin-top: 12px;
}

.current-role {
  font-family: Newsreader, Georgia, serif;
  font-size: 25px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.current-org {
  font-size: 15px;
  color: #6b6158;
  margin-bottom: 28px;
}

.fact-list {
  display: grid;
  gap: 14px;
  border-top: 1px solid #efe9df;
  padding-top: 24px;
  font-size: 15px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.fact-row > span:first-child {
  color: #7b7166;
}

/* ---- Sections ------------------------------------------------------ */

.section {
  padding: 112px 0 0;
  scroll-margin-top: 90px;
}

.section-work {
  padding-top: 24px;
}

.section-contact {
  padding-top: 128px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid #211c18;
  padding-top: 18px;
  margin-bottom: 56px;
}

.section-work .section-head {
  margin-bottom: 64px;
}

.section-head h2 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-note {
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7b7166;
}

/* ---- Work cases ---------------------------------------------------- */

.case {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 64px;
  padding-bottom: 72px;
  margin-bottom: 72px;
  border-bottom: 1px solid #ebe4d9;
}

.case-last {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.case-num {
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6d3bd6;
  margin-bottom: 14px;
}

.case-title {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.case-role {
  font-size: 15px;
  color: #6b6158;
  line-height: 1.6;
  margin-bottom: 22px;
}

.case-desc {
  font-size: 16px;
  line-height: 1.62;
  color: #4a423b;
  margin: 0 0 22px;
}

.case-desc.no-margin {
  margin-bottom: 0;
}

.case-facts {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: #6b6158;
  border-top: 1px solid #efe9df;
  padding-top: 20px;
  margin-bottom: 20px;
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.case-note {
  font-size: 13px;
  color: #7b7166;
}

.bullets {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.bullets li {
  display: grid;
  grid-template-columns: 22px 1fr;
  font-size: 16px;
  line-height: 1.6;
  color: #332c26;
}

.bullets li > span:first-child {
  color: #c9bca9;
}

.bullets-tight {
  margin-bottom: 0;
  gap: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 13px;
  padding: 6px 11px;
  border: 1px solid #e7e0d6;
  border-radius: 6px;
  color: #6b6158;
  background: #fffdfa;
}

/* ---- Experience ---------------------------------------------------- */

.exp-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid #efe9df;
  align-items: baseline;
}

.exp-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.exp-org {
  font-size: 15px;
  color: #6b6158;
}

.exp-stack {
  font-size: 14px;
  color: #6b6158;
  line-height: 1.5;
}

.exp-detail {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 64px;
  margin-top: 56px;
}

.exp-detail h3 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.exp-detail p {
  font-size: 15px;
  line-height: 1.6;
  color: #6b6158;
  margin: 0;
}

.also-shipped {
  margin-top: 72px;
}

.also-shipped .eyebrow {
  margin-bottom: 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mini-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-card .mini-card-title {
  font-family: Newsreader, Georgia, serif;
  font-size: 22px;
}

.mini-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #6b6158;
  margin: 0;
  flex: 1;
}

.mini-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

.mini-card-note {
  font-size: 13px;
  color: #7b7166;
}

/* ---- Stack --------------------------------------------------------- */

.stack-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 40px;
  padding: 22px 0;
  border-bottom: 1px solid #efe9df;
}

.stack-name {
  font-size: 17px;
  font-weight: 500;
}

.stack-items {
  font-size: 16px;
  line-height: 1.75;
  color: #4a423b;
}

/* ---- About --------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-grid h3 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

.about-lede {
  font-size: 17px;
  line-height: 1.65;
  color: #4a423b;
  margin: 0 0 28px;
  max-width: 58ch;
  text-wrap: pretty;
}

.about-cards {
  display: grid;
  gap: 20px;
}

.edu-item {
  margin-bottom: 20px;
}

.edu-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.edu-org {
  font-size: 14px;
  color: #6b6158;
}

.edu-link {
  font-size: 14px;
}

.lang-list {
  display: grid;
  gap: 12px;
  font-size: 15px;
}

.lang-list .fact-row > span:last-child {
  color: #6b6158;
}

.lang-list .lang-name {
  color: #211c18;
}

/* ---- Contact ------------------------------------------------------- */

.contact-box {
  border: 1px solid #ebe4d9;
  background: #fffdfa;
  border-radius: 16px;
  padding: 72px 64px;
  text-align: center;
}

.contact-box h2 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.contact-box p {
  font-size: 18px;
  line-height: 1.6;
  color: #6b6158;
  margin: 0 auto 40px;
  max-width: 52ch;
  text-wrap: pretty;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.contact-actions .btn {
  padding: 14px 26px;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 40px;
  font-size: 14px;
  color: #6b6158;
}

/* ---- Responsive ---------------------------------------------------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 0 72px;
  }

  .hero-title {
    font-size: 52px;
  }

  .case,
  .exp-detail,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case {
    padding-bottom: 56px;
    margin-bottom: 56px;
  }

  .exp-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stack-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 56px 32px;
  }

  .contact-box h2 {
    font-size: 40px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px 80px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 0;
  }

  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero-title {
    font-size: 40px;
  }

  .section {
    padding-top: 80px;
  }

  .section-head h2 {
    font-size: 32px;
  }

  .case-title {
    font-size: 28px;
  }

  .current-card {
    padding: 24px 20px;
  }

  .fact-row {
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .contact-box {
    padding: 44px 20px;
  }

  .contact-box h2 {
    font-size: 32px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }
}
