:root {
  --bg: #ffffff;
  --bg-soft: #f5f4ef;
  --ink: #0a0a0a;
  --ink-2: #1f2328;
  --muted: #5e6772;
  --line: #e6e3da;
  --accent: #1a3a8a;
  --dark: #0a0a0a;
  --on-dark: #f5f4ef;
  --on-dark-muted: #9ca3ad;
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.eyebrow.light {
  color: var(--on-dark-muted);
}

.muted {
  color: var(--muted);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.005em;
  font-size: 18px;
  color: var(--ink);
}

.logo svg {
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 15px;
}

.nav-links a {
  color: var(--ink-2);
  transition: opacity 0.2s var(--ease);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

.nav-links a:hover {
  opacity: 0.6;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

/* Hero */
.hero {
  padding: 160px 0 180px;
}

.hero-inner {
  max-width: 1100px;
}

h1 {
  font-family: inherit;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 48px;
  color: var(--ink);
}

.hero-sub {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0;
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-light {
  background: var(--on-dark);
  color: var(--dark);
}

.btn-light:hover {
  background: #fff;
}

/* Sections */
.section {
  padding: 120px 0;
}

.lead {
  max-width: 1000px;
}

.lead p {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

h2 {
  font-family: inherit;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 32px;
  max-width: 20ch;
}

h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 500;
  line-height: 1.25;
  margin: 14px 0 12px;
}

p {
  margin: 0 0 16px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 56px;
}

/* News */
.section-news {
  background: var(--bg-soft);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-grid-wide {
  grid-template-columns: repeat(3, 1fr);
}

.news-card {
  display: block;
  transition: transform 0.3s var(--ease);
}

.news-card:hover {
  transform: translateY(-3px);
}

.news-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #c9d6ef, #e7d9f7);
  position: relative;
  overflow: hidden;
}

.news-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.5),
    transparent 60%
  );
}

.thumb-a {
  background: linear-gradient(135deg, #cfe0ff, #e3d6f5);
}

.thumb-b {
  background: linear-gradient(135deg, #d6efdf, #cfe2ff);
}

.thumb-c {
  background: linear-gradient(135deg, #f3dec9, #e7d6ff);
}

.news-meta {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.news-card h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  max-width: 28ch;
}

.link-arrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: opacity 0.2s var(--ease);
}

.link-arrow:hover {
  opacity: 0.6;
}

/* CTA banner */
.section-cta {
  padding: 140px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 40px;
}

.cta-inner h2 {
  margin: 0;
  max-width: 24ch;
}

/* Three-col grid */
.section-grid {
  padding: 140px 0;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.grid-three article p {
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 36ch;
}

.grid-three article h3 {
  margin-top: 16px;
  max-width: 22ch;
}

/* Quote */
.section-quote {
  padding: 140px 0 160px;
  border-top: 1px solid var(--line);
}

.section-quote blockquote {
  margin: 0;
  max-width: 1100px;
}

.section-quote p {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 40px;
}

.section-quote footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
}

.section-quote footer span:first-child {
  font-weight: 500;
}

/* Careers */
.section-careers {
  background: var(--dark);
  color: var(--on-dark);
  padding: 160px 0;
}

.careers-inner {
  max-width: 1000px;
}

.section-careers h2 {
  color: var(--on-dark);
  margin: 24px 0 32px;
}

.careers-sub {
  color: var(--on-dark-muted);
  font-size: 19px;
  margin-bottom: 48px;
  max-width: 560px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--on-dark);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-light,
.logo-light svg {
  color: var(--on-dark);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-cols h4 {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 500;
  color: var(--on-dark-muted);
  margin: 0 0 18px;
}

.footer-cols a {
  display: block;
  color: var(--on-dark);
  font-size: 15px;
  margin-bottom: 12px;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}

.footer-cols a:hover {
  opacity: 1;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
  color: var(--on-dark-muted);
}

/* Inner-page hero */
.page-hero {
  padding: 140px 0 80px;
}

.page-title {
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 24px 0 32px;
  max-width: 18ch;
}

.page-sub {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 0 32px;
}

.locations {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 56px;
}

.locations span {
  position: relative;
  padding-left: 18px;
}

.locations span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

/* Article (news posts and legal pages) */
.article {
  padding: 56px 0 120px;
}

.article-inner {
  max-width: 800px;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color 0.2s var(--ease);
}

.back-link:hover {
  color: var(--ink);
}

.article-title {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 16px 0 28px;
  max-width: 22ch;
}

.article-lede {
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 48px;
  max-width: 36em;
}

.article-thumb {
  aspect-ratio: 16 / 8;
  border-radius: 6px;
  margin-bottom: 56px;
}

.article-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
}

.article-body p {
  margin: 0 0 22px;
}

.article-body h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
  margin: 48px 0 16px;
  max-width: none;
}

.article-body h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin: 0 0 22px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

.article-body strong {
  font-weight: 600;
  color: var(--ink);
}

.article-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.legal .article-body {
  font-size: 16px;
  line-height: 1.65;
}

.legal .article-body p,
.legal .article-body li {
  font-size: 16px;
}

.legal-toc {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin: 32px 0 48px;
}

.legal-toc h4 {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 16px;
}

.legal-toc ol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 32px;
  list-style: decimal inside;
  padding: 0;
  margin: 0;
  font-size: 14.5px;
}

.legal-toc li {
  margin: 0;
}

.legal-toc a {
  color: var(--ink-2);
  border: none;
}

.legal-toc a:hover {
  color: var(--accent);
}

/* Careers — role list */
.section-roles {
  padding: 40px 0 120px;
}

.role-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 56px;
}

.role-filter {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.role-filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.role-filter.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.role-group {
  margin-bottom: 56px;
}

.role-group-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin: 0 0 8px;
}

.role-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.role-row {
  border-bottom: 1px solid var(--line);
}

.role-row a {
  display: grid;
  grid-template-columns: 2fr 1.6fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  transition: padding 0.2s var(--ease);
}

.role-row a:hover {
  padding-left: 8px;
}

.role-row a:hover .role-arrow {
  transform: translateX(4px);
}

.role-title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.role-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.role-meta span:first-child {
  position: relative;
  padding-right: 20px;
}

.role-meta span:first-child::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
  transform: translateY(-50%);
}

.role-arrow {
  font-size: 18px;
  color: var(--ink);
  transition: transform 0.2s var(--ease);
}

.role-empty {
  text-align: center;
  padding: 64px 0;
  color: var(--muted);
}

/* Inner content sections (team / work / story) */
.content-section {
  padding: 80px 0 40px;
}

.team-section-head {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin: 32px 0 40px;
}

.team-section-head h2 {
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -0.02em;
  margin: 12px 0 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.team-card {
  display: block;
}

.team-photo {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background: linear-gradient(135deg, #e3d6f5, #cfe0ff);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.team-photo::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.team-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--ink);
}

.team-role {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.principles {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.principle {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}

.principle-num {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 4px;
}

.principle h3 {
  font-size: 24px;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0 0 12px;
}

.principle p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
}

.timeline {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.tl-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.tl-year {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.tl-body h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0 0 8px;
}

.tl-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 56ch;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }
  .hero {
    padding: 100px 0 120px;
  }
  .section,
  .section-cta,
  .section-grid,
  .section-quote,
  .section-careers {
    padding: 88px 0;
  }
  .grid-three,
  .news-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .section-head {
    flex-direction: column;
    align-items: start;
    gap: 16px;
  }
  .role-row a {
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
  }
  .role-meta {
    grid-column: 1 / -1;
    gap: 16px;
    font-size: 13px;
  }
  .page-hero {
    padding: 88px 0 56px;
  }
  .article-thumb {
    margin-bottom: 40px;
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .principle {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tl-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 22px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .footer-base {
    flex-direction: column;
    gap: 8px;
  }
  .role-filters {
    gap: 6px;
  }
  .role-filter {
    padding: 8px 14px;
    font-size: 13px;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
