.team-story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.team-note {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 34px;
  background:
    radial-gradient(circle at 90% 10%, rgba(244, 123, 32, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(26, 26, 26, 0.96), rgba(61, 33, 15, 0.96));
  color: var(--white);
  box-shadow: 0 24px 70px rgba(26, 26, 26, 0.16);
}

.team-note::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -58px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(244, 123, 32, 0.18);
  animation: team-pulse 5s ease-in-out infinite;
}

.team-note h3,
.team-note p,
.team-note .team-note-list {
  position: relative;
  z-index: 1;
}

.team-note h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.12;
  margin-bottom: 16px;
}

.team-note p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  margin-bottom: 22px;
}

.team-note-list {
  display: grid;
  gap: 12px;
}

.team-note-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.team-note-list span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 8px rgba(244, 123, 32, 0.14);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.member-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(244, 123, 32, 0.11);
  box-shadow: 0 20px 55px rgba(26, 26, 26, 0.08);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.28s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.member-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(244, 123, 32, 0.18), transparent 28%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.member-card:hover,
.member-card.is-tilting {
  box-shadow: 0 32px 78px rgba(212, 105, 26, 0.18);
  border-color: rgba(244, 123, 32, 0.28);
}

.member-card:hover::after,
.member-card.is-tilting::after {
  opacity: 1;
}

.member-photo {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card:hover .member-photo img {
  transform: scale(1.08);
}

.member-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(26, 26, 26, 0.62));
}

.member-role {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
}

.member-body {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.member-body h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.member-body p {
  color: var(--gray);
  line-height: 1.72;
  margin-bottom: 16px;
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-tags span {
  padding: 8px 11px;
  border-radius: var(--radius-full);
  background: rgba(244, 123, 32, 0.1);
  font-size: 0.76rem;
  font-weight: 850;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.culture-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border-radius: 30px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(244, 123, 32, 0.1);
  box-shadow: 0 18px 45px rgba(26, 26, 26, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.culture-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 68px rgba(212, 105, 26, 0.15);
}

.culture-card::before {
  content: attr(data-index);
  position: absolute;
  right: 18px;
  top: 10px;
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(244, 123, 32, 0.08);
  line-height: 1;
}

.culture-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.culture-card p {
  color: var(--gray);
  line-height: 1.75;
}

.team-shift {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.shift-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255, 248, 240, 0.98), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(244, 123, 32, 0.11);
}

.shift-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--orange);
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.shift-card:hover::after {
  transform: scaleX(1);
}

.shift-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
}

.shift-card strong {
  display: block;
  font-family: var(--font-heading);
  margin-bottom: 8px;
}

.shift-card p {
  color: var(--gray);
  line-height: 1.65;
  font-size: 0.92rem;
}

@keyframes team-pulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

@media (max-width: 1100px) {
  .team-grid,
  .culture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-story-grid,
  .team-shift {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .team-grid,
  .culture-grid,
  .team-story-grid,
  .team-shift {
    grid-template-columns: 1fr;
  }

  .member-photo {
    height: 260px;
  }
}
