/* Shared shell for case studies. Project-specific layouts remain in their own stylesheets. */

/* Images carry width/height attributes to reserve space; height:auto keeps the natural ratio. Low specificity so any class rule still wins. */
img{ height:auto; }

/* Page transition between the homepage and a case study, same motion as sojeong.kim (Framer page
   transition read from its source): the new page slides up from the bottom (.4s), the old page slides
   away upward while shrinking to .7 and fading out (1s). Cross-document View Transitions: both pages
   must opt in (the opt-in rule is kept top-level). Reduced motion: no animation.
   Browsers without support just navigate normally. */
@view-transition{ navigation:auto; }
@media (prefers-reduced-motion:no-preference){
  ::view-transition-old(root),
  ::view-transition-new(root){ mix-blend-mode:normal; animation-fill-mode:both; }
  ::view-transition-old(root){ animation:pt-out 1s cubic-bezier(.12,.23,.5,1); }
  ::view-transition-new(root){ animation:pt-in .4s cubic-bezier(.27,0,.51,1); }
  @keyframes pt-out{ to{ transform:translateY(-100%) scale(.7); opacity:0; } }
  @keyframes pt-in{ from{ transform:translateY(100%); } }
}
@media (prefers-reduced-motion:reduce){
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*){ animation:none; }
}
:root{
  --case-shell-orange-text:#C63C11; /* small text on white/#f2f2f2: 5.18:1 / 4.63:1; the brand orange #EF6B41 is only 3.07:1 */
  --case-shell-page-pad:clamp(16px, 3.6vw, 46px);
  --case-shell-content-width:1280px;
  /* space from the top of the page to the first line of a case study (the fixed nav is about 101px tall on desktop,
     82px on mobile): the title block must not sit right under the nav */
  --case-top-offset:250px;
}
@media (max-width:767px){
  :root{ --case-top-offset:140px; }
}

/* Remove the default bottom margin on ZTE; the footer supplies the final 8px. */
body.page-case-study{ margin-bottom:0; }

body .case-site-footer{
  --case-footer-bg:#fff;
  --case-footer-ink:var(--case-shell-orange-text);
  background:var(--case-footer-bg);
  margin:0;
  padding:8px var(--case-shell-page-pad);
  font-family:Inter, Arial, sans-serif;
  text-align:left;
}
body .case-site-footer.case-site-footer--dark{
  --case-footer-bg:#000;
  --case-footer-ink:#fff;
}
body.page-case-study .case-site-footer{ background:var(--case-footer-bg); }
.case-site-footer-inner{ width:100%; max-width:var(--case-shell-content-width); margin:0 auto; }
.case-legal-footer{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin:0;
  color:var(--case-footer-ink);
  font:300 16px/normal Inter, Arial, sans-serif;
}
.case-legal-footer,
.case-legal-footer span,
.case-legal-footer a,
.case-legal-footer-links{ color:var(--case-footer-ink) !important; }
.case-legal-footer span,
.case-legal-footer a,
.case-legal-footer-links{ font-family:Inter, Arial, sans-serif; }
.case-legal-footer-links{
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  width:auto;
  max-width:none;
  min-height:0;
  height:auto;
  margin:0;
  padding:0;
  gap:16px;
  background:none;
  border:0;
  backdrop-filter:none;
}
.case-legal-footer a{ color:inherit; text-decoration:none; }
.case-legal-footer a:hover,
.case-legal-footer a:focus-visible{ text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }

@media (max-width:767px){
  .case-legal-footer{ gap:12px; font-size:16px; }
  .case-legal-footer-links{ gap:12px; }
}
