/* The studio's two typefaces, self-hosted (OFL, fonts/). */
@font-face { font-family: 'Bricolage Grotesque Variable'; src: url('../fonts/bricolage-grotesque-latin-wght.woff2') format('woff2-variations'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Space Grotesk Variable'; src: url('../fonts/space-grotesk-latin-wght.woff2') format('woff2-variations'); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }

/* The values a site may change. A game's palette overrides them after this file; everything else uses only these. */
:root {
  --bg: #fbf8f3; --paper: #ffffff; --ink: #121019; --muted: #5d5a68; --line: rgba(18, 16, 25, 0.1);
  --accent: #7b3bff; --on-accent: #ffffff;
  /* the studio's accents (the mark, the menus) */
  --pink: #ff2e88; --violet: #7b3bff; --cyan: #00c2ff; --lime: #c8ff2e; --yellow: #ffd21f; --orange: #ff7a1a;
  --spring: cubic-bezier(0.2, 1.5, 0.35, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --display: 'Bricolage Grotesque Variable', 'Arial Black', system-ui, sans-serif;
  --body: 'Space Grotesk Variable', system-ui, sans-serif;
}
/* Large monitors only: laptops (up to 1728 px wide) keep the cap they had. */
@media (min-width: 1800px) { :root { --max: 1600px; } }

/* Reset, type, focus, selection, skip link. */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { overflow-wrap: break-word; text-wrap: balance; }
p, li, td { overflow-wrap: break-word; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

@media (min-width: 1800px) { body { font-size: 18.5px; } }

/* The frame on every site: top bar, language and Projects menus, footer, the Scintlabs mark. Works alone (tokens.css is
   all it needs), so a site with its own base CSS can take only this. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* ---------- top bar (scintlabs.com .nav) ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter); background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: .04em; }
.brand b { font-weight: 800; color: var(--accent); }
.brand img { flex: none; width: 36px; height: 36px; border-radius: 11px; transition: transform .45s var(--spring); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-space { margin-left: auto; }
.nav-links a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 1080px) { .nav-links:not(.few) { display: none; } .nav-space { margin-left: auto; } .nav-links:not(.few) ~ .projects, .nav-space ~ .projects { margin-left: auto; } }
@media (max-width: 720px) { .nav-links.few { display: none; } .projects { margin-left: auto; } }
@media (max-width: 440px) { .brand-name { display: none; } }
@media (max-width: 380px) { .brand { font-size: 1rem; gap: 7px; } .brand img { width: 32px; height: 32px; } .lang-btn > svg:first-child { display: none; } .lang-btn { padding: 7px 10px; } }

/* language and Projects menus (scintlabs.com LangMenu) */
.lang { position: relative; flex: none; }
.lang-btn { display: flex; align-items: center; gap: 7px; padding: 7px 12px 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .82rem; font-weight: 700; letter-spacing: .04em; transition: background .2s, color .2s, border-color .2s; }
.lang-btn:hover { border-color: var(--ink); }
.lang.is-open .lang-btn { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.lang-chevron { transition: transform .35s var(--spring); }
.lang.is-open .lang-chevron { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; min-width: 220px; max-height: calc(100vh - 90px); overflow-y: auto; margin: 0; padding: 10px 8px 8px; list-style: none; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .7), 0 10px 24px -12px rgba(255, 106, 31, .25); transform-origin: top right; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.94); transition: opacity .15s ease, transform .3s ease, visibility 0s .3s; }
.lang-menu::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--lime), var(--cyan), var(--violet)); }
.lang.is-open .lang-menu, html:not(.js) .lang:focus-within .lang-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s ease, transform .4s var(--spring); }
.lang.is-open .lang-menu li { animation: lang-item .4s var(--spring) both; animation-delay: calc(var(--i) * 24ms + 40ms); }
@keyframes lang-item { from { opacity: 0; transform: translateX(10px); } }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px 8px 12px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .15s, color .15s; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--ink); color: var(--bg); outline: none; }
.lang-tag { padding: 2px 7px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .06em; }
.lang-menu a[aria-current='page'] .lang-tag { background: var(--accent); color: var(--on-accent); }
.lang-menu a[aria-current='page'] { font-weight: 800; }
.lang-menu a span:first-child { white-space: nowrap; }
.lang-menu .menu-icon { display: inline-flex; width: 24px; height: 24px; flex: none; }
.lang-menu .menu-icon svg { width: 24px; height: 24px; }
.projects .lang-menu::before { content: none; }
.lang-menu img.menu-icon { border-radius: 7px; }
.lang-menu .menu-group { padding: 10px 12px 4px; font: 700 .7rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lang-menu .menu-group:first-child { padding-top: 4px; }

/* ---------- footer (scintlabs.com) ---------- */
.footer { padding: 40px var(--gutter) 32px; overflow: hidden; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr 1.6fr; align-items: start; } }
.footer a[aria-current] { font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
/* 28 px rows: the links were 18 px tall, under the 24 px a finger needs (WCAG 2.2, 2.5.8) */
.footer li a, .fine a { display: inline-block; padding: 4px 0; line-height: 20px; }
.footer a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 25%, transparent); text-underline-offset: 3px; }
.footer a:hover { text-decoration-color: var(--accent); }
.foot-h { font: 700 .78rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.6rem; font-weight: 500; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.logo b { font-weight: 800; }
.logo .mark { margin-top: -6px; overflow: visible; }
.fine { max-width: var(--max); margin: 30px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .84rem; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.fine .tm { flex-basis: 100%; }
/* the Scintlabs mark */
.mark-bubble { opacity: 0; animation: bubble 2.6s ease-in infinite; }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 20%, 80% { opacity: .8; } 100% { transform: translateY(-11px); opacity: 0; } }
.mark-fizz, .mark-fizz-star, .mark-fizz-ring { animation-duration: 3.5s; animation-iteration-count: infinite; animation-delay: var(--delay); }
.mark-fizz { transform: translate(32px, 24px); animation-name: fizz-rise; animation-timing-function: cubic-bezier(.25, .6, .4, 1); }
@keyframes fizz-rise { 0% { transform: translate(32px, 24px); } 40%, 100% { transform: translate(calc(32px + var(--dx)), var(--dy)); } }
.mark-fizz-star, .mark-fizz-ring { transform-box: fill-box; transform-origin: center; }
.mark-fizz-star { opacity: 0; animation-name: fizz-star; animation-timing-function: ease-out; }
@keyframes fizz-star { 0% { transform: scale(.2) rotate(0); opacity: 0; } 8% { opacity: 1; } 38% { transform: scale(1) rotate(90deg); opacity: 1; } 44% { transform: scale(1.6) rotate(110deg); opacity: 0; } 100% { transform: scale(0); opacity: 0; } }
.mark-fizz-ring { opacity: 0; animation-name: fizz-ring; animation-timing-function: ease-out; }
@keyframes fizz-ring { 0%, 38% { transform: scale(.2); opacity: 0; } 40% { opacity: 1; } 56% { transform: scale(1.5); opacity: 0; } 100% { transform: scale(.2); opacity: 0; } }
.mark-liquid { animation: slosh 2.4s linear infinite; }
@keyframes slosh { to { transform: translateX(20px); } }

/* the beta address under a beta button */
.beta-mail { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; font-size: .95rem; }
.beta-mail a { color: inherit; padding: 4px 0; }
.beta-mail button { min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid currentColor; background: none; color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
/* skip link, for sites that take only this file */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
@media (max-width: 340px) { .brand-name { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mark-liquid, .mark-bubble, .mark-fizz, .mark-fizz-star, .mark-fizz-ring, .lang.is-open .lang-menu li { animation: none; }
  .lang-menu, .lang-chevron { transition: none; }
}

/* Sections, titles, cards, reveal, buttons. */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 120px) var(--gutter) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 28px; margin-bottom: 36px; }
.section-head:not(:has(.shots-nav)) { flex-direction: column; align-items: flex-start; }
.section-title { margin: 0; font-family: var(--display); font-size: clamp(2.3rem, 6.4vw, 4.6rem); font-weight: 800; line-height: .98; letter-spacing: -.04em; max-width: 20ch; }
.section-sub { margin: 0; max-width: 36em; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.15rem); }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .9s var(--spring); transition-delay: var(--rd, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

.card { position: relative; background: var(--paper); border-radius: 24px; border: 1px solid var(--line); transition: transform .5s var(--spring), box-shadow .4s ease, border-color .3s, opacity .7s ease; }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--accent) 55%, transparent); }
.card h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.3vw, 1.55rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

/* buttons: one filled action per screen, the rest outlined */
.btn, .ghost-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--accent); font-weight: 700; text-decoration: none; transition: background .2s, color .2s, transform .35s var(--spring); }
.btn { background: var(--accent); color: var(--on-accent); }
.ghost-btn { color: var(--accent); }
.ghost-btn:hover { background: var(--accent); color: var(--on-accent); }
.btn:hover, .ghost-btn:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Mercy Protocol over the site-kit frame. No images (Marco 30/11): dark colour fields and type only. Grey and green are the
   base, orange is what people made, and the one violet field is the machine's (Marco 22/11). */
:root {
  --bg: #0c100e; --paper: #141a16; --ink: #dfe6dd; --muted: #98a598; --line: rgba(200, 222, 205, 0.14);
  --accent: #e0813a; --on-accent: #14100b; --moss: #8fb07f;
  color-scheme: dark;
}
.brand-name { letter-spacing: .02em; }
.brand b { color: var(--muted); font-weight: 600; }
@media (max-width: 440px) { .brand-name { display: inline; font-size: 1rem; white-space: normal; line-height: 1; } .brand b { display: block; } }

.hero { min-height: min(88svh, 1180px); display: flex; align-items: flex-end; padding: 96px 0 clamp(48px, 7vw, 88px); background: radial-gradient(120% 90% at 85% 0%, #24301f 0%, transparent 60%), linear-gradient(180deg, #111813, var(--bg)); }
.hero-in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.notice { position: relative; display: grid; margin: 0 0 clamp(20px, 4vw, 40px); padding-left: 18px; border-left: 3px solid var(--moss); color: var(--moss); font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 500; }
.notice span { grid-area: 1 / 1; opacity: 0; animation: notice 15s infinite; animation-delay: calc(var(--n) * 5s); }
@keyframes notice { 0%, 34%, 100% { opacity: 0; } 4%, 30% { opacity: 1; } }
.wordmark { margin: 0 0 0 -.05em; font-family: var(--display); font-weight: 800; font-size: clamp(3.1rem, 12.2vw, min(16rem, 23svh)); line-height: .84; letter-spacing: -.045em; }
.wordmark span { display: block; }
.wordmark span + span { color: #5d6d5e; }
.tagline { margin: clamp(20px, 3vw, 32px) 0 10px; font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 3vw, 2.1rem); line-height: 1.12; }
.lead { margin: 0 0 28px; max-width: 34em; color: #bcc8bb; font-size: 1.08rem; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ghost-btn { color: var(--ink); border-color: #4b5a4d; }
.ghost-btn:hover { background: var(--ink); color: var(--bg); }
.status { color: var(--muted); font-size: .92rem; padding: 0 6px; }

/* the five requests: rows of colour, full width */
.requests { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.request { --c: #16241a; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 35%, var(--bg)) 70%); border-bottom: 1px solid var(--line); }
.request:nth-child(1) { --c: #1d3320; } .request:nth-child(2) { --c: #332d1c; } .request:nth-child(3) { --c: #2a3133; } .request:nth-child(4) { --c: #2a1f3d; } .request:nth-child(5) { --c: #16302a; }
.request-in { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 4.2vw, 52px) var(--gutter); display: grid; gap: 14px 48px; grid-template-columns: 1fr; align-items: baseline; }
@media (min-width: 900px) { .request-in { grid-template-columns: 1.15fr .8fr 1.3fr; } }
.request h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: -.03em; }
.request dl { display: contents; }
.request dt { font-size: .86rem; color: #aab6a9; margin-bottom: 2px; }
.request dd { margin: 0; font-size: 1.08rem; }
.request .ask dd { font-weight: 700; }

.tech { margin: 0; padding: 0; list-style: none; columns: 1; }
.tech li { display: grid; gap: 2px 32px; padding: 20px 0; border-top: 1px solid var(--line); break-inside: avoid; }
@media (min-width: 760px) { .tech li { grid-template-columns: 1fr 1.2fr; align-items: baseline; } }
.tech h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -.02em; }
.tech p { margin: 0; color: var(--muted); }

.squads { display: grid; gap: 36px; margin: 0 0 44px; padding: 0; list-style: none; }
@media (min-width: 760px) { .squads { grid-template-columns: repeat(3, 1fr); } }
.squads strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1; letter-spacing: -.03em; color: var(--moss); margin-bottom: 10px; }
.squads p, .notes li { margin: 0; color: var(--muted); }
.notes { margin: 0; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 14px 40px; }
@media (min-width: 900px) { .notes { grid-template-columns: repeat(3, 1fr); } }
.notes li { color: var(--ink); }

.island { margin-top: clamp(72px, 10vw, 120px); background: linear-gradient(180deg, #16221a, #0f1612); }
.island-in { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter); display: grid; gap: 28px 64px; }
@media (min-width: 900px) { .island-in { grid-template-columns: 1fr 1.1fr; } }
.island p { margin: 0 0 20px; font-size: 1.12rem; max-width: 36em; }
.end { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 140px) var(--gutter); }
.end p { margin: 18px 0 28px; max-width: 34em; color: var(--muted); font-size: 1.1rem; }
.nf { min-height: 70svh; }
.wide-head { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 120px) var(--gutter) 0; }
@media (prefers-reduced-motion: reduce) { .notice span:first-child { opacity: 1; } }
/* a phone on its side: the name on one line, so the first action is on the first screen */
@media (max-height: 500px) and (min-width: 600px) {
  .hero { min-height: 0; padding: 28px 0 36px; }
  .notice { margin-bottom: 14px; }
  .wordmark { font-size: clamp(2.6rem, 10.4vw, 5.6rem); }
  .wordmark span { display: inline; }
  .wordmark span + span { margin-left: .18em; }
  .tagline { margin-top: 14px; }
  .lead { margin-bottom: 16px; }
}
@media (max-width: 600px) and (min-height: 501px) { .wordmark { font-size: 20vw; } .status { padding: 0; } }
@media (max-width: 340px) { .brand-name { display: none !important; } }
.beta-mail { display: flex; color: var(--muted); }
