/* 2026-11 photo pass: real photographs placed beside the copy (images/photos, Unsplash License). */

.section-photo {
  position: relative;
  margin: 2.6rem 0 0;
  overflow: hidden;
  border-radius: 10px;
  background: #1b2b27;
}

.section-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

/* Property type cards: a photograph across the top of each card */
.property-card {
  overflow: hidden;
}

.property-card .card-photo {
  margin: -26px -26px 22px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0d241f;
}

.property-card .card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 600ms ease, opacity 300ms ease;
}

.property-card:hover .card-photo img {
  opacity: 1;
  transform: scale(1.03);
}

/* Process: photograph under the sticky intro */
.process-intro .section-photo {
  max-width: 460px;
}

/* After opening: photograph behind the left block */
.operations-card {
  grid-template-columns: 240px minmax(0, 1.05fr) minmax(320px, 0.75fr);
}

.operations-symbol {
  position: relative;
  overflow: hidden;
}

.operations-symbol .operations-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.operations-symbol::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, rgba(120, 58, 36, 0.35), rgba(60, 26, 14, 0.78));
}

.operations-symbol .visual-icon,
.operations-symbol span {
  position: relative;
  z-index: 1;
}

/* Portal: Tokyo photograph joined to the top of the gold card */
.portal-photo {
  position: relative;
  margin-block: 0;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  aspect-ratio: 3 / 1;
  background: #0b1714;
}

.portal-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 88%;
}

.portal-photo figcaption {
  position: absolute;
  right: 1.2rem;
  bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.portal-photo + .portal-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Inner pages */
.statement-grid .section-photo,
.screening-intro-grid .section-photo,
.company-intro-grid .section-photo {
  max-width: 560px;
}

.company-intro-grid .section-photo img {
  aspect-ratio: 3 / 2;
}

.screening-output-heading .section-photo {
  max-width: 440px;
  margin-top: 2.2rem;
}

@media (max-width: 1120px) {
  .operations-card {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 768px) {
  .section-photo {
    margin-top: 1.8rem;
  }

  .section-photo img {
    aspect-ratio: 16 / 10;
  }

  .property-card .card-photo {
    margin: -24px -24px 20px;
  }

  .operations-card {
    grid-template-columns: 1fr;
  }

  .operations-symbol {
    min-height: 150px;
  }

  .portal-photo {
    width: calc(100% - 40px);
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .property-card .card-photo img {
    transition: none;
  }

  .property-card:hover .card-photo img {
    transform: none;
  }
}

/* Transparency paragraph under the intro lead */
.intro-transparency {
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.9;
}

/* Japanese headings: break between phrases instead of mid-word (Chrome/Edge), balance line lengths */
html[lang='ja'] :is(h1, h2, h3) {
  word-break: auto-phrase;
  text-wrap: balance;
}
