:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --ink: #d8d3c7;
  --ink-dim: #6b6358;
  --ink-faint: #2a2620;
  --accent: #b08a4a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  overflow: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.stage {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, #121110 0%, #090807 40%, #040404 75%, #020202 100%),
    linear-gradient(180deg, #050505 0%, #020202 100%);
}

.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.6  0 0 0 0 0.6  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

@keyframes breath {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 1; }
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.root {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  z-index: 2;
  animation: fadein 1.6s ease-out both;
}

.crown {
  position: absolute;
  inset: 28px 32px auto 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 5;
}
.footer {
  position: absolute;
  inset: auto 32px 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 5;
  color: var(--ink-dim);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.meta {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 400;
}
.meta .sep { display: inline-block; margin: 0 8px; color: var(--ink-faint); }
.meta .lbl { color: #4a443c; }
.meta .val { color: var(--ink-dim); }

.enter {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
  transition: color .6s ease;
}
.enter::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink-faint);
  transition: background .6s ease;
}
.enter:hover { color: var(--ink); }
.enter:hover::after { background: var(--accent); }

.center {
  grid-row: 2;
  display: grid;
  place-items: center;
  position: relative;
}

.mark-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  animation: breath 8s ease-in-out infinite;
}

.etched {
  background: linear-gradient(180deg, #2a2620 0%, #5a4f3e 35%, #b08a4a 50%, #5a4f3e 65%, #2a2620 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.04));
}

.logo-fullname {
  font-family: 'Italiana', 'Bodoni Moda', serif;
  font-weight: 400;
  font-size: clamp(28px, 5.4vw, 76px);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  line-height: 1;
}
.logo-fullname .mid {
  color: var(--accent);
  margin: 0 0.4em;
  -webkit-text-fill-color: var(--accent);
}

.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.lockup .estd {
  display: flex; align-items: center; gap: 14px;
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.lockup .estd .bar {
  width: 36px; height: 1px;
  background: #1a1814;
}
.lockup .estd .dim { color: var(--ink-dim); }

/* Modal */
.scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  display: grid;
  place-items: center;
  animation: fadein .5s ease both;
}
.scrim[hidden] { display: none; }
.gate {
  width: min(440px, 90vw);
  background: #0a0907;
  border: 1px solid #1a1814;
  padding: 44px 40px 36px;
  position: relative;
  box-shadow: 0 60px 120px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.03);
}
.gate::before {
  content: '';
  position: absolute; inset: 6px;
  border: 1px solid #1a1814;
  pointer-events: none;
}
.gate h2 {
  font-family: 'Italiana', serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-align: center;
  color: var(--ink);
  margin-bottom: 4px;
}
.gate .sub {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.gate label {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 10px;
}
.gate input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #2a2620;
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.4em;
  padding: 8px 0 10px;
  outline: none;
  transition: border-color .4s ease;
  text-align: center;
}
.gate input:focus { border-color: var(--accent); }
.gate .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}
.gate .ghost, .gate .submit {
  background: none;
  border: 1px solid #1a1814;
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 11px 18px;
  cursor: pointer;
  transition: all .4s ease;
}
.gate .submit { color: var(--ink); border-color: var(--ink-dim); }
.gate .submit:hover { color: #000; background: var(--accent); border-color: var(--accent); }
.gate .ghost:hover { color: var(--ink); }
.gate .err {
  margin-top: 18px;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  color: #8b3a2a;
  min-height: 12px;
}

.cursor-light {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,138,74,0.06) 0%, rgba(176,138,74,0) 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity .8s ease;
}

@media (max-width: 640px) {
  .crown { inset: 18px 18px auto 18px; }
  .footer { inset: auto 18px 16px 18px; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .footer .meta { font-size: 9px; letter-spacing: 0.16em; }
  .meta { font-size: 9px; letter-spacing: 0.18em; }
  .meta .sep { margin: 0 6px; }
  .enter { font-size: 9px; letter-spacing: 0.28em; }
  .logo-fullname { font-size: clamp(20px, 7.6vw, 40px); letter-spacing: 0.34em; text-indent: 0.34em; }
  .lockup .estd { font-size: 8.5px; letter-spacing: 0.32em; }
  .lockup .estd .bar { width: 24px; }
  .mark-wrap { gap: 28px; padding: 0 16px; }
  .gate { padding: 36px 24px 28px; }
  .gate input { font-size: 13px; letter-spacing: 0.3em; }
  .cursor-light { display: none; }
}
@media (max-width: 380px) {
  .footer .meta:nth-child(2) { display: none; }
}
@media (hover: none) and (pointer: coarse) {
  .cursor-light { display: none; }
}
