/* Case studies: the homepage's soft, tactile style (chosen 2026-12-03), carried into
   case studies that use _memoria_case_styles.html (Memoria, CircleAtlas, FF, WoodSlabs).
   Reading comes first: text colours keep their contrast.
   Only things you can click are raised (images that open full size, buttons). Everything else is flat. No borders.
   Static shadows only; one shadow change on hover/press; no scroll or idle animation. 
   Loaded with media="not all and (prefers-contrast: more)": high-contrast visitors get the flat site. */
.ac-page {
  --soft-bg: #EEF1F6;
  --soft-band: #E8ECF2;
  --soft-dark: rgba(150, 165, 190, 0.42);
  --soft-light: rgba(255, 255, 255, 0.95);
}
/* the page's inline styles load after this file, so these need one more level of specificity */
body .ac-page { background: var(--soft-bg); }
/* page, nav and the band under the carousel share the surface (the variables live on .ac-page, so literals here) */
html:has(.ac-page), body:has(.ac-page) { background: #EEF1F6; }
body:has(.ac-page) .hp-nav { background: rgba(238, 241, 246, 0.92); }

/* sections: no hairlines; tinted steps become a slightly deeper band */
.ac-page .ac-section { border-top: none; }
.ac-page .ac-tint, .ac-page .ac-iter-section.ac-tint { background: var(--soft-band); }

/* meta block: a flat, slightly deeper panel instead of a hairline */
.ac-page .ac-meta {
  border-top: none;
  border-radius: 16px;
  padding: 20px 24px;
  background: #E5EAF1;
}

/* images and videos: flat with rounded corners */
.ac-page .ac-img-wrap { border-radius: 12px; }
/* images that open full size are clickable, so they sit in a raised tray */
.ac-page a[data-lightbox] .ac-img-wrap {
  background: var(--soft-bg);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 8px 8px 20px var(--soft-dark), -8px -8px 20px var(--soft-light);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.ac-page .ac-tint a[data-lightbox] .ac-img-wrap { background: var(--soft-band); }
.ac-page a[data-lightbox] .ac-img-wrap img { border-radius: 10px; }
.ac-page a[data-lightbox]:hover .ac-img-wrap {
  opacity: 1;
  transform: translateY(1px);
  box-shadow: 3px 3px 8px var(--soft-dark), -3px -3px 8px var(--soft-light);
}

/* deep-dive cards cannot be clicked: flat panel, no border */
.ac-page .ac-iter-card {
  background: #E5EAF1;
  border: none;
  box-shadow: none;
}

/* captions: #999 is too faint on grey; this keeps about 4.6:1 */
.ac-page .ac-img-caption { color: #5f6878; }
.ac-page .ac-back { color: #6b7385; }

/* (prefixed with body: the case pages' inline button styles load after this file) */
/* buttons: a raised pill made of the page surface, label in the site ink (about 16:1);
   hover and click press it into the surface */
body .ac-page .ac-try, body .ac-page .ac-try:focus {
  background: var(--soft-bg);
  color: #0D1420;
  box-shadow: 6px 6px 14px var(--soft-dark), -6px -6px 14px var(--soft-light);
  transition: box-shadow 180ms ease, color 180ms ease;
}
body .ac-page .ac-tint .ac-try { background: var(--soft-band); }
body .ac-page .ac-try:hover, body .ac-page .ac-try:active, body .ac-page .ac-tint .ac-try:hover {
  background: var(--soft-bg);
  color: #0D1420;
  box-shadow: inset 4px 4px 9px var(--soft-dark), inset -4px -4px 9px var(--soft-light);
}
body .ac-page .ac-tint .ac-try:hover, body .ac-page .ac-tint .ac-try:active { background: var(--soft-band); }

/* no ring after a mouse click or tap; keyboard users still get one */
.ac-page a:focus:not(:focus-visible) { outline: none; }
.ac-page a:focus-visible { outline: 2px solid #F5A623; outline-offset: 4px; border-radius: 12px; }

@media (max-width: 600px) {
  .ac-page a[data-lightbox] .ac-img-wrap { padding: 6px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-page a[data-lightbox] .ac-img-wrap, .ac-page .ac-try { transition: none; }
}

/* remove the remaining borders; panels that need grouping get the flat deeper fill instead */
.ac-page section[style*="border-top"] { border-top: none !important; }
.ac-page .ac-shot img, .ac-page .ac-status, .ac-page .ac-stage-label, .ac-page .md-phone .ac-img-wrap { border: none; }
.ac-page .md-option, .ac-page .md-card { border: none; background: #E5EAF1; }
.ac-page .md-look { border-left: none; border-radius: 10px; background: #E5EAF1; }
/* Memoria phone frames and comparison boxes set their own borders with more specific selectors */
.ac-page .ac-img-wrap { border: none !important; }
.ac-page .md-compare > div { border: none; background: #E5EAF1; }

/* every picture and video gets rounded corners, including ones not wrapped in .ac-img-wrap */
.ac-page img, .ac-page video { border-radius: 12px; }
.ac-page .md-phone img, .ac-page .md-phone video { border-radius: 22px; }
.ac-page a[data-lightbox] .ac-img-wrap img { border-radius: 10px; }

/* WoodSlabs pipeline arrows follow the buttons: site ink, not a page-only green */
body .ac-page .ac-arrow { color: #4A5878; }

/* the "more work" carousel and footer under each case study sit on the same surface */
body:has(.ac-page) .workLinks, body:has(.ac-page) footer.hp-footer { background: #EEF1F6; }
/* carousel under each case study: rounded covers, no black rule */
body:has(.ac-page) .workLinks hr { border-top: none !important; }
body:has(.ac-page) .workLinks .workPic { border-radius: 12px; }
/* the carousel clips shadows (overflow hidden), so its covers stay flat even though they are links */
