@font-face {
  font-family: Caveat;
  src: url('/assets/caveat.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f3f4ef;
  background: #000;
  --edge: clamp(24px, 3.5vw, 60px);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { position: relative; height: 100svh; min-height: 240px; }
::selection { background: #8edbff; color: #03111d; }

.atmosphere, #scene, .vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.atmosphere { overflow: hidden; background: #000; }
.vignette { background: radial-gradient(ellipse at center, transparent 30%, #00000030 75%, #00000070 100%); }

/* CSS also completes the reveal when JavaScript or canvas is unavailable. */
.intro .identity { animation: identity-reveal 2.8s 4.7s both; }
.intro .masthead, .intro .footer { animation: details-reveal 1.8s 6s both; }
@keyframes identity-reveal {
  from { opacity: 0; transform: translateY(10px); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes details-reveal {
  from { opacity: 0; visibility: hidden; }
  to { opacity: 1; visibility: visible; }
}

.masthead {
  position: absolute;
  z-index: 2;
  top: calc(var(--edge) + env(safe-area-inset-top));
  left: calc(var(--edge) + env(safe-area-inset-left));
  right: calc(var(--edge) + env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.descriptor { display: flex; align-items: center; gap: 11px; font-size: 10px; text-transform: uppercase; letter-spacing: .19em; color: #c1ccc4; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #b4d8e8; box-shadow: 0 0 9px #69bcf055; }

main { position: absolute; inset: 0; display: grid; place-items: center; padding: 88px 24px; }
.identity { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.identity::before { content: ''; position: absolute; z-index: -1; inset: -60px -100px; background: radial-gradient(ellipse, #000000f2, #000000a6 45%, transparent 70%); pointer-events: none; }
.studio-logo { display: block; width: clamp(108px, 12.5vw, 174px); height: auto; filter: brightness(0) invert(1); opacity: .94; margin-bottom: 17px; }
h1 { margin: 0; padding: 0 8px 4px; font-family: Caveat, 'Segoe Print', cursive; font-weight: 500; font-size: clamp(68px, 8vw, 116px); line-height: 1.07; letter-spacing: -.035em; white-space: nowrap; text-shadow: 0 2px 28px #07130a; }
.studio { margin: 20px 0 0; padding-left: .55em; text-transform: uppercase; font-size: 11px; letter-spacing: .55em; color: #d2dacf; font-weight: 400; }

.footer { position: absolute; z-index: 3; left: calc(var(--edge) + env(safe-area-inset-left)); right: calc(var(--edge) + env(safe-area-inset-right)); bottom: calc(var(--edge) + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.copyright { font-size: 9px; color: #a5afa8; letter-spacing: .14em; margin: 0 0 7px; text-transform: uppercase; }
.contact-links { display: flex; gap: 12px; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-width: 148px; min-height: 48px; padding: 15px 19px; border: 1px solid #ffffffb3; background: transparent; color: #fff; text-decoration: none; font-size: 11px; letter-spacing: .04em; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.contact-links svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.3; stroke-linecap: square; stroke-linejoin: miter; }
.contact-links a:hover { color: #0b1710; background: #f0f4ed; border-color: #f0f4ed; transform: translateY(-2px); }
.contact-links a:active { transform: translateY(0); }
.contact-links a:focus-visible { outline: 2px solid #8edbff; outline-offset: 5px; }

@media (max-width: 600px) {
  :root { --edge: 24px; }
  .descriptor { font-size: 8px; letter-spacing: .12em; gap: 7px; }
  main { padding-block: 100px; }
  .studio-logo { width: 130px; margin-bottom: 20px; }
  h1 { font-size: clamp(56px, 13vw, 78px); }
  .studio { font-size: 10px; margin-top: 19px; }
  .footer { flex-direction: column-reverse; align-items: flex-end; gap: 20px; }
  .contact-links { gap: 10px; }
  .contact-links a { min-width: 126px; min-height: 46px; padding: 14px 15px; gap: 24px; }
  .copyright { font-size: 8px; margin-bottom: 0; }
}
@media (max-height: 500px) {
  :root { --edge: 20px; }
  main { padding: 62px 20px; }
  .studio-logo { width: 72px; margin-bottom: 6px; }
  h1 { font-size: 60px; }
  .studio { margin-top: 9px; font-size: 8px; }
  .footer { flex-direction: row; align-items: flex-end; }
  .contact-links a { min-height: 40px; padding: 10px 14px; min-width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
