/* ============================================
   FRIENDLYFORK — Team Page
   ============================================ */

.page-team { background: var(--bg); }

/* Nav is now controlled via .is-hero class in JS — no override needed */

/* ============== TEAM HERO ============== */
.team-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 60px 120px;
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
}
.team-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.team-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(40%) contrast(1.05);
  animation: kenBurns 16s ease-out forwards;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.team-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28,26,23,0.2) 0%, rgba(28,26,23,0.1) 30%, rgba(28,26,23,0.65) 70%, rgba(28,26,23,0.9) 100%),
    linear-gradient(90deg, rgba(28,26,23,0.5) 0%, transparent 50%);
}
.team-hero__content {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}
.eyebrow--light { color: rgba(251, 246, 236, 0.85); }
.eyebrow--light .eyebrow__dot { background: var(--gold); }

.team-hero__title {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 144px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  max-width: 1100px;
}
.team-hero__title .line { display: block; overflow: hidden; }
.team-hero__title .line > span {
  display: block;
  transform: translateY(110%);
  animation: heroLineUp 1.2s var(--ease) forwards;
}
.team-hero__title .line:nth-child(1) > span { animation-delay: 0.2s; }
.team-hero__title .line:nth-child(2) > span { animation-delay: 0.35s; }
.team-hero__title .line:nth-child(3) > span { animation-delay: 0.5s; }
@keyframes heroLineUp { to { transform: translateY(0); } }
.team-hero__title .italic { font-style: italic; font-weight: 300; }
.team-hero__title em { font-style: italic; font-weight: 300; color: var(--gold); }

.team-hero__lede {
  max-width: 580px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(251, 246, 236, 0.85);
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s var(--ease) 0.7s forwards;
}
@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

.team-hero__meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(251, 246, 236, 0.2);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s var(--ease) 0.85s forwards;
}
.team-meta-item { display: flex; flex-direction: column; gap: 4px; }
.team-meta-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
}
.team-meta-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.team-hero__scroll {
  position: absolute;
  bottom: 30px; right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  z-index: 2;
  transition: opacity 0.3s var(--ease);
}
.team-hero__scroll:hover { opacity: 1; }

@media (max-width: 1024px) {
  .team-hero { padding: 120px 30px 100px; }
  .team-hero__meta { gap: 32px; }
  .team-hero__scroll { right: 30px; }
}
@media (max-width: 600px) {
  .team-hero { padding: 110px 20px 80px; }
  .team-hero__meta { gap: 24px; padding-top: 24px; }
  .team-meta-num { font-size: 28px; }
  .team-hero__scroll { display: none; }
}

/* ============== PHILOSOPHY ============== */
.philosophy {
  padding: 140px 60px;
  background: var(--bg);
}
.philosophy__inner {
  max-width: 1400px;
  margin: 0 auto;
}
.philosophy__head { margin-bottom: 80px; max-width: 900px; }
.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.philosophy__item {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.4s var(--ease);
}
.philosophy__item:hover { background: var(--cream); }
.philosophy__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
}
.philosophy__item h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.philosophy__item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
@media (max-width: 1024px) {
  .philosophy { padding: 100px 30px; }
  .philosophy__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .philosophy { padding: 80px 20px; }
  .philosophy__grid { grid-template-columns: 1fr; }
}

/* ============== CUISINES STRIP ============== */
.cuisines-strip {
  background: var(--bg-soft);
  padding: 80px 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cuisines-strip__inner { max-width: 1600px; margin: 0 auto; }
.cuisines-strip__head { margin-bottom: 30px; text-align: center; }
.cuisines-strip__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cuisines-strip__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.cuisines-strip__tile {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.cuisines-strip__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.cuisines-strip__tile:hover img { transform: scale(1.05); }
.cuisines-strip__tile span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 26, 23, 0.45);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  letter-spacing: -0.01em;
  transition: background 0.4s var(--ease);
}
.cuisines-strip__tile:hover span { background: rgba(28, 26, 23, 0.6); }
@media (max-width: 1024px) {
  .cuisines-strip { padding: 60px 30px; }
  .cuisines-strip__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .cuisines-strip { padding: 50px 20px; }
  .cuisines-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .cuisines-strip__tile span { font-size: 16px; }
}

/* ============== FOUNDER ============== */
.founder {
  padding: 140px 60px;
  background: var(--cream);
}
.founder__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.founder__visual { position: relative; }
.founder__image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(28, 26, 23, 0.15);
}
.founder__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  transition: transform 1.2s var(--ease);
}
.founder__image:hover img { transform: scale(1.03); }
.founder__image-tag {
  position: absolute;
  top: 24px; left: 24px;
  background: rgba(28, 26, 23, 0.7);
  backdrop-filter: blur(20px);
  color: var(--cream);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.founder__signature {
  position: absolute;
  bottom: -30px; right: -20px;
  width: 220px;
  color: var(--gold);
  opacity: 0.6;
}
.founder__lede {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 24px;
  margin-top: 16px;
}
.founder__bio p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.founder__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  margin: 40px 0;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.founder__detail { display: flex; flex-direction: column; gap: 4px; }
.founder__detail-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.founder__detail-value {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  font-style: italic;
}
.founder__cv { margin-top: 8px; }

@media (max-width: 1024px) {
  .founder { padding: 100px 30px; }
  .founder__inner { grid-template-columns: 1fr; gap: 40px; }
  .founder__visual { max-width: 500px; }
}
@media (max-width: 600px) {
  .founder { padding: 80px 20px; }
  .founder__details { grid-template-columns: 1fr; gap: 16px; }
}

/* ============== TEAM GRID ============== */
.team-grid-section {
  padding: 140px 60px;
  max-width: 1600px;
  margin: 0 auto;
}
.team-grid-section__head { margin-bottom: 80px; max-width: 900px; }
.team-grid-section__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 20px;
  max-width: 600px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
}
.team-card {
  position: relative;
  cursor: pointer;
}
.team-card__photo {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-soft);
}
.team-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
  filter: grayscale(30%);
}
.team-card:hover .team-card__photo img {
  transform: scale(1.05);
  filter: grayscale(0%);
}
.team-card__dish {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(28, 26, 23, 0.85));
  color: var(--cream);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}
.team-card:hover .team-card__dish { transform: translateY(0); }
.team-card__dish-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.team-card__dish-name {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
}
.team-card__body { padding: 0 4px; }
.team-card__role {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.team-card__name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.1;
}
.team-card__bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.team-card__meta {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.team-card__cv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.team-card__cv:hover { gap: 10px; color: var(--gold); }

@media (max-width: 1024px) {
  .team-grid-section { padding: 100px 30px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .team-grid-section { padding: 80px 20px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
}
@media (max-width: 460px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ============== JOIN THE TEAM ============== */
.join-team {
  background: var(--forest);
  color: var(--cream);
  padding: 0;
  margin-top: 80px;
}
.join-team__inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
  min-height: 600px;
}
.join-team__content {
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.join-team__content p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(251, 246, 236, 0.75);
  margin: 24px 0 40px;
  max-width: 480px;
}
.section-tag--light { color: rgba(251, 246, 236, 0.6); }
.section-tag--light .section-tag__line { background: rgba(251, 246, 236, 0.4); }
.section-title--light { color: var(--cream); }
.join-team__visual {
  position: relative;
  overflow: hidden;
}
.join-team__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}
@media (max-width: 1024px) {
  .join-team__inner { grid-template-columns: 1fr; min-height: auto; }
  .join-team__visual { height: 300px; }
  .join-team__content { padding: 80px 30px; }
}
@media (max-width: 600px) {
  .join-team__content { padding: 60px 20px; }
}
