:root {
  color-scheme: dark;
  --bg: #101217;
  --card: #191c24;
  --card-2: #1f232c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #f3efe8;
  --muted: #a8aab4;
  --dim: #7d808c;
  --coral: #ef9470;
  --teal: #62c2ae;
  --cream: #f6e3c4;
  --radius: 22px;
  --content: 1160px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; border-radius: 8px; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(32px, 3.6vw, 46px); }
h3 { font-size: 21px; letter-spacing: -.015em; }
p { color: var(--muted); }
svg { width: 1em; height: 1em; flex-shrink: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
main { overflow-x: clip; }
.shell { width: min(var(--content), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--cream); color: #1a1410; font-weight: 600; }
.skip-link:focus { top: 12px; }

.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 420px at 12% -5%, rgba(239, 148, 112, .13), transparent 70%),
    radial-gradient(680px 480px at 92% 18%, rgba(98, 194, 174, .11), transparent 70%),
    radial-gradient(900px 600px at 50% 110%, rgba(246, 227, 196, .05), transparent 70%); }
.backdrop::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%); }

.eyebrow { margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border-radius: 14px; font-weight: 600; font-size: 15px;
  transition: background .2s, border-color .2s, transform .2s; }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--cream); color: #1d160f; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.btn-primary:hover { background: #fff1da; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .05); }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--muted); }
.badge-live { color: #bfe9de; border-color: rgba(98, 194, 174, .4); background: rgba(98, 194, 174, .1); }
.badge-live::before, .live-dot { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(98, 194, 174, .2); }
.live-dot { display: inline-block; margin-right: 4px; vertical-align: 1px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(16, 18, 23, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.brand img { width: auto; height: 36px; transition: transform .4s; }
.brand:hover img { transform: rotate(-12deg); }
.brand-meld { color: var(--cream); }
.site-header nav { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.site-header nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); transition: color .15s, background .15s; }
.site-header nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.site-header .nav-cta { margin-left: 8px; color: var(--ink); border: 1px solid var(--line-2); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding: 96px 0 110px; }
h1 { font-size: clamp(46px, 6.2vw, 82px); letter-spacing: -.045em; line-height: 1; }
.meld-text { background: linear-gradient(100deg, var(--coral) 10%, var(--cream) 50%, var(--teal) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 540px; margin-top: 26px; font-size: 19px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 30px; font-size: 14px; color: var(--dim); }
.hero-note strong { color: var(--ink); font-weight: 600; }

.stack { position: relative; height: 470px; }
.stack-card { position: absolute; top: 50%; left: 50%; width: 320px; border-radius: var(--radius); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.ghost { display: flex; height: 380px; padding: 22px; border: 1px dashed var(--line-2);
  background: linear-gradient(160deg, rgba(31, 35, 44, .9), rgba(22, 25, 32, .9)); }
.ghost svg { width: 28px; height: 28px; color: var(--dim); }
.ghost-back { justify-content: flex-end; }
.ghost-back svg { color: var(--teal); opacity: .7; }
.ghost-mid svg { color: var(--coral); opacity: .7; }
.ghost-back { transform: translate(-50%, -50%) translate(70px, -26px) rotate(8deg); }
.ghost-mid { transform: translate(-50%, -50%) translate(-62px, -10px) rotate(-6deg); }
.stack-front { overflow: hidden; height: 400px; border: 1px solid var(--line-2); background: var(--card-2); transform: translate(-50%, -50%) translate(0, 20px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .3); }
.stack:hover .ghost-back { transform: translate(-50%, -50%) translate(96px, -36px) rotate(11deg); }
.stack:hover .ghost-mid { transform: translate(-50%, -50%) translate(-90px, -14px) rotate(-9deg); }
.stack:hover .stack-front { transform: translate(-50%, -50%) translate(0, 10px); }
.stack-image { display: block; height: 250px; overflow: hidden; }
.stack-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.2); }
.stack-emblem { position: absolute; top: 212px; left: 22px; width: 68px; height: 68px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.stack-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 40px 24px 24px; }
.stack-body strong { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; }
.stack-body small { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: 40px 0 110px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head > p:last-child:not(.eyebrow) { margin-top: 14px; font-size: 17px; }

.project-featured { display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; border: 1px solid var(--line-2); border-radius: 28px;
  background: linear-gradient(160deg, var(--card-2), var(--card)); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.project-media { position: relative; min-height: 420px; overflow: hidden; }
/* The screenshot includes Spore's HUD along its edges; the scale crops it out. */
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.18); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.project-featured:hover .project-media img { transform: scale(1.23); }
.project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(25, 28, 36, .9)), linear-gradient(0deg, rgba(16, 18, 23, .55), transparent 40%); }
.media-caption { position: absolute; z-index: 1; left: 18px; bottom: 14px; font-size: 12px; color: rgba(243, 239, 232, .7); }
.project-body { display: flex; flex-direction: column; align-items: flex-start; padding: 44px 44px 44px 36px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-title { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.project-title img { width: 64px; height: 64px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.project-title h3 { font-size: 34px; letter-spacing: -.03em; }
.project-title h3 span { display: block; margin-top: 4px; font: 600 12px/1.4 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.project-body > p { margin-top: 20px; font-size: 16px; }
.project-facts { display: grid; gap: 0; width: 100%; margin: 24px 0 30px; font-size: 14px; }
.project-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid var(--line); }
.project-facts div:last-child { border-bottom: 1px solid var(--line); }
.project-facts dt { color: var(--dim); }
.project-facts dd { margin: 0; text-align: right; color: var(--ink); }

.project-upcoming { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.upcoming-card { padding: 30px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(25, 28, 36, .55); transition: border-color .2s, background .2s; }
.upcoming-card:hover { border-color: rgba(255, 255, 255, .24); background: rgba(31, 35, 44, .7); }
.upcoming-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--cream); }
.upcoming-icon svg { width: 24px; height: 24px; }
.upcoming-status { margin-top: 22px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.upcoming-card h3 { margin-top: 6px; }
.upcoming-card h3 + p { margin-top: 10px; font-size: 15px; }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.principles li { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(31, 35, 44, .8), rgba(25, 28, 36, .6)); }
.principle-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 13px; color: #1d160f; }
.principles li:nth-child(1) .principle-icon { background: var(--coral); }
.principles li:nth-child(2) .principle-icon { background: var(--cream); }
.principles li:nth-child(3) .principle-icon { background: var(--teal); }
.principles li:nth-child(4) .principle-icon { background: #b9b4e8; }
.principle-icon svg { width: 22px; height: 22px; }
.principles h3 { font-size: 19px; }
.principles p { margin-top: 10px; font-size: 15px; }

.cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 110px; padding: 46px 50px; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 28px; background: linear-gradient(120deg, rgba(239, 148, 112, .14), rgba(31, 35, 44, .9) 45%, rgba(98, 194, 174, .14)); }
.cta h2 { font-size: clamp(28px, 3vw, 38px); }
.cta p { margin-top: 10px; font-size: 17px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(10, 11, 15, .6); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; padding: 44px 0 40px; }
.footer-brand .brand { font-size: 19px; }
.footer-brand .brand img { width: auto; height: 30px; }
.footer-brand p { margin-top: 8px; font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; align-self: center; font-size: 15px; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); max-width: 760px; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 48px); }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 70px 0 80px; }
  .stack { height: 450px; }
  .project-featured { grid-template-columns: 1fr; }
  .project-media { min-height: 300px; }
  .project-media::after { background: linear-gradient(0deg, rgba(25, 28, 36, .95), transparent 45%); }
  .project-body { padding: 10px 32px 36px; }
  .principles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .brand { font-size: 19px; }
  .brand img { width: auto; height: 32px; }
  .hero { padding: 48px 0 60px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stack { height: 400px; }
  .stack-card { width: 270px; }
  .ghost { height: 320px; }
  .stack-front { height: 350px; }
  .stack-image { height: 210px; }
  .stack-emblem { top: 176px; width: 60px; height: 60px; }
  .ghost-back { transform: translate(-50%, -50%) translate(40px, -24px) rotate(7deg); }
  .ghost-mid { transform: translate(-50%, -50%) translate(-36px, -10px) rotate(-5deg); }
  .stack:hover .ghost-back { transform: translate(-50%, -50%) translate(40px, -24px) rotate(7deg); }
  .stack:hover .ghost-mid { transform: translate(-50%, -50%) translate(-36px, -10px) rotate(-5deg); }
  .section { padding-bottom: 80px; }
  .project-media { min-height: 230px; }
  .project-body { padding: 4px 22px 28px; }
  .project-title h3 { font-size: 28px; }
  .project-title img { width: 54px; height: 54px; }
  .project-body .btn { width: 100%; }
  .project-upcoming, .principles { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; margin-bottom: 80px; }
  .cta .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
