/* A quiet breathing rhythm in the first view, behind the portrait. */
body { overflow-x: clip; }
.hero-visual {
  --breath-duration: 8s;
  margin-bottom: 25px;
}
.hero-breathing {
  position: absolute;
  top: 50%;
  left: calc(50% - 8px);
  width: calc(100% + 72px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.hero-breathing > span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation-duration: var(--breath-duration);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.hero-breath-fill {
  background: radial-gradient(circle, #dbc4ee 42%, #e4d4f1 66%, #eee4f6 76%);
  animation-name: hero-breath-expand;
}
.hero-breathing .hero-breath-ring {
  inset: -5%;
  border: 1px solid #b697ce;
  animation-name: hero-breath-outline;
}
.hero-breathing .hero-breath-ring-outer {
  inset: -11%;
  border: 1px solid #d8c3e6;
  animation-name: hero-breath-outline;
}
.hero-visual .photo-arch { box-shadow: 0 12px 45px #6845800a; }
.hero-visual .photo-note { bottom: 80px; }
.hero-breath-controls {
  position: absolute;
  left: calc(50% - 8px);
  bottom: -53px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  padding: 6px 13px 6px 18px;
  background: #fbf9fc;
  border: 1px solid #e2d5eb;
  border-radius: 30px;
  white-space: nowrap;
  z-index: 4;
}
.hero-breath-controls .breath-label {
  font-size: 18px;
  min-width: 90px;
  line-height: 1.4;
}
.hero-breath-controls .animation-toggle {
  font-size: 10px;
  min-height: 32px;
  padding: 4px 3px;
  border-left: 1px solid #e5d9ed;
  padding-left: 15px;
}
.hero-breath-hint {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 15px;
}
.breathing-paused .hero-breathing > span { animation-play-state: paused; }
@keyframes hero-breath-expand {
  0%, 100% { transform: scale(.83); opacity: .72; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes hero-breath-outline {
  0%, 100% { transform: scale(.86); opacity: .48; }
  50% { transform: scale(1.045); opacity: .95; }
}

@media (max-width: 1100px) {
  .hero-breathing { width: calc(100% + 50px); }
}
@media (max-width: 800px) {
  .hero-breathing { width: calc(100% + 28px); }
  .hero-breath-controls { gap: 12px; padding-inline: 15px 10px; bottom: -50px; }
  .hero-breath-controls .breath-label { font-size: 16px; min-width: 82px; }
  .hero-breath-controls .animation-toggle { font-size: 9px; padding-left: 11px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 29px; gap: 24px; }
  .hero-visual {
    grid-row: 1;
    width: min(73%, 280px);
    margin-top: 12px;
    margin-bottom: 54px;
  }
  .hero-copy { grid-row: 2; }
  .hero-visual .photo-arch { height: clamp(248px, 72vw, 305px); }
  .hero-breathing { left: 50%; width: calc(100% + 40px); }
  .hero-visual .photo-note { bottom: 34px; left: -24px; padding: 10px 15px; font-size: 12px; }
  .hero-visual .photo-note svg { width: 22px; height: 30px; }
  .hero-breath-controls { left: 50%; bottom: -49px; }
  .hero-breath-hint { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-breathing > span { animation: none !important; transform: scale(.94); opacity: .6; }
}
