/* Materia Holdings. Plain HTML and CSS, no scripts. */

:root {
  --ink: #0b1d47;
  --paper: #e8f1fd;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  min-height: 100svh;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
::selection { background: var(--paper); color: var(--ink); }

/* The plate: pre-cropped from the full-resolution original, full bleed, under an even veil */
.plate { position: fixed; inset: 0; overflow: hidden; }
.plate img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  filter: url(#ink);
  animation: settle 6s cubic-bezier(.2,.6,.2,1) both;
}
.plate::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(7, 19, 48, .7), transparent 18%),
    rgba(7, 19, 48, .12); /* light veil: the night-sky plate is already dark */
}
@keyframes settle {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: none; }
}

/* Wordmark: thin, widely tracked capitals */
main {
  position: relative; text-align: center; padding: 0 16px;
  text-shadow: 0 0 2px rgba(7, 19, 48, .9), 0 0 20px rgba(7, 19, 48, .6);
}
h1 {
  font-weight: 200;
  font-size: clamp(44px, 11vw, 176px);
  line-height: 1;
  letter-spacing: 0.18em;
  margin-right: -0.18em; /* optically re-centre the tracked word */
  text-transform: uppercase;
  animation: rise 2.4s ease 1s both;
}
main p {
  margin-top: clamp(14px, 2vw, 28px);
  font-weight: 400;
  font-size: clamp(12px, 1.1vw, 16px);
  letter-spacing: 0.9em;
  margin-right: -0.9em;
  text-transform: uppercase;
  animation: rise 2.4s ease 1.6s both;
}

footer {
  position: fixed; left: 0; right: 0; bottom: clamp(20px, 3vw, 32px);
  display: flex; justify-content: center;
  padding: 0 clamp(20px, 3vw, 40px);
  font-size: 12px; letter-spacing: .14em;
  animation: rise 2.4s ease 2.2s both;
}
footer a { color: inherit; text-decoration: none; opacity: .8; transition: opacity .3s; }
footer a:hover { opacity: 1; }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .plate img, h1, main p, footer { animation: none; }
}

@media (max-width: 640px) {
  .plate img { object-position: 42% 50%; }
  h1 { font-size: 14vw; letter-spacing: .12em; margin-right: -.12em; }
  main p { letter-spacing: .6em; margin-right: -.6em; }
  footer { flex-direction: column; align-items: center; gap: 6px; font-size: 11px; }
}

@media print {
  .plate { display: none; }
  body { background: #fff; color: var(--ink); }
  main { text-shadow: none; }
}
