/* ==========================================================================
   About Page Styles
   ========================================================================== */

/* ==========================================================================
   About Hero - Half-height home hero container
   ========================================================================== */

.about-hero {
  padding-top: calc(var(--header-height) + var(--space-4));
  padding-bottom: var(--space-6);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  gap: 12px;
}

.about-hero__container {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 24px;
  background: linear-gradient(
    160deg,
    #eef2ed 0%,
    #e7eee6 40%,
    #e0e9df 70%,
    #dae4d9 100%
  );
  padding: 60px;
}

.about-hero__image {
  width: 340px;
  flex-shrink: 0;
  border-radius: 24px;
  overflow: hidden;
}

.about-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 560px;
  z-index: 2;
}

/* --- CTA button --- */
.about-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 14px 32px;
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  color: #36504A;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  transition: background var(--transition-base), color var(--transition-base);
}

.about-hero__cta:hover {
  background: #36504A;
  color: #fff;
}

/* ==========================================================================
   Secondary Container - below about hero
   ========================================================================== */

.about-secondary {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-bottom: var(--space-6);
}

.about-secondary__container {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.about-secondary__video {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .about-secondary__container {
    padding: 40px 24px;
    border-radius: 16px;
  }

  .about-hero {
    padding: 24px;
    padding-top: 80px;
    min-height: auto;
    max-height: none;
  }

  .about-hero__container {
    padding: 40px 24px;
    border-radius: 3vh;
  }

  .about-hero__image {
    display: none;
  }
}

/* ==========================================================================
   Interactive Showcase - 1:1 reference match
   ========================================================================== */

/* --- Wrapper --- */
.showcase-section {
  padding-bottom: var(--space-10);
  overflow: visible;
}

/* --- Outer wrapper (overflow visible for tab bar) --- */
.showcase {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
}

/* --- Inner box --- */
.showcase__inner {
  position: relative;
  border-radius: 24px;
  overflow: visible;
  aspect-ratio: 2.2 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto auto;
  transition: background 0.5s ease;
}

/* Solid background for all tabs */
.showcase__inner {
  background: #E7EEE6;
}

/* --- Showcase Intro (above the showcase box) --- */
.showcase-intro {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.showcase-intro__title {
  font-family: 'Shippori Mincho', serif;
  font-size: var(--font-size-h2);
  font-weight: 600;
  color: #36504A;
  line-height: var(--line-height-h2);
  flex-shrink: 0;
  white-space: nowrap;
}

.showcase-intro__text {
  max-width: 540px;
}

@media (max-width: 768px) {
  .showcase-intro {
    flex-direction: column;
    gap: var(--space-2);
  }

  .showcase-intro__title {
    white-space: normal;
  }
}

/* --- Per-tab image switching --- */
.showcase__image .showcase__person-img {
  display: none;
}

.showcase__image .showcase__person-img--active {
  display: block;
}

/* --- Quadrant positioning --- */
.showcase__top-left {
  grid-column: 1;
  grid-row: 1;
  padding: 48px 40px;
  padding-right: 0;
  z-index: 4;
  align-self: start;
  max-width: 320px;
}

.showcase__top-right {
  grid-column: 2;
  grid-row: 1;
  padding: 48px 40px;
  padding-left: 0;
  z-index: 4;
  align-self: start;
  justify-self: end;
  max-width: 320px;
}

.showcase__bottom-left {
  grid-column: 1;
  grid-row: 2;
  padding: 0 40px 16px;
  padding-right: 0;
  z-index: 4;
  align-self: end;
  max-width: 380px;
}

.showcase__bottom-right {
  grid-column: 2;
  grid-row: 2;
  padding: 0 40px 16px;
  padding-left: 0;
  z-index: 4;
  align-self: end;
  justify-self: end;
  max-width: 320px;
  text-align: right;
}

/* --- Label bar (top-right) --- */
.showcase__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.showcase__label-line {
  display: block;
  width: 36px;
  height: 1.5px;
  background: rgba(47, 62, 70, 0.3);
}

.showcase__label-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(47, 62, 70, 0.55);
}

/* --- Panel switching --- */
.showcase__panels {
  position: relative;
  overflow: hidden;
}

.showcase__panels--small {
  min-height: 50px;
}

.showcase__stat,
.showcase__stat-sub {
  position: relative;
  overflow: hidden;
}

.showcase__panel {
  display: none;
}

.showcase__panel--active {
  display: block;
}

/* Fade class applied via JS */
.showcase__inner--fading .showcase__top-left,
.showcase__inner--fading .showcase__top-right,
.showcase__inner--fading .showcase__bottom-left,
.showcase__inner--fading .showcase__bottom-right {
  opacity: 0;
}

.showcase__top-left,
.showcase__top-right,
.showcase__bottom-left,
.showcase__bottom-right {
  transition: opacity 0.3s ease;
  opacity: 1;
}

/* --- Text styles --- */
.showcase__small-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(47, 62, 70, 0.65);
}

.showcase__right-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(47, 62, 70, 0.65);
  font-style: italic;
}

.showcase__heading {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: #36504A;
}

/* --- Stat (bottom-right) --- */
.showcase__stat {
  display: flex;
  flex-direction: column;
}

.showcase__stat-sub {
  margin-top: 2px;
}

.showcase__stat-number {
  font-size: 3.25rem;
  font-weight: 800;
  color: #36504A;
  line-height: 1;
}

.showcase__stat-label {
  font-size: 13px;
  color: rgba(47, 62, 70, 0.55);
  font-weight: 500;
  line-height: 1.35;
}

/* --- Person image (natural size, anchored to bottom, overflows top) --- */
.showcase__image {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
}

.showcase__person {
  width: 380px;
  display: block;
  filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.2));
}

/* --- Tab buttons (inside the green container) --- */
.showcase__tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  z-index: 10;
  padding: 0 40px 32px;
  justify-content: center;
  align-self: end;
}

.showcase__tab {
  flex: 1;
  padding: 18px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #36504A;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(47, 62, 70, 0.12);
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  text-align: center;
  line-height: 1.25;
}

.showcase__tab:hover {
  background: rgba(255, 255, 255, 0.85);
}

.showcase__tab--active {
  background: #fff;
  color: #36504A;
  border-color: rgba(47, 62, 70, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.showcase__tab--active:hover {
  background: #fff;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .showcase__inner {
    aspect-ratio: auto;
    min-height: 420px;
  }

  .showcase__image {
    width: 360px;
  }

  .showcase__top-left,
  .showcase__bottom-left {
    max-width: 280px;
  }

  .showcase__top-right,
  .showcase__bottom-right {
    max-width: 280px;
  }

  .showcase__tab {
    padding: 14px 8px;
    font-size: 13px;
  }

  .showcase__heading {
    font-size: 1.375rem;
  }
}

@media (max-width: 768px) {
  .showcase__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
  }

  .showcase__top-left {
    grid-column: 1; grid-row: 1;
    padding: 32px 24px 16px;
    max-width: 100%;
  }

  .showcase__image {
    position: relative;
    left: auto; bottom: auto;
    transform: none;
    width: 220px;
    margin: 0 auto;
    grid-column: 1; grid-row: 2;
  }

  .showcase__top-right {
    grid-column: 1; grid-row: 3;
    padding: 16px 24px;
    max-width: 100%;
    justify-self: start;
  }

  .showcase__bottom-left {
    grid-column: 1; grid-row: 4;
    padding: 8px 24px;
    max-width: 100%;
  }

  .showcase__bottom-right {
    grid-column: 1; grid-row: 5;
    padding: 8px 24px 32px;
    max-width: 100%;
    justify-self: start;
    text-align: left;
  }

  .showcase__inner {
    aspect-ratio: auto;
    min-height: auto;
    border-radius: 16px;
  }

  .showcase__tabs {
    padding: 0 24px 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .showcase__tab {
    padding: 12px 8px;
    font-size: 12px;
  }

  .showcase__stat-number {
    font-size: 2.25rem;
  }

  .showcase__heading {
    font-size: 1.25rem;
  }

  .showcase-section {
    padding-bottom: var(--space-8);
  }
}

/* --- Hero Mini --- */
.hero-mini {
  text-align: center;
}

/* --- Story --- */
.story-grid {
  align-items: center;
}

.story__image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-accent-soft);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Commitment Cards --- */
.commitment-grid {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0 40px;
  min-height: 460px;
}


.commitment-card {
  width: 380px;
  height: 380px;
  flex-shrink: 0;
  background: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius-large);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: box-shadow 0.3s ease;
  box-shadow: var(--shadow-md);
}

/* Left card - tilted, peeking out left */
.commitment-card:nth-child(1) {
  transform: rotate(-6deg) translateY(20px);
  margin-right: -15px;
  z-index: 1;
}

/* Middle card - front, center, highest */
.commitment-card:nth-child(2) {
  z-index: 3;
}

/* Right card - tilted, peeking out right */
.commitment-card:nth-child(3) {
  transform: rotate(6deg) translateY(20px);
  margin-left: -15px;
  z-index: 1;
}

.commitment-card:hover {
  box-shadow: var(--shadow-lg);
}

.commitment-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-medium);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.commitment-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary-mid);
}

.commitment-card__title {
  font-size: var(--font-size-h3);
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.3;
}

.commitment-card__text {
  font-size: var(--font-size-body-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Highlighted middle card */
.commitment-card--highlight {
  background: var(--color-primary-mid);
  border-color: var(--color-primary-mid);
}

.commitment-card--highlight .commitment-card__icon {
  background: rgba(255, 255, 255, 0.15);
}

.commitment-card--highlight .commitment-card__icon svg {
  color: #fff;
}

.commitment-card--highlight .commitment-card__title {
  color: #fff;
}

.commitment-card--highlight .commitment-card__text {
  color: rgba(255, 255, 255, 0.8);
}

.commitment-card--highlight:hover {
  box-shadow: 0 8px 30px rgba(82, 121, 111, 0.3);
}

@media (max-width: 768px) {
  .commitment-grid {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: 0;
  }

  .commitment-card,
  .commitment-card:nth-child(1),
  .commitment-card:nth-child(2),
  .commitment-card:nth-child(3) {
    position: relative;
    transform: none;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0;
  }
}

/* --- Mission --- */
.mission-block {
  max-width: 720px;
  text-align: center;
  margin-inline: auto;
}

/* --- Section Header --- */
.section-header {
  max-width: 560px;
}

/* --- Team Cards --- */
.team-card {
  text-align: center;
}

.team-card__avatar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-accent-soft);
  border: var(--border);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story__visual {
    order: -1;
  }
}

/* Small phone - 480px */
@media (max-width: 480px) {
  .commitment-card {
    padding: var(--space-4) var(--space-3);
  }

  .commitment-card__title {
    font-size: 1.125rem;
  }

  .showcase-intro {
    gap: var(--space-2);
  }

  .showcase-intro__title {
    font-size: 1.375rem;
  }

  .showcase__heading {
    font-size: 1.125rem;
  }

  .showcase__stat-number {
    font-size: 2rem;
  }

  .showcase__tab {
    padding: 10px 6px;
    font-size: 11px;
  }
}
