/* Synaptic Interactive — shared styles */
:root {
  --void: #090b11;
  --hall: #10131c;
  --hall-2: #161a26;
  --seam: #262b3b;
  --seam-2: #343a4f;
  --ink: #ecebe4;
  --dust: #9a9cab;
  --dust-2: #6f7283;
  --lamp: #efe3b0;
  --signal: #e0334f;
  --signal-hi: #f04862;
  --ok: #3fbf8a;
  --warn: #e6b450;
  --discord: #5865f2;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --r-sm: 6px;
  --r: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--signal); color: #fff;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--signal-hi); }
.btn:active { transform: translateY(1px); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--seam-2); }
.btn.quiet:hover { border-color: var(--dust); background: var(--hall-2); }
.btn.lamp { background: var(--lamp); color: #191609; }
.btn.lamp:hover { background: #fff3c4; }
.btn.discord { background: var(--discord); }
.btn.discord:hover { background: #6d78f5; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(9, 11, 17, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--seam);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 17px/1 var(--display); font-stretch: 112%; letter-spacing: -0.01em; }
.logo svg { width: 26px; height: 26px; color: var(--lamp); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--dust); font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); background: var(--hall-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { margin-left: 8px; }
.menu { display: none; width: 42px; height: 42px; border: 1px solid var(--seam-2); border-radius: var(--r-sm); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.mobile-nav { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: inline-flex; }
  .mobile-nav.open { display: grid; gap: 2px; padding: 8px 20px 16px; border-top: 1px solid var(--seam); }
  .mobile-nav a { padding: 12px 4px; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--seam); }
  .mobile-nav a:last-child { border-bottom: 0; }
}

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--seam); isolation: isolate; }
.hero .corridor { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--void) 0%, rgba(9,11,17,.86) 36%, rgba(9,11,17,.25) 64%, rgba(9,11,17,.05) 100%), linear-gradient(0deg, var(--void) 0%, rgba(9,11,17,0) 30%); }
.hero .wrap { padding-top: clamp(80px, 14vw, 160px); padding-bottom: clamp(72px, 12vw, 140px); }
.hero h1 { font-size: clamp(44px, 8.4vw, 104px); font-stretch: 118%; font-weight: 900; line-height: .94; letter-spacing: -0.025em; max-width: 11ch; }
.hero .lead { margin: 28px 0 36px; max-width: 46ch; font-size: clamp(17px, 2vw, 19px); color: #c9c8c1; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.corridor .cor-lights path { animation: flick 2.4s steps(1, end) 1 both; }
.corridor .cor-lights path:nth-child(2) { animation-delay: .15s; }
.corridor .cor-lights path:nth-child(3) { animation-delay: .3s; }
.corridor .cor-lights path:nth-child(4) { animation-delay: .45s; }
.corridor .cor-lights path:nth-child(5) { animation-delay: .6s; }
.corridor .cor-lights path:nth-child(6) { animation-delay: .75s; }
.corridor .cor-door { animation: door 4s ease-in-out 1.6s infinite alternate; }
@keyframes flick { 0% { fill-opacity: 0; } 8% { fill-opacity: 1; } 12% { fill-opacity: .1; } 20% { fill-opacity: 1; } 24% { fill-opacity: .3; } 30%, 100% { fill-opacity: 1; } }
@keyframes door { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .corridor * { animation: none !important; } }
@media (max-width: 760px) { .hero::after { background: linear-gradient(0deg, var(--void) 8%, rgba(9,11,17,.78) 60%, rgba(9,11,17,.55) 100%); } }

/* ---------- home: recruiting band (only shown while applications are open) ---------- */
.recruit { border-bottom: 1px solid var(--seam); background: var(--hall); }
.recruit .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.recruit p { margin: 0; color: var(--dust); }
.recruit strong { color: var(--ink); font-weight: 600; display: block; font-size: 17px; }

/* ---------- home: sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; border-bottom: 1px solid var(--seam); }
.section h2 { font-size: clamp(32px, 4.6vw, 52px); font-stretch: 110%; margin-bottom: 18px; max-width: 18ch; }
.section .intro { color: var(--dust); max-width: 58ch; font-size: 17px; }
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.studio h2 { margin-bottom: 0; }
.studio p { color: #c9c8c1; font-size: 17px; max-width: 54ch; }
.studio .pull { margin-top: 28px; padding-left: 18px; border-left: 2px solid var(--lamp); color: var(--ink); font-family: var(--display); font-stretch: 105%; font-weight: 600; font-size: 20px; line-height: 1.35; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } }

/* games */
.flagship { margin-top: 44px; display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--seam); border-radius: var(--r); overflow: hidden; background: var(--hall); }
.flagship .art { position: relative; min-height: 320px; background: #07080d; border-right: 1px solid var(--seam); }
.flagship .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flagship .body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.flagship .credit { color: var(--lamp); font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.flagship h3 { font-size: clamp(36px, 5vw, 60px); font-stretch: 120%; font-weight: 900; margin-bottom: 16px; }
.flagship p { color: #c9c8c1; }
.flagship .btn { align-self: flex-start; margin-top: 12px; }
@media (max-width: 860px) { .flagship { grid-template-columns: 1fr; } .flagship .art { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--seam); } }

.catalog { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--seam); border: 1px solid var(--seam); border-radius: var(--r); overflow: hidden; }
.catalog article { background: var(--hall); padding: 26px 24px 24px; display: flex; flex-direction: column; }
.catalog .credit { font-size: 13px; color: var(--dust); margin-bottom: 8px; }
.catalog h3 { font-size: 26px; font-stretch: 112%; margin-bottom: 10px; }
.catalog p { color: var(--dust); font-size: 15px; flex: 1; }
.store-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--seam-2); padding-bottom: 2px; align-self: flex-start; }
.store-link:hover { border-color: var(--lamp); color: var(--lamp); }
@media (max-width: 860px) { .catalog { grid-template-columns: 1fr; } }

/* community */
.community { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.dcard { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border: 1px solid var(--seam); border-radius: var(--r); background: var(--hall); flex-wrap: wrap; }
.dcard .who { display: flex; align-items: center; gap: 14px; }
.dcard .who svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--discord); fill: #fff; }
.dcard b { display: block; font-size: 17px; }
.dcard small { color: var(--dust); font-size: 14px; }
@media (max-width: 860px) { .community { grid-template-columns: 1fr; } }

.contact { text-align: left; }
.contact a.mail { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: clamp(20px, 3.4vw, 34px); text-decoration: none; border-bottom: 2px solid var(--signal); overflow-wrap: anywhere; }
.contact a.mail:hover { color: var(--lamp); border-color: var(--lamp); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--seam); padding: 40px 0 32px; color: var(--dust); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
footer .tag { max-width: 40ch; margin: 10px 0 0; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
footer nav a { text-decoration: none; color: var(--dust); }
footer nav a:hover { color: var(--ink); }
footer .legal { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid var(--seam); color: var(--dust-2); }
@media (max-width: 640px) { footer .wrap { grid-template-columns: 1fr; } }

/* ---------- privacy policy ---------- */
.doc-head { padding: clamp(56px, 8vw, 96px) 0 40px; border-bottom: 1px solid var(--seam); }
.doc-head h1 { font-size: clamp(40px, 6vw, 72px); font-stretch: 118%; font-weight: 900; }
.doc-head p { color: var(--dust); max-width: 60ch; margin: 16px 0 0; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 48px 20px 96px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--seam); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--dust); text-decoration: none; }
.toc a:hover { color: var(--ink); border-color: var(--lamp); }
.article { max-width: 68ch; }
.article section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--seam); scroll-margin-top: 88px; }
.article section:last-child { border-bottom: 0; }
.article h2 { font-size: 26px; font-stretch: 108%; margin-bottom: 16px; }
.article h3 { font-family: var(--body); font-size: 17px; font-weight: 600; margin: 24px 0 8px; letter-spacing: 0; }
.article p, .article li { color: #c9c8c1; }
.article ul { padding-left: 20px; margin: 0 0 1em; }
.article li { margin-bottom: 6px; }
.article a { color: var(--lamp); }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } }

/* ---------- apply form (Google Forms style) ---------- */
.form-page { padding: 40px 0 80px; background: radial-gradient(ellipse 80% 340px at 50% 0, rgba(239, 227, 176, .06), transparent); }
.form-col { max-width: 720px; margin: 0 auto; padding: 0 16px; display: grid; gap: 14px; }
.fcard { background: var(--hall); border: 1px solid var(--seam); border-radius: var(--r); padding: 24px; transition: border-color .15s; }
.fcard.head { border-top: 8px solid var(--signal); padding-top: 26px; }
.fcard.head h1 { font-size: clamp(30px, 5vw, 40px); font-stretch: 112%; margin-bottom: 12px; }
.fcard.head p { color: #c9c8c1; margin-bottom: 0; }
.fcard.head .who { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--seam); font-size: 14px; color: var(--signal-hi); }
.fcard.q { position: relative; }
.fcard.q:focus-within { border-color: var(--seam-2); box-shadow: inset 6px 0 0 -2px var(--lamp); }
.fcard.q.err { border-color: var(--signal); box-shadow: inset 6px 0 0 -2px var(--signal); }
.q-title { display: block; font-size: 17px; font-weight: 500; line-height: 1.45; margin-bottom: 4px; }
.q-title .req { color: var(--signal-hi); margin-left: 4px; }
.q-help { display: block; font-size: 14px; color: var(--dust); margin-bottom: 16px; }
.q-title + .field, .q-title + .choices { margin-top: 16px; }
.field {
  width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--seam-2); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 16px/1.5 var(--body); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: var(--dust-2); }
.field:focus { border-bottom-color: var(--lamp); box-shadow: 0 1px 0 var(--lamp); }
.field.short { max-width: 360px; }
textarea.field { resize: none; min-height: 40px; overflow: hidden; }
.err .field { border-bottom-color: var(--signal); }
.choices { display: grid; gap: 4px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; width: fit-content; }
.choice input { appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; border: 2px solid var(--dust); border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.choice input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); transform: scale(0); transition: transform .12s; }
.choice input:checked { border-color: var(--lamp); }
.choice input:checked::after { transform: scale(1); }
.q-error { display: none; align-items: center; gap: 8px; margin-top: 14px; color: var(--signal-hi); font-size: 14px; }
.q-error svg { width: 18px; height: 18px; flex: none; }
.err .q-error { display: flex; }
.q-note { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(224, 51, 79, .1); color: #f5b3bf; font-size: 14px; }
.count { display: block; text-align: right; font-size: 12px; color: var(--dust-2); margin-top: 6px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.linklike { background: none; border: 0; padding: 8px 4px; color: var(--signal-hi); font: 500 15px var(--body); cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.form-alert { padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--signal); background: rgba(224, 51, 79, .1); color: #f5c1ca; font-size: 15px; }
.form-fine { text-align: center; color: var(--dust-2); font-size: 13px; margin-top: 8px; }
.form-fine a { color: var(--dust); }
#apply-form { display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done-mark { width: 48px; height: 48px; border-radius: 50%; background: rgba(63, 191, 138, .14); color: var(--ok); display: grid; place-items: center; margin-bottom: 16px; }
.done-mark svg { width: 26px; height: 26px; }
.closed-mark { background: rgba(230, 180, 80, .12); color: var(--warn); }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 404 ---------- */
.lost { padding: clamp(80px, 14vw, 160px) 0; }
.lost h1 { font-size: clamp(48px, 9vw, 112px); font-stretch: 120%; font-weight: 900; margin-bottom: 20px; }
.lost p { color: var(--dust); max-width: 46ch; font-size: 18px; margin-bottom: 28px; }
