/* Footer: a spare invitation, a free-standing brick, and the wordmark */
.footer { position: relative; padding-top: var(--section-gap); background: var(--paper); border-top: 1px solid var(--line); border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; }
.footer__rail { display: flex; justify-content: space-between; padding-bottom: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.footer__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.footer__body .h2 { max-width: 10em; }
.footer__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.footer__mail { color: var(--muted); }
.footer__mail:hover { color: var(--blue); }

.brief { margin-top: 28px; max-width: 30em; }
.brief summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; color: var(--graphite); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.brief summary::-webkit-details-marker { display: none; }
.brief summary::after { content: "+"; font: 500 14px var(--font-mono); transition: transform 0.4s var(--ease-out); }
.brief[open] summary::after { transform: rotate(45deg); }
.brief form { display: grid; gap: 10px; margin-top: 18px; }
.brief label { position: relative; display: grid; gap: 6px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); color: var(--muted); transition: border-color 0.3s, box-shadow 0.3s; }
.brief input, .brief textarea { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 19px/1.3 var(--font-body); letter-spacing: -0.015em; text-transform: none; resize: vertical; }
.brief input::placeholder, .brief textarea::placeholder { color: var(--faint); }
.brief label:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 64, 255, 0.12); }
.brief textarea { min-height: 84px; }
.brief .action { margin-top: 18px; }
.brief__note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* the free-standing sculpture: one brick, slowly turning */
.sculpture { position: relative; height: clamp(240px, 30vw, 420px); perspective: 1600px; }
.sculpture .stack { --bw: min(260px, 22vw); left: 50%; top: 52%; transform: rotateX(58deg) rotateZ(calc(-36deg + var(--fr, 0) * 340deg)); }
.sculpture .brick { --a: 1; --i: 0; }
.sculpture .face--top { background: var(--blue); color: #fff; box-shadow: none; }
.sculpture .face--front { background: var(--blue-deep); }
.sculpture .face--side { background: #1328a6; }
@keyframes turn { from { transform: rotateX(58deg) rotateZ(-36deg); } to { transform: rotateX(58deg) rotateZ(324deg); } }

.footer__links { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-block: 18px; border-top: 1px solid var(--line); }
.footer__links a { font-size: 17px; letter-spacing: -0.02em; color: var(--graphite); }
.footer__links a:hover { color: var(--blue); }
.wordmark { margin-top: 12px; text-align: center; white-space: nowrap; padding-block: 0.16em; margin-block: 0 -0.2em; user-select: none; }
.wordmark .ch { display: inline-block; background-image: linear-gradient(#0b0c10, #6b7288 62%, rgba(213, 216, 224, 0.3) 108%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; transition: transform 0.6s var(--ease-out); }
.wordmark .ch:hover { transform: translateY(-0.07em); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 16px 22px; color: var(--muted); }

@media (max-width: 900px) {
  .footer__body { grid-template-columns: minmax(0, 1fr); }
  .sculpture { order: -1; height: 220px; }
}
