/* SOCIANOVATION public site */

/* Palette from the brand guideline: Dark Slate #0F172A for text and the
   logo line, Social Orange #F97316 for accents, Pure White surfaces and
   Growth Emerald #10B981 as the optional secondary accent. */
:root {
    --paper: #f8fafc;
    --paper-deep: #f1f5f9;
    --surface: #ffffff;
    --ink: #0f172a;
    --ink-soft: #475569;
    --ink-faint: #64748b;
    --line: #e2e8f0;
    --night: #0f172a;
    --night-2: #1e293b;
    --night-line: rgba(255, 255, 255, 0.1);
    --on-night: #f8fafc;
    --on-night-soft: #94a3b8;

    --brand: #f97316;
    --brand-deep: #c2410c;
    --brand-soft: #ffedd5;
    --brand-on-night: #fb923c;
    --emerald: #10b981;

    --pet: #19b98f;
    --pet-soft: #d9f6ec;
    --quest: #f5a300;
    --quest-soft: #fff0cc;
    --wars: #4a63ff;
    --wars-soft: #e0e5ff;

    --font-display: "Montserrat", "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

    --header-h: 4.25rem;
    --measure: 74rem;
    --radius: 1.25rem;
    --radius-lg: 1.75rem;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.07);
    --shadow-lift: 0 2px 4px rgba(15, 23, 42, 0.06), 0 22px 50px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--brand-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.6rem, 6.4vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.3rem;
}

p {
    margin: 0;
    text-wrap: pretty;
}

address {
    font-style: normal;
}

.muted {
    color: var(--ink-faint);
    font-weight: 500;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 0.4rem;
}

.icon-sprite {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    background: var(--ink);
    color: #fff;
}

.skip-link:focus {
    top: 1rem;
}

.wrap {
    width: 100%;
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Shared bits ---------- */

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
    color: var(--brand-deep);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: currentColor;
}

.lead {
    color: var(--ink-soft);
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.1rem;
    padding: 0.7rem 1.4rem;
    border: 2px solid var(--brand);
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font: 700 1rem/1 var(--font-sans);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    color: #fff;
    transform: translateY(-2px);
}

.btn svg {
    width: 1.1rem;
    height: 1.1rem;
    transition: transform 0.18s ease;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-ghost {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}

.btn-ghost:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.on-night .btn-ghost:hover {
    background: #fff;
    border-color: #fff;
    color: var(--night);
}

.btn-sm {
    min-height: 2.5rem;
    padding: 0.5rem 1.1rem;
    font-size: 0.92rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    text-decoration: none;
}

.text-link svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.18s ease;
}

.text-link:hover svg {
    transform: translateX(3px);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--g-soft, var(--paper-deep));
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Per-game colour: set --g inline on an element carrying data-game; the
   soft tint is derived from it. */
[data-game] {
    --g: var(--brand);
    --g-soft: color-mix(in srgb, var(--g) 16%, #ffffff);
}

.art-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--g-soft, var(--paper-deep));
    color: var(--g, var(--ink-faint));
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    border-radius: inherit;
}

.team-placeholder {
    aspect-ratio: 1;
    border-radius: 0;
}

.other-game .art-placeholder {
    width: 8.5rem;
    flex: none;
    font-size: 2.5rem;
    border-radius: 1rem;
}

.contact-lines {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.contact-lines li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-lines svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
    color: var(--brand-on-night);
}

.contact-card .contact-lines a {
    color: var(--on-night);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

/* The blur sits on a pseudo-element: backdrop-filter on the header itself
   would become the containing block for the fixed mobile nav panel. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo: the "S" circuit icon next to the Montserrat Black logotype. The
   icon's line follows currentColor, so it turns white on dark grounds. */
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.wordmark-mark {
    width: auto;
    height: 2rem;
    flex: none;
}

.wordmark-text {
    display: flex;
    flex-direction: column;
}

.wordmark-tag {
    margin-top: 0.45rem;
    color: var(--brand);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.wordmark-lg {
    gap: 0.8rem;
    font-size: 1.6rem;
}

.wordmark-lg .wordmark-mark {
    height: 3rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-nav a:not(.btn) {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a.is-active:not(.btn) {
    background: var(--paper-deep);
}

.site-nav .btn {
    margin-left: 0.5rem;
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
    margin: auto;
}

.nav-toggle .icon-close,
.nav-open .nav-toggle .icon-menu {
    display: none;
}

.nav-open .nav-toggle .icon-close {
    display: block;
}

/* ---------- Sections ---------- */

.section {
    padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section-tight {
    padding-top: 0;
}

.section-head {
    max-width: 44rem;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head .lead {
    margin-top: 1.1rem;
}

.section-head-split {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: none;
}

.section-head-split > div {
    max-width: 44rem;
}

.on-night {
    background: var(--night);
    color: var(--on-night);
}

.on-night .lead,
.on-night .muted {
    color: var(--on-night-soft);
}

.on-night .kicker {
    color: var(--brand-on-night);
}

/* ---------- Home hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(38rem 26rem at 85% 20%, rgba(249, 115, 22, 0.24), transparent 70%),
        radial-gradient(30rem 22rem at 70% 90%, rgba(16, 185, 129, 0.16), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 4rem);
}

.hero h1 em {
    font-style: normal;
    color: var(--brand);
}

.hero .lead {
    max-width: 34rem;
    margin-top: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

/* The "feed" collage on the right of the home hero. */
.feed {
    position: relative;
    min-height: 30rem;
}

.feed-card {
    position: absolute;
    width: min(18.5rem, 72%);
    padding: 0.7rem;
    border-radius: var(--radius-lg);
    background: var(--night-2);
    border: 1px solid var(--night-line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    color: var(--on-night);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.feed-card:hover {
    transform: translateY(-6px) rotate(0deg) !important;
    z-index: 5;
}

.feed-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 0.5rem);
    background: var(--g-soft);
}

.feed-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.4rem 0.25rem;
}

.feed-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.2;
}

.feed-card small {
    color: var(--on-night-soft);
    font-size: 0.78rem;
}

.feed-like {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    flex: none;
    border-radius: 50%;
    background: var(--g);
    color: #fff;
}

.feed-like svg {
    width: 1rem;
    height: 1rem;
}

.feed-card:nth-child(1) {
    top: 0;
    left: 4%;
    transform: rotate(-6deg);
}

.feed-card:nth-child(2) {
    top: 18%;
    right: 0;
    transform: rotate(5deg);
    z-index: 2;
}

.feed-card:nth-child(3) {
    bottom: 0;
    left: 16%;
    transform: rotate(-2deg);
    z-index: 3;
}

.feed-bubble {
    position: absolute;
    z-index: 4;
    padding: 0.6rem 1rem;
    border-radius: 1.2rem 1.2rem 1.2rem 0.3rem;
    background: #fff;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
    animation: bob 5s ease-in-out infinite;
}

.feed-bubble-a {
    top: 44%;
    left: -2%;
}

.feed-bubble-b {
    right: 2%;
    bottom: 12%;
    border-radius: 1.2rem 1.2rem 0.3rem 1.2rem;
    background: var(--brand);
    color: #fff;
    animation-delay: -2.5s;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- Facts strip ---------- */

.facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--night-line);
    list-style: none;
}

.facts li {
    padding: 1.6rem 1.25rem 1.6rem 0;
}

.facts li + li {
    padding-left: 1.25rem;
    border-left: 1px solid var(--night-line);
}

.facts strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
}

.facts span {
    color: var(--on-night-soft);
    font-size: 0.9rem;
}

/* ---------- Pillars ---------- */

.pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.pillar {
    padding: 2rem 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.pillar-icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.pillar-icon svg {
    width: 1.6rem;
    height: 1.6rem;
}

.pillar h3 {
    margin-bottom: 0.7rem;
}

.pillar p {
    color: var(--ink-soft);
}

/* ---------- Game cards (home) ---------- */

.game-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.game-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.game-card-art {
    aspect-ratio: 4 / 3;
    background: var(--g-soft);
}

.game-card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem 1.5rem 1.6rem;
}

.game-genre {
    color: var(--g);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    filter: brightness(0.85);
}

.game-card h3 {
    font-size: 1.6rem;
}

.game-card p {
    color: var(--ink-soft);
}

.game-card .text-link {
    margin-top: auto;
    padding-top: 0.6rem;
    color: var(--ink);
}

/* ---------- Principles ---------- */

.principles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: principle;
}

.principles li {
    padding: 0 1.5rem 0 0;
    counter-increment: principle;
}

.principles li + li {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
}

.on-night .principles li + li {
    border-left-color: var(--night-line);
}

.principles li::before {
    content: "0" counter(principle);
    display: block;
    margin-bottom: 1.25rem;
    color: var(--brand);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
}

.principles h3 {
    margin-bottom: 0.6rem;
}

.principles p {
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.on-night .principles p {
    color: var(--on-night-soft);
}

/* ---------- Call to action ---------- */

.cta {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: center;
    gap: 2rem;
    padding: clamp(2.5rem, 6vw, 4.5rem);
    border-radius: 2rem;
    background: var(--brand);
    color: #fff;
}

.cta::after {
    content: "";
    position: absolute;
    right: -6rem;
    top: -6rem;
    width: 22rem;
    height: 22rem;
    border-radius: 50% 50% 50% 2rem;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.cta p {
    max-width: 36rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
}

.cta .btn {
    position: relative;
    z-index: 1;
    background: var(--ink);
    border-color: var(--ink);
}

.cta .btn:hover {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.page-hero h1 {
    max-width: 52rem;
    font-size: clamp(2.4rem, 5.6vw, 4.3rem);
}

.page-hero .lead {
    max-width: 40rem;
    margin-top: 1.4rem;
}

/* ---------- Games index ---------- */

.game-rows {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.game-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(1rem, 2vw, 1.25rem);
    padding-right: clamp(1.5rem, 4vw, 3.5rem);
    border-radius: 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
}

.game-row:nth-child(even) {
    padding-right: clamp(1rem, 2vw, 1.25rem);
    padding-left: clamp(1.5rem, 4vw, 3.5rem);
}

.game-row:nth-child(even) .game-row-art {
    order: 2;
}

.game-row-art {
    overflow: hidden;
    border-radius: 1.4rem;
    background: var(--g-soft);
}

.game-row-art img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.game-row h2 {
    margin: 0.5rem 0 1rem;
}

.game-row .lead {
    font-size: 1.1rem;
}

.game-row .tags {
    margin: 1.5rem 0 2rem;
}

/* ---------- Game detail ---------- */

.game-hero {
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 7vw, 5rem);
    background: var(--g-soft);
}

.game-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.breadcrumb a {
    color: var(--ink-soft);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--ink);
}

.game-hero .game-genre {
    display: block;
    margin-bottom: 0.75rem;
}

.game-hero h1 {
    font-size: clamp(2.8rem, 6.4vw, 4.8rem);
}

.game-hero .lead {
    margin-top: 1.25rem;
    color: var(--ink);
}

.game-hero .tags {
    margin-top: 1.5rem;
}

.game-hero .tags li {
    background: rgba(255, 255, 255, 0.75);
}

.game-hero .hero-actions .btn {
    background: var(--ink);
    border-color: var(--ink);
}

.game-hero .hero-actions .btn:hover {
    background: var(--g);
    border-color: var(--g);
}

.game-hero .hero-actions .btn-ghost {
    background: transparent;
    color: var(--ink);
}

.game-hero .hero-actions .btn-ghost:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.game-hero-art {
    overflow: hidden;
    border-radius: 2rem;
    box-shadow: var(--shadow-lift);
}

.game-hero-art img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.game-about {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 4rem);
}

.game-about h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.game-about p {
    color: var(--ink-soft);
    font-size: 1.15rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: clamp(3rem, 6vw, 4.5rem) 0 0;
    padding: 0;
    list-style: none;
}

.features li {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 5px solid var(--g);
}

.features h3 {
    margin-bottom: 0.6rem;
}

.features p {
    color: var(--ink-soft);
}

.other-games {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.other-game {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.other-game:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.other-game img {
    width: 8.5rem;
    aspect-ratio: 4 / 3;
    flex: none;
    object-fit: cover;
    border-radius: 1rem;
    background: var(--g-soft);
}

.other-game strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.15;
}

/* ---------- About ---------- */

.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
}

.about-intro .big {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.about-intro .body {
    display: grid;
    gap: 1.1rem;
    color: var(--ink-soft);
}

.statements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.statement {
    padding: clamp(2rem, 4vw, 2.75rem);
    border-radius: var(--radius-lg);
    background: var(--night-2);
    border: 1px solid var(--night-line);
}

.statement h3 {
    margin-bottom: 1rem;
    color: var(--brand-on-night);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.statement p {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0.6rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--line);
}

.timeline li {
    position: relative;
    padding-top: 2.4rem;
}

.timeline li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--brand);
}

.timeline li:last-child::before {
    background: var(--brand);
}

.timeline-when {
    margin-bottom: 0.4rem;
    color: var(--brand-deep);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.timeline h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline p {
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.25rem;
    max-width: 40rem;
}

.team-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
}

.team-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--paper-deep);
}

.team-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem 1.25rem;
}

.team-card h3 {
    font-size: 1.2rem;
}

.team-card p {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.team-card a {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    flex: none;
    border-radius: 50%;
    background: var(--paper-deep);
    color: var(--ink);
}

.team-card a:hover {
    background: var(--ink);
    color: #fff;
}

.team-card a svg {
    width: 1.05rem;
    height: 1.05rem;
}

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.field label,
.field legend {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 0.9rem;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
}

.field textarea {
    min-height: 9rem;
    resize: vertical;
}

fieldset.field {
    margin: 0;
    padding: 0;
    border: 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chips label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.chips input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.chips span {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.chips input:checked + span {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.chips input:focus-visible + span {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.contact-form .btn {
    justify-self: start;
}

.contact-side {
    display: grid;
    gap: 1.25rem;
}

.contact-card {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--night);
    color: var(--on-night);
}

.contact-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.contact-card p {
    color: var(--on-night-soft);
}

.contact-card .address {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--night-line);
    color: var(--on-night);
}

.contact-card .address svg {
    width: 1.3rem;
    height: 1.3rem;
    flex: none;
    margin-top: 0.2rem;
    color: var(--brand-on-night);
}

.contact-map {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--paper-deep);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 18rem;
    border: 0;
}

.thanks {
    min-height: 60vh;
    display: grid;
    align-items: center;
}

.thanks-mark {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 2rem;
    border-radius: 50% 50% 50% 0.6rem;
    background: var(--brand);
    color: #fff;
}

.thanks-mark svg {
    width: 2rem;
    height: 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
    background: var(--night);
    color: var(--on-night-soft);
    font-size: 0.95rem;
}

.site-footer .wordmark {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--night-line);
}

.footer-brand p {
    max-width: 22rem;
    margin: 1rem 0 1.5rem;
}

.footer-col h2 {
    margin-bottom: 1rem;
    color: var(--on-night);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-col ul {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:not(.wordmark) {
    color: var(--on-night-soft);
    text-decoration: none;
}

.site-footer a:not(.wordmark):hover {
    color: #fff;
}

.socials {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.socials a {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--night-line);
}

.socials a:hover {
    background: var(--brand);
    border-color: var(--brand);
}

.socials svg {
    width: 1.1rem;
    height: 1.1rem;
}

.footer-legal {
    padding-top: 1.75rem;
    font-size: 0.85rem;
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .hero-grid,
    .game-hero-grid {
        grid-template-columns: 1fr;
    }

    .feed {
        min-height: 27rem;
        max-width: 34rem;
        width: 100%;
        margin: 0 auto;
    }

    .pillars,
    .game-cards {
        grid-template-columns: 1fr;
    }

    .game-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .principles,
    .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2.5rem;
    }

    .principles li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .timeline::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1.5rem 1.25rem;
        background: var(--paper);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .nav-open .site-nav {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .site-nav a:not(.btn) {
        padding: 0.9rem 1rem;
        font-family: var(--font-display);
        font-size: 1.6rem;
    }

    .site-nav .btn {
        margin: 1rem 0 0;
        min-height: 3.25rem;
        font-size: 1rem;
    }

    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facts li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .facts li:nth-child(n + 3) {
        border-top: 1px solid var(--night-line);
    }

    .game-row,
    .game-row:nth-child(even) {
        grid-template-columns: 1fr;
        padding: 1rem 1rem 2rem;
    }

    .game-row:nth-child(even) .game-row-art {
        order: 0;
    }

    .game-row-text {
        padding: 0 0.75rem;
    }

    .game-about,
    .about-intro,
    .statements,
    .contact-grid,
    .cta {
        grid-template-columns: 1fr;
    }

    .features,
    .other-games {
        grid-template-columns: 1fr;
    }

    .cta .btn {
        justify-self: start;
    }
}

@media (max-width: 600px) {
    .feed {
        min-height: 23rem;
    }

    .feed-card {
        width: 64%;
        padding: 0.5rem;
    }

    .feed-card-body {
        padding: 0.55rem 0.25rem 0.15rem;
    }

    .feed-card strong {
        font-size: 0.92rem;
    }

    .feed-card small,
    .feed-like {
        display: none;
    }

    .feed-bubble {
        font-size: 0.8rem;
    }

    .game-cards,
    .principles,
    .timeline,
    .field-row {
        grid-template-columns: 1fr;
    }

    .principles li,
    .principles li + li {
        padding: 0;
        border-left: 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .other-game img {
        width: 6.5rem;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }
}
