/* ============================================================
   Cards — programs, steps, testimonials, team
   ============================================================ */

/* ---- How We Teach steps ---- */
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.how-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(12.5% + 22px);
  right: calc(12.5% + 22px);
  height: 2px;
  background: rgba(255,255,255,.15);
}
.how-step {
  padding: 0 clamp(.75rem, 2vw, 1.75rem);
  text-align: center;
  position: relative;
}
.how-step__circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  transition: border-color .3s, background .3s;
}
.how-step__circle span {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--green);
}
.how-step:hover .how-step__circle {
  border-color: var(--green);
  background: rgba(47,210,125,.1);
}
.how-step h3 {
  font-size: clamp(.95rem, 1.1vw, 1.1rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 .6rem;
}
.how-step p {
  font-size: clamp(.8rem, .85vw, .92rem);
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 700px) {
  .how-steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 0; }
  .how-steps::before { display: none; }
}
@media (max-width: 420px) {
  .how-steps { grid-template-columns: 1fr; }
}

/* ---- Program cards ---- */
.program-card { position: relative; background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); display: flex; flex-direction: column; height: 100%; backdrop-filter: blur(10px); }
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--purple) 26%, var(--line)); }
.program-card__tag { display: inline-flex; align-items: center; gap: 0.5ch; font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.program-card__tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--green)); }
.program-card h3 { font-size: var(--fs-h3); margin: 0.85rem 0 0.6rem; }
.program-card p { color: var(--text-muted); font-size: 0.97rem; }
.program-card__meta { margin-top: auto; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid var(--line); }
.program-card__meta b { color: var(--text); font-weight: 700; }
.program-card__arrow { position: absolute; top: 1.5rem; right: 1.5rem; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; display: grid; place-items: center; opacity: 0; transform: translate(-4px,4px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.program-card__arrow svg { width: 15px; height: 15px; }
.program-card:hover .program-card__arrow { opacity: 1; transform: translate(0,0); }

/* color the dot per program */
.dot-green  { --dot: var(--green); }
.dot-blue   { --dot: var(--blue); }
.dot-purple { --dot: var(--purple); }
.dot-orange { --dot: var(--orange); }
.dot-yellow { --dot: var(--yellow); }
.dot-deep   { --dot: var(--green-deep); }

/* ---- Project cards ---- */
.project-lab {
  position: relative;
}
.project-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.project-card {
  position: relative;
  min-height: 320px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(247,249,252,.8)),
    var(--cream);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.project-card::before {
  content: "";
  position: absolute;
  inset: auto -4rem -5rem auto;
  width: clamp(180px, 18vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--dot, var(--green)) 36%, transparent), transparent 68%);
  pointer-events: none;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--dot, var(--green)) 34%, var(--line));
  box-shadow: var(--shadow-lg);
}
.project-card--wide {
  grid-row: span 2;
  min-height: 100%;
  background:
    linear-gradient(145deg, rgba(22,20,15,.94), rgba(42,38,32,.95)),
    var(--ink);
  color: var(--text-invert);
}
.project-card--wide p { color: var(--text-invert-muted); }
.project-card__index {
  position: absolute;
  right: clamp(1.4rem, 3vw, 2.2rem);
  top: clamp(1.3rem, 3vw, 2rem);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1;
  color: rgba(100,116,139,.14);
}
.project-card--wide .project-card__index { color: rgba(255,255,255,.1); }
.project-card__tag {
  display: inline-flex;
  align-items: center;
  gap: .55ch;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.project-card--wide .project-card__tag { color: var(--text-invert-muted); }
.project-card__tag::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot, var(--green));
}
.project-card h3 {
  position: relative;
  max-width: 13ch;
  font-size: clamp(1.55rem, 1.15rem + 1.8vw, 2.5rem);
  margin-bottom: .85rem;
}
.project-card p {
  position: relative;
  max-width: 44ch;
  color: var(--text-muted);
}
.project-card__meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
}
.project-card__meta span {
  display: inline-flex;
  padding: .45rem .7rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.08);
  font-size: .78rem;
  font-weight: 800;
}

/* ---- Step cards ---- */
.step { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.section--ink .step { border-top-color: var(--green); }
.step__no { font-weight: 800; font-size: 0.9rem; color: var(--green-deep); }
.section--ink .step__no { color: var(--green); }
.step h3 { font-size: var(--fs-h3); margin: 0.4rem 0 0.55rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }
.section--ink .step p { color: var(--text-invert-muted); }

/* ---- Testimonials ---- */
.testi { position: relative; }
.testi__track { display: flex; transition: transform .6s var(--ease); }
.testi__slide { flex: 0 0 100%; padding: 0 0.25rem; }
.testi__card { background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.section--ink .testi__card { background: var(--ink-soft); border-color: var(--line-dark); }
.testi__quote { font-family: var(--font-sans); font-weight: 600; font-size: clamp(1.04rem, .96rem + .6vw, 1.35rem); line-height: 1.5; margin: 0 0 2rem; }
.section--ink .testi__quote { color: var(--text-invert); }
.testi__who { display: flex; align-items: center; gap: 1rem; }
.testi__avatar { width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--font-sans); font-weight: 800; color: #fff; font-size: 1.2rem; }
.testi__avatar--photo { overflow: hidden; background: var(--cream-2); border: 2px solid color-mix(in srgb, var(--purple) 28%, #fff); }
.testi__avatar--photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.testi__name { font-weight: 800; }
.section--ink .testi__name { color: var(--text-invert); }
.testi__role { font-size: 0.85rem; color: var(--text-muted); }
.section--ink .testi__role { color: var(--text-invert-muted); }
.testi__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 2rem; }
.testi__btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; transition: border-color .25s, color .25s, background .25s; }
.section--ink .testi__btn { border-color: var(--line-dark); color: var(--text-invert); }
.testi__btn:hover { border-color: var(--green); color: var(--green-deep); }
.section--ink .testi__btn:hover { color: var(--green); }
.testi__btn svg { width: 18px; height: 18px; }
.testi__dots { display: flex; gap: 0.5rem; margin-left: auto; }
.testi__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); border: 0; padding: 0; cursor: pointer; transition: background .25s, width .25s; }
.section--ink .testi__dot { background: var(--line-dark); }
.testi__dot.is-active { background: var(--green); width: 22px; border-radius: 4px; }

/* ---- Team Preview (index / about embedded section) ---- */
.team-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
  background-color: #f0ece4;
  background-image:
    radial-gradient(circle, rgba(0,0,0,.09) 1.5px, transparent 1.5px),
    radial-gradient(ellipse at 15% 50%, rgba(47,210,125,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 10%, rgba(31,160,239,.15) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 85%, rgba(128,80,240,.13) 0%, transparent 40%),
    radial-gradient(ellipse at 40% 90%, rgba(240,112,0,.12) 0%, transparent 40%);
  background-size: 22px 22px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  position: relative;
  overflow: hidden;
}
.team-preview__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem,7vw,6rem) clamp(2rem,6vw,5.5rem);
  position: relative;
  z-index: 2;
}
.team-preview__heading {
  margin: 0 0 1.5rem;
  line-height: 1;
}
.team-preview__heading em {
  display: block;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--green);
  line-height: 1.05;
}
.team-preview__heading strong {
  display: block;
  font-style: normal;
  font-weight: 900;
  font-size: clamp(3.2rem, 6.5vw, 6.5rem);
  color: var(--text);
  line-height: .88;
  letter-spacing: -.03em;
}

/* ---- Team Splash ---- */
.team-splash {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #f0ece4;
  background-image:
    radial-gradient(circle, rgba(0,0,0,.09) 1.5px, transparent 1.5px),
    radial-gradient(ellipse at 15% 50%, rgba(47,210,125,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 10%, rgba(31,160,239,.15) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 85%, rgba(128,80,240,.13) 0%, transparent 40%),
    radial-gradient(ellipse at 40% 90%, rgba(240,112,0,.12) 0%, transparent 40%);
  background-size: 22px 22px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  position: relative;
  overflow: hidden;
}
.team-splash__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(7rem,12vw,11rem) clamp(2rem,6vw,5.5rem) clamp(3rem,6vw,5rem);
  position: relative;
  z-index: 2;
}
.team-splash__index {
  display: block;
  margin-bottom: 2.5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(27,24,19,.38);
}
.team-splash__heading {
  margin: 0 0 1.75rem;
  line-height: 1;
}
.team-splash__heading em {
  display: block;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  color: var(--green);
  line-height: 1.05;
}
.team-splash__heading strong {
  display: block;
  font-style: normal;
  font-weight: 900;
  font-size: clamp(4rem, 8.5vw, 8rem);
  color: var(--text);
  line-height: .88;
  letter-spacing: -.03em;
}
.team-splash__sub {
  max-width: 28ch;
  font-size: clamp(.88rem, .8rem + .28vw, 1rem);
  line-height: 1.7;
  color: rgba(27,24,19,.6);
  margin-bottom: 2.75rem;
}
.team-splash__cta {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding-bottom: .3rem;
  border-bottom: 2px solid var(--text);
  width: fit-content;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.team-splash__cta:hover { color: var(--green); border-color: var(--green); }

/* Photos scatter */
.team-splash__photos {
  position: relative;
  overflow: visible;
}
.polaroid {
  position: absolute;
  left: var(--tx, 40%);
  top: var(--ty, 20%);
  width: clamp(120px, 13vw, 175px);
  background: #fff;
  padding: 7px 7px 22px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18), 0 1px 4px rgba(0,0,0,.1);
  transform: rotate(var(--r, 0deg));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), z-index 0s;
  z-index: 1;
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.07);
  box-shadow: 0 16px 48px rgba(0,0,0,.22);
  z-index: 10;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  filter: grayscale(1) contrast(1.06);
}
.polaroid span {
  position: absolute;
  top: 5px;
  left: 7px;
  font-size: .46rem;
  font-weight: 800;
  letter-spacing: .07em;
  color: rgba(0,0,0,.3);
}

/* Doodles */
.team-doodle {
  position: absolute;
  pointer-events: none;
  color: rgba(27,24,19,.28);
}
.team-doodle--zap  { width: 28px; left: 52%; top: 10%; }
.team-doodle--loop { width: 34px; right: 4%;  top: 46%; }
.team-doodle--star { width: 20px; left: 46%; top: 70%; }

/* ---- Team ---- */
.team-section {
  position: relative;
  background: var(--cream);
}
.team-rows {
  display: flex;
  flex-direction: column;
}
.team-row {
  --accent: var(--green);
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 0;
  min-height: 360px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background var(--dur) var(--ease);
}
.team-row:first-child { border-top: 1px solid var(--line); }
.team-row--flip { direction: rtl; }
.team-row--flip > * { direction: ltr; }
.team-row__photo {
  position: relative;
  overflow: hidden;
  background: var(--cream-2);
}
.team-row__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  transition: transform .9s var(--ease), filter .9s var(--ease);
  filter: saturate(.92) contrast(1.02);
}
.team-row:hover .team-row__photo img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}
.team-row__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 4.5rem);
  background: #fff;
  transition: background var(--dur) var(--ease);
}
.team-row:hover .team-row__body {
  background: color-mix(in srgb, var(--accent) 4%, #fff);
}
.team-row__kicker {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.team-row__name {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 .6rem;
}
.team-row__role {
  font-size: clamp(.85rem, .78rem + .3vw, 1rem);
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  line-height: 1.4;
}
.team-row__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}
.team-row__links a {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 50%, transparent);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.team-row__links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- partner logos ---- */
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  justify-content: center;
}
.logos img {
  display: block;
  width: auto;
  max-width: min(44vw, 180px);
  height: clamp(2rem, 5vw, 2.75rem);
  object-fit: contain;
  opacity: .78;
  filter: grayscale(.18) saturate(.9);
  transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}
.logos img:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-2px);
}
