/* ==================================================================
   Worldloom Studios
   Dark theme, warm gold, a woven grid. No frameworks and no CDN fonts —
   everything is drawn with plain CSS to keep the page light.
   ================================================================== */

:root {
  --bg:        #08080b;
  --bg-soft:   #0c0c11;
  --ink:       #f6f4f0;
  --muted:     rgba(246, 244, 240, .60);
  --faint:     rgba(246, 244, 240, .38);
  --line:      rgba(246, 244, 240, .10);
  --line-soft: rgba(246, 244, 240, .06);

  --gold:      #e7c271;
  --gold-deep: #c79b45;
  --violet:    #7a6bff;

  --radius:    22px;
  --radius-sm: 14px;
  --shell:     1180px;

  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont,
          "SF Pro Display", "Inter", system-ui, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .68, .32, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.028em; line-height: 1.08; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
ol, ul, dl, dd { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

/* display:flex on a block overrides the hidden attribute — give it teeth back */
[hidden] { display: none !important; }

::selection { background: rgba(231, 194, 113, .28); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}

.topbar.is-stuck {
  background: rgba(8, 8, 11, .72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }

.brand__mark { width: 30px; height: 30px; flex: none; }
.mark-frame  { fill: none; stroke: rgba(231, 194, 113, .30); stroke-width: 1; }
.mark-thread { stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; fill: none; }
.brand:hover .mark-frame { stroke: rgba(231, 194, 113, .6); }
.mark-frame { transition: stroke .35s var(--ease); }

.brand__text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}

.topbar__nav { display: flex; gap: 30px; }

.topbar__nav a {
  position: relative;
  font-size: 14.5px;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease);
}
.topbar__nav a:hover { color: var(--ink); }
.topbar__nav a:hover::after { transform: scaleX(1); }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  --btn-pad: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--btn-pad);
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              background .28s var(--ease), border-color .28s var(--ease), color .28s var(--ease);
}

.btn--sm { --btn-pad: 9px 18px; font-size: 13.5px; }
.btn--lg { --btn-pad: 17px 34px; font-size: 16px; }

.btn--gold {
  color: #17130a;
  background: linear-gradient(160deg, #f4d999 0%, var(--gold) 42%, var(--gold-deep) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 10px 30px -12px rgba(231, 194, 113, .55);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 18px 40px -14px rgba(231, 194, 113, .75);
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(246, 244, 240, .02);
}
.btn--ghost:hover { border-color: rgba(246, 244, 240, .28); background: rgba(246, 244, 240, .05); }

.btn__arrow { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ------------------------------------------------------------------ */
/* Shared blocks                                                        */
/* ------------------------------------------------------------------ */

.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section { padding: clamp(84px, 12vw, 150px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-soft) 22%, var(--bg-soft) 78%, transparent); }

.section__head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__title { font-size: clamp(30px, 4.2vw, 48px); margin-top: 18px; }
.section__lead { margin-top: 22px; color: var(--muted); font-size: 17px; max-width: 620px; }

.grad {
  background: linear-gradient(100deg, #fff0cf 0%, var(--gold) 45%, #b9884f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: min(86svh, 760px);
  display: flex;
  align-items: center;
  padding: 130px 0 70px;
  overflow: hidden;
  isolation: isolate;
}

/* woven grid — two repeating gradients, nearly free for the GPU */
.hero__weave {
  position: absolute;
  inset: -10% -10% 0;
  z-index: -3;
  background-image:
    repeating-linear-gradient(90deg, rgba(246, 244, 240, .05) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg,  rgba(246, 244, 240, .032) 0 1px, transparent 1px 52px);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 34%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 34%, #000 0%, transparent 72%);
}

.hero__glow {
  position: absolute;
  inset: -30% -20% auto;
  height: 130%;
  z-index: -4;
  background:
    radial-gradient(52% 42% at 22% 28%, rgba(122, 107, 255, .20) 0%, transparent 62%),
    radial-gradient(46% 40% at 78% 22%, rgba(231, 194, 113, .17) 0%, transparent 60%),
    radial-gradient(60% 50% at 50% 88%, rgba(231, 194, 113, .07) 0%, transparent 70%);
  animation: drift 26s var(--ease) infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to   { transform: translate3d(3%, -3%, 0) scale(1.08); }
}

.hero__inner { position: relative; }

.hero__title {
  margin-top: 22px;
  font-size: clamp(46px, 9vw, 104px);
  letter-spacing: -.042em;
  line-height: .98;
}

.hero__lead {
  margin-top: 26px;
  max-width: 560px;
  font-size: clamp(16.5px, 1.55vw, 19px);
  color: var(--muted);
}

.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  max-width: 720px;
}
.hero__stats div { min-width: 96px; }
.hero__stats dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.hero__stats dd { margin-top: 8px; font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.03em; }

/* ------------------------------------------------------------------ */
/* Featured game                                                       */
/* ------------------------------------------------------------------ */

.feature {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(150deg, rgba(246, 244, 240, .045), rgba(246, 244, 240, .012) 42%, transparent 75%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 80px -50px rgba(0, 0, 0, .9);
  position: relative;
  overflow: hidden;
}

.feature::after {
  content: "";
  position: absolute;
  inset: -40% 55% auto -20%;
  height: 120%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(231, 194, 113, .10), transparent 70%);
  pointer-events: none;
}

.feature__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #101017;
  border: 1px solid var(--line);
  transform: translateZ(0);
}
.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .6s var(--ease);
}
.feature:hover .feature__media img { transform: scale(1.045); }
.feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255, 255, 255, .10), transparent 42%);
  pointer-events: none;
}

.feature__body { position: relative; min-width: 0; }

.feature__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 9px;
  border-radius: 100px;
  border: 1px solid rgba(231, 194, 113, .28);
  background: rgba(231, 194, 113, .07);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
}
.feature__badge i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(231, 194, 113, .18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(231, 194, 113, 0); } }

.feature__title { font-size: clamp(28px, 3.6vw, 42px); margin-top: 20px; }

.feature__icon {
  width: 62px; height: 62px;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
  object-fit: cover;
}

.feature__desc {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* the artwork is never cropped — Roblox thumbnails carry text near the edges */

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
  padding: 6px 13px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(246, 244, 240, .03);
  font-size: 12.5px;
  color: var(--muted);
}

.feature__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.feature__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.feature__stats div span { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.feature__stats div b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

/* ------------------------------------------------------------------ */
/* Other games grid                                                */
/* ------------------------------------------------------------------ */

.grid-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.gcard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(246, 244, 240, .022);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.gcard:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 194, 113, .3);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9);
}
.gcard__media { aspect-ratio: 16 / 9; background: #101017; overflow: hidden; }
.gcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gcard:hover .gcard__media img { transform: scale(1.05); }
.gcard__body { padding: 20px 22px 24px; }
.gcard__title { font-size: 19px; }
.gcard__note { margin-top: 8px; color: var(--faint); font-size: 14px; }

/* announcement strip for an unreleased project */
.next {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(246, 244, 240, .028) 0 1px, transparent 1px 26px),
    linear-gradient(120deg, rgba(246, 244, 240, .04), transparent 55%);
  transition: border-color .4s var(--ease);
}
.next:hover { border-color: rgba(231, 194, 113, .26); }
/* the text block must be shrinkable, otherwise it wraps below the icon */
.next__body { flex: 1 1 auto; min-width: 0; }

.next__icon {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(231, 194, 113, .05);
}
.next__icon svg { width: 28px; height: 28px; }
.next__title { font-size: 19px; }
.next__note { margin-top: 3px; color: var(--faint); font-size: 14px; }

.next__chip {
  margin-left: auto;
  flex: none;
  padding: 7px 15px;
  border-radius: 100px;
  border: 1px solid rgba(231, 194, 113, .28);
  background: rgba(231, 194, 113, .07);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Services                                                             */
/* ------------------------------------------------------------------ */

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 32px 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(246, 244, 240, .04), transparent 60%);
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.card:hover { border-color: rgba(231, 194, 113, .26); transform: translateY(-3px); }
.card__num {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--gold);
  font-weight: 600;
}
.card__title { font-size: 21px; margin-top: 16px; }
.card__text { margin-top: 14px; color: var(--muted); font-size: 15.5px; }

/* ------------------------------------------------------------------ */
/* Contact                                                             */
/* ------------------------------------------------------------------ */

.section--contact { padding-bottom: clamp(90px, 10vw, 140px); }

.cta {
  position: relative;
  text-align: center;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(165deg, rgba(246, 244, 240, .05), rgba(246, 244, 240, .012) 55%, transparent);
  overflow: hidden;
}
.cta__glow {
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 120%;
  background: radial-gradient(46% 60% at 50% 100%, rgba(231, 194, 113, .18), transparent 68%);
  pointer-events: none;
}
.cta__title { position: relative; font-size: clamp(28px, 4.4vw, 46px); margin-top: 18px; }
.cta__lead { position: relative; margin-top: 16px; color: var(--muted); }
.cta .btn { position: relative; margin-top: 32px; }

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */

.footer { border-top: 1px solid var(--line-soft); padding: 30px 0 40px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--faint);
}

/* ------------------------------------------------------------------ */
/* Scroll reveal                                              */
/* ------------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Responsive                                                            */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .topbar__nav { display: none; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { order: -1; }
}

@media (max-width: 560px) {
  .hero { min-height: auto; padding: 130px 0 80px; }
  .hero__stats { gap: 24px 36px; }
  .btn { --btn-pad: 12px 20px; }
  .feature__desc { -webkit-line-clamp: 4; line-clamp: 4; }
  /* icon beside the text, chip on its own row underneath */
  .next {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px 16px;
  }
  .next__icon { width: 48px; height: 48px; border-radius: 14px; }
  .next__icon svg { width: 24px; height: 24px; }
  .next__chip { grid-column: 2; justify-self: start; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
