:root {
  --night: #142038;
  --night-deep: #0d1526;
  --slate: #383e4c;
  --snow: #eef3fc;
  --mist: #a9b6cc;
  --aurora: #7cff5e;
  --aurora-dim: #2fb85a;
  --mrk-red: #ff6b6b;
  --mrk-violet: #b98cff;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background: radial-gradient(ellipse at top, #1c2c4c 0%, var(--night) 45%, var(--night-deep) 100%) fixed;
  color: var(--snow);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Aurora: two blurred layers of green and violet bands drifting behind the page. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20% -10% 30% -10%;
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.45;
}
body::before {
  background:
    radial-gradient(ellipse 18% 55% at 25% 30%, var(--aurora) 0%, transparent 70%),
    radial-gradient(ellipse 14% 45% at 55% 20%, var(--aurora-dim) 0%, transparent 70%),
    radial-gradient(ellipse 16% 50% at 80% 35%, var(--aurora) 0%, transparent 70%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(ellipse 20% 50% at 15% 45%, #7048b8 0%, transparent 70%),
    radial-gradient(ellipse 18% 55% at 45% 40%, #5a3a9a 0%, transparent 70%),
    radial-gradient(ellipse 20% 50% at 90% 30%, #7048b8 0%, transparent 70%);
  opacity: 0.55;
  animation: aurora-drift 24s ease-in-out infinite alternate-reverse;
}
@keyframes aurora-drift {
  0%   { transform: translateX(-4%) skewX(-8deg) scaleY(1); }
  50%  { transform: translateX(3%) skewX(6deg) scaleY(1.08); }
  100% { transform: translateX(-2%) skewX(-4deg) scaleY(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

h1, h2, h3, nav, .button {
  font-family: "Silkscreen", monospace;
  font-weight: 400;
  letter-spacing: 0.06em;
}

a { color: var(--aurora); }
a:hover { color: var(--snow); }
img.pixelated { image-rendering: pixelated; }

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}
nav .brand { display: flex; align-items: center; gap: 10px; color: var(--snow); text-decoration: none; }
nav .brand img { width: 36px; height: 36px; }
nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
nav ul a { color: var(--mist); text-decoration: none; }
nav ul a:hover { color: var(--aurora); }

main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 0 24px 48px; }

.hero { text-align: center; padding: 40px 0 24px; }
.hero img { width: min(320px, 70vw); height: auto; }
.hero p { color: var(--mist); max-width: 560px; margin: 16px auto 0; }

section { margin-top: 48px; }
section h2 { color: var(--aurora); font-size: 1.4rem; border-bottom: 2px solid var(--slate); padding-bottom: 6px; }

.card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  background: rgba(56, 62, 76, 0.55);
  border: 2px solid var(--slate);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
a.card:hover { border-color: var(--aurora-dim); transform: translateY(-2px); color: inherit; }
.card img { width: 100%; height: auto; display: block; }
.card h3 { margin: 0 0 4px; font-size: 1.6rem; }
.card .tag { color: var(--mist); margin: 0 0 12px; }

.button {
  display: inline-block;
  background: var(--aurora-dim);
  color: var(--night-deep);
  padding: 10px 18px;
  text-decoration: none;
  border: 2px solid var(--aurora);
  box-shadow: 4px 4px 0 var(--night-deep);
}
.button:hover { background: var(--aurora); color: var(--night-deep); }

footer {
  text-align: center;
  color: var(--mist);
  font-size: 0.85rem;
  padding: 24px;
  border-top: 2px solid var(--slate);
}

/* MRK1 page */
.mrk1 h1 { color: var(--mrk-red); font-size: 2.4rem; margin: 0; }
.mrk1 h1 .one { color: var(--mrk-violet); }
.mrk1 .tag { color: var(--mist); margin-top: 4px; }
.mrk1 section h2 { color: var(--mrk-red); }
.mrk1 .button { background: var(--mrk-red); border-color: #ffb0b0; }
.mrk1 .button:hover { background: #ff8f8f; }
.mrk1 .key-art { width: 100%; height: auto; border: 2px solid var(--slate); margin-top: 16px; }
.mrk1 ul.features { padding-left: 20px; }
.mrk1 ul.features li { margin-bottom: 8px; }

@media (max-width: 640px) {
  nav { padding: 12px 16px; }
  nav .brand span { display: none; }
  main { padding: 0 16px 40px; }
  .card { grid-template-columns: 1fr; }
}

footer .social { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin: 0 0 12px; font-family: "Silkscreen", monospace; }
footer .social a { color: var(--snow); text-decoration: none; }
footer .social a:hover { color: var(--aurora); }
.mrk1 footer .social a:hover { color: var(--mrk-red); }
footer .social a { display: inline-flex; padding: 4px; }
footer .social svg { width: 28px; height: 28px; fill: currentColor; shape-rendering: crispEdges; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.shots img { width: 100%; height: auto; display: block; border: 2px solid var(--slate); }
.shots a:hover img { border-color: var(--mrk-red); }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }
.shots .wide { grid-column: 1 / -1; }
.mrk1 .cta { margin-top: 24px; }
.hero p.mantra { font-family: "Silkscreen", monospace; color: var(--aurora); font-size: 1.3rem; letter-spacing: 0.06em; margin-top: 20px; }
.hero p.mantra + p { margin-top: 6px; }
.pillars { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillars li { background: rgba(56, 62, 76, 0.55); border: 2px solid var(--slate); padding: 16px; }
.pillars h3 { margin: 0 0 6px; color: var(--aurora); }
.pillars p { margin: 0; color: var(--mist); }
.founder { display: flex; gap: 24px; align-items: center; background: rgba(56, 62, 76, 0.55); border: 2px solid var(--slate); padding: 20px; }
.founder .portrait { width: 160px; height: 160px; flex: none; border: 2px solid var(--slate); }
.founder h3 { margin: 0; font-size: 1.4rem; }
.founder .role { margin: 0 0 8px; color: var(--aurora); font-family: "Silkscreen", monospace; }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } .founder { flex-direction: column; text-align: center; } }
.founder .ring { position: relative; flex: none; width: 176px; height: 176px; border-radius: 50%; padding: 6px; background: conic-gradient(var(--aurora), #7048b8, var(--aurora-dim), #b98cff, var(--aurora)); box-shadow: 0 0 24px rgba(124, 255, 94, 0.35), 0 0 48px rgba(112, 72, 184, 0.3); animation: ring-spin 12s linear infinite; }
.founder .ring .portrait { width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--night-deep); display: block; object-fit: cover; animation: ring-spin 12s linear infinite reverse; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .founder .ring, .founder .ring .portrait { animation: none; } }
.studio { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.studio .mantra { font-family: "Silkscreen", monospace; color: var(--aurora); font-size: 1.8rem; line-height: 1.25; letter-spacing: 0.06em; margin: 0 0 8px; text-shadow: 0 0 18px rgba(124, 255, 94, 0.35); }
.studio .where { color: var(--mist); margin: 0 0 16px; }
.studio .pillars { grid-template-columns: 1fr; margin: 0; }
@media (max-width: 640px) { .studio { grid-template-columns: 1fr; } }
main.pad-top { padding-top: 24px; }
.team .founder { justify-content: center; padding: 32px; }
.team .founder .ring { width: 220px; height: 220px; }
