/* Illyricum Studio — premium editorial */

:root {
  --bg: #fcfbfa;
  --bg-soft: #f5f3f1;
  --border: #e8e4df;
  --border-strong: #d9d3cc;
  --ink: #0d0f14;
  --text: #1c1f26;
  --text-muted: #5c6370;
  --text-faint: #949aa6;
  --brand: #c53b32;
  --brand-soft: #faf0ee;
  --accent: var(--brand);
  --radius: 12px;
  --max: 1120px;
  --prose: 34rem;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--brand);
  color: #fff;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 250, 0.8);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(252, 251, 250, 0.92);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo__img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo__wordmark {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a.is-active {
  color: var(--ink);
}

.nav a.is-active::after {
  width: 100%;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--brand);
  transition: width 0.25s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  width: 100%;
}

@media (max-width: 480px) {
  .logo__wordmark {
    display: none;
  }
  .nav {
    gap: 1.1rem;
  }
}

/* hero */

.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(32rem 18rem at 50% 0%, rgba(197, 59, 50, 0.07), transparent 70%);
  pointer-events: none;
}

.hero__container {
  max-width: 40rem;
}

.hero__mark {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.hero__logo {
  width: clamp(88px, 12vw, 112px);
  height: clamp(88px, 12vw, 112px);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(13, 15, 20, 0.04), 0 8px 24px -8px rgba(13, 15, 20, 0.12);
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 16ch;
  margin: 0 auto 1rem;
  background: linear-gradient(180deg, var(--ink) 30%, #3a4254);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 32rem;
  margin-inline: auto;
}

/* about */

.about {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--border);
}

.about__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about__eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.65rem;
}

.about__heading {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.5rem;
  max-width: 18ch;
}

.about__subheading {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.about__copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about__copy p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 32rem;
}

.about__location {
  width: 100%;
}

.about__map-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.about__map-address {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.about__map-visual {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 8.5;
  line-height: 0;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.about__map-visual:hover {
  border-color: var(--border-strong);
  box-shadow: 0 10px 32px -18px rgba(13, 15, 20, 0.2);
}

.about__map-visual iframe {
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: calc(100% + 56px);
  border: 0;
}

.about__map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.15rem;
}

.about__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.about__map-link:hover {
  color: var(--ink);
}

.about__map-link svg {
  width: 12px;
  height: 12px;
  opacity: 0.45;
}

.about__map-attrib {
  font-size: 0.65rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* games */

.games {
  padding: 3rem 0 5rem;
}

.games::before {
  content: "";
  display: block;
  width: min(160px, 30%);
  height: 1px;
  margin: 0 auto 3rem;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.games__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.games__heading {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.games__subheading {
  font-size: 1rem;
  color: var(--text-muted);
}

.games__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* game row — borderless */

.game {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.game:first-child {
  border-top: none;
  padding-top: 0;
}

.game__body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.game--reverse .game__info {
  order: 2;
}

@media (max-width: 860px) {
  .game__body {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .game--reverse .game__info {
    order: 0;
  }
}

.game__info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.game__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.game__logo-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0d12;
  border-radius: 8px;
  overflow: hidden;
}

.game__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.game__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.game__meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.game__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.game__status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
}

.game--soon .game__status::before {
  background: #f59e0b;
}

.game__proof {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.game__stats {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-faint);
}

.game__tagline {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.game--stellaforge .game__tagline {
  color: #2a8fa8;
}

.game--forgekingdom .game__tagline {
  color: #9a7d42;
}

.game__platforms {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.game__description {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: var(--prose);
}

.game__quote {
  margin: 0;
  padding: 0.85rem 0 0.85rem 1rem;
  border-left: 2px solid var(--border-strong);
  max-width: var(--prose);
}

.game__quote p {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.4rem;
}

.game__quote cite {
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
  color: var(--text-faint);
}

.game__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.35rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-primary svg {
  width: 13px;
  height: 13px;
}

/* official store badges */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-badge {
  display: block;
  line-height: 0;
  opacity: 1;
  transition: opacity 0.2s;
}

.store-badge:hover {
  opacity: 0.82;
}

.store-badge img {
  height: 36px;
  width: auto;
}

/* screenshots */

.game__visual {
  position: relative;
}

.game__gallery {
  border-radius: var(--radius);
  overflow: hidden;
  background: #090b10;
  box-shadow: 0 12px 40px -16px rgba(13, 15, 20, 0.28);
}

.game__screenshot {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease);
}

.game:hover .game__screenshot {
  transform: scale(1.015);
}

.game__visual--soon .game__screenshot {
  filter: saturate(0.65) brightness(0.92);
}

.game__soon-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(13, 15, 20, 0.35);
  border-radius: var(--radius);
  pointer-events: none;
}

/* waitlist */

.waitlist {
  max-width: var(--prose);
  padding-top: 0.25rem;
}

.waitlist__note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.waitlist__row {
  display: flex;
  gap: 0.5rem;
}

.waitlist__row input {
  flex: 1;
  min-width: 0;
  padding: 0.48rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s;
}

.waitlist__row input:focus {
  outline: none;
  border-color: var(--border-strong);
}

.waitlist__success {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: #15803d;
}

.waitlist.is-submitted .waitlist__row {
  display: none;
}

@media (max-width: 480px) {
  .waitlist__row {
    flex-direction: column;
  }
}

/* footer */

.footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: #fff;
}

.footer__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.footer__brand-text {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 28rem;
}

.footer__col-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.9rem;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: 0.55rem;
}

.footer__col a,
.footer__col span {
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  text-align: center;
}

.footer__copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
}

/* legal pages */

.header--minimal .header__inner {
  height: 60px;
}

.legal-back {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.legal-back:hover {
  color: var(--ink);
}

.legal {
  padding: 3rem 0 5rem;
}

.legal__container {
  max-width: 40rem;
}

.legal__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.legal__updated {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}

.legal__intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.legal-block {
  margin-bottom: 1.75rem;
}

.legal-block h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.legal-block p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* sub pages (careers, press, contact) */

.page {
  padding: 3rem 0 5rem;
}

.page__container {
  max-width: 36rem;
}

.page__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
}

.page__intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.page__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.page__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  margin-bottom: 0.85rem;
}

.page__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.page__form-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* contact form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-form__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form__label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--border-strong);
}

.contact-form .btn-primary {
  width: fit-content;
  margin-top: 0.25rem;
}

.contact-form__success {
  font-size: 0.85rem;
  color: #15803d;
}

.contact-form.is-submitted .contact-form__note,
.contact-form.is-submitted .contact-form__field,
.contact-form.is-submitted .btn-primary {
  display: none;
}

/* compact footer (sub pages) */

.footer--compact {
  padding: 2rem 0 1.5rem;
  margin-top: 0;
}

.footer-mini {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-mini a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-mini a:hover {
  color: #fff;
}
