/* Shared typography and page transitions for the four public routes. */
:root {
  --studio-title: clamp(56px, 5.6vw, 72px);
  --studio-section-title: clamp(32px, 3.15vw, 40px);
  --studio-copy: clamp(16px, 1.35vw, 18px);
  --studio-ui: 15px;
  --studio-muted: #c8c2d6;
  --studio-ink: #19152d;
  --studio-paper: #faf5ee;
}

.static-brand { min-width: 0; }
.static-nav a { font-size: var(--studio-ui); font-weight: 500; }
.static-mobile summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  list-style: none;
  padding: 0;
  border-radius: 6px;
}
.static-mobile summary::marker { content: ""; }
.static-mobile summary::-webkit-details-marker { display: none; }
.static-mobile nav a { font-size: var(--studio-ui); font-weight: 500; }
.studio-menu-icon { display: grid; gap: 5px; width: 22px; }
.studio-menu-icon span { height: 2px; width: 100%; background: currentColor; border-radius: 2px; }
.static-mobile[open] .studio-menu-icon span:first-child { transform: translateY(7px) rotate(45deg); }
.static-mobile[open] .studio-menu-icon span:nth-child(2) { opacity: 0; }
.static-mobile[open] .studio-menu-icon span:last-child { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1199px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  .static-nav { display: none; }
  .static-mobile { display: block; }
  .static-brand { max-width: 220px; }
  .static-header { padding: 12px 20px; }
}

html body :is(#yEvt, #yProg, #yPartner, #yKol, #yEquip, #yContact) .yi h2,
.case-page .case-section-heading h2,
.case-page .case-contact h2 {
  font-size: var(--studio-section-title) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
}
html body :is(#yEvt, #yProg, #yPartner, #yKol, #yEquip, #yContact) .yi .yt { font-size: var(--studio-copy) !important; font-weight: 400 !important; line-height: 1.7 !important; }
html body :is(#yEvt, #yProg, #yPartner, #yKol, #yEquip, #yContact) .yi .ytag, .case-page .case-eyebrow { font-size: 12px; font-weight: 500; }
.case-hero-photo h1 { font-size: var(--studio-title); font-weight: 700; }
.case-hero.case-hero-photo { height: clamp(390px, 34vw, 570px); min-height: 0; display: grid; }
.case-hero-photo .case-hero-inner { height: 100%; padding-block: 28px; }
.case-hero-photo::after {
  background: linear-gradient(90deg, #090a12e0 0%, #090a1299 52%, #090a1224 100%), linear-gradient(0deg, #090a1255, transparent 70%);
}
.case-banner-services {
  list-style: none;
  margin: clamp(18px, 2.6vw, 32px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 9px 30px;
  min-height: calc(3.1em + 9px);
  align-content: start;
  font-size: var(--studio-copy);
  font-weight: 400;
  line-height: 1.55;
  color: #f1edf9;
}
.case-banner-services li { display: flex; align-items: baseline; gap: 9px; }
.case-banner-services li::before { content: ""; flex: 0 0 4px; height: 4px; align-self: flex-start; margin-top: .65em; border-radius: 50%; background: #bcb2ef; }
.case-work { padding-top: clamp(44px, 5vw, 72px); padding-bottom: clamp(44px, 5.4vw, 76px); background: var(--studio-paper); }
.case-group + .case-group { border-top: 0; margin-top: clamp(60px, 8vw, 100px); padding-top: 0; }
.case-page .case-contact {
  background: linear-gradient(180deg, var(--studio-paper), #f0edf7);
  color: var(--studio-ink);
  padding: clamp(34px, 4vw, 60px) 24px clamp(54px, 7vw, 98px);
}
.case-page .case-paper-zone { background: var(--studio-paper); }
.case-page .case-paper-zone .case-work,
.case-page .case-paper-zone .case-contact { background: transparent; }
.case-page .case-paper-zone .case-contact h2 { color: #6866E0; }
.case-page .case-contact .case-eyebrow { color: #665d7e; }
.case-page .case-contact > p:not(.case-eyebrow) { color: #554c64; font-size: var(--studio-copy); font-weight: 400; }

html body .yfooter.studio-footer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-top: 0 !important;
  padding: clamp(44px, 6vw, 72px) max(24px, calc((100% - 1200px) / 2)) 0 !important;
}
html body .studio-footer::before { display: none; }
.studio-footer .footer-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 34px; align-items: start; }
.studio-footer .footer-brand { display: inline-flex; width: fit-content; }
.studio-footer .footer-brand .yf-logo { display: block; width: min(216px, 60vw); height: auto; margin: 0; }
.studio-footer .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.studio-footer .footer-columns > div { border: 0; padding: 0; min-width: 0; }
.studio-footer .footer-columns h3 { font-size: var(--studio-ui); font-weight: 600; color: #f1edf9; margin-bottom: 14px; }
.studio-footer .footer-columns a { color: var(--studio-muted) !important; font-size: var(--studio-ui); font-weight: 400; margin-bottom: 10px; }
.studio-footer .footer-columns a:hover { color: #fff !important; }
.studio-footer .footer-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 0; margin: 26px 0 0; padding: 20px 0 28px; font-size: 13px; line-height: 1.6; }
.studio-footer .footer-signoff { color: #f1edf9; font-size: 16px; font-weight: 600; }

@media (max-width: 650px) {
  :root { --studio-title: clamp(38px, 8.4vw, 48px); --studio-section-title: clamp(26px, 6vw, 32px); --studio-copy: 16px; --studio-ui: 14px; }
  .case-hero.case-hero-photo { height: clamp(350px, 72vw, 400px); }
  .case-hero-photo .case-hero-inner { align-items: center; padding: 28px 24px; }
  .case-hero-photo::after { background: linear-gradient(90deg, #090a12e3, #090a1288), linear-gradient(0deg, #090a1266, transparent); }
  .case-banner-services { grid-template-columns: 1fr; min-height: calc(6.2em + 27px); }
  .studio-footer .footer-top { grid-template-columns: 1fr; }
  .studio-footer .footer-signoff { order: 1; }
}
