/* Contact and colophon form one object on the same grid as the work above. */
.contact-footer { margin-top: var(--section-space,104px); padding-bottom: 120px; }
.contact-footer__panel { position: relative; overflow: hidden; isolation: isolate; padding: 0 48px; border: 1px solid #fff; border-radius: var(--radius,28px); background: linear-gradient(120deg,#fff 30%,#fafbff 65%,#eaf0fb); box-shadow: inset 0 1px #fff,0 16px 40px #24385506; }
.contact-footer__panel::before { content: ''; position: absolute; z-index: -1; top: 0; right: -10%; width: 60%; height: 100%; background: radial-gradient(ellipse at 60% 45%,var(--mood-colour),transparent 65%); opacity: .12; pointer-events: none; }
.contact-footer__body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; min-height: 350px; padding-block: 44px; }
.contact-footer__copy > p { max-width: 28em; color: var(--secondary); font-size: calc(13px * var(--text-scale,1)); }
.contact-footer h2 { margin-top: 18px; font-size: calc(clamp(38px,4.2vw,60px) * var(--text-scale,1)); line-height: 1.05; letter-spacing: -.065em; }
.contact-footer .contact__actions { flex-wrap: wrap; margin-top: 28px; }
.contact-letter { position: relative; display: grid; place-items: center; width: 100%; min-height: 268px; border-radius: 24px; -webkit-tap-highlight-color: transparent; }
.mail-object { display: block; width: min(280px,100%); height: auto; overflow: visible; transform: rotate(-4deg); filter: drop-shadow(0 16px 12px #1e65bd22); transition: transform 350ms cubic-bezier(.2,.75,.2,1); }
.mail-object__paper { transform: translateY(0); transition: transform 400ms cubic-bezier(.2,.75,.2,1); }
.contact-letter:is(:hover,:focus-visible) .mail-object { transform: rotate(-2deg) translateY(-3px); }
.contact-letter:is(:hover,:focus-visible) .mail-object__paper { transform: translateY(-12px); }
.contact-footer__bottom { display: flex; align-items: center; gap: 24px; min-height: 84px; padding-block: 16px; border-top: 1px solid #75839c24; color: var(--secondary); font-size: calc(11px * var(--text-scale,1)); }
.contact-footer__bottom > nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin-left: auto; }
.contact-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.contact-footer__bottom a:hover { color: var(--ink); }
[data-theme="dark"] .contact-footer__panel { background: linear-gradient(120deg,#272a32,#252b38); border-color: #444a56; box-shadow: inset 0 1px #ffffff09; }
[data-theme="dark"] .contact-footer__bottom { border-color: #ffffff1a; }
@media (max-width: 1100px) {
  .contact-footer__panel { padding: 0 32px; }.contact-footer__body { gap: 24px; }
  .mail-object { width: min(240px,100%); }
}
@media (max-width: 700px) {
  .contact-footer { padding-bottom: 104px; }.contact-footer__panel { padding: 0 24px; }
  .contact-footer__body { grid-template-columns: 1fr; gap: 16px; padding-block: 32px 24px; }
  .contact-footer h2 { font-size: calc(clamp(33px,8.4vw,52px) * var(--text-scale,1)); }.contact-footer__copy > p { font-size: calc(12px * var(--text-scale,1)); }
  .contact-letter { min-height: 224px; place-items: center start; }.mail-object { width: min(230px,100%); }
  .contact-footer__bottom { flex-wrap: wrap; gap: 0 16px; font-size: 10px; padding-block: 14px 18px; }
  .contact-footer__bottom > span { flex-basis: 100%; }.contact-footer__bottom > nav { gap: 20px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) { .mail-object,.mail-object__paper { transition: none; } }

/* Shared homepage footer: independent of the legal/case page reset and container. */
.contact-footer.container { width: min(1280px,calc(100% - 80px)); margin-inline: auto; font-family: Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; line-height: 1.5; }
.contact-footer, .contact-footer *, .contact-footer *::before, .contact-footer *::after { box-sizing: border-box; }
.contact-footer { --mood-colour: #007aff; }
[data-mood="lilac"] .contact-footer { --mood-colour: #8d40ff; }[data-mood="peach"] .contact-footer { --mood-colour: #ff761f; }[data-mood="mint"] .contact-footer { --mood-colour: #13af76; }[data-mood="rose"] .contact-footer { --mood-colour: #ff358b; }
.contact-footer p { margin: 0; }.contact-footer h2 { margin: 18px 0 0; font-weight: 600; }
.contact-footer a { text-decoration: none; touch-action: manipulation; }
.contact-footer .contact__actions { display: flex; align-items: center; gap: 10px; }
.contact-footer .mail-button,.contact-footer .copy { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 44px; padding: 12px 20px; border: 1px solid #e1e2e7; border-radius: 12px; background: #fff; font-family: inherit; font-weight: 400; font-size: calc(12px * var(--text-scale,1)); line-height: 1.5; cursor: pointer; }
.contact-footer .mail-button { background: linear-gradient(#3298ff,#007aff); border-color: #007aff; color: #fff; box-shadow: 0 3px 7px #007aff20,inset 0 1px #ffffff35; }
.contact-footer .mail-button:hover { background: #0071ed; color: #fff; }.contact-footer .copy { color: #686872; gap: 10px; }.contact-footer .copy:hover { background: #f7f7f9; }
.contact-footer .copy-icon { display: block; flex-shrink: 0; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-footer .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width:1100px) { .contact-footer.container { width: calc(100% - 48px); } }
@media(max-width:700px) { .contact-footer.container { width: calc(100% - 32px); }.contact-footer .mail-button,.contact-footer .copy { padding-inline: 14px; font-size: 11px; gap: 10px; }.contact-footer .contact__actions { gap: 8px; }.contact-footer__bottom > nav { gap: 0 20px; } }

/* The typewriter treatment belongs only to the little paper letter. */
.mail-object__message { opacity: 0; transition: opacity 180ms ease; pointer-events: none; }
.is-letter-typing .mail-object__message { opacity: 1; }
.mail-object__message text { fill: #333c4a; font-family: 'Courier New',Courier,monospace; font-size: 16px; font-weight: 600; letter-spacing: -.5px; }
.mail-object__message .mail-object__invitation { font-size: 14px; font-weight: 400; letter-spacing: -.3px; }
.mail-object__cursor { fill: #007aff; font-weight: 400; }
.is-letter-typing:not(.is-letter-complete) .mail-object__cursor { animation: letter-caret 700ms step-end infinite; }
.contact-letter.is-letter-typing .mail-object__paper { transform: translateY(-12px); }
@keyframes letter-caret { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion:reduce) {
  .mail-object__message { transition: none; }
  .is-letter-typing .mail-object__cursor { animation: none; }
}
