/* ============================================================
   Mental Club — components.css
   Components and sections, in document order.
   ============================================================ */

/* ---------- Nav ---------- */
nav.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px;
}

.brand { display: inline-flex; align-items: center; }
.brand img         { height: 60px; width: auto; }
.brand--footer img { height: 64px; }
@media (max-width: 960px) {
  .brand img         { height: 48px; }
  .brand--footer img { height: 52px; }
}

nav.top ul { list-style: none; display: flex; gap: 28px; }
nav.top a {
  position: relative;
  color: var(--ink); text-decoration: none;
  font-size: 14px; letter-spacing: .02em;
}
nav.top a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
nav.top a:hover::after { transform: scaleX(1); }

/* CTA pill — kept under `nav.top` for specificity */
nav.top a.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink); color: var(--bone);
  font-size: 13px; letter-spacing: .01em;
  position: relative; overflow: hidden;
  transition: transform .2s ease;
}
nav.top a.nav-cta:hover  { transform: translateY(-1px); color: var(--bone); }
nav.top a.nav-cta::after { display: none; }

.nav-cta .label { position: relative; z-index: 2; }
.nav-cta::before {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 55%; height: 100%; z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255, 242, 0, 0)  40%,
    rgba(255, 242, 0, .55) 50%,
    rgba(255, 242, 0, 0)   60%,
    transparent 75%
  );
  animation: shine 3.4s cubic-bezier(.6, .05, .2, 1) infinite;
}
@keyframes shine {
  0%   { left: -60%; }
  55%  { left: 160%; }
  100% { left: 160%; }
}
.nav-cta .glyph {
  position: relative; z-index: 2;
  display: inline-block;
  font-family: var(--font-display);
  font-size: 17px; line-height: 1;
  animation: nudge 2.2s cubic-bezier(.6, .05, .2, 1) infinite;
}
@keyframes nudge {
  0%, 60%, 100% { transform: translateX(0); }
  75%           { transform: translateX(4px); }
  90%           { transform: translateX(0); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 40px; }

.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mute);
}
.eyebrow .sep { opacity: .5; }

.headline {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(58px, 11.4vw, 184px);
  line-height: .88;
  letter-spacing: -0.035em;
  margin-top: 22px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.headline .it       { font-style: italic; font-weight: 300; }
.headline .stroke   { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.headline .accent-bg {
  background: var(--accent);
  padding: 0 .12em;
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero .reveal-row { display: block; overflow: hidden; }
.hero .reveal-row > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s cubic-bezier(.2, .7, .2, 1) forwards;
}
.hero .reveal-row:nth-child(2) > span { animation-delay: .05s; }
.hero .reveal-row:nth-child(3) > span { animation-delay: .12s; }
.hero .reveal-row:nth-child(4) > span { animation-delay: .18s; }
.hero .reveal-row:nth-child(5) > span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-foot {
  display: grid;
  grid-template-columns: 1.1fr .7fr 1.2fr;
  gap: 40px;
  align-items: end;
  margin-top: 56px;
}
.hero-foot p {
  font-size: 17px; line-height: 1.5;
  color: var(--ink-soft); max-width: 38ch;
}
.hero-foot p em {
  font-family: var(--font-display); font-style: italic;
  color: var(--ink);
}

.tape {
  position: absolute; left: -2vw; top: 22%;
  transform: rotate(-90deg); transform-origin: left top;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .3em;
  color: var(--mute);
}

/* ---------- Buttons ---------- */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 22px 18px 26px;
  background: var(--ink); color: var(--bone);
  border-radius: 999px; text-decoration: none;
  font-size: 15px; letter-spacing: .01em;
  position: relative; overflow: hidden;
  transition: background .25s ease, transform .25s ease;
}
.btn-primary:hover { background: var(--flare); transform: translateY(-2px); }
.btn-primary .arrow {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent); color: var(--ink);
  transition: transform .3s ease;
}
.btn-primary:hover .arrow { transform: rotate(-45deg); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--ink); border-radius: 999px;
  color: var(--ink); text-decoration: none;
  font-size: 14px;
  transition: background .2s ease, color .2s ease;
}
.btn-ghost:hover { background: var(--ink); color: var(--bone); }

/* ---------- Breath card ---------- */
.breath-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  position: relative;
}
.breath-circle {
  flex-shrink: 0;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--accent) 60%, transparent 75%);
  box-shadow: 0 0 0 1px var(--line);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(.78); filter: hue-rotate(0deg); }
  50%      { transform: scale(1.05); filter: hue-rotate(-12deg); }
}
.breath-card .meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute);
}
.breath-card .label {
  font-family: var(--font-display); font-style: italic;
  font-size: 18px;
}

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 56px;
  background: var(--ink); color: var(--bone);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex; gap: 60px;
  padding: 18px 0;
  white-space: nowrap;
  width: max-content;
  animation: scroll 38s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 64px);
  font-style: italic; font-weight: 300;
}
.marquee-track span:nth-child(even) {
  color: var(--accent);
  font-style: normal;
}
.marquee-track .dot {
  align-self: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--flare);
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Programs ---------- */
.programs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 60px;
}

.card {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 380px;
  padding: 24px;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--bone);
  position: relative; overflow: hidden;
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.card:hover { transform: translateY(-4px); }

.card .num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
}
.card h4 {
  margin-top: 28px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.02; letter-spacing: -0.02em;
}
.card h4 em { font-style: italic; }
.card p {
  margin-top: 14px;
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-soft); max-width: 36ch;
}
.card .meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 18px;
}
.card .meta span {
  border-top: 1px solid var(--ink);
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
}
.card .blob {
  position: absolute; right: -40px; bottom: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(2px);
  opacity: 0; transform: scale(.6);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .blob { opacity: .5; transform: scale(1); }

.card.invert {
  background: var(--ink); color: var(--bone);
  border-color: var(--ink);
}
.card.invert .num         { color: var(--accent); }
.card.invert p            { color: rgba(239, 231, 214, .78); }
.card.invert .meta span   { border-top-color: rgba(239, 231, 214, .5); }
.card.invert .blob        { background: var(--flare); }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 60px 0 80px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.step {
  display: flex; flex-direction: column; gap: 16px;
  padding: 30px 22px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .3s;
}
.step:last-child { border-right: none; }
.step:hover      { background: rgba(255, 255, 255, .35); }

.step .n {
  font-family: var(--font-display); font-style: italic;
  font-size: 38px; line-height: 1;
  color: var(--mute);
}
.step h5 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 22px; line-height: 1.1;
}
.step p {
  font-size: 14px; line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Founders ---------- */
.founders {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 80px;
}
.founder {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, .32);
  backdrop-filter: blur(8px);
  transition:
    transform .5s cubic-bezier(.2, .7, .2, 1),
    background .3s;
}
.founder:hover                 { transform: translateY(-6px); background: rgba(255, 255, 255, .55); }
.founder:nth-child(2)          { transform: translateY(40px); }
.founder:nth-child(2):hover    { transform: translateY(34px); }

.portrait {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--clay), var(--bone-2) 60%, var(--accent));
}
.portrait::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(14, 13, 11, .05) 0 2px,
    transparent 2px 8px
  );
}
.portrait--alt {
  background: linear-gradient(135deg, var(--accent), var(--bone-2) 60%, var(--flare));
}
.portrait .ph {
  position: relative; z-index: 2;
  padding: 10px 14px;
  border: 1px dashed rgba(14, 13, 11, .55);
  border-radius: 6px;
  background: rgba(239, 231, 214, .78);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink);
}
.portrait .badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  padding: 6px 8px;
  border-radius: 4px;
  background: var(--ink); color: var(--bone);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.portrait .corner {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  padding: 6px 8px;
  border-radius: 4px;
  background: var(--accent); color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
}

.founder .name-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 18px;
}
.founder h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 30px; letter-spacing: -0.02em;
}
.founder h3 em { font-style: italic; color: var(--mute); }
.founder .role {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute);
}
.founder p {
  margin-top: 12px;
  font-size: 15px; line-height: 1.55;
  color: var(--ink-soft); max-width: 50ch;
}

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag {
  padding: 6px 9px;
  border: 1px solid var(--ink); border-radius: 6px;
  background: transparent; color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.tag:hover { background: var(--ink); color: var(--bone); }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; padding: 60px 0;
}
.stat {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-family: var(--font-display); font-weight: 350;
  font-size: clamp(56px, 7vw, 110px);
  line-height: 1; letter-spacing: -0.03em;
}
.stat .num em { font-style: italic; color: var(--flare); }
.stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute);
}
.stat .body {
  font-size: 14px; color: var(--ink-soft); max-width: 32ch;
}

/* ---------- Quote ---------- */
.quote-block {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 40px; align-items: end;
  padding: 40px 0 100px;
}
.quote-block blockquote {
  font-family: var(--font-display); font-weight: 350;
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1.05; letter-spacing: -0.02em;
}
.quote-block blockquote em { font-style: italic; color: var(--mute); }
.quote-block .source {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute);
}
.quote-block .qmark {
  align-self: start;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(140px, 22vw, 360px);
  line-height: .7;
  color: var(--flare);
}

/* ---------- CTA ---------- */
.cta {
  margin: 40px 0 80px;
  padding: clamp(40px, 6vw, 80px);
  border-radius: 20px;
  background: var(--ink); color: var(--bone);
  position: relative; overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; right: -10%; top: -30%;
  width: 60%; height: 160%;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0%, transparent 60%);
  opacity: .32;
  filter: blur(20px);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-12%, 8%) rotate(20deg); } }

.cta-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 50px; align-items: end;
  position: relative; z-index: 2;
}
.cta h2 {
  font-family: var(--font-display); font-weight: 350;
  font-size: clamp(40px, 6.5vw, 100px);
  line-height: .95; letter-spacing: -0.03em;
}
.cta h2 em { font-style: italic; color: var(--accent); }

.cta .meta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
}
.cta .meta-grid div {
  padding-top: 14px;
  border-top: 1px solid rgba(239, 231, 214, .25);
}
.cta .meta-grid .k {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(239, 231, 214, .6);
}
.cta .meta-grid .v {
  margin-top: 4px;
  font-family: var(--font-display); font-style: italic;
  font-size: 22px;
}

.cta-form {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 36px;
  padding: 6px;
  max-width: 580px;
  border: 1px solid rgba(239, 231, 214, .3);
  border-radius: 999px;
  background: rgba(239, 231, 214, .05);
}
.cta-form input {
  flex: 1; min-width: 180px;
  padding: 14px 16px;
  background: transparent; border: 0; outline: 0;
  color: var(--bone);
  font-family: var(--font-body); font-size: 15px;
}
.cta-form input::placeholder { color: rgba(239, 231, 214, .45); }
.cta-form button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font-family: var(--font-body); font-weight: 500;
  font-size: 14px; letter-spacing: .02em;
  transition: background .2s ease, transform .2s ease;
}
.cta-form button:hover { background: var(--flare); color: var(--bone); transform: translateY(-1px); }
.cta .small {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .08em;
  color: rgba(239, 231, 214, .55);
}

/* ---------- Footer ---------- */
.site-footer {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px; align-items: start;
  padding: 30px 0 60px;
  border-top: 1px solid var(--line);
}
.site-footer .col h6 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute);
}
.site-footer .col a,
.site-footer .col p {
  display: block;
  color: var(--ink); text-decoration: none;
  font-size: 14px; line-height: 1.85;
}
.site-footer .col a:hover { color: var(--flare); }
.site-footer .signoff {
  margin-top: 18px;
  font-family: var(--font-display); font-style: italic;
  font-size: 14px;
  color: var(--mute);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-foot          { grid-template-columns: 1fr; gap: 24px; }
  .founders           { grid-template-columns: 1fr; }
  .founder:nth-child(2),
  .founder:nth-child(2):hover { transform: none; }
  .founder:nth-child(2):hover { transform: translateY(-6px); }
  .programs           { grid-template-columns: 1fr; }
  .process            { grid-template-columns: 1fr 1fr; }
  .step               { border-bottom: 1px solid var(--line); }
  .stats              { grid-template-columns: 1fr; }
  .quote-block        { grid-template-columns: 1fr; }
  .quote-block .qmark { display: none; }
  .cta-grid           { grid-template-columns: 1fr; }
  .section-header     { grid-template-columns: 1fr; gap: 20px; padding-top: 70px; }
  .site-footer        { grid-template-columns: 1fr 1fr; }
  nav.top ul          { display: none; }
  .tape               { display: none; }
}
