/* Photo and interaction refinement, 2026-10-20. Content is visible by default. */
:root {
  --visual-ease: cubic-bezier(.22, .61, .36, 1);
  --visual-line: #dacbaa;
}
/* One quiet interaction language, without changing destinations or hit areas. */
#services a.card, .local-story-shortcut__intro, .ko-type, .ko-item {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(143, 109, 49, .14);
  transition: transform .2s var(--visual-ease), box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
#services .card-photo img { transition: transform .35s var(--visual-ease); }
#services .photo-action__arrow, .ko-arrow { display: inline-block; transition: transform .25s var(--visual-ease); }
#services .photo-action__arrow { display: grid; }
.ko-type:hover { transform: none; }
@media (hover: hover) and (pointer: fine) {
  #services a.card:hover, .local-story-shortcut__intro:hover, .ko-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(18, 51, 73, .08);
  }
  #services a.card:hover .card-photo img { transform: scale(1.025); }
  #services a.card:hover .photo-action__arrow, .ko-item:hover .ko-arrow { transform: translateX(3px); }
  .ko-item:hover { background: #faf9f5; }
}
#services a.card:active, #services a.card.is-pressed,
.local-story-shortcut__intro:active, .local-story-shortcut__intro.is-pressed,
.ko-type:active, .ko-item:active {
  transform: translateY(2px) scale(.995);
  box-shadow: 0 2px 8px rgba(18, 51, 73, .06);
}
#services a.card:active .card-photo img, #services a.card.is-pressed .card-photo img { transform: scale(1.015); }
a:focus-visible, button:focus-visible {
  outline: 2px solid #8f6d31;
  outline-offset: 5px;
}
.ko-type[aria-expanded="true"] {
  background: #f6f3ec;
  border-color: var(--tone);
  box-shadow: inset 0 -3px 0 var(--tone);
}
.ko-type[aria-expanded="true"] .ko-type-action { color: var(--tone); font-weight: 700; }
.ko-item { border-radius: 3px; }
/* Lead photographs, supporting details, and their adjacent copy share a scale. */
.visual-story { --story-copy: 720px; --story-photo: 900px; --story-detail: 520px; }
.visual-story .text, .visual-story .local-article__text, .visual-story .article-body,
.visual-story .lead, .visual-story .deck, .visual-story .local-article__intro { max-width: var(--story-copy); }
.visual-story .lead, .visual-story .deck, .visual-story .local-article__intro { margin-left: auto; margin-right: auto; }
.visual-story .story-visual {
  width: 100%;
  max-width: var(--story-photo);
  margin: clamp(28px, 4vw, 44px) auto clamp(34px, 4.5vw, 52px);
  border-radius: 0;
}
.visual-story .story-visual--portrait { max-width: var(--story-copy); }
.visual-story .story-visual--support { max-width: var(--story-detail); }
.visual-story .story-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}
.visual-story .story-visual figcaption {
  margin-top: 10px;
  color: #647780;
  font-size: 12px;
  line-height: 1.8;
}
.visual-story .story-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--story-copy);
  gap: 20px;
  margin: clamp(30px, 4vw, 44px) auto;
}
.visual-story .story-details img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border-radius: 12px;
}
/* Pre-paint enhancement: photos are misted before entering, then track scroll.
   Without the early bootstrap (or after its failure fallback), originals stay clear. */
html.photo-scroll-enabled [data-photo-reveal] {
  opacity: calc(.24 + .76 * var(--photo-progress, 0));
  filter: blur(calc(10px * (1 - var(--photo-progress, 0))));
}
/* The top photo starts with a mild veil; all headings/details remain unchanged. */
.hero[data-photo-background] { --hero-photo-tone: saturate(.82) contrast(1.03) brightness(.93); }
html.photo-scroll-enabled .hero[data-photo-background]::before {
  opacity: calc(.52 + .48 * var(--photo-progress, 0));
  filter: blur(calc(6px * (1 - var(--photo-progress, 0)))) var(--hero-photo-tone);
}
@media (max-width: 720px) {
  .hero[data-photo-background] { --hero-photo-tone: saturate(.80) contrast(1.02) brightness(.94); }
}
@media (max-width: 700px) {
  .visual-story .story-visual--support { width: 88%; }
  .visual-story .story-details { gap: 12px; }
  .visual-story .story-visual img, .visual-story .story-details img { border-radius: 9px; }
  .visual-story .top { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  #services a.card, #services .card-photo img, #services .photo-action__arrow,
  .local-story-shortcut__intro, .ko-type, .ko-item, .ko-arrow {
    transition: none !important;
    transform: none !important;
  }
  html.photo-scroll-enabled [data-photo-reveal] { opacity: 1; filter: none; }
  html.photo-scroll-enabled .hero[data-photo-background]::before { opacity: 1; filter: var(--hero-photo-tone); }
}
@media print {
  html.photo-scroll-enabled [data-photo-reveal] { opacity: 1; filter: none; }
  html.photo-scroll-enabled .hero[data-photo-background]::before { opacity: 1; filter: var(--hero-photo-tone); }
}
