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

:root {
  --ink: #0a0a0a;
  --ink-2: #444;
  --ink-3: #888;
  --surface: #fafaf8;
  --surface-2: #f2f0eb;
  --surface-3: #e8e5de;
  --accent: #e8562a;
  --accent-h: #c94420;
  --navy: #14203b;
  --border: rgba(0, 0, 0, 0.08);
  --border-2: rgba(0, 0, 0, 0.15);
  --r: 4px;
  --r-lg: 10px;
  --max: 1140px;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', system-ui, sans-serif
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--sans);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased
}

section {
  padding: 5.5rem 2rem
}

.c {
  max-width: var(--max);
  margin: 0 auto
}

.slbl {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem
}

.stitle {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.63rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem
}

.btn-p {
  background: var(--accent);
  color: #fff;
  padding: 0.78rem 1.8rem;
  border-radius: var(--r);
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  display: inline-block
}

.btn-p:hover {
  background: var(--accent-h)
}

.btn-ghost-l {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.72rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r);
  transition: all 0.2s;
  display: inline-block
}

.btn-ghost-l:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff
}

/* HERO */
.cult-hero {
  background: var(--navy);
  padding: 5.5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden
}

.cult-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 86, 42, 0.1) 0%, transparent 60%);
  pointer-events: none
}

.ch-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 86, 42, 0.85);
  margin-bottom: 1.2rem
}

.ch-h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin: 0 auto 1.2rem
}

.ch-h1 em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.45)
}

.ch-p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.75
}

.ch-cta {
  display: inline-block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s
}

.ch-cta:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6)
}

/* PEOPLE SECTION (first content section) */
.sect-people {
  background: var(--surface)
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start
}

.people-body {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-weight: 300;
  text-align: justify
}

.people-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 0.5rem;
  transition: opacity 0.2s
}

.people-link:hover {
  opacity: 0.75
}

.people-side {
  padding-top: 0.25rem
}

.people-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem
}

.ptag {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 50px;
  padding: 0.45rem 1.1rem;
  font-size: 0.84rem;
  color: var(--ink-2)
}

.people-note {
  font-size: 0.84rem;
  color: var(--ink-3);
  font-style: italic;
  line-height: 1.6
}

/* HOW WE WORK SECTION */
.sect-work {
  background: var(--surface-2)
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start
}

.work-intro {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.75;
  font-weight: 300;
  text-align: justify
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem
}

.principle-card {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem
}

.principle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-bottom: 0.2rem
}

.principle-card-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88)
}

.principle-card-body {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin: 0
}

/* HOW WE GROW SECTION */
.sect-grow {
  background: var(--surface)
}

.grow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem
}

.grow-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem
}

.grow-item--wide {
  grid-column: span 1
}

@media (min-width: 901px) {
  .grow-item--wide {
    grid-column: span 2
  }
}

.grow-icon {
  color: var(--accent);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 86, 42, 0.08);
  border-radius: var(--r);
  flex-shrink: 0
}

.grow-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink)
}

.grow-body {
  font-size: 0.87rem;
  color: var(--ink-2);
  line-height: 1.72
}

.grow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem
}

.grow-link {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  background: rgba(232, 86, 42, 0.07);
  padding: 0.22rem 0.65rem;
  border-radius: 2px;
  transition: background 0.2s
}

.grow-link:hover {
  background: rgba(232, 86, 42, 0.14)
}

/* TOOLS SECTION */
.sect-tools {
  background: var(--surface-2)
}

.sect-intro {
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 680px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2.5rem;
  text-align: justify
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem
}

.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  transition: border-color 0.2s;
  background: var(--surface)
}

.tool-card:hover {
  border-color: var(--border-2)
}

.tool-card--featured {
  border-color: rgba(232, 86, 42, 0.25);
  background: rgba(232, 86, 42, 0.02);
  grid-column: span 2
}

.tool-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--surface-3);
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  padding-top: 0.15rem
}

.tool-card--featured .tool-num {
  color: rgba(232, 86, 42, 0.18)
}

.tool-body {
  flex: 1
}

.tool-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.75rem
}

.tool-badge-alt {
  display: inline-block;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.75rem
}

.tool-badge-oss {
  display: inline-block;
  background: #eaf3de;
  color: #3b6d11;
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.75rem
}

.tool-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: var(--ink);
  text-align:left
}

.tool-detail {
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.68;
  margin-bottom: 0.55rem;
    text-align:justify
}

.tool-detail:last-child {
  margin-bottom: 0
}

/* CTA */
.cult-cta {
  background: var(--navy);
  text-align: center;
  padding: 5rem 2rem
}

.cult-cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
  margin-bottom: 0.8rem
}

.cult-cta p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 420px;
  margin: 0 auto 2rem;
  font-weight: 300;
  line-height: 1.75
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap
}

/* FOOTER layout (component CSS is injected by footer.js) */
footer {
  background: #080808;
  color: rgba(255, 255, 255, 0.45);
  padding: 3rem 2rem
}

.foot-i {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem
}

.foot-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.8rem
}

.foot-logo span {
  color: var(--accent)
}

.foot-tag {
  font-size: 0.8rem;
  line-height: 1.6
}

.foot-col h5 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 1rem;
  font-weight: 400
}

.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem
}

.foot-col a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s
}

.foot-col a:hover {
  color: rgba(255, 255, 255, 0.8)
}

.foot-btm {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
  gap: 0.5rem
}

.foot-btm a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none
}

.foot-btm a:hover {
  color: rgba(255, 255, 255, 0.85)
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .people-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem
  }

  .principles-grid {
    grid-template-columns: 1fr 1fr
  }

  .tools-grid {
    grid-template-columns: 1fr
  }

  .tool-card--featured {
    grid-column: span 1
  }

  .grow-grid {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .foot-i {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width: 600px) {
  section {
    padding: 4rem 1.25rem
  }

  .cult-hero {
    padding: 3.5rem 1.25rem 3rem
  }

  .cult-cta {
    padding: 3.5rem 1.25rem
  }

  .principles-grid {
    grid-template-columns: 1fr
  }

  .people-body,
  .work-intro,
  .tool-detail {
    text-align: left
  }

  .tool-card {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem
  }

  .tool-num {
    width: auto
  }

  .foot-i {
    grid-template-columns: 1fr
  }
}
