/* ---------------------------------------------
   DiPStrategy -- Our Team
   style/ourteam.css
   --------------------------------------------- */

.ot-page {
  background: #f0f0e6;
  min-height: 100vh;
  position: relative;
}

/* Pattern untuk area cream (tim bawah) */
.ot-pattern {
  position: fixed; inset: 0;
  background-image: url('../assets/pattern-01.png');
  background-repeat: repeat;
  opacity: 0.2; z-index: 0;
  pointer-events: none;
}

/* --- NAVY HERO AREA (opener + directors) --- */
.ot-navy-area {
  position: relative;
  background: linear-gradient(to bottom, #04172e 0%, #093564 100%);
  overflow: hidden;
  padding-bottom: 80px;
}

.ot-navy-pattern {
  position: absolute; inset: 0;
  background-image: url('../assets/pattern-01.png');
  background-repeat: repeat;
  opacity: 0.5; z-index: 0;
  pointer-events: none;
}

.ot-navy-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0) 60%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 1; pointer-events: none;
}

/* --- OPENER --- */
.ot-opener {
  position: relative; z-index: 2;
  padding: 180px 56px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.ot-eyebrow {
  font-family: 'Barlow', sans-serif;
  font-weight: 500; font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: block; margin-bottom: 32px;
}

.ot-headline {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.0; margin-bottom: 28px;
}

.ot-headline .hl-light {
  display: block; font-weight: 200;
  font-size: clamp(32px, 5vw, 80px);
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.45);
}

.ot-headline .hl-bold {
  display: block; font-weight: 900;
  font-size: clamp(36px, 6vw, 96px);
  letter-spacing: -0.04em;
  color: #fff;
}

.ot-subtext {
  font-family: 'Barlow', sans-serif;
  font-weight: 300; font-size: 15px; line-height: 1.75;
  color: rgba(255,255,255,0.4);
  max-width: 560px;
}

/* --- DIRECTORS FEATURED --- */
.ot-directors {
  position: relative; z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 56px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.ot-director-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ot-director-top {
  display: grid;
  grid-template-columns: .8fr 1.4fr;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.ot-director-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  display: block;
}

.ot-director-meta {
  padding-bottom: 8px;
}

.ot-director-role {
  font-family: 'Barlow', sans-serif;
  font-weight: 500; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #DEFF2D;
  display: block; margin-bottom: 8px; opacity: 1;
}

.ot-director-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 1.8vw, 26px);
  color: #fff; letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 20px;
}

.ot-director-quote {
  font-family: 'Barlow', sans-serif;
  font-weight: 300; font-size: 14px;
  line-height: 1.75; color: rgba(255,255,255,0.45);
  font-style: italic;
}

.ot-director-bio {
  font-family: 'Barlow', sans-serif;
  font-weight: 300; 
  font-size: clamp(13px, 1.3vw, 18px);
  line-height: 1.35; color: rgba(255,255,255,0.4);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- GROUPS SECTION --- */
.ot-groups-section {
  position: relative; z-index: 1;
  width: 100%;
  background-color: #ff0072;
}

/* --- TEAM GRID --- */
.ot-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}

/* Card */
.ot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg, var(--lime));
  border-radius: 0;
  overflow: hidden;
}

.ot-card--animated {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ot-card--animated.ot-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.ot-card-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1/1;
  margin-bottom: 0;
}

.ot-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: rotate(var(--img-rotate, 0deg)) scale(1.42);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}

.ot-card:hover .ot-card-img { transform: rotate(var(--img-rotate, 0deg)) scale(1.5); }

/* Info overlay -- hidden by default, revealed on hover (desktop) */
.ot-card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(
    to top,
    var(--card-bg, var(--lime)) 0%,
    color-mix(in srgb, var(--card-bg, var(--lime)) 75%, transparent) 55%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ot-card:hover .ot-card-info {
  opacity: 1;
}

.ot-card-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 14px;
  color: var(--card-text, var(--navy)); line-height: 1.3;
  display: block; margin-bottom: 3px;
}

.ot-card-role {
  font-family: 'Barlow', sans-serif;
  font-weight: 500; font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--card-role, var(--navy));
  display: block;
}

.ot-card-quote {
  font-family: 'Barlow', sans-serif;
  font-weight: 300; font-size: 12px;
  line-height: 1.6;
  color: var(--card-text, var(--navy));
  opacity: 0.65;
  font-style: italic;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Divisi title card */
.ot-card--divider {
  background: var(--navy);
  aspect-ratio: 1/1;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.ot-card-divider-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--lime);
  line-height: 1.4;
}

/* Filler wording card */
.ot-card--filler {
  background: var(--card-bg, var(--navy));
  aspect-ratio: 1/1;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.ot-card-filler-text {
  font-family: 'Caveat', cursive;
  font-weight: 700; font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0;
  color: var(--card-text, #fff);
  line-height: 1.25;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .ot-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 900px) {
  .ot-opener          { padding: 140px 24px 60px; }
  .ot-directors       { padding: 0 24px 48px; grid-template-columns: 1fr; gap: 48px; }
  .ot-groups-section  { padding: 0 0 80px; }
  .ot-grid            { grid-template-columns: repeat(2, 1fr); gap: 0; }

  /* No hover on touch devices -- info always visible */
  .ot-card-info {
    position: static;
    opacity: 1;
    background: var(--card-bg, var(--lime));
    padding: 12px;
  }

  .ot-card-divider-label { font-size: 14px; }
}

/* Hormati preferensi reduce-motion pengguna */
@media (prefers-reduced-motion: reduce) {
  .ot-card--animated {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
