/* T6 · Contact: /contact/ and /bedankt/ (src/pagina/contact.mjs). stroming.css is loaded first and carries the tokens, the worlds, the
   header, the buttons, the form panel, the callback sheet and the footer; this file holds only what these two pages have of their own. */

/* the two still planes of the ground's fallback, so the world under the header is the home page's (grond.css) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(104deg, transparent 64%, color-mix(in srgb, var(--w2) 22%, transparent) 64.15%, transparent 96%),
    linear-gradient(116deg, transparent 38%, color-mix(in srgb, var(--w3) 14%, transparent) 38.15%, transparent 78%);
}
main, .voet { position: relative; z-index: 1; }

/* ---------- the live dot: red and breathing while the office is open, hollow when it is shut, absent until the script knows ---------- */
.ct-punt { display: none; flex: none; position: relative; width: 10px; height: 10px; border-radius: 50%; }
[data-nu-staat=open] .ct-punt { display: block; background: var(--rood); }
[data-nu-staat=open] .ct-punt::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--rood); animation: ct-adem 2.4s var(--e-uit) infinite; }
[data-nu-staat=dicht] .ct-punt { display: block; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .6; }
@keyframes ct-adem { from { transform: scale(1); opacity: .55; } to { transform: scale(3); opacity: 0; } }

/* ======================= /contact/ ======================= */
.ct-kop { padding: var(--pagina-top) 0 var(--sec-y); }
.ct-kop-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: var(--kolom-gap); align-items: end; }
.ct-h1 { margin: 0; font-size: var(--t-pagina); font-weight: 650; line-height: .96; letter-spacing: -.032em; }
.ct-h1 span { display: block; }
/* two ways in: the second line steps back, so the pair reads as a choice and the red full stop closes it */
.ct-h1 span + span { color: rgba(255, 255, 255, .5); }
.ct-h1 em { font-style: normal; color: var(--rood); }
/* the lead stands on one line where the column has the room (Alex, 22-09) */
.ct-kop .sub { max-width: none; }

/* the three ways in stand apart by their labels and the air between them. No rules between them and no underline at rest on the number
   or the address (Alex, 22-09: too many lines); the red rule draws under them on hover, and the one text link keeps v4's own */
.ct-lijnen { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.ct-lijnen li { display: grid; gap: 8px; justify-items: start; }
.ct-label { font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); }
.ct-tel { font-size: clamp(38px, 4.2vw, 70px); font-weight: 660; line-height: 1; letter-spacing: -.03em; color: #fff; text-decoration: none; white-space: nowrap; }
.ct-tel span { background: linear-gradient(var(--rood) 0 0) 0 100% / 0 3px no-repeat; padding-bottom: 6px; transition: background-size .5s var(--e-uit); }
@media (hover: hover) and (pointer: fine) { .ct-tel:hover span { background-size: 100% 3px; } .ct-mail:hover { background-size: 100% 2px; } }
.ct-tel:focus-visible span { background-size: 100% 3px; }
.ct-mail:focus-visible { background-size: 100% 2px; }
.ct-nu, .uren-nu { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; font-size: var(--t-meta); line-height: 1.4; color: var(--fg2); }
.ct-mail { font-size: var(--t-zin); font-weight: 600; letter-spacing: -.015em; color: #fff; text-decoration: none; background: linear-gradient(var(--rood) 0 0) 0 100% / 0 2px no-repeat; padding-bottom: 5px; transition: background-size .5s var(--e-uit); }

.ct-form { padding: 0 0 var(--sec-y); }
/* the callback takes the foot of the intro column, where the home page has its contact block: margin-top auto levels the two columns */
.ct-liever { margin: auto 0 0; padding-top: 24px; border-top: 1px solid var(--lijn); width: 100%; font-size: var(--t-sub); font-weight: 560; letter-spacing: -.01em; }
.ct-liever .link { margin-left: 10px; }
.ct .drie { margin-bottom: 32px; }
/* with JavaScript the fields live in the sheet; until gesprek.js has lifted them they must not stand under the form and push the page */
.ct-terugbel { margin-top: var(--kop-y); }
.js .ct-terugbel { margin-top: 0; }
.js .ct-terugbel .terugbel { display: none; }

.ct-kantoren { padding: var(--sec-y) 0; background: var(--kalk); }
.kantoren { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--kop-y); border-top: 1px solid var(--lijn); }
.kantoor { padding: 32px clamp(20px, 3vw, 56px) 32px 0; }
.kantoor + .kantoor { padding-left: clamp(20px, 3vw, 56px); border-left: 1px solid var(--lijn); }
.kantoor h3 { margin: 0 0 24px; font-size: clamp(54px, 8vw, 148px); font-weight: 650; line-height: .95; letter-spacing: -.035em; }
.kantoor p { margin: 0 0 24px; font-size: var(--t-sub); line-height: 1.45; color: var(--fg2); }
.kantoor-kaart { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--inkt); font-weight: 600; text-decoration: none; }
.kantoor-kaart span { border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.kantoor-kaart .ci { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-klein) var(--e-pop); }
.kantoor-kaart:hover { color: var(--rood-tekst); }
.kantoor-kaart:hover .ci { transform: translateY(-3px); }

.uren { margin-top: var(--kop-y); }
.uren-kop { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 22px; }
.uren-kop h3 { margin: 0; font-size: var(--t-kaart); font-weight: 640; letter-spacing: -.02em; }
.uren-nu { margin: 0; }
.week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--lijn); border-bottom: 1px solid var(--lijn); }
.week li { position: relative; display: grid; gap: 10px; padding: 20px 14px 22px 0; }
.week li + li { padding-left: 14px; border-left: 1px solid var(--lijn); }
.week b { font-family: var(--mono); font-size: var(--t-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); }
.week abbr { text-decoration: none; }
.week span { font-size: clamp(15px, 1.25vw, 19px); font-weight: 620; letter-spacing: -.01em; white-space: nowrap; }
.week .is-dicht span { font-weight: 480; color: var(--fg2); }
/* today: the red rule of the fields across the top of its cell */
.week .is-vandaag::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--rood); }
.week .is-vandaag b { color: var(--rood-tekst); }
.week .is-vandaag b::after { content: ' · vandaag'; }
.uren-voet { margin: 24px 0 0; font-size: var(--t-sub); color: var(--fg2); }
.uren-voet .link { margin-left: 10px; }

/* the phone bar, as /rekenmachine/ has it */
.ct-balk { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(24, 26, 29, .86); backdrop-filter: blur(14px); border-top: 1px solid rgba(255, 255, 255, .22); color: #fff; transform: translateY(110%); transition: transform var(--t-deel) var(--e-uit); }
.ct-balk.is-op { transform: none; }
.ct-balk-tel { font-weight: 600; font-size: 16px; color: #fff; text-decoration: none; }
.no-js .ct-balk { display: none !important; }

/* ======================= /bedankt/ ======================= */
/* one calm screen on the graphite ground (Alex, 22-09: a red page burns and reads as an error). The thanks stands at the head, the steps
   and the way onward at the foot, a screen apart */
.bd-sec { --bd-top: var(--pagina-top); --bd-voet: var(--sec-y); padding: var(--bd-top) 0 var(--bd-voet); }
.bd-blad { display: grid; align-content: space-between; gap: var(--kop-y); min-height: calc(100svh - var(--bd-top) - var(--bd-voet)); }
.bd-h1 { margin: 0; font-weight: 650; }
.bd-h1 > span { display: block; }
.bd-groot { font-size: clamp(64px, min(11.5vw, 25vh), 210px); line-height: .94; letter-spacing: -.04em; white-space: nowrap; }
/* the headline's full stop, grown until it holds the check: a white disc with the check in red, the only red in the headline (Alex,
   22-09: a red disc came out of a red screen, and red after sending reads as an error). inline-block without a line box, so its foot
   stands on the baseline */
.bd-punt { display: inline-block; position: relative; width: .44em; height: .44em; margin-left: .07em; border-radius: 50%; background: #fff; }
.bd-punt svg { position: absolute; inset: 23%; width: 54%; height: 54%; fill: none; stroke: var(--rood); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.bd-belofte { margin-top: .42em; font-size: var(--t-kop3); font-weight: 620; line-height: 1.08; letter-spacing: -.025em; }

/* the track: a dot per step and one hairline between them. Done is red, next is a white ring that breathes, later is a dim ring */
.bd-pad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bd-pad li { position: relative; display: grid; gap: 10px; align-content: start; padding: 36px clamp(24px, 3.4vw, 64px) 0 0; }
.bd-pad li::before, .bd-pad .is-straks::after { content: ''; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; }
.bd-pad li::before { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.bd-pad .is-klaar::before { background: var(--rood); box-shadow: none; }
.bd-pad .is-straks::before { box-shadow: inset 0 0 0 1.5px #fff; }
.bd-pad .is-straks::after { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); animation: ct-adem 2.4s var(--e-uit) infinite; }
.bd-pad li > i:first-child { position: absolute; left: 24px; right: 12px; top: 5.5px; height: 1px; background: var(--lijn); }
.bd-pad .is-klaar > i:first-child { background: var(--rood); }
.bd-pad li:last-child > i:first-child { background: linear-gradient(90deg, var(--lijn), transparent); }
.bd-pad b { font-size: var(--t-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg2); }
.bd-pad .is-klaar b, .bd-pad .is-straks b { color: #fff; }
.bd-pad span { font-size: var(--t-sub); line-height: 1.45; color: var(--fg2); max-width: 26em; }
.bd-acties { margin: var(--kop-y) 0 0; }

/* ---------- the arrival from a form: the page is white from edge to edge at its first frame (the form's own fill, 11-slot.js), and the
     page change is a cut between two white screens, so its own move is switched off for this one navigation. contact.mjs's script
     then draws the white together into the disc behind "Bedankt", and the page under it is the calm one ---------- */
.vlam-in { display: none; position: fixed; inset: 0; z-index: 90; background: #fff; pointer-events: none; will-change: clip-path; }
html[data-van=form] .vlam-in { display: block; }
html[data-van=form]::view-transition-image-pair(root), html[data-van=form]::view-transition-new(root) { animation: none; }
/* the rest arrives while the red draws together; "Bedankt" itself stands still, because the disc is what the red lands on. Declared as
   animations, so nothing stays hidden if the script never runs */
@keyframes bd-op { from { opacity: 0; transform: translateY(var(--bd-y, 26px)); } }
@keyframes bd-teken { from { stroke-dashoffset: 1; } }
@keyframes bd-trek { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes bd-zak { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
html[data-van=form] :is(.bd-kop .sec-label, .bd-belofte, .bd-pad li, .bd-acties) { animation: bd-op .8s var(--e-uit) both; animation-delay: calc(.75s + var(--i, 0) * .09s); }
.bd-belofte { --i: 1; }
.bd-pad li:nth-child(1) { --i: 2; }
.bd-pad li:nth-child(2) { --i: 3; }
.bd-pad li:nth-child(3) { --i: 4; }
.bd-acties { --i: 5; }
html[data-van=form] .bd-punt path { animation: bd-teken .5s cubic-bezier(.45, 0, .55, 1) 1.1s both; }
html[data-van=form] .bd-pad .is-klaar > i:first-child { animation: bd-trek .9s var(--e-uit) 1.5s both; }
html[data-van=form][data-tier=lite] { --bd-y: 12px; }

@media (max-width: 1100px) {
  .ct-kop-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 760px) {
  .ct-balk { display: flex; }
  .ct-liever { margin-top: 0; }
  .kantoren { grid-template-columns: minmax(0, 1fr); }
  .kantoor + .kantoor { padding-left: 0; border-left: 0; border-top: 1px solid var(--lijn); }
  .week { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .week li, .week li + li { grid-template-columns: 9em minmax(0, 1fr); align-items: baseline; padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--lijn); }
  .week .is-vandaag::before { right: auto; top: 0; bottom: 0; left: -10px; width: 3px; height: auto; }
  /* the track turns upright: the dots down the left, the hairline from each to the next */
  .bd-pad { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .bd-pad li { padding: 0 0 0 32px; }
  .bd-pad li::before, .bd-pad .is-straks::after { top: 3px; }
  .bd-pad li > i:first-child { left: 5.5px; right: auto; top: 24px; bottom: -20px; width: 1px; height: auto; }
  .bd-pad li:last-child > i:first-child { display: none; }
  html[data-van=form] .bd-pad .is-klaar > i:first-child { animation-name: bd-zak; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-punt::after { animation: none !important; }
  .ct-tel span, .ct-mail, .ct-balk { transition: none; }
  .bd-pad .is-straks::after { animation: none !important; }
}
[data-tier=stil] .ct-punt::after, [data-tier=stil] .bd-pad .is-straks::after { animation: none; }
