/* R4: quieter section rhythm and deliberate motion, home page only. */
.home-calm main > section:not(.hero) { padding-block: clamp(56px, 7vw, 88px); }
.home-calm main > .bg-white,
.home-calm main > .bg-alt { background: var(--white); }
.home-calm main > #members,
.home-calm main > #estimate-diagnosis { background: var(--bg); }
.home-calm main > .cta-section { background: #f0ebdf; }
.home-calm .sec-title { text-wrap: balance; }
.home-calm .home-title-phrase { display: inline-block; white-space: nowrap; }

/* Keep related topics on one surface; use the text measure for their seam. */
.home-calm main > section.home-margin,
.home-calm main > #service,
.home-calm main > #access { padding-top: 0; }
.home-calm .home-margin > .container,
.home-calm #service > .container,
.home-calm #access > .container {
  position: relative;
  padding-top: clamp(44px, 6vw, 72px);
}
.home-calm .home-margin > .container::before,
.home-calm #service > .container::before,
.home-calm #access > .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: #d1c9b9;
}

/* The real photograph and the two people share one warm background. */
.home-calm .bio-col {
  padding: 24px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #d1c9b9;
  border-radius: 0;
}
.home-calm .bio-col .name-tag {
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-weight: 500;
  letter-spacing: .03em;
}
.home-calm .bio-col .cred::before { content: none; }
.home-calm .flow-box { border-width: 1px; }
.home-calm .flow-box.is-ichikobou { border-color: #a79a80; }

/* One white working surface for the embedded tool, without an accent rail. */
.home-calm .estimate-embed-panel { padding: 0; background: transparent; border: 0; }
.home-calm .estimate-embed__frame-wrap { border: 1px solid #d1c9b9; border-radius: 2px; }

/* Reading does not depend on a scroll-triggered entrance. */
.home-calm .reveal { opacity: 1; transform: none; transition: none; }
.home-calm .hero-slide { opacity: 0; transition: opacity .24s ease; }
.home-calm .hero-slide.is-active { opacity: 1; }
.home-calm .hero-photo-controls {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  background: #fffdf8;
  color: var(--navy);
  border: 1px solid rgba(38, 36, 31, .14);
  text-shadow: none;
}
.home-calm .hero-photo-controls[hidden] { display: none; }
.home-calm .hero-photo-count { min-width: 64px; text-align: center; font-size: 13px; letter-spacing: .04em; }
.home-calm .hero-photo-controls button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .16s ease;
}
.home-calm .hero-photo-controls button:hover { background: #f0ebdf; }
.home-calm .hero-photo-controls button:focus-visible { outline: 2px solid var(--navy); outline-offset: -4px; }
.home-calm .hero-photo-controls svg { width: 18px; height: 18px; }
@media (max-width: 1080px) {
  .home-calm .hero-photo-controls {
    top: calc(var(--header-h) + clamp(290px, 58vw, 430px) - 62px);
    bottom: auto;
    right: 20px;
  }
}
@media (max-width: 640px) {
  .home-calm .hero-photo-controls {
    top: calc(var(--header-h) + clamp(190px, 52vw, 240px) - 58px);
    right: 16px;
  }
  .home-calm .home-margin > .container::before,
  .home-calm #service > .container::before,
  .home-calm #access > .container::before { left: 20px; right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.home-calm) { scroll-behavior: auto; }
  .home-calm .hero-slide,
  .home-calm .hero-photo-controls button { transition: none; }
}
