:root {
  --bg: #031615;
  --bg2: #06201e;
  --ink: #dcefe9;
  --mute: #86aaa2;
  --line: rgba(220, 239, 233, .16);
  --accent: #5fd3b4;
  --glow: rgba(95, 211, 180, .12);
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, sans-serif;
  color-scheme: dark;
}
body[data-biz="solar"] { --accent: #e9bd62; --glow: rgba(233, 189, 98, .14); }
body[data-biz="invenias"] { --accent: #a3c8ea; --glow: rgba(140, 180, 220, .13); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background .6s ease, color .6s ease;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
input, textarea { user-select: text; -webkit-user-select: text; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60vmax 60vmax at 50% 38%, var(--glow), transparent 70%);
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}
::selection { background: var(--accent); color: var(--bg); }

.bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(22px + env(safe-area-inset-top)) calc(clamp(16px, 4vw, 40px) + env(safe-area-inset-right)) 22px calc(clamp(16px, 4vw, 40px) + env(safe-area-inset-left));
}
.mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 400;
}
.ctl { display: flex; gap: 6px; margin-left: auto; }
.ctl-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--mute);
  font: 500 11px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border-radius: 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .3s, border-color .3s;
}
.ctl-btn:hover, .ctl-btn:focus-visible { color: var(--ink); border-color: var(--line); outline: none; }
.ctl-btn svg { width: 16px; height: 16px; }

.gate {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 60px;
  text-align: center;
}
.sigil {
  position: absolute;
  width: min(560px, 92vw);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  translate: -50% -56%;
  color: var(--accent);
  opacity: .35;
  pointer-events: none;
}
.sigil svg { width: 100%; height: 100%; animation: turn 140s linear infinite; }
.sigil .rev { animation: turn 90s linear infinite reverse; transform-origin: 50% 50%; }
@keyframes turn { to { transform: rotate(360deg); } }

.word {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 9vw, 84px);
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  padding-left: .14em;
  animation: rise 1.6s cubic-bezier(.2, .7, .1, 1) both;
}
.whisper {
  position: relative;
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--mute);
  animation: rise 1.6s .25s cubic-bezier(.2, .7, .1, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

#gate {
  position: relative;
  margin-top: 56px;
  width: min(320px, 100%);
  animation: rise 1.6s .5s cubic-bezier(.2, .7, .1, 1) both;
}
.field {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: border-color .4s;
}
.field:focus-within { border-color: var(--accent); }
.field input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--ink);
  font: 400 16px var(--sans);
  letter-spacing: .3em;
  text-align: center;
  padding: 12px 0 12px 34px;
}
.field input::placeholder { color: var(--mute); letter-spacing: .3em; text-transform: uppercase; font-size: 11px; transition: opacity .25s; }
.field input:focus::placeholder { opacity: 0; }
.field button {
  width: 34px;
  height: 34px;
  background: none;
  border: 0;
  color: var(--mute);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color .3s, transform .3s;
}
.field button:hover, .field button:focus-visible { color: var(--accent); transform: translateX(3px); outline: none; }
.field button svg { width: 18px; height: 18px; }
.field.busy button { animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .25; } }
.field.no { animation: shake .45s; border-color: #b0533f; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.pk {
  margin-top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: none;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}
.pk:hover, .pk:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }
.pk svg { width: 22px; height: 22px; }
.pk[hidden] { display: none; }
.ctl-btn[hidden] { display: none; }
.msg {
  min-height: 22px;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
}

.foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom));
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--mute);
}

.realm {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(32px, 8vh, 96px) clamp(16px, 4vw, 40px) 64px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--accent);
  animation: rise 1.4s both;
}
.headline {
  margin-top: 22px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -.01em;
  animation: rise 1.4s .15s both;
}
.headline em { font-style: italic; color: var(--accent); }
.lede {
  margin-top: 26px;
  max-width: 440px;
  color: var(--mute);
  font-size: 16px;
  animation: rise 1.4s .3s both;
}
.trio {
  list-style: none;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  animation: rise 1.4s .45s both;
}
.trio li { padding: 18px 16px 0 0; display: flex; flex-direction: column; gap: 4px; }
.trio .n { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 18px; }
.trio b { font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.trio small { color: var(--mute); font-size: 13px; line-height: 1.5; }

.orb { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; justify-self: center; animation: rise 2s .2s both; }
.sun {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent) 45%, color-mix(in srgb, var(--accent) 40%, var(--bg)) 100%);
  box-shadow: 0 0 120px 20px var(--glow), 0 0 40px var(--glow);
  animation: pulse 9s ease-in-out infinite;
}
.halo { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.halo.h2 { inset: 8%; border-style: dashed; animation: turn 80s linear infinite; }
@keyframes pulse { 50% { transform: scale(1.04); filter: brightness(1.08); } }
.net { position: absolute; inset: 0; color: var(--accent); }
.net svg { width: 100%; height: 100%; overflow: visible; }
.net .spin { animation: turn 120s linear infinite; transform-origin: 50% 50%; }
.net .dot { animation: blink 4s ease-in-out infinite; }
.net .dot:nth-child(2n) { animation-delay: 1.3s; }
.net .dot:nth-child(3n) { animation-delay: 2.6s; }
@keyframes blink { 50% { opacity: .2; } }

.ledger { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 64px; }
.ledger h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 5vw, 52px); }
.stats { display: flex; gap: 32px; flex-wrap: wrap; margin: 18px 0 28px; color: var(--mute); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: 0; color: var(--ink); }
.scroll { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 500; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); padding: 14px 12px 10px 0; white-space: nowrap; }
td { padding: 11px 12px 11px 0; border-top: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
td.ua { white-space: normal; color: var(--mute); max-width: 280px; font-size: 12px; }
td a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.tag { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); border-radius: 10px; }
.tag.denied { color: #c0634e; }
.empty { padding: 28px 0; color: var(--mute); font-family: var(--serif); font-style: italic; font-size: 18px; }

@media (max-width: 760px) {
  .realm { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; }
  .orb { order: -1; max-width: 220px; }
  .trio { grid-template-columns: 1fr; }
  .trio li { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .mark { font-size: 15px; letter-spacing: .24em; }
  .ctl-btn { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.gl #stage { opacity: 1; }
.gl .sigil > *, .gl .orb > * { display: none; }
.gl body::before { opacity: 0; }
.gl body::after { opacity: .045; }
.word, .whisper, .headline, .lede, .eyebrow { text-shadow: 0 1px 24px color-mix(in srgb, var(--bg) 70%, transparent); }
.bar, .gate, .realm, .ledger, .foot { position: relative; z-index: 1; }

.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.eyebrow .guest { color: var(--mute); }
.still { position: relative; z-index: 1; flex: 1; }

.invites { margin: 26px 0 40px; }
.invites h2 { font-weight: 500; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.mint { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 20px; padding-bottom: 18px; }
.mint input, .mint select {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  color: var(--ink);
  font: 400 16px/1.4 var(--sans);
  letter-spacing: .08em;
  padding: 8px 0;
  min-width: 0;
  transition: border-color .4s;
}
.mint input:focus, .mint select:focus { border-color: var(--accent); }
.mint input::placeholder { color: var(--mute); text-transform: uppercase; font-size: 10px; letter-spacing: .22em; }
.mint .m-name { flex: 1 1 180px; }
.mint .m-num { width: 72px; -moz-appearance: textfield; appearance: textfield; }
.mint input::-webkit-outer-spin-button, .mint input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mint select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2386aaa2' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 4px center / 10px 6px;
}
.mint select option { background: var(--bg2); color: var(--ink); }
.mint-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--mute);
  font: 500 11px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  height: 34px;
  padding: 0 16px;
  border-radius: 17px;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}
.mint-btn:hover, .mint-btn:focus-visible { color: var(--ink); border-color: var(--accent); outline: none; }
.mint-btn:disabled { opacity: .5; cursor: default; }
.txt-btn {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0;
  color: var(--mute);
  font: 500 10px/1.4 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}
.txt-btn:hover, .txt-btn:focus-visible { color: var(--ink); border-color: var(--line); outline: none; }
.txt-btn.arm { color: #c0634e; }
.txt-btn:disabled { opacity: .5; cursor: default; }
.minted { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin: 0 0 18px; font-size: 13px; color: var(--mute); }
.minted[hidden] { display: none; }
.minted .phrase { font-size: 15px; letter-spacing: .18em; color: var(--accent); user-select: all; }
.minted.fail .phrase { font-size: 13px; letter-spacing: normal; color: var(--mute); }
.minted.fail .txt-btn { display: none; }
.phrase { letter-spacing: .14em; font-size: 12px; }
td small { color: var(--mute); }
td .note { margin-left: 8px; }
tr.off td { opacity: .75; }
.tag.lure { border-style: dashed; }

@media (max-width: 760px) {
  .mint .m-name { flex-basis: 100%; }
}
