@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:ital,wght@0,400;0,600;1,400&family=DM+Mono:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --background: #070707;
  --foreground: #f0ede6;
  --card: #111110;
  --primary: #e8722a;
  --primary-foreground: #070707;
  --secondary: #181816;
  --muted-foreground: #6a6858;
  --accent: #4aa8e0;
  --border: rgba(240, 237, 230, 0.08);
  --font-archivo: 'Archivo', sans-serif;
  --font-archivo-black: 'Archivo Black', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --max-w: 72rem;
  --nav-h: 3.5rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-archivo);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.mono {
  font-family: var(--font-mono);
}

.display {
  font-family: var(--font-archivo-black);
}

.text-muted { color: var(--muted-foreground); }

.text-primary { color: var(--primary); }

.text-accent { color: var(--accent); }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 7, 7, 0.95);
  backdrop-filter: blur(8px);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.nav__title {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav__links a {
  color: var(--muted-foreground);
  transition: color 0.15s;
}

.nav__links a:hover { color: var(--primary); }

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 1.25rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted-foreground);
}

.nav__toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 1rem 1.5rem 1.25rem;
  flex-direction: column;
  gap: 1rem;
}

.nav__mobile.is-open { display: flex; }

.nav__mobile a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.15s;
}

.nav__mobile a:hover { color: var(--primary); }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none !important; }
}

/* Hero */
.hero {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(232, 114, 42, 0.07) 0%, transparent 70%);
}

.hero__bg-text {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-archivo-black);
  font-size: clamp(4rem, 20vw, 12rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(240, 237, 230, 0.018);
  user-select: none;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: auto 1fr;
  }
}

.hero__logo-wrap {
  width: 24rem;
  height: 24rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 80px rgba(232, 114, 42, 0.18)) drop-shadow(0 0 30px rgba(74, 168, 224, 0.12));
}

@media (min-width: 768px) {
  .hero__logo-wrap {
    width: 32rem;
    height: 32rem;
  }
}

.hero__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1.25rem;
}

.hero h1 {
  margin: 0 0 2rem;
  font-family: var(--font-archivo-black);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.hero__lead--tags {
  margin: 0 0 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
}

.btn--primary:hover { background: #d46524; }

.btn--ghost {
  color: var(--muted-foreground);
  border-bottom: 1px solid rgba(106, 104, 88, 0.3);
  padding-bottom: 0.125rem;
  background: none;
}

.btn--ghost:hover { color: var(--foreground); }

.btn--outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  background: transparent;
  font-size: 0.75rem;
}

.btn--outline:hover { background: rgba(232, 114, 42, 0.1); }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(106, 104, 88, 0.4);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 2rem;
  background: rgba(106, 104, 88, 0.2);
}

/* Sections */
.section {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1rem;
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.section h2 {
  margin: 0;
  font-family: var(--font-archivo-black);
  font-size: clamp(2.25rem, 5vw, 3rem);
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  color: var(--primary);
  border: 1px solid rgba(232, 114, 42, 0.4);
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

/* Flagship card */
.card {
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}

.card__grid {
  display: grid;
}

@media (min-width: 768px) {
  .card__grid { grid-template-columns: 1.1fr 1fr; }
}

.card__media {
  position: relative;
  min-height: 20rem;
  background: #1a1008;
  overflow: hidden;
}

.card__media img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  min-height: 20rem;
}

.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(232, 114, 42, 0.25) 0%, rgba(200, 212, 0, 0.1) 50%, transparent 70%);
}

.card__lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__lock img {
  width: 5rem;
  height: 5rem;
  opacity: 0.3;
  object-fit: contain;
}

.card__label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
}

.card__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

@media (min-width: 768px) {
  .card__body { padding: 2.5rem; }
}

.card__body h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-archivo-black);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.card__body p {
  margin: 0 0 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.card__body p:last-of-type { margin-bottom: 0; }

.card__note {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin: 1rem 0 1.5rem !important;
}

.badge--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}

/* Concepts */
.section__intro {
  margin: 0 0 3rem;
  max-width: 32rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.section__intro--wide { max-width: 42rem; }

.section__footnote {
  margin: 2rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
}

.concepts {
  display: grid;
  gap: 1px;
  background: var(--border);
}

@media (min-width: 768px) {
  .concepts { grid-template-columns: repeat(3, 1fr); }
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .principles--games { grid-template-columns: 1fr 1fr; }
}

.principles li {
  background: var(--card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.principles-block {
  margin-bottom: 2.5rem;
}

.principles-block:last-of-type {
  margin-bottom: 2rem;
}

.principles-block__title {
  margin: 0 0 1rem;
  font-family: var(--font-archivo-black);
  font-size: 1.25rem;
}

.principles-block .principles {
  margin-bottom: 0;
}

.concept--nest::before {
  background: radial-gradient(circle at 30% 30%, rgba(232, 114, 42, 0.07) 0%, transparent 70%);
}

.concept--park::before {
  background: radial-gradient(circle at 30% 30%, rgba(74, 168, 224, 0.07) 0%, transparent 70%);
}

.concept--wars::before {
  background: radial-gradient(circle at 30% 30%, rgba(200, 212, 0, 0.07) 0%, transparent 70%);
}

.principles strong {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--foreground);
}

.principles span {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.credentials {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--foreground);
}

.credentials-note {
  margin: 0;
  font-size: 0.9375rem;
  max-width: 36rem;
  line-height: 1.6;
}

/* About */
.section--about { padding-top: 4rem; }

.about {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about { grid-template-columns: auto 1fr; gap: 3rem; }
}

.about__photo {
  position: relative;
  width: 12rem;
  height: 12rem;
  flex-shrink: 0;
}

.about__headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--secondary);
}

.about__photo:empty,
.about__headshot[src=""],
.about__headshot:not([src]) {
  background: var(--secondary);
  border: 1px solid var(--border);
  min-height: 12rem;
}

.about__copy h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-archivo-black);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.about__copy p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Contact */
.contact-google {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-google__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.contact-google__email {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--primary);
  word-break: break-all;
}

.contact-google__email:hover { text-decoration: underline; }

.concept {
  position: relative;
  background: var(--background);
  padding: 1.75rem;
  overflow: hidden;
}

.concept::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.concept:hover::before { opacity: 1; }

.concept__inner { position: relative; z-index: 1; }

.concept__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.concept__icon { font-size: 1.875rem; line-height: 1; }

.concept__lock {
  width: 1rem;
  height: 1rem;
  color: rgba(106, 104, 88, 0.3);
}

.concept:hover .concept__lock { color: rgba(106, 104, 88, 0.5); }

.concept__codename {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.concept__genre {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.concept h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-archivo-black);
  font-size: 1.25rem;
  line-height: 1.3;
}

.concept p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Newsletter */
.newsletter {
  margin-top: 1px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 0;
  padding: 2rem;
}

@media (min-width: 768px) {
  .newsletter {
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
  }
}

.newsletter__action {
  flex-shrink: 0;
}

.newsletter__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.newsletter__title {
  margin: 0;
  font-weight: 600;
}

.newsletter__form {
  display: flex;
  flex-shrink: 0;
}

.newsletter__form input {
  width: 15rem;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-right: 0;
  background: var(--secondary);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  outline: none;
}

.newsletter__form input:focus { border-color: rgba(232, 114, 42, 0.5); }

.newsletter__form input::placeholder { color: var(--muted-foreground); }

.newsletter__form button {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
}

.newsletter__success {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.newsletter__success[hidden] { display: none; }

/* Studio */
.studio__grid {
  display: grid;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 768px) {
  .studio__grid { grid-template-columns: 1fr 2fr; }
}

.studio__copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.studio__copy p { margin: 0; }

.studio__stats {
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .studio__stats { grid-template-columns: repeat(4, 1fr); }
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}

.footer__grid {
  display: block;
}

.footer h2 {
  margin: 0 0 1rem;
  font-family: var(--font-archivo-black);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.footer__lead {
  margin: 0;
  max-width: 32rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.icon--sm { width: 0.75rem; height: 0.75rem; }

.footer__bar {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .footer__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__bar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__bar-brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  opacity: 0.5;
}

.footer__bar-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  letter-spacing: 0.1em;
}

.footer__domain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(106, 104, 88, 0.3);
  letter-spacing: 0.15em;
}
