/* ==========================================================================
   Samatva — beingsamatva.com
   Palette: near-black ground, off-white type, one muted terracotta accent.
   No gradients. No decorative imagery. Space and type do the work.
   ========================================================================== */

:root {
  --bg:          #0E0E0D;
  --bg-raised:   #141413;
  --ink:         #E6E2DA;   /* body — 14.7:1 on --bg */
  --ink-muted:   #9E988D;   /* secondary — 6.7:1 on --bg */
  --ink-dim:     #88837A;   /* quietest text — 5.1:1 on --bg, 4.9:1 on --bg-raised */
  --rule:        #2B2B27;
  --accent:      #C97A55;   /* muted terracotta — 5.9:1 on --bg */
  --accent-deep: #B0653F;
  --alert:       #E2896C;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1100px;
  --gutter: 1.375rem;
  --section-y: clamp(4.5rem, 11vw, 9rem);
}

/* -------------------------------------------------------------- reset --- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body { font-size: 1.125rem; }  /* 18px */
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

a { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ------------------------------------------------------- shared layout --- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 768px) {
  :root { --gutter: 2.5rem; }
}

.measure { max-width: 62ch; }

.section { padding-block: var(--section-y); }

.section-h {
  font-size: clamp(1.7rem, 4.2vw, 2.55rem);
  line-height: 1.2;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-close {
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--ink-muted);
  font-size: 1rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- focus --- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #0E0E0D;
}
.btn-primary:hover { background: var(--accent-deep); color: #0E0E0D; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 160ms ease, border-color 160ms ease;
}
.link-quiet:hover { color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(14, 14, 13, 0.92);
  border-bottom-color: var(--rule);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header.is-scrolled {
    background: rgba(14, 14, 13, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* Mobile: wordmark, a Menu disclosure, and the Join button on one row.
   The links drop into a panel beneath. Desktop: one row, links always visible.
   Without JavaScript the panel is simply always open — see the .js gate below. */
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  min-height: 62px;
}

.header-inner .wordmark { margin-right: auto; }
.nav-toggle { order: 2; }
.header-cta { order: 3; }
.site-nav   { order: 4; flex-basis: 100%; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-toggle:hover { color: var(--accent); border-color: var(--accent); }
.nav-toggle[aria-expanded="true"] { color: var(--ink); border-color: var(--accent); }

.site-nav {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.5rem;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink-muted);
  font-size: 0.98rem;
  text-decoration: none;
  border-top: 1px solid var(--rule);
  transition: color 160ms ease;
}

.site-nav a:hover { color: var(--accent); }
.site-nav a.is-current { color: var(--ink); }

.site-nav a.is-current::before {
  content: "";
  width: 0.85rem;
  height: 1px;
  margin-right: 0.7rem;
  background: var(--accent);
}

/* Collapsed only when JavaScript is present to reopen it. */
.js .site-nav { display: none; }
.js .site-nav.is-open { display: flex; }

@media (min-width: 820px) {
  .header-inner { flex-wrap: nowrap; gap: 2rem; min-height: 74px; }
  .nav-toggle { display: none; }

  .site-nav,
  .js .site-nav {
    display: flex;
    flex-direction: row;
    order: 2;
    flex-basis: auto;
    gap: 1.75rem;
    padding-bottom: 0;
  }

  .site-nav a {
    min-height: 44px;
    font-size: 0.92rem;
    border-top: 0;
    border-bottom: 1px solid transparent;
  }

  .site-nav a.is-current {
    border-bottom-color: var(--accent);
  }

  .site-nav a.is-current::before { display: none; }
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* --------------------------------------------------------------- hero --- */

.hero {
  padding-top: clamp(4rem, 12vw, 8rem);
  padding-bottom: clamp(4.5rem, 12vw, 9rem);
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  font-size: clamp(2.15rem, 6.4vw, 4.1rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

.br-desktop { display: none; }
@media (min-width: 900px) { .br-desktop { display: inline; } }

.hero-sub {
  font-size: clamp(1.08rem, 2.4vw, 1.32rem);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-meta {
  color: var(--ink-muted);
  font-size: 0.97rem;
  letter-spacing: 0.02em;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.hero-actions .btn { width: 100%; }

@media (min-width: 560px) {
  .hero-actions { flex-direction: row; align-items: center; gap: 2rem; }
  .hero-actions .btn { width: auto; }
}

.hero-tag {
  margin-top: clamp(3rem, 7vw, 5rem);
  color: var(--ink-dim);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------------------------------------------------- for / not for --- */

.cols {
  display: grid;
  gap: clamp(2.75rem, 6vw, 4.5rem);
}

@media (min-width: 860px) {
  .cols { grid-template-columns: 1fr 1fr; }
}

.col { min-width: 0; }

.col-h {
  font-size: 1.28rem;
  line-height: 1.35;
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.col-for .col-h { color: var(--ink); }
.col-not .col-h { color: var(--ink-muted); }

.list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1.35rem;
  line-height: 1.65;
}
.list li:last-child { margin-bottom: 0; }

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 0.85rem;
  height: 1px;
  background: var(--accent);
}

.list-not li { color: var(--ink-muted); }
.list-not li::before { background: var(--ink-dim); }

/* ------------------------------------------------------- what changes --- */

.changes {
  counter-reset: change;
  border-top: 1px solid var(--rule);
}

.changes li {
  counter-increment: change;
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(1.5rem, 3vw, 2rem) 3rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-muted);
  max-width: 68ch;
}

.changes li::before {
  content: counter(change, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: calc(clamp(1.5rem, 3vw, 2rem) + 0.25em);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.changes strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.18rem, 2.6vw, 1.45rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

/* ------------------------------------------------------------ teacher --- */

.teacher {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 860px) {
  .teacher { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}

.teacher-media { max-width: 380px; }

.portrait {
  width: 100%;
  border: 1px solid var(--rule);
  background: #262624;
}

.teacher-body { min-width: 0; color: var(--ink-muted); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------- cohort --- */

.facts { margin: 0; border-top: 1px solid var(--rule); }

.fact {
  display: grid;
  gap: 0.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 700px) {
  .fact {
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: baseline;
  }
}

.fact dt {
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.fact dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

/* ---------------------------------------------------- founders list --- */

.section-founders {
  background: var(--bg-raised);
  border-block: 1px solid var(--rule);
}

.founders-copy { color: var(--ink-muted); margin-bottom: 2.25rem; }

.signup { max-width: 34rem; }

.field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--bg);
  transition: border-color 160ms ease;
}

.field:focus-within {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
}

.field input::placeholder { color: var(--ink-dim); }
.field input:focus { outline: none; }

.field button {
  flex: 0 0 auto;
  min-height: 52px;
  min-width: 88px;
  padding: 0.75rem 1.4rem;
  border: 0;
  background: var(--accent);
  color: #0E0E0D;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.field button:hover { background: var(--accent-deep); }

.field.has-error { border-color: var(--alert); }

.field-error {
  min-height: 0;
  margin: 0.65rem 0 0;
  color: var(--alert);
  font-size: 0.92rem;
  line-height: 1.5;
}
.field-error:empty { margin-top: 0; }

.field-note {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.signup-done {
  margin: 0;
  padding: 1.15rem 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  border-top: 1px solid var(--accent);
  max-width: 34rem;
}

/* -------------------------------------------------------------- apply --- */

.apply-copy { color: var(--ink-muted); margin-bottom: 2.25rem; }

.apply-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.apply-actions .btn { width: 100%; }

@media (min-width: 560px) {
  .apply-actions { flex-direction: row; }
  .apply-actions .btn { width: auto; min-width: 15rem; }
}

/* ------------------------------------------------------------- footer --- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.footer-inner p { margin: 0 0 0.5rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  margin: 0.25rem 0 1.25rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.wordmark-footer { font-size: 1.2rem; color: var(--ink); margin-bottom: 0.75rem; }

.footer-place, .footer-copy { color: var(--ink-muted); font-size: 0.92rem; }
.footer-copy { margin-top: 1.25rem; }

/* ============================================ interior page components === */

/* ---------------------------------------------------- page header --- */

.page-head {
  padding-top: clamp(3rem, 9vw, 6rem);
  padding-bottom: clamp(3.25rem, 8vw, 5.5rem);
  border-bottom: 1px solid var(--rule);
}

.page-head h1 {
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.page-head .signup,
.apply-actions-head { margin-top: clamp(1.75rem, 4vw, 2.5rem); }

/* -------------------------------------------------- onward links --- */

.more { margin-top: clamp(1.5rem, 3.5vw, 2.25rem); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: var(--accent);
  font-size: 0.98rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.link-more::after { content: "\2192"; }
.link-more:hover { border-bottom-color: var(--accent); }

/* --------------------------------------------- the six ideas, long --- */

.ideas {
  counter-reset: idea;
  border-top: 1px solid var(--rule);
}

.ideas li {
  counter-increment: idea;
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0 clamp(1.75rem, 3.5vw, 2.5rem) 3rem;
  border-bottom: 1px solid var(--rule);
  max-width: 68ch;
}

.ideas li::before {
  content: counter(idea, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: calc(clamp(1.75rem, 3.5vw, 2.5rem) + 0.3em);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.ideas h3 {
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.ideas .idea-src {
  color: var(--accent);
  font-size: 0.97rem;
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.ideas p { color: var(--ink-muted); }

/* ------------------------------------------------ week by week --- */

.weeks { border-top: 1px solid var(--rule); }

.weeks li {
  display: grid;
  gap: 0.3rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-muted);
}

@media (min-width: 700px) {
  .weeks li {
    grid-template-columns: minmax(0, 8rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: baseline;
  }
}

.week-n {
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.week-b { min-width: 0; max-width: 62ch; }
.week-b strong { color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------ questions --- */

.faq { margin: 0; border-top: 1px solid var(--rule); }

.qa {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  max-width: 68ch;
}

.qa dt {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.qa dd { margin: 0; color: var(--ink-muted); }

/* ---------------------------------------------------------- steps --- */

.steps {
  counter-reset: step;
  border-top: 1px solid var(--rule);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(1.5rem, 3vw, 2rem) 3rem;
  border-bottom: 1px solid var(--rule);
  max-width: 66ch;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: calc(clamp(1.5rem, 3vw, 2rem) + 0.3em);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.steps h3 {
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.steps p { color: var(--ink-muted); }

/* ---------------------------------------------------------- prose --- */

.prose p { color: var(--ink-muted); }

/* ------------------------------------------ founding member cards --- */

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
}

@media (min-width: 760px) {
  .founders-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.founder {
  min-width: 0;
  border: 1px solid var(--rule);
  padding: clamp(0.85rem, 2vw, 1.1rem);
  background: var(--bg);
}

/* Neutral block, no photograph, no name. Deliberately anonymous until filled in. */
.founder-face {
  aspect-ratio: 4 / 5;
  width: 100%;
  background: #262624;
  border: 1px solid var(--rule);
}

.founder-n {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* ------------------------------------------------- application form --- */

.jform { max-width: 40rem; }

.jfield { margin-bottom: clamp(1.25rem, 3vw, 1.6rem); }

.jfield label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.jfield .optional { color: var(--ink-dim); }

.jfield input,
.jfield textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  transition: border-color 160ms ease;
}

.jfield textarea {
  min-height: 118px;
  resize: vertical;
}

.jfield input::placeholder,
.jfield textarea::placeholder { color: var(--ink-dim); }

.jfield input:focus,
.jfield textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.jfield.has-error input,
.jfield.has-error textarea { border-color: var(--alert); }

.jfield .err {
  margin: 0.55rem 0 0;
  color: var(--alert);
  font-size: 0.9rem;
  line-height: 1.5;
}

.jfield .err:empty { margin-top: 0; }

.jform-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
}

.jform-actions .btn { width: 100%; }

@media (min-width: 560px) {
  .jform-actions { flex-direction: row; }
  .jform-actions .btn { width: auto; min-width: 15rem; }
}

.jform-note {
  margin-top: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.jform-done {
  max-width: 40rem;
  margin: 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--accent);
  color: var(--ink);
  font-size: 1.05rem;
}

/* ------------------------------------------------- closing cta band --- */

.section-cta {
  background: var(--bg-raised);
  border-block: 1px solid var(--rule);
}

/* -------------------------------------------------- scroll reveal --- */
/* Hidden only when JS is present, so the page is fully readable without it. */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .link-quiet, .field, .site-header { transition: none; }
}
