.portal { min-height: 100vh; display: flex; flex-direction: column; background: var(--shadow); }
.portal main { flex: 1; display: flex; flex-direction: column; }
.portal main > section { flex: 1; }
.portal .skip:not(:focus) { clip-path: inset(50%); }
.portal [hidden] { display: none !important; }
.portal button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reception { position: relative; isolation: isolate; background: var(--forest); color: var(--ivory); overflow: hidden; }
.reception-image { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #101b16 0%, #101b16ec 32%, #101b1675 64%, #101b162c), url('../assets/eifel.jpg') 70% 45% / cover; animation: reception-opening .9s var(--ease) both; }
@keyframes reception-opening { from { clip-path: inset(0 0 0 25%); } to { clip-path: inset(0); } }
.reception-inner { padding-block: clamp(5rem, 13vh, 10rem); }
.reception-office { color: #e2cb9f; border-left: 1px solid currentColor; padding-left: .8rem; font-size: .85rem; margin-bottom: 1.3rem; }
.reception h1 { font-size: clamp(3.25rem, 8vw, 8rem); }
.reception h1 + p { margin: 1.6rem 0 1.45rem; max-width: 39ch; }
.portal-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; border: 1px solid var(--wine); background: var(--wine); color: var(--ivory); padding: .7rem 1rem; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.portal-button:hover { background: var(--ivory); color: var(--wine); }
.reception .portal-button { border-color: var(--ivory); background: var(--ivory); color: var(--wine); }
.reception .portal-button:hover { background: var(--shadow); color: var(--ivory); }
.portal-button span { font-size: 1.1em; flex: 0 0 auto; }
.bureau { background: var(--ivory); border-top: 5px solid var(--wine); }
.bureau-inner { display: grid; grid-template-columns: minmax(10rem, .65fr) minmax(0, 2fr); gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(2.5rem, 7vw, 7rem); }
.bureau-index { color: var(--wine); }
.bureau-index > p { font-family: var(--serif); font-size: 1.25rem; }
.stages { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); counter-reset: stage; }
.stages li { counter-increment: stage; display: flex; align-items: baseline; gap: .6rem; border-bottom: 1px solid var(--line); padding: .55rem .25rem; font-size: .85rem; }
.stages li::before { content: counter(stage, upper-roman); min-width: 1.5rem; font: .78rem var(--serif); }
.stages [aria-current] { border-bottom: 2px solid var(--wine); font-weight: bold; }
.casework { min-width: 0; }
.casework h2 { font-size: clamp(2.45rem, 5.6vw, 5.8rem); margin-bottom: 1.35rem; max-width: 15ch; }
.casework h2:focus-visible { outline-offset: .25rem; }
#application fieldset { border: 0; padding: 0; margin: 0 0 1.35rem; min-inline-size: 0; }
.register-line { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); align-items: start; gap: .7rem; border-bottom: 1px solid var(--line); padding: 1rem .7rem; cursor: pointer; }
.register-line:first-of-type { border-top: 1px solid var(--line); }
.register-line:hover, .register-line:focus-within { background: #ede5d7; }
.register-line:has(:checked) { border-inline-start: 3px solid var(--wine); padding-inline-start: calc(.7rem - 3px); background: var(--paper); }
.register-line input { accent-color: var(--wine); width: 1.12rem; height: 1.12rem; margin: .4rem 0 0; }
.register-line strong { display: block; font: normal clamp(1.4rem, 3.05vw, 2.7rem)/1.15 var(--serif); letter-spacing: -.045em; }
.register-line small { display: block; margin-top: .25rem; font-size: .85rem; }
.demo-note { margin-top: .85rem; color: #59483f; font-size: .81rem; }
.processing { min-height: 25rem; }
.dispatch { position: relative; margin-top: 1.6rem; width: min(100%, 27rem); height: 12em; font-size: clamp(.8rem, 2.5vw, 1rem); overflow: hidden; background: var(--forest); border: 1px solid var(--brass); }
.dispatch-paper { position: absolute; inset: 19% 16% 16%; background: var(--ivory); padding: 1em; animation: file-dispatch .76s var(--ease) both; }
.dispatch-paper span { display: block; height: 1px; background: #695d50; margin-bottom: .7em; width: 70%; }
.dispatch-paper span:first-child { width: 35%; height: 2px; }
.dispatch-paper span:last-child { width: 53%; }
.dispatch-pocket { position: absolute; inset: 59% 0 0; display: grid; place-items: end start; padding: .8em 1em; background: var(--wine); color: var(--ivory); border-top: 1px solid var(--brass); font-family: var(--serif); }
.dispatch .seal { position: absolute; right: 1.1em; bottom: 1em; width: 3.4rem; animation: stamp .24s .52s var(--ease) both; }
@keyframes file-dispatch { 0% { transform: translateY(-18%); } 42% { transform: translateY(0); } 100% { transform: translateY(46%); } }
@keyframes stamp { from { transform: rotate(-17deg) scale(1.15); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.receipt-paper { padding: clamp(1.25rem, 5vw, 4rem); position: relative; background: #fbf7ee; border: 1px solid #9c8873; border-top: 5px solid var(--wine); animation: receipt-issue .48s var(--ease) both; }
@keyframes receipt-issue { from { clip-path: inset(0 0 12%); transform: translateY(.6rem); } to { clip-path: inset(0); transform: none; } }
.receipt-top { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .55rem 1rem; color: var(--wine); font-family: var(--serif); line-height: 1.25; margin-bottom: 1.5rem; }
.receipt-top small { font: .74rem var(--sans); }
.receipt-copy { font: .76rem var(--sans); border: 1px solid currentColor; padding: .3rem .45rem; }
.receipt-fields { margin: 0; }
.receipt-fields div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: .75rem; padding-block: .6rem; border-top: 1px solid var(--line); }
.receipt-fields div:last-child { border-bottom: 1px solid var(--line); }
.receipt-fields dt { font-size: .81rem; color: #58483f; }
.receipt-fields dd { margin: 0; font-size: .85rem; overflow-wrap: anywhere; }
.status-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--wine); margin-right: .4rem; }
.receipt-reply { margin: 1.45rem 0; font: clamp(1.2rem, 2.7vw, 2rem)/1.35 var(--serif); color: var(--wine); }
.receipt-signature { display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-size: .82rem; }
.receipt-signature p { margin: 0; }
.receipt-signature .seal { width: clamp(3.3rem, 6vw, 5rem); transform: rotate(-8deg); }
#restart { margin-top: 1.2rem; }
.portal .footer { border-top: 1px solid #ffffff35; }
@media (max-width: 680px) {
  .portal .header-inner { min-height: auto; }
  .reception-image { background-image: linear-gradient(0deg, #101b16 0%, #101b16dc 38%, #101b1652 100%), url('../assets/eifel-mobiel.jpg'); background-position: 76% 25%; }
  .reception-inner { padding-block: 7.4rem 2.75rem; }
  .bureau-inner { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .bureau-index > p { margin-bottom: .5rem; }
  .stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stages li { font-size: .73rem; flex-direction: column; gap: .15rem; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .portal *, .portal *::before { animation: none !important; transition: none !important; }
}
