/* Public pages: a browser window floating on the deBR photograph (as on debr-hosting.be),
   with a quiet contact card inside: one narrow column, hairlines instead of boxes. */
body.framed { height: 100vh; height: 100dvh; overflow: hidden; background: var(--brand); }
.backdrop { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: veil 1.6s var(--ease) both; }
.scrim { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 37, 81, .55) 0%, rgba(0, 37, 81, .35) 45%, rgba(0, 37, 81, .8) 100%); }
.stage { height: 100%; padding: clamp(20px, 8vh, 110px) clamp(10px, 4vw, 64px) 0; display: flex; justify-content: center; }
.window { width: min(880px, 100%); display: flex; flex-direction: column; background: var(--bg); border-radius: 12px 12px 0 0; box-shadow: 0 30px 80px -20px rgba(0, 18, 40, .55), 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; animation: lift 1.1s var(--ease) both .15s; }
.chrome { display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; gap: var(--s3); height: 44px; padding: 0 var(--s4); background: #efece5; border-bottom: 1px solid #dcd7cc; color: #7d7a73; flex: none; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.address { justify-self: center; width: min(420px, 100%); height: 28px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; background: #fff; border: 1px solid #dcd7cc; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.address .lock { width: 13px; height: 13px; flex: none; }
.address .url { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.address .path { color: var(--ink-2); }
.caret { display: inline-block; width: 1px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--brand); animation: blink 1.1s steps(1) 4, fade .3s 4.4s forwards; }
.viewport { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.viewport > main { width: min(560px, 100% - 40px); margin: 0 auto; padding: var(--s2) 0 calc(env(safe-area-inset-bottom) + 24px); }
@keyframes lift { from { opacity: 0; transform: translateY(48px); } }
@keyframes veil { from { transform: scale(1.06); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fade { to { opacity: 0; } }
.no-intro .backdrop, .no-intro .window, .no-intro .caret { animation: none; }
.no-intro .caret { opacity: 0; }
@view-transition { navigation: auto; }
.chrome { view-transition-name: chrome; }
.viewport { view-transition-name: page; }
.mast { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: var(--s4) 0 var(--s3); border-bottom: var(--hair); }
.mast .micro { color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.mast .micro:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.id { display: grid; grid-template-columns: 1fr auto; gap: var(--s4); align-items: center; padding: var(--s6) 0 var(--s4); }
.name .first { font-weight: 650; }
.name .last { font-weight: 400; color: var(--ink-2); }
.name { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: var(--track-tight); }
.portrait { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; background: var(--bg-subtle); order: -1; }
.id { grid-template-columns: auto 1fr; }
.portrait.is-monogram { display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.lede { margin: var(--s1) 0 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-2); }
.sub { margin: 2px 0 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-3); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); padding: var(--s1) 0 0; }
.actions .btn { height: 40px; font-size: var(--fs-sm); font-weight: 500; }
.actions.split { display: grid; grid-template-columns: 1fr 1fr; }
.actions.split:has(> [hidden]), .actions.split:has(> :only-child) { grid-template-columns: 1fr; }
.links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: var(--s3) 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.links a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; white-space: nowrap; }
.links a:hover { color: var(--ink); }
.links svg { width: 16px; height: 16px; }

.form { margin-top: var(--s7); }
.section-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: var(--s2); border-bottom: var(--hair); }
.section-head .micro { color: var(--ink-3); font-weight: 500; }
.form .list { border-top: 0; }
.row .cc { width: auto; padding-right: var(--s2); font-size: var(--fs-sm); color: var(--ink-2); -webkit-appearance: none; appearance: none; cursor: pointer; }
.row:has(.cc) { grid-template-columns: 84px auto 1fr; }
.form .segmented { margin: var(--s4) 0 0; }
.row.note { border-top: 0; margin-top: var(--s2); }
.form > .btn { margin-top: var(--s5); height: 46px; font-size: var(--fs-md); font-weight: 500; }
.fine { margin: var(--s3) 0 0; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; }
.fine a { color: var(--ink-2); }
.status { min-height: 1.2em; margin: var(--s2) 0 0; font-size: var(--fs-sm); color: var(--err); }
.status.ok { color: var(--ok); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row.filled { animation: filled 1.2s var(--ease); }
@keyframes filled { from { background: var(--brand-tint); } }

.done { padding: var(--s6) 0 var(--s2); animation: rise .5s var(--ease) both; }
.done .actions { margin-top: var(--s4); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.foot { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s7); padding-top: var(--s3); border-top: var(--hair); font-size: var(--fs-xs); color: var(--ink-3); }
.foot nav { display: flex; gap: var(--s4); }
.foot a { text-decoration: none; }
.foot a:hover, .foot a[aria-current] { color: var(--ink); }

.landing .id { padding-top: var(--s7); }

.doc h1 { margin: var(--s6) 0 var(--s2); }
.doc h2 { margin: var(--s5) 0 var(--s1); font-size: var(--fs-md); font-weight: 650; letter-spacing: var(--track-tight); }
.doc p { margin: 0 0 var(--s3); font-size: var(--fs-md); }
.doc .cells { grid-template-columns: 1fr; }
.doc .cells > div:nth-child(even) { padding-left: 0; border-left: 0; }

@media (max-width: 720px) {
  .stage { padding: max(env(safe-area-inset-top), 14px) 8px 0; }
  .chrome { grid-template-columns: 1fr; height: 40px; padding: 0 var(--s2); }
  .lights, .chrome-end { display: none; }
  .window { border-radius: 14px 14px 0 0; }
}
@media (min-width: 720px) {
  .viewport > main { padding-top: var(--s4); }
  .portrait { width: 72px; height: 72px; }
  .name { font-size: 28px; }
}
@media (max-width: 360px) {
  .form .segmented span { font-size: var(--fs-xs); padding: 7px 2px; }
  .text-btn { font-size: var(--fs-xs); }
  .row { grid-template-columns: 72px 1fr; }
  .row:has(.cc) { grid-template-columns: 72px auto 1fr; }
}
.viewport > main.landing { min-height: 100%; display: flex; flex-direction: column; }
.landing .id { margin-top: auto; }
.landing .actions { margin-bottom: auto; padding-bottom: var(--s7); }
.landing .foot { margin-top: 0; }
