:root {
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'Inter', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; background: #fff; }
body {
  font-family: var(--mono);
  background: #fff; color: #000;
  line-height: 1.45; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #000; color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* NOTE: animations intentionally ignore the OS "reduce motion" setting
   (the site owner asked for them to always run). */

@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }
@keyframes dropin { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes rise   { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop    { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes logoin { from { opacity: 0; transform: scale(.7) rotate(-6deg); } to { opacity: 1; transform: none; } }

/* page fade (header stays put so its blend effect is never interrupted) */
main, .site-footer { animation: pagein .7s ease both; }
body.leaving main, body.leaving .site-footer { opacity: 0; transition: opacity .25s ease; animation: none; }

/* ---------- header: transparent, inverts against whatever is under it ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--head-h);
  padding: 0 .6rem 0 .4rem;
  background: transparent;
  color: #fff;
  mix-blend-mode: difference;
  animation: dropin .8s var(--ease) both;
}
.header-left { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.site-header nav { display: flex; gap: clamp(.9rem, 2.2vw, 2rem); flex-wrap: wrap; }
.site-header nav a {
  position: relative; text-decoration: none;
  font-size: clamp(1rem, 2.1vw, 1.45rem); padding: .15rem 0;
}
.site-header nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.site-header nav a:hover::after, .site-header nav a.active::after { transform: scaleX(1); transform-origin: left; }

.drag-logo {
  position: relative; display: block; flex: none;
  width: 76px; cursor: grab; touch-action: none; user-select: none;
  -webkit-user-select: none; z-index: 60;
}
.drag-logo.grabbing { cursor: grabbing; z-index: 200; }
.drag-logo img { display: block; width: 100%; height: auto; pointer-events: none; animation: logoin .9s var(--ease) .25s both; }

.login { text-decoration: none; color: rgba(255,255,255,.55); transition: color .25s, transform .35s var(--ease); flex: none; }
.login:hover { color: #fff; transform: translateY(-2px); }
.login pre { font-family: var(--mono); font-size: 9px; line-height: 1; letter-spacing: 0; }

/* ---------- hero ---------- */
.hero {
  --fs: clamp(2.6rem, 12vw, 9rem);
  position: relative; overflow: hidden;
  margin-top: calc(var(--head-h) * -1);
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--fs) * 1.05 + var(--head-h)) 1rem calc(var(--fs) * 1.05);
}
/* "MARA" + dot + cycling word is ONE line of text, all on the same baseline */
.hero-line {
  display: block; text-align: center; white-space: nowrap;
  font-family: var(--sans); font-size: var(--fs); font-weight: 400;
  line-height: 1; letter-spacing: -.02em;
}
.mara i { font-style: normal; display: inline-block; animation: rise .9s var(--ease) both; animation-delay: calc(.25s + var(--i) * .07s); }
.dot {
  display: inline-block; vertical-align: baseline;
  width: .135em; height: .135em; border-radius: 50%; background: #000;
  margin: 0 .035em 0 .02em;
  animation: pop .5s var(--ease) .75s both;
}
.slot { position: relative; display: inline-block; vertical-align: baseline; text-align: left; animation: pagein .8s ease .85s both; }
.slot .sizer { display: inline-block; visibility: hidden; width: var(--w, 3.9em); }
.slot span.word {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  text-transform: uppercase;
  transform: translateY(calc(var(--o, 3) * 1.1em));
  opacity: var(--op, 0);
  filter: blur(var(--bl, 0px));
  background: linear-gradient(180deg, var(--c1), var(--c2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.slot.ready span.word {
  transition: transform .8s cubic-bezier(.7, 0, .2, 1), opacity .6s ease, filter .8s ease;
}
.tagline {
  position: relative; z-index: 3; text-align: center;
  margin-top: 1.2rem; font-size: clamp(.95rem, 1.95vw, 1.35rem);
  animation: fadeup .9s var(--ease) 1.15s both;
}

/* ---------- scroll reveals ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s ease, transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* headings: each word slides up out of a mask */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .2em; margin-bottom: -.2em; }
.split .w > span {
  display: inline-block; transform: translateY(120%);
  transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 90ms + var(--d, 0ms));
}
.split.in .w > span { transform: none; }


/* ---------- plans ---------- */
.plans { background: #000; color: #fff; padding: 1.1rem 1.2rem 1.6rem; }
.plans h2 { font-weight: 400; font-size: clamp(1.4rem, 2.8vw, 2rem); }
.plans-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  text-align: center; margin-top: 3rem; font-size: clamp(.95rem, 2.1vw, 1.4rem);
}
.plan { transition: opacity .5s ease; }
.plans-grid:hover .plan:not(:hover) { opacity: .4; }
.plan p { margin-bottom: 1.5rem; }
.plan .name { margin-bottom: 0; }
.plan .sep { margin-bottom: 0; line-height: .8; }
.plan .price { margin-top: 2.4rem; }
.plans-notes {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.6rem; font-size: clamp(.85rem, 1.9vw, 1.3rem);
}
.plans-notes a { text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-thickness .2s; }
.plans-notes a:hover { text-decoration-thickness: 3px; }

/* ---------- sections ---------- */
.section-title {
  text-align: center; font-weight: 400;
  font-size: clamp(1.1rem, 2.9vw, 2rem);
  padding: 1.6rem 1rem 2.2rem;
}
.section-title.caps { letter-spacing: .08em; text-transform: uppercase; }


.projects { text-align: center; padding: 0 1rem 7rem; font-size: clamp(1rem, 2.8vw, 2rem); }
.projects .proj-name { margin-top: 5rem; margin-bottom: 2.2rem; }
.projects p { margin-bottom: 2.2rem; }

/* ---------- inner pages ---------- */
.page { min-height: 60vh; padding: 4rem 1.2rem 6rem; max-width: 760px; margin: 0 auto; font-size: clamp(1rem, 1.8vw, 1.25rem); }
.page h1 { font-weight: 400; font-size: clamp(2rem, 6vw, 4rem); margin-bottom: 2rem; }
.page p { margin-bottom: 1.4rem; }
.page ul { margin: 0 0 1.4rem 1.4rem; }

/* ---------- artists ---------- */
[hidden] { display: none !important; }
.artist-grid {
  --card-min: 190px;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr));
  max-width: 1240px; margin: 0 auto; padding: 0 1rem 3rem;
}
.artist-grid:not(.in) .artist-card { opacity: 0; }
.artist-grid.in .artist-card { animation: fadeup .9s var(--ease) backwards; animation-delay: calc(var(--ci, 0) * 70ms); }
.artist-card {
  display: flex; flex-direction: column;
  border: 2px solid #000; background: #fff; color: #000; text-decoration: none;
  transition: background .25s, color .25s, transform .4s var(--ease);
}
.artist-card:hover { background: #000; color: #fff; transform: translateY(-5px); }
.artist-card .pic {
  position: relative; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center;
  border-bottom: 2px solid currentColor;
  background: repeating-linear-gradient(135deg, #e4e4e4 0 1px, #fff 1px 9px);
  transition: background .25s;
}
.artist-card:hover .pic { background: repeating-linear-gradient(135deg, #3a3a3a 0 1px, #000 1px 9px); }
.artist-card .pic img, .profile-pic img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.avatar { font: 11px/1.05 var(--mono); color: currentColor; opacity: .38; transition: opacity .25s; }
.artist-card:hover .avatar { opacity: .9; }
.artist-card .meta { display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; align-items: baseline; padding: .75rem .85rem .85rem; }
.artist-card .meta b { font-weight: 500; font-size: 1.05rem; overflow-wrap: anywhere; }
.artist-card .meta span { font-size: .85rem; opacity: .6; }
.artist-card i { font-style: normal; transition: transform .35s var(--ease); }
.artist-card:hover i { transform: translateX(5px); }
.artist-card.more { align-items: center; justify-content: center; flex-direction: row; gap: .6rem; border-style: dashed; font-size: 1.35rem; min-height: 8rem; }
.more-label { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.artists-page { padding-top: 2.5rem; min-height: 70vh; }
.artists-page .section-title { padding-top: 1rem; }

/* ---------- single profile ---------- */
.profile-page { min-height: 70vh; padding: 2.5rem 1.2rem 6rem; max-width: 1100px; margin: 0 auto; }
.rise-in { animation: fadeup .9s var(--ease) both; animation-delay: calc(.15s + var(--k, 0) * 90ms); }
.back { display: inline-block; margin-bottom: 2rem; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.back:hover { text-decoration-thickness: 3px; }
.profile { display: grid; grid-template-columns: minmax(220px, 420px) 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.profile-pic {
  aspect-ratio: 1; border: 2px solid #000; display: grid; place-items: center; overflow: hidden;
  background: repeating-linear-gradient(135deg, #e4e4e4 0 1px, #fff 1px 9px);
}
.profile-pic .avatar { font-size: clamp(14px, 2.6vw, 28px); }
.profile h1 { font-family: var(--sans); font-weight: 400; letter-spacing: -.02em; line-height: 1; font-size: clamp(2.2rem, 7vw, 5rem); overflow-wrap: anywhere; }
.profile .tag { margin-top: .8rem; opacity: .6; }
.profile .bio { margin: 1.8rem 0 2rem; max-width: 52ch; font-size: clamp(1rem, 1.8vw, 1.25rem); }
.profile h3 { font-weight: 400; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .5; margin: 1.6rem 0 .5rem; }
.profile .links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.profile .links a { text-underline-offset: 5px; text-decoration-thickness: 1px; }
.profile .links a:hover { text-decoration-thickness: 3px; }
.profile .muted { opacity: .5; }
.profile .note { margin-top: 3rem; font-size: .8rem; opacity: .45; }
.profile-missing { padding: 4rem 0; }
.profile-missing h1 { font-weight: 400; font-size: clamp(2rem, 6vw, 4rem); margin-bottom: 1.5rem; }

/* ---------- ascii art on inner pages ---------- */
.page.two-col {
  max-width: 1180px; display: grid; align-items: start;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.page.two-col.art-left  { grid-template-columns: auto minmax(0, 560px); justify-content: start; }
.page.two-col.art-right { grid-template-columns: minmax(0, 560px) auto; justify-content: space-between; }
.ascii { font: clamp(7px, 1.4vw, 15px)/1.2 var(--mono); white-space: pre; color: #000; user-select: none; -webkit-user-select: none; }
.ascii .ln { display: block; animation: asciiin .55s ease both; animation-delay: calc(.35s + var(--li, 0) * 28ms); }
@keyframes asciiin { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* ---------- login / register ---------- */
.auth { width: 100%; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid #000; margin-bottom: 1.4rem; }
.auth-tabs button {
  font: inherit; font-size: 1rem; padding: .7rem 1rem; background: #fff; color: #000; border: 0; cursor: pointer;
  transition: background .25s, color .25s;
}
.auth-tabs button + button { border-left: 2px solid #000; }
.auth-tabs button[aria-selected="true"] { background: #000; color: #fff; }
.auth-tabs button:not([aria-selected="true"]):hover { background: #eee; }
.oauth { display: grid; gap: .7rem; }
.oauth-btn {
  width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: .75rem;
  font: inherit; font-size: 1rem; cursor: pointer; border: 2px solid #000; border-radius: 0;
  transition: background .25s, color .25s, transform .35s var(--ease);
}
.oauth-btn:hover { transform: translateY(-2px); }
.oauth-btn:disabled { opacity: .5; cursor: default; transform: none; }
.oauth-btn.google { background: #fff; color: #000; }
.oauth-btn.google:hover { background: #f1f1f1; }
.oauth-btn.discord { background: #000; color: #fff; }
.oauth-btn.discord:hover { background: #222; }
#google-slot { display: flex; justify-content: center; }
#google-slot .oauth-btn { flex: 1; }
.or { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; font-size: .85rem; opacity: .6; letter-spacing: .06em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: #000; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .35rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.field input {
  width: 100%; font: inherit; font-size: 1rem; color: #000; background: #fff;
  border: 2px solid #000; border-radius: 0; padding: .75rem .9rem; outline: none;
  transition: box-shadow .2s, background .2s;
}
.field input:focus { box-shadow: 4px 4px 0 #000; }
.field input[aria-invalid="true"] { border-style: dashed; }
.pw { position: relative; }
.pw input { padding-right: 4.6rem; }
.pw-toggle {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  font: inherit; font-size: .85rem; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
}
.field .err { display: block; min-height: 0; margin-top: .3rem; font-size: .8rem; }
.field .err:not(:empty)::before { content: '! '; font-weight: 500; }
.status { min-height: 1.5em; margin: 0 0 .9rem; font-size: .9rem; }
.status.err { font-weight: 500; }
.status.err::before { content: '! '; }
.status.ok::before { content: '+ '; }
.status.info { opacity: .7; }
.submit {
  width: 100%; min-height: 50px; font: inherit; font-size: 1.05rem; cursor: pointer;
  background: #000; color: #fff; border: 2px solid #000; border-radius: 0;
  transition: background .25s, color .25s, transform .35s var(--ease);
}
.submit:hover { background: #fff; color: #000; }
.submit:disabled { opacity: .55; cursor: default; }
.aux { margin: 1rem 0 0; font-size: .9rem; display: flex; justify-content: space-between; }
.aux a { text-underline-offset: 5px; text-decoration-thickness: 1px; }
.aux a:hover { text-decoration-thickness: 3px; }

/* ---------- footer ---------- */
.site-footer {
  --wordmark-font: 'Marlett', var(--sans);
  position: relative; background: #000; color: #fff;
  display: flex; flex-direction: column; gap: 2.2rem;
  padding: 1.2rem .9rem .5rem;
  font-size: clamp(.85rem, 2.1vw, 1.45rem);
}
.footer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.site-footer .drag-logo.wordmark {
  width: auto; max-width: 100%;
  font-family: var(--wordmark-font); font-size: clamp(2.4rem, 9vw, 7rem);
  line-height: 1; letter-spacing: .01em;
}
.footer-top { text-align: right; margin-left: auto; }
.ticker { overflow: hidden; white-space: nowrap; border-top: 1px solid #fff; border-bottom: 1px solid #fff; padding: .6rem 0; }
.ticker-track { display: inline-flex; animation: tick 34s linear infinite; will-change: transform; }
.ticker-track span { padding-right: 2.2rem; opacity: .85; }
.ticker-track span:nth-child(even)::after { content: '/'; padding-left: 2.2rem; opacity: .5; }
@keyframes tick { to { transform: translateX(-50%); } }
.footer-cols { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: .35rem 2.5rem; }
.footer-nav h4 { grid-column: 1 / -1; font-weight: 400; font-size: .8em; letter-spacing: .08em; text-transform: uppercase; opacity: .5; margin-bottom: .3rem; }
.footer-nav a, .footer-bottom a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); width: fit-content; }
.footer-nav a:hover, .footer-bottom a:hover { background-size: 100% 1px; }
.footer-mid { text-align: right; margin-left: auto; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  .plans-grid { grid-template-columns: 1fr; gap: 3rem; }
  .site-header { flex-wrap: wrap; padding-bottom: .4rem; }
  .login { position: absolute; right: .5rem; top: .4rem; }
  .site-header nav { max-width: calc(100vw - 76px - 90px); gap: .35rem 1rem; }
  .site-header nav a { font-size: .95rem; }
  .artist-grid { --card-min: 150px; gap: .75rem; }
  .profile { grid-template-columns: 1fr; }
  .page.two-col.art-left, .page.two-col.art-right { grid-template-columns: minmax(0, 1fr); }
  .ascii { font-size: 7px; }
  .footer-cols { align-items: flex-start; }
}
