:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  background: #fff;
  color: #06264b;
  --accent: #005bda;
  --cyan: #00b9ec;
  --muted: #62738a;
}

*,
*::before,
*::after { box-sizing: border-box; }

body { margin: 0; min-width: 280px; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgb(0 163 245 / 5%), transparent 55%);
}

::selection { background: #ccecff; color: #06264b; }

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 clamp(24px, 4.5vw, 80px);
  overflow: clip;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 0 40px;
}

.welcome { width: min(100%, 880px); text-align: center; }
.brand { width: min(100%, 250px); aspect-ratio: 1.32; margin: 0 auto; }
/* Keep the supplied image intact; object-fit only trims its white outer margins. */
.brand-logo { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.panels { display: grid; margin-top: 20px; }
.panels > * { grid-area: 1 / 1; }

.message-panel { display: flex; flex-direction: column; align-items: center; }
.status-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-mark { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
h1 { margin: 20px 0 14px; font-size: clamp(1.65rem, 3.3vw, 2.5rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.04em; text-wrap: balance; }
.description { margin: 0; font-size: 1rem; line-height: 1.8; color: var(--muted); }
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  margin-top: 28px;
  padding: 14px 24px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: linear-gradient(115deg, #0056d9, #0067dc);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease-out;
}
.contact-link svg { width: 20px; height: 20px; flex: 0 0 auto; }
.portal-entry { margin-top: 20px; color: var(--accent); font-size: .875rem; padding: 10px; text-decoration: none; }
.portal-entry:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.contact-link:focus-visible { outline: 2px solid #06264b; outline-offset: 5px; }
.contact-link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .contact-link:hover { background: #004bb9; border-color: #004bb9; }
}

.loading-panel { display: none; align-self: start; width: min(100%, 340px); margin: 8px auto 0; }
.loading-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 0.875rem; color: var(--muted); }
#progress-number { font-variant-numeric: tabular-nums; color: var(--accent); min-width: 3.2em; text-align: right; }
.progress-track { height: 4px; overflow: hidden; margin-top: 18px; background: #e5eef8; border-radius: 2px; }
.progress-fill { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--cyan), #0061f2); transform: scaleX(0); transform-origin: left; }
.loading-caption { margin: 17px 0 0; color: var(--muted); font-size: 0.8125rem; }
.is-loading .loading-panel { display: block; }
.is-loading .message-panel { opacity: 0; visibility: hidden; }
.is-loading .brand { transform: translateY(75px); }
.is-loading .loading-panel { transform: translateY(75px); }
.has-intro .brand { transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1); }
.is-ready .message-panel { animation: reveal 280ms ease-out both; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.footer { min-height: 76px; color: var(--muted); font-size: 0.75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 600px) {
  .main { padding: 28px 0 40px; }
  .panels { margin-top: 22px; }
  .loading-panel { width: min(100%, 290px); }
  .status-label { font-size: 0.75rem; }
  h1 { margin-top: 24px; }
  .contact-link { padding-inline: 20px; }
  .footer { min-height: 76px; gap: 16px; font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .contact-link:active { transform: none; }
}
