@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Space+Mono:ital@0;1&display=swap');

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

:root {
  --black:  #050505;
  --silver: #b8b8b8;
  --dim:    #5a5a5a;
  --pale:   #e2ddd8;
  --red:    #7a1a1a;
  --foil:   #d4c89a;
}

html, body {
  min-height: 100%;
  background: var(--black);
  color: var(--pale);
  font-family: 'Space Mono', monospace;
}

/* grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 100;
  opacity: 0.55;
}

/* ── spiderweb canvases ─────────────────────────────── */
.web {
  position: fixed;
  pointer-events: none;
  z-index: 10;
  animation: fadein 3.5s ease forwards;
  animation-delay: 2s;
  opacity: 0;
}
.web-tl { top: 0; left: 0; }
.web-tr { top: 0; right: 0;    transform: scaleX(-1); }
.web-bl { bottom: 0; left: 0;  transform: scaleY(-1); }
.web-br { bottom: 0; right: 0; transform: rotate(180deg); }

/* ── gothic arch friezes ────────────────────────────── */
.frieze {
  position: fixed;
  left: 0; right: 0;
  height: 36px;
  z-index: 20;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 28px 36px;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='36'%3E%3Cpath d='M0 36 Q0 2 14 0 Q28 2 28 36' fill='none' stroke='%23aaa' stroke-width='0.7'/%3E%3C/svg%3E");
}
.frieze-top { top: 0; }
.frieze-bot { bottom: 0; transform: scaleY(-1); }

/* ── layout ─────────────────────────────────────────── */
.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 60px 24px 80px;
  overflow: hidden;
}

/* drifting surrealist orb */
.orb {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 42%,
    rgba(122, 26, 26, 0.18) 0%,
    rgba(180, 160, 100, 0.06) 40%,
    transparent 70%);
  filter: blur(60px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes drift {
  0%   { transform: translate(-60px, -40px) scale(1); }
  33%  { transform: translate(40px,  60px) scale(1.08); }
  66%  { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(60px, -30px) scale(1.04); }
}

.scene > * { position: relative; z-index: 2; }

/* vertical rule */
.rule {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--silver), transparent);
  margin-bottom: 28px;
  animation: fadein 2.4s ease forwards;
  opacity: 0;
}

/* name */
.name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--pale);
  text-shadow: 0 0 80px rgba(212, 200, 154, 0.12);
  animation: fadein 2s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
  text-align: center;
}

.name em {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-size: 0.42em;
  letter-spacing: 0.38em;
  color: var(--foil);
  margin-top: 0.35em;
  text-transform: uppercase;
}

/* gothic ornament divider */
.ornament {
  margin: 28px 0 24px;
  animation: fadein 2.4s ease forwards;
  opacity: 0;
  animation-delay: 0.8s;
}

/* coming soon */
.coming {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.52rem, 1.3vw, 0.74rem);
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--silver);
  animation: fadein 2.4s ease forwards;
  opacity: 0;
  animation-delay: 1s;
}

/* painting */
.painting-wrap {
  margin-top: 32px;
  animation: fadein 3s ease forwards;
  opacity: 0;
  animation-delay: 1.3s;
}

.painting-frame {
  border: 1px solid #2a2a28;
  box-shadow:
    0 0 0 6px #0a0a09,
    0 0 0 7px #2a2820,
    0 0 60px rgba(122, 26, 26, 0.25),
    0 0 120px rgba(0, 0, 0, 0.8);
  max-width: min(88vw, 400px);
  position: relative;
}

.painting-frame::before,
.painting-frame::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(100, 90, 60, 0.3);
  pointer-events: none;
  z-index: 1;
}

.painting-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.04) saturate(0.92);
}

/* tagline */
.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--dim);
  margin-top: 28px;
  letter-spacing: 0.06em;
  animation: fadein 3s ease forwards;
  opacity: 0;
  animation-delay: 1.8s;
}

/* contact */
.contact {
  margin-top: 44px;
  animation: fadein 3.2s ease forwards;
  opacity: 0;
  animation-delay: 2.1s;
}

.contact a {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
  transition: color 0.4s, border-color 0.4s;
}

.contact a:hover {
  color: var(--foil);
  border-color: var(--foil);
}

/* bottom crimson rule */
.bottom-rule {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red) 40%, var(--red) 60%, transparent);
  opacity: 0.35;
}

/* corner registration marks */
.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--dim);
  border-style: solid;
  opacity: 0.4;
}
.corner.tl { top: 28px;    left: 28px;  border-width: 1px 0 0 1px; }
.corner.tr { top: 28px;    right: 28px; border-width: 1px 1px 0 0; }
.corner.bl { bottom: 28px; left: 28px;  border-width: 0 0 1px 1px; }
.corner.br { bottom: 28px; right: 28px; border-width: 0 1px 1px 0; }

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

@media (max-width: 480px) {
  .orb { width: 300px; height: 300px; }
  .corner { display: none; }
  .web { width: 200px; height: 200px; }
}
