/* ============================================
   Company Page — Minimal Hubble Style
   ============================================ */

/* ── Full-Width Hero ── */
.co-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.co-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.co-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: coKenBurns 20s ease-in-out infinite alternate;
}

@keyframes coKenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.co-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.35) 0%,
    rgba(15, 23, 42, 0.2) 50%,
    rgba(15, 23, 42, 0.1) 100%
  );
  z-index: -1;
}

.co-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
}

.co-hero__label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: coFadeIn 0.7s 0.3s ease forwards;
}

.co-hero__heading {
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(30px);
  animation: coFadeIn 0.8s 0.5s ease forwards;
}

.co-hero__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: coFadeIn 0.7s 0.7s ease forwards;
}

@keyframes coFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.co-hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  opacity: 0;
  animation: coFadeIn 0.6s 1s ease forwards;
}

.co-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.co-hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: coScrollLine 1.8s ease-in-out infinite;
}

@keyframes coScrollLine {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}

/* ── Shared Section Styles ── */
.co-section {
  padding: 80px 0;
}

.co-section__header {
  margin-bottom: 24px;
}

.co-section__label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a3a5c;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.co-section__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.4;
}

.co-section__desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 40px;
}

/* ── Purpose ── */
.co-purpose {
  text-align: center;
  padding: 60px 0 20px;
  position: relative;
}

.co-purpose__heading {
  font-size: 2rem;
  line-height: 1.8;
  font-weight: 800;
  color: var(--color-black);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.co-purpose__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 2.2;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}

.co-purpose.is-visible .co-purpose__heading,
.co-purpose.is-visible .co-purpose__text {
  opacity: 1;
  transform: translateY(0);
}

/* Decorative quote marks */
.co-purpose::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  color: #1a3a5c;
  opacity: 0.12;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ── Values — Pinned Stacking Cards ── */
.co-values-pin {
  height: 400vh;
  position: relative;
}

.co-values-pin__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.co-values-pin__sticky > .container {
  width: 100%;
}

.co-values-stage {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  height: 320px; /* fallback, will be set by JS */
}

.co-value-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 20px;
  padding: 64px 48px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(120%);
  opacity: 0;
  will-change: transform, opacity;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.co-value-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 58, 92, 0.85) 0%, rgba(15, 23, 42, 0.75) 100%);
  border-radius: 20px;
}

.co-value-card__content {
  position: relative;
  z-index: 1;
}

.co-value-card:hover {
  box-shadow: 0 12px 40px rgba(26, 58, 92, 0.2);
}

.co-value-card__index {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

.co-value-card__title {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 6px 0 4px;
}

.co-value-card__sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.co-value-card__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.9;
}

/* Values progress indicator */
.co-values-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 680px;
  margin: 32px auto 0;
}

.co-values-progress__bar {
  flex: 1;
  height: 3px;
  background: rgba(26, 58, 92, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.co-values-progress__fill {
  height: 100%;
  width: 25%;
  background: #1a3a5c;
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.co-values-progress__counter {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a3a5c;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ── Office Gallery ── */
.co-office-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.co-office-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.co-office-photo--large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.co-office-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.co-office-photo:hover img {
  transform: scale(1.06);
}

.co-office-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.co-office-photo:hover::after {
  opacity: 1;
}

.co-office-photo__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.co-office-photo:hover .co-office-photo__caption {
  opacity: 1;
  transform: translateY(0);
}

/* ── Overview Table ── */
.co-overview {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
}

.co-overview__row {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.co-overview__row:last-child {
  border-bottom: none;
}

.co-overview.is-visible .co-overview__row:nth-child(1) { transition-delay: 0.05s; }
.co-overview.is-visible .co-overview__row:nth-child(2) { transition-delay: 0.12s; }
.co-overview.is-visible .co-overview__row:nth-child(3) { transition-delay: 0.19s; }
.co-overview.is-visible .co-overview__row:nth-child(4) { transition-delay: 0.26s; }
.co-overview.is-visible .co-overview__row:nth-child(5) { transition-delay: 0.33s; }

.co-overview.is-visible .co-overview__row {
  opacity: 1;
  transform: translateX(0);
}

.co-overview__label {
  width: 180px;
  flex-shrink: 0;
  padding: 20px 28px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #1a3a5c;
  background: rgba(37, 99, 235, 0.04);
}

.co-overview__value {
  flex: 1;
  padding: 20px 28px;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.8;
}

/* ── Photo Band (full-bleed) ── */
.photo-band {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  padding: 8px 0;
}

.photo-band__track {
  display: flex;
  gap: 12px;
  padding: 0;
  min-width: calc(100vw + 200px);
}

.photo-band__item {
  flex: 1 0 22%;
  min-width: 260px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
}

.photo-band__item--wide {
  flex: 1.5 0 30%;
  min-width: 380px;
}

.photo-band__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-smooth);
}

.photo-band__item:hover img {
  transform: scale(1.05);
}

.photo-band__item:nth-child(odd) {
  margin-top: 20px;
}

.photo-band__item:nth-child(even) {
  margin-top: 0;
}

.photo-band--reverse .photo-band__item:nth-child(odd) {
  margin-top: 0;
}

.photo-band--reverse .photo-band__item:nth-child(even) {
  margin-top: 20px;
}

/* ── Nav Photo Overlay Cards ── */
.co-nav-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.co-nav-photo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
}

.co-nav-photo-card__img {
  position: absolute;
  inset: 0;
}

.co-nav-photo-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.co-nav-photo-card:hover .co-nav-photo-card__img img {
  transform: scale(1.08);
}

.co-nav-photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.15) 60%,
    transparent 100%
  );
  z-index: 1;
  transition: background 0.4s ease;
}

.co-nav-photo-card:hover::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.co-nav-photo-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.co-nav-photo-card__label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.co-nav-photo-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* ── CTA ── */
.cta-section { position: relative; padding: 100px 0; }
.cta-section__bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--color-black) 0%, #1a365d 50%, #1e40af 100%); z-index: -1; }
.cta-section__content { text-align: center; color: #fff; }
.cta-section__title { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 32px; line-height: 1.6; }
.cta-section__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Container triggers — don't animate container, trigger children */
.co-office-grid.fade-in,
.co-nav-row.fade-in {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Office photo stagger */
.co-office-grid > .co-office-photo {
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.co-office-grid.is-visible > .co-office-photo:nth-child(1) { transition-delay: 0.05s; }
.co-office-grid.is-visible > .co-office-photo:nth-child(2) { transition-delay: 0.12s; }
.co-office-grid.is-visible > .co-office-photo:nth-child(3) { transition-delay: 0.19s; }
.co-office-grid.is-visible > .co-office-photo:nth-child(4) { transition-delay: 0.26s; }
.co-office-grid.is-visible > .co-office-photo:nth-child(5) { transition-delay: 0.33s; }

.co-office-grid.is-visible > .co-office-photo {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Nav cards stagger */
.co-nav-row > .co-nav-photo-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.co-nav-row.is-visible > .co-nav-photo-card:nth-child(1) { transition-delay: 0.05s; }
.co-nav-row.is-visible > .co-nav-photo-card:nth-child(2) { transition-delay: 0.15s; }

.co-nav-row.is-visible > .co-nav-photo-card {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .co-hero { min-height: 55vh; }
  .co-hero__heading { font-size: 2.4rem; }
  .co-hero__inner { padding-top: 100px; padding-bottom: 60px; }
  .co-section { padding: 60px 0; }
  .co-section__title { font-size: 1.4rem; }
  .co-value-card { padding: 24px 20px; gap: 16px; }
  .co-office-grid { grid-template-columns: repeat(2, 1fr); }
  .co-office-photo--large { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 9; }
  .co-nav-row { grid-template-columns: 1fr; }
  .photo-band__item { min-width: 200px; height: 180px; }
  .photo-band__item--wide { min-width: 280px; }
  .cta-section__title { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .co-overview__row { flex-direction: column; }
  .co-overview__label {
    width: 100%;
    padding: 14px 20px 4px;
    background: transparent;
  }
  .co-overview__value { padding: 4px 20px 14px; }
  .co-purpose__heading { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .co-hero__heading { font-size: 1.8rem; }
  .co-section__title { font-size: 1.2rem; }
  .photo-band__item { min-width: 160px; height: 140px; }
  .photo-band__item--wide { min-width: 220px; }
}
