/* OG Studio — base styles */

:root {
  --bg:        #08080b;
  --bg-alt:    #0e0e13;
  --surface:   #131319;
  --line:      #24242e;
  --text:      #ecedf2;
  --text-dim:  #9a9aa8;
  --accent:    #7c5cff;
  --accent-2:  #34e0d0;
  --radius:    14px;
  --wrap:      1140px;
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.01em; }
p  { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.5rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; letter-spacing: .03em; font-size: 1rem;
}
.brand-dim { color: var(--text-dim); font-weight: 500; }
.brand-mark {
  width: 18px; height: 18px; border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.nav nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 1.9rem); font-size: .93rem; }
.nav nav a { color: var(--text-dim); transition: color .18s ease; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line);
  padding: .48rem .95rem; border-radius: 999px;
  transition: border-color .18s ease, background .18s ease;
}
.nav-cta:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
@media (max-width: 560px) { .nav-cta { display: none; } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  width: min(var(--wrap), 100% - 3rem); margin-inline: auto;
  padding: clamp(4rem, 11vw, 7rem) 0;
  max-width: 900px;
}
.eyebrow {
  font-size: .8rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 1.3rem; font-weight: 500;
}
.lede { color: var(--text-dim); font-size: clamp(1.02rem, 1.5vw, 1.16rem); max-width: 56ch; margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: .82rem 1.5rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .16s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 84%, #fff); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-2); }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }

/* ---------- platforms strip ---------- */

.platforms { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.platforms-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 2rem;
  padding: 1.4rem 0;
}
.platforms-label {
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim);
}
.platforms ul {
  display: flex; flex-wrap: wrap; gap: .7rem 1.9rem;
  list-style: none; margin: 0; padding: 0;
  font-size: .96rem; font-weight: 500; color: var(--text);
}

/* ---------- sections ---------- */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-title { margin-bottom: .8rem; }
.section-lede { color: var(--text-dim); max-width: 60ch; margin-bottom: 3rem; }

.page-head { padding: clamp(3.5rem, 8vw, 6rem) 0 0; }

/* ---------- cards ---------- */

.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem 1.7rem;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card-num {
  font-size: .76rem; letter-spacing: .15em; color: var(--accent);
  display: block; margin-bottom: .9rem; font-weight: 500;
}
.card h3 { margin-bottom: .7rem; }
.card p { color: var(--text-dim); font-size: .95rem; }

.tags {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; margin: 1.3rem 0 0; padding: 0;
}
.tags li {
  font-size: .76rem; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .24rem .7rem;
}

/* ---------- work ---------- */

.work-teaser { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.work-teaser .section-lede { margin-bottom: 0; }

.work-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease;
}
.work-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.work-thumb {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 25% 15%,
      hsl(var(--hue, 264) 70% 26%) 0%,
      hsl(var(--hue, 264) 55% 10%) 55%,
      #0b0b10 100%);
  border-bottom: 1px solid var(--line);
}
.work-thumb[data-hue="264"] { --hue: 264; }
.work-thumb[data-hue="190"] { --hue: 190; }
.work-thumb[data-hue="30"]  { --hue: 30;  }
.work-thumb[data-hue="330"] { --hue: 330; }
.work-thumb span {
  font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em;
  color: rgba(255,255,255,.22);
}
.work-meta { padding: 1.5rem 1.6rem 1.7rem; }
.work-meta h2 { font-size: 1.28rem; margin-bottom: .3rem; }
.work-kind { color: var(--accent-2); font-size: .84rem; margin-bottom: .9rem; }
.work-meta p { color: var(--text-dim); font-size: .94rem; }

/* ---------- steps ---------- */

.steps { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { border-top: 2px solid var(--line); padding-top: 1.3rem; }
.step-num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent); font-size: .82rem; font-weight: 700;
  margin-bottom: .85rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--text-dim); font-size: .92rem; }

/* ---------- contact ---------- */

.contact { text-align: center; max-width: 640px; }
.contact h2 { margin-bottom: 1rem; }
.contact p { color: var(--text-dim); margin-bottom: 2.1rem; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .89rem; color: var(--text-dim); }
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer nav { display: flex; gap: 1.4rem; }
.footer nav a:hover { color: var(--text); }

/* hero backdrop behind the WebGL canvas (and the fallback if it never loads) */
.hero {
  background:
    radial-gradient(90% 70% at 72% 32%, rgba(124, 92, 255, .16) 0%, transparent 62%),
    radial-gradient(70% 60% at 12% 78%, rgba(52, 224, 208, .09) 0%, transparent 60%),
    var(--bg);
}
