/* The home closing (9 Nov 2026 redo). One headline, then three ways in: a one-step message (saved as a lead), WhatsApp
   and email. Fits one screen; a shorter scroll (the concrete plate still pushes in, main.js); text kept on the dark
   side of the photo. The old giant link styles in a.css / plates.css no longer apply (it is a heading now). */
.motion.gl .closing[data-closing] { height: 135vh; }
.closing[data-closing] .closing-inner { padding-top: calc(var(--hd) + 40px); padding-bottom: clamp(32px, 6vh, 64px); }

/* keep the type on dark: a deeper wash on the left and along the bottom */
.closing[data-closing] .closing-stage::after {
  background: linear-gradient(90deg, oklch(0.135 0.006 358 / .9) 0%, oklch(0.135 0.006 358 / .6) 38%, oklch(0.135 0.006 358 / .1) 70%, transparent 85%),
              linear-gradient(0deg, oklch(0.135 0.006 358 / .85) 0%, oklch(0.135 0.006 358 / .3) 40%, transparent 60%);
}

.close-k { margin: 0; color: var(--fg-2); }
.close-h { margin: clamp(10px, 2vh, 20px) 0 0; font: 700 clamp(3rem, min(10.5vw, 16vh), 11.5rem)/.88 var(--f-display); letter-spacing: -0.045em; color: var(--fg); }
.close-h span { display: block; }
.close-h span:last-child { color: var(--accent); }

.close-ways { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 20px clamp(24px, 4vw, 56px); align-items: end; max-width: 1080px; margin-top: clamp(24px, 4.5vh, 48px); }

/* the message card: dark glass over the photo */
.close-form, .close-done { display: grid; gap: 12px; padding: 20px; border: 1px solid rgb(255 255 255 / .12); border-radius: 20px; background: rgb(14 11 13 / .66); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.close-form[hidden], .close-done[hidden] { display: none; }
.close-form-h { margin: 0; font: 400 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.close-done p:last-child { margin: 0; color: var(--fg); font-size: 1.05rem; line-height: 1.5; }
.close-done:focus { outline: none; }
.close-field { display: grid; gap: 6px; min-width: 0; }
.close-form textarea, .close-form input[type="text"] { width: 100%; padding: 14px 16px; border: 1px solid rgb(255 255 255 / .16); border-radius: 12px; background: rgb(255 255 255 / .05); color: var(--fg);
  font: 400 1rem/1.4 var(--f-body); transition: border-color .25s, background-color .25s; }
.close-form textarea { resize: none; min-height: 76px; }
.close-form textarea::placeholder, .close-form input::placeholder { color: var(--fg-3); }
.close-form textarea:hover, .close-form input:hover { border-color: rgb(255 255 255 / .3); }
.close-form textarea:focus-visible, .close-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); background: rgb(255 255 255 / .08); }
.close-field.is-bad textarea, .close-field.is-bad input { border-color: oklch(0.7 0.18 358.6); }
.close-err { margin: 0; font-size: .85rem; color: oklch(0.8 0.12 358.6); }
.close-err:empty { display: none; }
.close-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.close-send { min-height: 50px; border: 0; cursor: pointer; border-radius: 12px; padding-inline: 26px; }
.close-sr, .close-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* or directly */
.close-or { display: grid; gap: 14px; justify-items: start; padding-bottom: 6px; }
.close-or-k { margin: 0; font: 400 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.close-wa { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding-inline: 22px; border-radius: 12px; }
.close-wa::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2bd47d; box-shadow: 0 0 10px #2bd47d; }
.close-mail { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 500 1rem/1.2 var(--f-body); border-bottom: 1px solid var(--rule); padding-bottom: 4px; transition: color .25s, border-color .25s; }
.close-mail::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .35s var(--ease); }
.close-mail:hover { color: var(--accent); border-color: var(--accent); }
.close-mail:hover::after { transform: translateX(3px) rotate(45deg); }

/* tablets and phones: one column, a darker wash so the type reads on the concrete */
@media (max-width: 899px) {
  .close-ways { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .close-or { grid-auto-flow: column; justify-content: start; align-items: center; gap: 18px; }
  .close-or-k { display: none; }
}
@media (max-width: 767px) {
  .closing[data-closing] .closing-stage::after { background: linear-gradient(0deg, oklch(0.135 0.006 358 / .94) 0%, oklch(0.135 0.006 358 / .78) 55%, oklch(0.135 0.006 358 / .45) 100%); }
  .close-h { font-size: clamp(2.8rem, 15vw, 4.4rem); }
  .close-form, .close-done { padding: 16px; border-radius: 18px; }
  .close-row { grid-template-columns: minmax(0, 1fr); }
  .close-send { width: 100%; }
}

/* 9 Nov: the headline opens the brief again (shared/brief/panel.js), and the box is the brief's first step */
.close-h-link { color: inherit; text-decoration: none; display: inline-block; }
/* the line roll (as the old giant link had): each line slides up and its twin in the other colour rolls in */
.close-h-link span { position: relative; display: block; overflow: hidden; width: max-content; max-width: 100%; }
.close-h-link span b { display: block; font-weight: inherit; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.close-h-link span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; color: var(--accent); transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.close-h-link span:last-child::after { color: var(--fg); }
.close-h-link span:nth-child(2) b, .close-h-link span:nth-child(2)::after { transition-delay: .06s; }
.close-h-link:hover span b, .close-h-link:focus-visible span b, .close-h-link:hover span::after, .close-h-link:focus-visible span::after { transform: translate3d(0, -100%, 0); }
.close-h-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 8px; }
.close-h span:last-child { color: var(--accent); }
.close-row { align-items: stretch; }
.close-form textarea { min-height: 58px; }
.close-send { display: inline-flex; align-items: center; gap: 10px; }
.close-send::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .35s var(--ease); }
.close-send:hover::after { transform: translateX(3px) rotate(45deg); }
.close-note { margin: 0; font-size: .875rem; line-height: 1.45; color: var(--fg-3); }
@media (prefers-reduced-motion: reduce) { .close-h-link span b, .close-h-link span::after { transition: none; } }
/* 13 Nov 2026 (responsive pass): the email link is 24px tall; a larger invisible hit area makes it easy to tap on phones */
.close-mail { position: relative; }
.close-mail::before { content: ""; position: absolute; inset: -10px -8px; }
