/* ── Tokens ─────────────────────────────────────────────────────────
   Deliberately single-theme: the studio mark is white type and colored
   sparkles floating on a black ellipse. It wants a night sky under it,
   so every surface and every color here is painted explicitly.        */
:root{
  color-scheme: dark;

  --void:      #07060d;   /* ground — near-black, biased violet      */
  --deep:      #100d1c;   /* raised panel                             */
  --deeper:    #0b0914;   /* inset well                               */
  --edge:      #262039;   /* hairline                                 */
  --ink:       #f4f1fa;   /* primary text                             */
  --dim:       #9a93b2;   /* secondary text — violet-biased grey      */
  --faint:     #6b6486;   /* tertiary / captions                      */

  /* the six sparkles lifted off the studio mark */
  --rose:      #ff4d6d;
  --amber:     #ff9e2c;
  --green:     #35d96b;
  --blue:      #4ba3ff;
  --magenta:   #e858ea;
  --gold:      #ffe45c;

  --beam:      var(--magenta);   /* per-section, overridden below     */

  --shell:     1120px;
  --rail:      64px;

  --display:   "Bodoni Moda", "Didot", "Times New Roman", serif;
  --body:      "Commissioner", "Helvetica Neue", Arial, sans-serif;
  --mono:      "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ambient sparkle field, painted behind everything */
#sky{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.shell{
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}

a{ color: var(--ink); }

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

/* ── Masthead ───────────────────────────────────────────────────── */
.masthead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--edge);
}
.masthead .wordmark{
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.masthead nav{
  display: flex;
  gap: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.masthead nav a{
  color: var(--dim);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.masthead nav a:hover{ color: var(--ink); border-bottom-color: var(--beam); }

/* ── Opening ────────────────────────────────────────────────────── */
/* Sized to what it holds, so the first game starts well above the fold. */
.opening{
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 36px 0 30px;
}
.opening .mark{
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(232, 88, 234, .14));
}
.opening h1{
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0 0 12px;
}
.opening h1 em{
  font-style: italic;
  color: var(--gold);
}
.opening p{
  margin: 0;
  max-width: 50ch;
  color: var(--dim);
  font-size: 1rem;
}

/* ── Acts: one game per row ─────────────────────────────────────── */
.act{
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  padding-bottom: 52px;
}
.act:last-of-type{ padding-bottom: 56px; }

/* the beam: one luminous line deflected down the page, changing hue
   as it passes each mirror */
.beamline{
  position: relative;
}
.beamline::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: -1px;
  left: 13px;
  width: 1px;
  background: var(--beam);
  opacity: .42;
  box-shadow: 0 0 9px var(--beam);
}
.mirror{
  position: absolute;
  top: 16px;
  left: 6px;
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
  background: var(--void);
  border: 1px solid var(--beam);
  box-shadow: 0 0 14px var(--beam);
}

.game{
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-top: 8px;
}
.game-text{ min-width: 0; }

.eyebrow{
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--beam);
  margin: 4px 0 8px;
}
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.act h2{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 12px;
}
.teaser{
  margin: 0;
  max-width: 60ch;
  color: var(--ink);
}

/* artwork */
.art{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}
.banner{
  border: 1px solid var(--edge);
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, .9);
}
/* pixel art gets a bright plate and stays crisp when scaled */
.plate{
  background: #fbfaf6;
  border-radius: 5px;
  padding: 14px 12px;
  border: 1px solid var(--edge);
  box-shadow: 0 0 36px -14px var(--beam);
}
.plate img{ image-rendering: pixelated; }
.shot{
  border: 1px solid var(--edge);
  box-shadow: 0 18px 44px -28px rgba(0, 0, 0, .95);
}
/* screenshots in the row are cropped to a steady shape */
.game-art .shot{
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ── Actions row ────────────────────────────────────────────────── */
.actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 18px;
}
.actions .btn{ margin-top: 0; }

/* ── Steam badge — Valve's official artwork, so no chrome of our own ── */
.steam{
  display: inline-block;
  width: 190px;
  max-width: 100%;
  border-radius: 5px;
  transition: transform .18s ease, filter .18s ease;
}
.steam img{ display: block; width: 100%; height: auto; }
.steam:hover{
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 24px rgba(75, 163, 255, .38));
}

/* ── Read more ──────────────────────────────────────────────────── */
.more{ margin-top: 14px; }
.more summary{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 4px 0;
  transition: color .16s ease;
}
.more summary::-webkit-details-marker{ display: none; }
.more summary::after{
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.more[open] summary::after{ transform: translateY(1px) rotate(-135deg); }
.more summary:hover{ color: var(--ink); }
.more[open] summary{ color: var(--beam); }

.more-body{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 28px;
  align-items: start;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--edge);
  color: var(--dim);
}
.more-body:not(:has(> img)){ grid-template-columns: minmax(0, 1fr); }
.more-body p{ margin: 0 0 .9em; max-width: 62ch; }
.more-body p:last-child{ margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────────────────── */
footer{
  border-top: 1px solid var(--edge);
  padding: 34px 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
}
footer .sparks{ display: flex; gap: 7px; }
footer .sparks i{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Narrow screens ─────────────────────────────────────────────── */
@media (max-width: 860px){
  :root{ --rail: 34px; }
  .opening{
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 26px;
    padding: 28px 0 24px;
  }
  .opening h1{ font-size: clamp(1.5rem, 4.6vw, 2rem); }
  .game{ grid-template-columns: 210px minmax(0, 1fr); gap: 26px; }
  .beamline::before{ left: 7px; }
  .mirror{ left: 0; }
}
/* phones: everything stacks, art first but kept short */
@media (max-width: 620px){
  /* the oval logo already names the studio, so the masthead drops its
     wordmark and the intro drops its paragraph: the first game should
     start on the first screen */
  .masthead{ padding: 14px 0 12px; }
  .home .masthead .wordmark{ display: none; }
  .opening{ grid-template-columns: 128px minmax(0, 1fr); gap: 16px; padding: 20px 0 22px; }
  .opening h1{ font-size: 1.45rem; margin: 0; }
  .opening p{ display: none; }
  .act{ padding-bottom: 40px; }
  .game{ grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 4px; }
  .game-art{ max-width: 250px; }
  .game-art .shot{ aspect-ratio: 16 / 9; }
  .more-body{ grid-template-columns: minmax(0, 1fr); }
  .more-body > img{ max-width: 220px; }
}
@media (max-width: 520px){
  body{ font-size: 16px; }
  .shell{ padding: 0 20px; }
  .masthead{ gap: 12px; }
  .masthead nav{ gap: 18px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 13px 24px;
  border: 1px solid var(--beam);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn:hover{
  background: color-mix(in srgb, var(--beam) 14%, transparent);
  box-shadow: 0 0 22px -6px var(--beam);
  transform: translateY(-1px);
}
.btn::before{
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  transform: rotate(45deg);
  border: 1px solid var(--beam);
  box-shadow: 0 0 8px var(--beam);
}
.btn-solid{
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}
.btn-solid:hover{ background: color-mix(in srgb, var(--gold) 22%, transparent); }
.btn-solid::before{ border-color: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* ── Interest form ──────────────────────────────────────────────── */
.page-head{
  padding: 40px 0 6px;
  max-width: 62ch;
}
.page-head h1{
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0 0 12px;
}
.page-head p{ color: var(--dim); margin: 0; font-size: .97rem; }

.form-wrap{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 48px;
  align-items: start;
  padding: 26px 0 60px;
}
.form-main{ min-width: 0; max-width: 34rem; }

/* name and email share a row: two short fields do not each need a line */
.pair{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 18px;
}

fieldset{
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
legend{
  padding: 0;
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--beam);
}
.hint{
  margin: 0 0 10px;
  color: var(--faint);
  font-size: .85rem;
}

label.field{ display: block; margin-bottom: 18px; }
label.field > span{
  display: block;
  margin-bottom: 7px;
  font-size: .92rem;
  color: var(--dim);
}
label.field .opt{ color: var(--faint); }

input[type="text"],
input[type="email"],
textarea{
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--edge);
  border-radius: 3px;
  background: var(--deeper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea{ resize: vertical; min-height: 76px; line-height: 1.5; }
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus{
  outline: none;
  border-color: var(--beam);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--beam) 22%, transparent);
}

/* checkbox rows */
.check{
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 13px;
  margin-bottom: 6px;
  border: 1px solid var(--edge);
  border-radius: 3px;
  background: var(--deeper);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.check:hover{ border-color: var(--dim); }
.check:has(input:checked){
  border-color: var(--beam);
  background: color-mix(in srgb, var(--beam) 9%, var(--deeper));
}
.check input{
  flex: none;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--beam);
}
.check .lbl{ font-size: .97rem; line-height: 1.4; }
.check .sub{
  display: block;
  color: var(--faint);
  font-size: .82rem;
  margin-top: 2px;
}
.check.inline{ display: inline-flex; margin-right: 8px; }

.checks-inline{ display: flex; flex-wrap: wrap; gap: 8px; }
.checks-inline .check{ margin-bottom: 0; }


/* validation */
.err{
  margin: 6px 0 0;
  color: var(--rose);
  font-size: .86rem;
}
.banner-msg{
  margin: 0 0 30px;
  padding: 14px 18px;
  border-radius: 3px;
  border: 1px solid var(--rose);
  background: color-mix(in srgb, var(--rose) 12%, transparent);
  color: var(--ink);
  font-size: .94rem;
}
.banner-msg ul{ margin: 8px 0 0; padding-left: 20px; }
.banner-msg.ok{
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
}
input.invalid,
textarea.invalid{ border-color: var(--rose); }

/* honeypot — never shown to a human, never announced to a screen reader */
.hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* aside */
.aside{
  border-left: 1px solid var(--edge);
  padding-left: 26px;
  font-size: .9rem;
  color: var(--dim);
}
.aside h2{
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}
.aside p{ margin: 0 0 1em; }
.aside p:last-child{ margin-bottom: 0; }
.note-field{
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--edge);
}

/* the confirmation / thank-you state */
.done{
  max-width: 46ch;
  padding: 40px 0 100px;
}
.done h1{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 18px;
}
.done p{ color: var(--dim); }

@media (max-width: 860px){
  .form-wrap{ grid-template-columns: minmax(0, 1fr); gap: 30px; padding-bottom: 50px; }
  .pair{ grid-template-columns: minmax(0, 1fr); gap: 0; }
  .aside{
    border-left: 0;
    border-top: 1px solid var(--edge);
    padding: 24px 0 0;
  }
}
