:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f4f3f0;
  background: #292b2e;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

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

body {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(ellipse at 38% 0%, #ffffff0d 0%, transparent 65%),
    linear-gradient(118deg, #27292c 0%, #2e3034 35%, #35383c 44%, #3c3f43 49%, #373a3e 53%, #2e3034 63%, #25272a 100%);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -35%;
  pointer-events: none;
  background: linear-gradient(118deg, #ffffff00 45%, #ffffff03 47%, #ffffff12 49%, #ffffff38 50%, #ffffff12 51%, #ffffff03 53%, #ffffff00 55%);
  filter: blur(10px);
  opacity: 0;
  animation: light-pass 18s 1.1s linear infinite;
}

/* Fine monochrome grain softens visible steps in dark gradients. */
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: url('/grain.svg') repeat;
  background-size: 160px 160px;
  opacity: 0.045;
}

.page {
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.card {
  width: min(100%, 42rem);
  animation: arrive 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.identity {
  position: relative;
  width: min(100%, 25rem);
  margin: 0 auto;
  line-height: 0;
}

.logo { display: block; width: 100%; height: auto; }

.status {
  margin: 2rem 0 0;
  color: #c5c7cb;
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.invitation { margin-top: 2.75rem; }
.invitation p { margin: 0 0 1.125rem; font-size: 1.125rem; line-height: 1.6; }
a { color: inherit; text-underline-offset: 0.3em; overflow-wrap: anywhere; }

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
  padding: 1rem 1.875rem;
  border: 1px solid #ffffffa6;
  border-radius: 0.375rem;
  background: linear-gradient(135deg, #ffffff, #e4e5e7);
  box-shadow: 0 8px 24px #00000026, inset 0 1px 0 #ffffff;
  color: #25272a;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px #00000033, 0 0 24px #ffffff0d; }
.cta:active { transform: translateY(0); }

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin-top: 1.75rem;
  color: #e2e3e5;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.5;
}

.contact a { display: inline-block; max-width: 100%; padding-block: 0.625rem; text-decoration: none; }
.contact-separator { color: #979ba2; }
.contact a:hover, .footer a:hover { color: #fff; text-decoration: underline; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }

.footer {
  width: min(calc(100% - 3rem), 76rem);
  justify-self: center;
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid #ffffff26;
  color: #c5c7cb;
  font-size: 0.875rem;
  line-height: 1.8;
  text-align: center;
}

.footer p { margin: 0; }
.footer a { display: inline-block; padding-block: 0.25rem; text-decoration: none; }
.company { margin-top: 0.125rem; }
.company > span { display: inline-block; }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.125rem 1.5rem; margin-top: 0.5rem; }
::selection { color: #25272a; background: #f4f3f0; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes light-pass {
  0% { transform: translateX(-65%); opacity: 0; }
  2.5% { opacity: 1; }
  7% { opacity: 0.85; }
  10%, 100% { transform: translateX(65%); opacity: 0; }
}

@media (max-width: 34rem) {
  .page { padding-block: 3rem; }
  .contact { gap: 0 1rem; }
  .contact-separator { display: none; }
  .company > span[aria-hidden] { display: none; }
  .company > span:not([aria-hidden]) { margin-inline: 0.25rem; }
  .legal { gap: 0.25rem 1rem; }
}

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