/* about.css - About page specific styles */
/* Design tokens imported from css/base/_variables.css */

.about {
  background: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-body);
}

.about-section {
  padding-block: clamp(8rem, 20vh, 12rem);
  padding-inline: clamp(2.5rem, 10vw, 9rem);
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 6rem);
  min-height: clamp(32rem, 70vh, 46rem);
  width: 100%;
  overflow: hidden; /* Prevent localized overflow issues */
}

.about-hero__media {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.about-hero__media img {
  width: clamp(260px, 32vw, 420px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.12);
}

.about-hero__content {
  display: grid;
  gap: clamp(1.8rem, 3vw, 2.4rem);
}

.about-hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6.2rem); /* Reduced lower bound from 3.5rem */
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.about-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* Note: about-philosophy section now uses grid-layout + media-block + content-block components */
/* Note: about-approach section now uses grid-layout + media-block + content-block components */

.about-contrast {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.4rem, 6vw, 4rem);
  align-items: center;
}

.about-contrast__visual {
  grid-column: 1 / span 5;
  position: relative;
  min-height: clamp(24rem, 44vw, 32rem);
}

.about-contrast__text {
  grid-column: 7 / span 5;
  max-width: 58ch;
  display: grid;
  gap: 1.6rem;
}

.about-contrast__text h3 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
}

.about-contrast__text p {
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.72;
  color: var(--color-text-secondary);
}

.contrast-frame {
  position: absolute;
  width: 60%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.1);
}

.contrast-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contrast-frame--logic {
  top: 0;
  left: 0;
  right: auto;
}

.contrast-frame--nature {
  top: 20%;
  right: -10%;
  left: auto;
}

.about-values__header h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1.08;
  text-align: center;
}

.about-values__list {
  margin-top: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-value {
  display: grid;
  grid-template-columns: minmax(0, clamp(80px, 12vw, 120px)) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 4rem);
  padding-block: clamp(2.4rem, 6vw, 3.4rem);
  border-bottom: 1px solid var(--color-border);
}

.about-value:last-of-type {
  border-bottom: none;
}

.about-value__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.32em;
}

.about-value__body {
  display: grid;
  gap: 0.8rem;
}

.about-value__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.18em;
}

.about-value__body p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Note: about-cta section now uses cta-section component from _cta.css */

/* .js-reveal moved to css/base/_utilities.css */

@media (max-width: 1200px) {
  .about-hero {
    grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  }
  .about-hero__media img {
    width: clamp(220px, 36vw, 340px);
  }
  .about-approach__grid {
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  }
  .about-contrast__visual {
    grid-column: 1 / span 6;
  }
  .about-contrast__text {
    grid-column: 7 / span 6;
  }
}

@media (max-width: 960px) {
  .about-section {
    padding-inline: clamp(1.8rem, 8vw, 3.2rem);
  }
  .about-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .about-hero__media {
    order: 2;
  }
  .about-hero__content {
    order: 1;
  }
  .about-philosophy {
    grid-template-columns: 1fr;
  }
  .about-philosophy__media {
    width: clamp(240px, 60vw, 360px);
    margin: 0 auto;
    order: 2;
  }
  .about-philosophy__inner {
    margin-right: 0;
    order: 1;
  }
  .about-approach__grid {
    grid-template-columns: 1fr;
  }
  .about-approach__media {
    justify-content: flex-start;
  }
  .about-contrast {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-contrast__visual {
    grid-column: 1 / -1;
    display: block;
    position: relative;
    min-height: 55vw;
    margin-top: 2rem;
    order: 2;
  }
  .about-contrast__text {
    grid-column: 1 / -1;
    order: 1;
  }
  .contrast-frame {
    position: absolute;
    width: 55%;
    max-width: 380px;
    inset: auto;
    transform: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .contrast-frame--logic {
    top: 0;
    left: 0;
  }
  .contrast-frame--nature {
    top: 25%;
    right: 0;
    left: auto;
  }
  .about-values__header h2 {
    text-align: left;
  }
  .about-value {
    grid-template-columns: minmax(0, clamp(70px, 16vw, 90px)) minmax(0, 1fr);
  }
}

/* Philosophy Collage - Overlapping image layout with clamped sizing */
.philosophy-collage {
  position: relative;
  /* Match about.html logic: min-height based on view width */
  min-height: clamp(24rem, 44vw, 32rem);
  width: 100%;
}

.philosophy-collage figure {
  position: absolute;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.1);
}

.philosophy-collage figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portrait image (3:4 aspect ratio) - Anchored RIGHT to avoid cutoff */
.philosophy-collage__portrait {
  /* Width logic from about.css (approx 60% of container) */
  width: 60%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  top: 0;
  right: 0; /* Anchor to right edge */
  left: auto;
  z-index: 1; /* Sit behind landscape if we want overlap style, or change to 2 if front */
}

/* Landscape image (16:9 aspect ratio) - Overlaps to the LEFT */
.philosophy-collage__landscape {
  /* Wider relative width to compensate for shorter height of 16:9 */
  width: 75%;
  max-width: 440px;
  aspect-ratio: 16 / 9;

  /* Positioning relative to container */
  top: 20%; /* Slightly overlap vertically */
  right: 35%; /* Push it leftwards away from the right edge */

  z-index: 2; /* Sit on top */
}

/* Mobile: Stack images vertically */
@media (max-width: 960px) {
  .philosophy-collage {
    display: block; /* context for absolute children reset below? No, we want flow layout */
    min-height: auto;
    margin-top: 2rem;
    position: relative;
    /* Reset height constraint */
    min-height: 55vw;
  }

  .philosophy-collage figure {
    width: 55%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  /* Reset positions for mobile overlap */
  .philosophy-collage__portrait {
    width: 60%;
    top: 0;
    right: 0;
    left: auto;
    z-index: 1;
  }

  .philosophy-collage__landscape {
    width: 70%;
    top: 35%; /* Push down */
    left: 0; /* Anchor left */
    right: auto;
    z-index: 2;
  }
}

@media (max-width: 640px) {
  .about-hero__media img {
    width: clamp(200px, 70vw, 280px);
  }
  .about-contrast__visual {
    min-height: 85vw;
    margin-top: 1rem;
  }
  .contrast-frame {
    width: 65%;
    margin: 0;
  }
  .contrast-frame--nature {
    top: 35%;
  }
  .about-value__number {
    letter-spacing: 0.26em;
  }

  .philosophy-collage {
      min-height: 85vw;
  }

  .philosophy-collage figure {
      width: 65%;
  }

  .philosophy-collage__landscape {
      top: 45%;
  }
}
