/* Elastic Labs: warm light, shared energy, and room for the work to breathe.
   Loaded only by the landing page; the game detail page keeps its own theme. */
:root {
  color-scheme: dark;
  --color-background: #181619;
  --color-surface: #211d22;
  --color-accent: #e5bc92;
  --color-accent-soft: rgba(229, 188, 146, .08);
  --color-text: #f0e9df;
  --color-muted: #b5aeb5;
  --color-card: #242027;
  --color-card-border: rgba(232, 216, 235, .12);
  --max-width: 1240px;
}
html { scroll-behavior: smooth; }
body { background: #181619; }
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23grain)' opacity='.7' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
::selection { color: #fff5e7; background: #725d86; }
:focus-visible { outline: 2px solid #d5b4ef; outline-offset: 6px; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 112px), var(--max-width)); }
.site-header { position: absolute; width: 100%; background: none; border: 0; backdrop-filter: none; }
.site-header .container { padding: 30px 0; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-size: 18px; letter-spacing: -.055em; text-transform: none; font-weight: 600; }
.brand-wave { color: #e5bc92; }
/* Original path attributes are the no-script and reduced-motion fallback.
   logo-wave-motion.js alone owns enhanced path geometry. */

.nav__menu { align-items: center; gap: 32px; }
.nav__menu a { color: #c1b9c3; font-size: 13px; font-weight: 500; }
.nav__menu .nav__contact { padding: 10px 15px; border: 1px solid rgba(239, 217, 242, .17); border-radius: 9px; background: rgba(213, 188, 225, .035); color: var(--color-text); }
.nav__contact span { margin-left: 18px; color: #d4b99c; }
.hero { position: relative; isolation: isolate; min-height: 880px; min-height: min(960px, 100svh); overflow: hidden; padding: 171px 0 0; background: #181619; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 180px; z-index: -1; background: linear-gradient(transparent, #181619); pointer-events: none; }
.hero__ambient { position: absolute; inset: 0; z-index: -3; background: radial-gradient(ellipse at 18% 14%, #85502a27, transparent 47%), radial-gradient(ellipse at 76% 58%, #70508221, transparent 54%), radial-gradient(ellipse at 50% 100%, #40334e3b, transparent 45%); }
.hero__content { display: flex; flex-direction: column; align-items: center; gap: 0; position: relative; text-align: center; }
.eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .18em; color: #c8a885; line-height: 1.8; }
.hero__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 29px; font-size: 9px; letter-spacing: .2em; color: #c8b8aa; }
.status-light { display: inline-block; flex: 0 0 auto; width: 5px; height: 5px; margin-right: 6px; vertical-align: 2px; border-radius: 50%; background: #d9b68a; box-shadow: 0 0 10px #d9b68a65; }
.hero h1 { margin: 0; max-width: 1100px; font-size: clamp(48px, 6.8vw, 100px); font-weight: 500; line-height: 1.08; letter-spacing: -.065em; text-wrap: balance; }
.hero h1 span, .cta h2 span { background: linear-gradient(104deg, #e9c79f 6%, #dcc1c9 54%, #b5a2e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 26px 0 0; font-size: 15px; line-height: 1.8; color: #bdb5bd; font-weight: 400; }
.hero__actions { margin: 31px 0 0; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 13px; }
.button { gap: 30px; min-height: 49px; padding: 14px 22px; border: 1px solid #f7dfba99; border-radius: 9px; color: #292126; background: linear-gradient(150deg, #f0d9b7, #cfa77e); box-shadow: inset 0 1px 1px #fff2d780, 0 3px 12px #deac6d18; font-size: 12px; font-weight: 600; transition: transform .2s, box-shadow .2s, border-color .2s; }
.button:hover { box-shadow: inset 0 1px 1px #fff4de80, 0 5px 24px #dfb88b28; transform: translateY(-2px); }
.button span { font-size: 17px; font-weight: 400; }
.button--glass { color: #e2d7ef; border-color: #bd99e440; background: linear-gradient(150deg, #9a78be2b, #66507819); box-shadow: inset 0 1px 1px #d4b5f126, 0 3px 18px #00000016; backdrop-filter: blur(12px); }
.button--glass:hover { border-color: #bd99e47a; box-shadow: 0 6px 22px #9978c41a; }
/* The SVG remains the still fallback; WebGL uses the reference full hero framing. */
.energy-field, .energy-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.energy-canvas {
  -webkit-mask-image: linear-gradient(#000 60%, #0000 100%);
  mask-image: linear-gradient(#000 60%, #0000 100%);
  visibility: hidden;
}
.hero.canvas-ready .energy-canvas { visibility: visible; }
.energy-ribbon { transform: none; }
.hero.canvas-ready .energy-field { visibility: hidden; }
/* Decorative simulated teammates, driven by the WebGL animation clock. The
   arrow tip's (0, 0) is the exact CSS position supplied to the shader. */
.energy-companions { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; visibility: hidden; }
.hero.canvas-ready .energy-companions { visibility: visible; }
.energy-companion { position: absolute; top: 0; left: 0; color: #edbd7a; opacity: .85; pointer-events: none; will-change: transform; }
.energy-companion--1 { color: #b99aed; }
.energy-companion--2 { color: #8ab7f5; }
.energy-companion svg { display: block; width: 16px; height: 20px; overflow: visible; fill: currentColor; stroke: #181619; stroke-width: 1.25; stroke-linejoin: round; }
.energy-companion span { position: absolute; top: 16px; left: 14px; padding: 2px 4px; border-radius: 3px; background: #181619b8; font: 500 9px/1.2 Inter, sans-serif; letter-spacing: .02em; white-space: nowrap; }
.hero__foot { position: absolute; bottom: 29px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; color: #a49ba7; text-decoration: none; font-size: 10px; letter-spacing: .045em; }
.scroll-track { display: block; width: 14px; height: 23px; border: 1px solid #b6a7c04d; border-radius: 8px; }
.scroll-track span { display: block; width: 2px; height: 5px; margin: 5px auto; border-radius: 2px; background: #d4bba6; }
.motion-toggle { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 0 5px 10px; border: 0; border-radius: 4px; background: none; color: #b6aabf; cursor: pointer; font: inherit; font-size: 10px; }
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: #eee3ef; }

.section { padding: 110px 0; }
.section h2 { margin: 0 0 22px; font-size: clamp(32px, 3.3vw, 48px); font-weight: 500; letter-spacing: -.05em; line-height: 1.14; }
.section h2 span { color: #afa1ba; }
.section .eyebrow { margin: 0 0 22px; }
.section--dark { padding-top: 53px; background: #181619; }
.section-kicker { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 25px; }
.section-kicker .eyebrow { margin: 0; }
.section-index { color: #938995; font-size: 10px; letter-spacing: .08em; }
.project { align-items: start; grid-template-columns: 1.12fr 1fr; gap: 55px; padding-top: 38px; border-top: 1px solid #e7d6ec1c; }
.project__media { position: sticky; top: 40px; border-radius: 14px; background: #211f23; box-shadow: 0 16px 65px #0002; }
.project__media img { height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 50%; }
.project__media figcaption { padding: 14px 17px; font-size: 8px; letter-spacing: .07em; color: #aaa1b0; line-height: 1.7; }
.project__copy .eyebrow { margin: 0 0 18px; font-size: 8px; letter-spacing: .1em; }
.project__copy h2 { margin-bottom: 10px; font-size: clamp(36px, 3.1vw, 48px); }
.project__copy > p:not(.eyebrow):not(.project__tagline) { font-size: 13px; line-height: 1.9; margin: 19px 0; }
.project__tagline { font-size: 14px; font-weight: 400; color: #d5bdab; }
.project__tags { gap: 6px; margin: 25px 0; }
.project__tags li { background: #d7b2e105; border-color: #c2a9d02a; border-radius: 6px; padding: 5px 8px; font-size: 9px; color: #c1b4cb; }
.project__status { border-left: 1px solid #c4a07b; padding: 2px 0 2px 16px; background: none; }
.project__status strong { font-size: 9px; font-weight: 500; color: #ddc7b1; letter-spacing: .06em; text-transform: uppercase; }
.project__status span { font-size: 11px; line-height: 1.8; }
.project__actions { margin-top: 26px; }
#studio { position: relative; padding: 95px 0 100px; background: radial-gradient(ellipse at 16% 0%, #b68b5b0c, transparent 56%), #1c191d; border-block: 1px solid #ead6ec0d; }
.studio-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: end; }
.studio-intro h2 { margin-bottom: 0; }
.studio-intro .section__lead { margin: 0; font-size: 15px; line-height: 1.95; max-width: 470px; }
#capabilities { padding-top: 100px; padding-bottom: 110px; }
#capabilities .section__lead { margin: 0 0 53px; font-size: 14px; }
.grid { gap: 37px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; padding: 26px 0 0; border: 0; border-top: 1px solid #e7d6ec24; border-radius: 0; background: none; box-shadow: none; }
.card__index { display: block; margin-bottom: 39px; font-size: 10px; color: #b19e83; letter-spacing: .1em; }
.card:nth-child(2) .card__index { color: #b7a0cf; }
.card:nth-child(3) .card__index { color: #a4aecf; }
.card h3 { margin: 0 0 16px; font-size: 17px; font-weight: 500; letter-spacing: -.025em; }
.card p { max-width: 330px; margin: 0; color: #aca2af; font-size: 13px; line-height: 1.85; }
.cta { overflow: hidden; position: relative; padding: 85px 0 95px; border-top: 1px solid #e7d6ec17; background: radial-gradient(ellipse at 15% 140%, #d19d7040, transparent 54%), radial-gradient(ellipse at 90% 110%, #8c6ea538, transparent 57%), #201b23; }
.cta__content { flex-wrap: nowrap; }
.cta__content .eyebrow { margin: 0 0 25px; }
.cta__content h2 { font-size: clamp(40px, 4.8vw, 68px); font-weight: 500; line-height: 1.1; letter-spacing: -.06em; margin-bottom: 25px; }
.cta__content > div > p:last-child { max-width: 410px; font-size: 13px; color: #bcb1c2; line-height: 1.9; }
.cta .button { gap: 36px; white-space: nowrap; }
.site-footer { background: #181619; padding: 30px 0; }
.footer__content { gap: 18px; font-size: 9px; color: #918793; }
.footer__content p { margin: 0; }
.footer__links a { font-size: 10px; color: #b6a7bb; }
@media (min-width: 1600px) { .hero { padding-top: 185px; } }
@media (max-height: 800px) and (min-width: 900px) { .hero { min-height: 760px; padding-top: 142px; } .hero h1 { font-size: 84px; } }
@media (max-width: 1000px) {
  .container { width: calc(100% - 72px); }
  .hero { min-height: 800px; padding-top: 175px; }
  .hero h1 { font-size: clamp(52px, 7.7vw, 76px); }
  .project { grid-template-columns: 1fr 1fr; gap: 32px; }
  .project__media { top: 25px; }
  .project__media img { aspect-ratio: 4 / 5; }
  .project__copy .eyebrow { font-size: 7px; }
  .studio-intro { gap: 35px; }
}
@media (max-width: 768px) {
  .container { width: calc(100% - 48px); }
  .site-header .container { padding: 22px 0; }
  .logo { font-size: 17px; }
  .nav__toggle { width: 38px; height: 38px; border-radius: 8px; background: #c4a6dc0a; border-color: #d6b5e32a; }
  .nav__line { width: 17px; height: 1px; }
  .nav__menu { z-index: 20; background: #25202a; align-items: stretch; padding: 22px; gap: 22px; }
  .nav__menu a { display: block; font-size: 14px; }
  .hero { min-height: 790px; padding-top: 163px; }
  .hero h1 { font-size: clamp(40px, 7.65vw, 59px); letter-spacing: -.065em; line-height: 1.15; }
  .hero__eyebrow { font-size: 9px; letter-spacing: .12em; margin-bottom: 25px; gap: 5px; }
  .hero .lead { font-size: 13px; margin-top: 24px; line-height: 1.9; }
  .hero__actions { align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
  .hero__actions .button { padding: 13px 15px; gap: 16px; font-size: 12px; min-height: 46px; }
  .energy-field { width: 160%; left: -30%; }
  .hero__foot { bottom: 24px; }
  .hero__scroll { font-size: 10px; gap: 8px; }
  .motion-toggle { font-size: 10px; }
  .section--dark { padding-top: 36px; }
  .section-index { font-size: 10px; }
  .project { grid-template-columns: 1fr; padding-top: 25px; gap: 35px; }
  .project__media { position: relative; top: auto; }
  .project__media img { aspect-ratio: 16 / 11; }
  .project__copy h2 { font-size: 42px; }
  .project__copy .eyebrow { font-size: 10px; }
  .project__copy > p:not(.eyebrow):not(.project__tagline) { font-size: 14px; }
  .project__tags li { font-size: 10px; }
  #studio { padding: 64px 0; }
  .studio-intro { grid-template-columns: 1fr; gap: 25px; }
  .studio-intro .section__lead { font-size: 14px; }
  .section h2 { font-size: 36px; }
  #capabilities { padding: 64px 0 70px; }
  #capabilities .section__lead { margin-bottom: 35px; }
  .grid { grid-template-columns: 1fr; gap: 35px; }
  .card { padding-top: 19px; }
  .card__index { margin-bottom: 22px; }
  .card h3 { font-size: 19px; }
  .card p { max-width: 100%; font-size: 14px; }
  .cta { padding: 65px 0; }
  .cta__content { display: block; }
  .cta__content h2 { font-size: 52px; }
  .cta__actions { margin-top: 30px; }
  .footer__content { align-items: start; }
  .footer__content p { max-width: 265px; line-height: 1.8; }
}
@media (max-width: 400px) {
  .container { width: calc(100% - 36px); }
  .hero { min-height: 750px; padding-top: 155px; }
  .hero h1 { font-size: clamp(31px, 9vw, 35px); }
  .hero__eyebrow { font-size: 8px; }
  .hero .lead { font-size: 12px; }
  .hero__actions { gap: 8px; }
  .hero__actions .button { gap: 10px; padding: 12px; font-size: 11px; }
  .section-kicker .eyebrow { font-size: 9px; }
  .section-index { font-size: 9px; }
  .hero__scroll { max-width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .nav__menu { transition: none; }
}
html:not(.has-js) .motion-toggle { display: none; }
@media (max-width: 768px) {
  html:not(.has-js) .site-header { position: relative; }
  html:not(.has-js) .site-header .container { flex-wrap: wrap; }
  html:not(.has-js) .nav__toggle { display: none; }
  html:not(.has-js) .nav { width: 100%; margin-top: 22px; }
  html:not(.has-js) .nav__menu { position: static; flex-direction: row; flex-wrap: wrap; min-width: 0; opacity: 1; pointer-events: auto; transform: none; padding: 0; background: none; border: 0; box-shadow: none; }
}
