/* ══════════════════════════════════════
   SHERRY SCRAWLS — TEAM PAGE CSS
══════════════════════════════════════ */

/* ── NAV ACTIVE ─────────────────────── */
.nav-active { color: var(--lime) !important; }
.nav-active::after { width: 100% !important; }

/* ── BREADCRUMB ─────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb .bc-current { color: var(--lime); }

/* ── SHARED TAG STYLE ────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(198,220,0,0.3);
  color: rgba(198,220,0,0.75);
  white-space: nowrap;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* ══════════════════════════════════
   S1 — HERO
══════════════════════════════════ */
#team-hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
  background: var(--black);
}

.th-shapes { position: absolute; inset: 0; pointer-events: none; }

.ths-1 {
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-left: 380px solid transparent;
  border-top: 380px solid rgba(0,40,220,0.05);
}
.ths-2 {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 0;
  border-right: 220px solid transparent;
  border-bottom: 220px solid rgba(198,220,0,0.04);
}
.ths-3 {
  position: absolute;
  top: 38%;
  right: 9%;
  width: 56px; height: 56px;
  background: var(--lime);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  opacity: 0.1;
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-16px) rotate(6deg); }
}

.team-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  position: relative;
  z-index: 2;
}

.team-hero-headline {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.team-hero-sub {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 54ch;
  line-height: 1.7;
}

/* ══════════════════════════════════
   S2 — FOUNDER FEATURED CARD
══════════════════════════════════ */
#founder-featured {
  background: var(--black2);
  position: relative;
  overflow: hidden;
}

#founder-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--lime), var(--blue));
  background-size: 200%;
  animation: borderSlide 4s linear infinite;
}
@keyframes borderSlide {
  0%   { background-position: 0%; }
  100% { background-position: 200%; }
}

.founder-card-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 5rem;
  align-items: stretch;
}

/* — Photo side — */
.founder-card-photo {
  position: relative;
}

.founder-card-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 110%;
  overflow: hidden;
  background: var(--gray);
}

.founder-card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-card-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  background: linear-gradient(145deg, var(--gray) 0%, #0a1015 100%);
}

.founder-card-img-placeholder svg {
  width: 64px; height: 64px;
  color: rgba(255,255,255,0.1);
}

.founder-card-location {
  margin-top: 0.75rem;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.founder-card-location::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  flex-shrink: 0;
}

/* — Content side — */
.founder-card-content {
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
}

.founder-card-role-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.founder-card-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.founder-card-title {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.founder-card-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.founder-card-desc + .founder-card-desc { margin-top: 0; }

.founder-contact-block {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(198,220,0,0.18);
  background: rgba(198,220,0,0.03);
}

.founder-contact-label {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.4rem;
}

.founder-contact-detail {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.2rem;
}

/* ══════════════════════════════════
   S3 — CORE TEAM GRID
══════════════════════════════════ */
#core-team {
  background: var(--black);
  position: relative;
  overflow-x: clip;
}

#core-team::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0.4;
}

.core-team-head {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.core-team-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
}

.team-card {
  background: var(--black2);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  border-top: 3px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.team-card:hover {
  border-top-color: var(--lime);
  background: rgba(0,40,220,0.05);
}

.team-card-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(198,220,0,0.25);
  flex-shrink: 0;
}

.team-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.team-card-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.team-card-title {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.25rem;
}

.team-card-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  flex-grow: 1;
}

/* Hiring card */
.team-card--hiring {
  background: transparent;
  border: 2px dashed rgba(198,220,0,0.2);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  transition: border-color 0.3s, background 0.3s;
  min-height: 320px;
}

.team-card--hiring:hover {
  border-color: rgba(198,220,0,0.5);
  background: rgba(198,220,0,0.03);
  border-top-color: rgba(198,220,0,0.5);
}

.hiring-icon {
  width: 52px; height: 52px;
  border: 2px solid rgba(198,220,0,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--lime);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
}

.hiring-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--lime);
  text-transform: uppercase;
}

.hiring-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 20ch;
}

.hiring-link {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}
.hiring-link:hover { gap: 0.7rem; }

/* ══════════════════════════════════
   S4 — CAPABILITIES
══════════════════════════════════ */
#team-capabilities {
  background: var(--black2);
  position: relative;
  overflow-x: clip;
}

#team-capabilities::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 0;
  border-left: 350px solid transparent;
  border-bottom: 350px solid rgba(0,40,220,0.04);
  pointer-events: none;
}

.cap-head {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.cap-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.05);
}

.cap-block {
  background: var(--black2);
  padding: 2.5rem 2rem;
  position: relative;
  border-top: 3px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.cap-block:hover {
  border-top-color: var(--lime);
  background: rgba(0,40,220,0.06);
}

.cap-icon {
  width: 44px; height: 44px;
  color: var(--lime);
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.cap-icon svg { width: 100%; height: 100%; }

.cap-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cap-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ══════════════════════════════════
   S5 — HOW WE WORK
══════════════════════════════════ */
#team-process {
  background: var(--black);
  position: relative;
  overflow-x: clip;
}

.process-head {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

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

.process-col {
  padding-top: 1.75rem;
  border-top: 3px solid var(--lime);
}

.process-col-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 3rem;
  color: rgba(198,220,0,0.1);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.process-col-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.process-col-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ══════════════════════════════════
   S6 — CAREERS
══════════════════════════════════ */
#team-careers {
  background: var(--black2);
  position: relative;
  overflow-x: clip;
}

#team-careers::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), transparent);
  opacity: 0.5;
}

.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: flex-start;
}

.careers-left {}

.careers-left-head {
  margin-bottom: 2rem;
}

.careers-left-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.careers-right {}

.roles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.role-card {
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.role-card:first-child { border-top: 1px solid rgba(255,255,255,0.06); }

.role-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.role-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  flex-shrink: 0;
}

.role-badge--hiring {
  background: var(--lime);
  color: var(--black);
}

.role-badge--open {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}

.role-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.role-type {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.75rem;
}

.role-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.careers-apply {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}

.careers-apply-label {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.75rem;
}

.careers-apply-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.careers-apply-text a {
  color: var(--lime);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}
.careers-apply-text a:hover { color: var(--white); }

.careers-apply-subject {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
}

/* ══════════════════════════════════
   S7 — FINAL CTA
══════════════════════════════════ */
#team-cta {
  background: var(--black);
  position: relative;
  overflow: hidden;
  text-align: center;
}

#team-cta::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-left: 400px solid transparent;
  border-top: 400px solid rgba(0,40,220,0.05);
  pointer-events: none;
}

#team-cta::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 0;
  border-right: 300px solid transparent;
  border-bottom: 300px solid rgba(198,220,0,0.04);
  pointer-events: none;
}

.team-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

.team-cta-heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.team-cta-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 56ch;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

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

.team-cta-trust {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1200px) {
  .founder-card-grid { grid-template-columns: 340px 1fr; gap: 3.5rem; }
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid  { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .careers-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .founder-card-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .founder-card-img-wrap { padding-bottom: 65%; }
  .founder-card-content { padding: 0 0 2rem; }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
  .cap-grid  { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .team-hero-headline { font-size: clamp(2rem, 8vw, 3rem); }
  .founder-card-name { font-size: clamp(2rem, 8vw, 3rem); }
  .team-cta-heading { font-size: clamp(1.8rem, 7vw, 2.8rem); }
}

/* ── OVERFLOW GUARD ─────────────────── */
body { max-width: 100vw; }
