/* Innovalogic public theme. Colours, fonts and corner radius come from
   CSS variables set in the layout (Admin > Appearance). No images are used
   for decoration: every shape here is drawn in CSS. */

:root {
  --brand: #2D5BFF;
  --accent: #FFB627;
  --mint: #0FA47F;
  --rose: #FF4D6D;
  --ink: #0E1530;
  --paper: #F6F7FB;
  --surface: #FFFFFF;
  --text: #0E1530;
  --muted: #56607F;
  --line: rgba(14, 21, 48, .13);
  --soft: rgba(14, 21, 48, .05);
  --on-brand: #FFFFFF;
  --r: 14px;
  --r-sm: calc(var(--r) * .55);
  --font-display: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(14, 21, 48, .06), 0 12px 32px -12px rgba(14, 21, 48, .18);
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #0A1026;
  --surface: #121A38;
  --text: #EEF1FA;
  --muted: #A3ADCB;
  --line: rgba(238, 241, 250, .14);
  --soft: rgba(238, 241, 250, .06);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, iframe, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.7rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .82em 1.35em; border-radius: var(--r-sm);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  background: var(--brand); color: var(--on-brand); transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--brand); }
.btn:active { transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { box-shadow: none; border-color: var(--text); }
.btn-accent { background: var(--accent); color: #1B1403; }
.btn-accent:hover { box-shadow: 0 8px 20px -8px var(--accent); }
.btn-sm { padding: .55em .95em; font-size: .92rem; }
.link { font-weight: 600; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: .35em; }
[data-theme="dark"] .link { color: color-mix(in srgb, var(--brand) 55%, #fff); }
.link:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.4rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.3rem/1 var(--font-display); letter-spacing: -.03em; text-decoration: none; }
.logo img { height: 2.1rem; width: auto; }
/* Logo mark: an AND gate drawn with two shapes */
.logo-mark { width: 1.9rem; height: 1.9rem; border-radius: 6px 50% 50% 6px; background: var(--brand); position: relative; flex: none; }
.logo-mark::after { content: ""; position: absolute; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); right: -.2rem; top: calc(50% - .25rem); box-shadow: 0 0 0 3px var(--paper); }
.nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav a { padding: .5rem .8rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); }
.nav a[aria-current="page"] { font-weight: 650; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { width: 2.6rem; height: 2.6rem; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
[data-theme="dark"] .only-light, [data-theme="light"] .only-dark { display: none; }
.nav-toggle { display: none; }
@media (max-width: 940px) {
  .nav-toggle { display: inline-grid; }
  .nav { position: absolute; inset: 100% 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; display: none; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .6rem; font-size: 1.05rem; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { margin: .6rem 0 0; max-width: 52ch; color: var(--muted); }
.band-ink { background: var(--ink); color: #EEF1FA; --text: #EEF1FA; --muted: #A9B2CF; --line: rgba(238, 241, 250, .16); --soft: rgba(238, 241, 250, .07); --surface: #161F42; }
.band-mint { background: color-mix(in srgb, var(--mint) 9%, var(--paper)); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.5rem; }
.hero-contact { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--muted); font-size: .98rem; }
.hero-contact a { text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.hero-contact a:hover { color: var(--text); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The logic puzzle (Lights Out) shown in the hero */
.board { background: var(--ink); color: #EEF1FA; border-radius: calc(var(--r) * 1.4); padding: clamp(1.1rem, 2.5vw, 1.75rem); box-shadow: var(--shadow); position: relative; max-width: 30rem; justify-self: end; width: 100%; }
[data-theme="dark"] .board { outline: 1px solid var(--line); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.board-head strong { font: 650 1.05rem/1.2 var(--font-display); }
.board-head span { font-size: .9rem; color: #A9B2CF; font-variant-numeric: tabular-nums; }
.lights { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.35rem, 1vw, .6rem); }
.light { aspect-ratio: 1; border: 0; border-radius: var(--r-sm); background: #1C2752; cursor: pointer; position: relative; transition: background .18s, transform .12s, box-shadow .18s; }
.light::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: #2A376B; transition: background .18s; }
.light[aria-pressed="true"] { background: var(--accent); box-shadow: 0 0 26px -4px var(--accent); }
.light[aria-pressed="true"]::after { background: #FFF3D1; }
.light:active { transform: scale(.94); }
.board-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; font-size: .92rem; color: #A9B2CF; }
.board-foot button { background: none; border: 1px solid rgba(238, 241, 250, .25); color: inherit; border-radius: var(--r-sm); padding: .4rem .8rem; font: inherit; cursor: pointer; }
.board-foot button:hover { color: #fff; border-color: #fff; }
.board.solved .lights { animation: solved .7s ease; }
@keyframes solved { 40% { transform: scale(1.03) rotate(-1deg); } }

/* Clients strip */
.clients { border-block: 1px solid var(--line); padding: 1.1rem 0; }
.clients .wrap { display: flex; flex-wrap: wrap; gap: .6rem 2.2rem; align-items: baseline; color: var(--muted); font-size: .98rem; }
.clients strong { color: var(--text); font-weight: 600; }

/* Services: a ruled list, not cards */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split > :first-child { position: sticky; top: 6.5rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split > :first-child { position: static; } }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 1.25rem; align-items: start; padding: 1.5rem .25rem; text-decoration: none; transition: padding .2s, background .2s; }
.row:hover { background: var(--soft); padding-inline: 1rem; }
.row-icon { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: var(--r-sm); background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
[data-theme="dark"] .row-icon { color: color-mix(in srgb, var(--brand) 50%, #fff); }
.row-icon .icon { width: 1.5rem; height: 1.5rem; }
.row h3 { margin: 0 0 .3rem; }
.row p { margin: 0; color: var(--muted); max-width: 58ch; }
.row .go { align-self: center; color: var(--muted); }
@media (max-width: 560px) { .row { grid-template-columns: 2.6rem 1fr; } .row .go { display: none; } .row-icon { width: 2.6rem; height: 2.6rem; } }

/* Tool tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.tile { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--c, var(--brand)); transform: translateY(-2px); }
.tile-icon { width: 3rem; height: 3rem; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--c, var(--brand)) 16%, transparent); }
.tile h3 { font-size: 1.08rem; margin: 0 0 .25rem; }
.tile p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.tile small { display: inline-block; margin-top: .55rem; font-size: .8rem; font-weight: 600; color: var(--muted); }

/* Process: a real sequence, so it is numbered */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 2px solid var(--text); padding-top: 1.1rem; }
.steps li::before { content: counter(step); font: 700 3rem/1 var(--font-display); color: var(--brand); display: block; margin-bottom: .75rem; }
[data-theme="dark"] .steps li::before { color: var(--accent); }
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--muted); margin: 0; }

/* Game cartridges */
.carts { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 1.1rem; }
.cart { --c: var(--rose); display: block; text-decoration: none; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.cart:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 18px 30px -16px var(--c); }
.cart-art {
  aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: clamp(3rem, 6vw, 4rem); position: relative;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 45%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .09) 0 2px, transparent 2px 6px),
    linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #1B0B3A));
}
.cart-art span { filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .22)); transition: transform .2s; }
.cart:hover .cart-art span { transform: scale(1.12) rotate(4deg); }
.cart-body { padding: .8rem .95rem 1rem; }
.cart-body h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.cart-body small { color: var(--muted); font-size: .85rem; }
.cart-lg { grid-column: span 2; grid-row: span 2; }
.cart-lg .cart-art { aspect-ratio: 16 / 11; font-size: clamp(5rem, 11vw, 8rem); }
.cart-lg h3 { font-size: 1.5rem; }
.cart-lg p { color: var(--muted); margin: .4rem 0 0; }
@media (max-width: 560px) { .carts { grid-template-columns: repeat(2, 1fr); } }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.5rem 2.5rem; }
.numbers div { border-left: 2px solid var(--accent); padding-left: 1.1rem; }
.numbers b { font: 700 clamp(2.4rem, 5vw, 3.6rem)/1 var(--font-display); display: block; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.numbers span { color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; max-width: 56rem; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); }
.plan .price { font: 700 2.3rem/1.1 var(--font-display); letter-spacing: -.03em; margin: .5rem 0 .2rem; }
.plan ul { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .6rem; }
.plan li { display: flex; gap: .6rem; align-items: start; }
.plan li .icon { color: var(--mint); margin-top: .2em; }
.plan .btn { margin-top: auto; justify-content: center; }

/* Testimonials */
.quotes { columns: 3 19rem; column-gap: 1.25rem; }
.quote { break-inside: avoid; margin: 0 0 1.25rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.quote blockquote { margin: 0 0 1rem; font-size: 1rem; line-height: 1.6; }
.quote figcaption { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-size: .93rem; }
.quote figcaption b { font-weight: 650; }
.quote figcaption span { color: var(--muted); }
.stars { color: var(--accent); white-space: nowrap; font-weight: 650; font-size: .9rem; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr)); gap: 2rem 1.5rem; }
.post-card { display: flex; flex-direction: column; text-decoration: none; }
.post-card h3 { margin: 1rem 0 .4rem; font-size: 1.22rem; }
.post-card:hover h3 { text-decoration: underline; text-decoration-thickness: .08em; }
.post-card p { color: var(--muted); font-size: .97rem; margin: 0 0 .75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: auto; }
/* Generated cover: colour is derived from the post, shapes are two overlapping logic "inputs" */
.cover { --h: 220; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; position: relative; display: block;
  background:
    radial-gradient(circle at 78% 30%, hsl(calc(var(--h) + 40) 90% 68% / .9) 0 17%, transparent 17.5%),
    radial-gradient(circle at 64% 58%, hsl(calc(var(--h) - 30) 85% 60% / .85) 0 24%, transparent 24.5%),
    radial-gradient(rgba(255, 255, 255, .22) 1.2px, transparent 1.4px) 0 0 / 18px 18px,
    linear-gradient(140deg, hsl(var(--h) 62% 30%), hsl(calc(var(--h) + 25) 70% 18%));
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-label { position: absolute; left: 1rem; bottom: .9rem; color: #fff; font: 650 .92rem/1.2 var(--font-display); background: rgba(8, 12, 30, .45); padding: .35rem .7rem; border-radius: 99px; backdrop-filter: blur(4px); }
.post-lead { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; margin-bottom: 3rem; text-decoration: none; }
.post-lead h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 .6rem; }
.post-lead p { color: var(--muted); }
@media (max-width: 760px) { .post-lead { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.chip { display: inline-flex; gap: .4em; align-items: center; padding: .42rem .9rem; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; font-size: .93rem; font-weight: 500; background: transparent; color: inherit; cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--text); }
.chip[aria-current="true"], .chip[aria-pressed="true"] { background: var(--text); color: var(--paper); border-color: var(--text); }
.chip small { opacity: .65; }

/* FAQ */
.faq { max-width: 50rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; font: 650 1.12rem/1.35 var(--font-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.6rem; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 2.5rem 1.4rem 0; color: var(--muted); white-space: pre-line; }

/* Call to action */
.cta { background: var(--brand); color: var(--on-brand); border-radius: calc(var(--r) * 1.5); padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 22rem; height: 22rem; border-radius: 50%; border: 3.5rem solid rgba(255, 255, 255, .08); right: -6rem; top: -9rem; }
.cta h2 { margin: 0 0 .4rem; }
.cta p { margin: 0; opacity: .88; max-width: 48ch; }
.cta > * { position: relative; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Page header for inner pages */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 22ch; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Long-form text */
.prose { max-width: 72ch; font-size: 1.1rem; line-height: 1.75; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.75rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.32rem; margin-top: 1.8em; }
.prose h4, .prose h5 { font-size: 1.1rem; margin-top: 1.5em; }
.prose a { color: var(--brand); }
[data-theme="dark"] .prose a { color: color-mix(in srgb, var(--brand) 50%, #fff); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--r); display: block; }
.prose blockquote { border-left: 3px solid var(--accent); margin-inline: 0; padding: .2em 0 .2em 1.2em; color: var(--muted); font-size: 1.15rem; }
.prose pre { background: var(--ink); color: #E6EAF8; padding: 1.1rem 1.25rem; border-radius: var(--r-sm); overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; background: var(--soft); padding: .12em .35em; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--soft); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* Article layout */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.article aside { position: sticky; top: 6rem; display: grid; gap: 1.5rem; }
@media (max-width: 1000px) { .article { grid-template-columns: 1fr; } .article aside { position: static; } }
.toc { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.25rem; font-size: .95rem; }
.toc strong { font-family: var(--font-display); display: block; margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; color: var(--muted); }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { text-decoration: underline; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--muted); font-size: .96rem; margin-top: 1.2rem; }
.article-meta span { display: inline-flex; align-items: center; gap: .4em; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.tags span { font-size: .88rem; padding: .3rem .75rem; border-radius: 99px; background: var(--soft); }
.notice { padding: .9rem 1.1rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); margin-bottom: 1.5rem; }
.notice.ok { background: color-mix(in srgb, var(--mint) 16%, transparent); border-color: color-mix(in srgb, var(--mint) 50%, transparent); }

/* Ad slots: space is reserved so the page does not jump when an ad loads */
.ad { margin: 2rem auto; text-align: center; min-height: 280px; max-width: 100%; overflow: hidden; }
.ad::before { content: "Advertisement"; display: block; font-size: .72rem; color: var(--muted); margin-bottom: .35rem; letter-spacing: .04em; }
.ad-side { min-height: 600px; margin: 0; }
.ad-top { min-height: 100px; margin: 1rem auto; }

/* Embedded tool / game player */
.player { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.player-bar { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.player-bar b { font-family: var(--font-display); margin-right: auto; display: flex; gap: .5rem; align-items: center; }
.player-bar a, .player-bar button { display: inline-flex; gap: .4em; align-items: center; background: none; border: 1px solid var(--line); color: inherit; padding: .4rem .7rem; border-radius: var(--r-sm); font: inherit; cursor: pointer; text-decoration: none; }
.player-bar a:hover, .player-bar button:hover { border-color: var(--text); }
.player-frame { position: relative; height: min(78vh, 52rem); min-height: 30rem; background: #fff; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.game .player-frame { background: #05081A; height: auto; aspect-ratio: 16 / 10; min-height: 22rem; max-height: 82vh; }
.player:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.player:fullscreen .player-frame { flex: 1; height: auto; max-height: none; aspect-ratio: auto; }
.start { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.1rem; text-align: center; color: #fff; border: 0; cursor: pointer; width: 100%; font: inherit;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c, var(--rose)) 75%, transparent), transparent 62%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 6px), #05081A; }
.start .emoji { font-size: clamp(4rem, 12vw, 7rem); filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .3)); animation: bob 2.4s ease-in-out infinite; }
.start .go { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: #1B1403; font: 700 1.15rem/1 var(--font-display); padding: 1rem 1.8rem; border-radius: 99px; box-shadow: 0 6px 0 #a06d00; }
.start:hover .go { transform: translateY(2px); box-shadow: 0 4px 0 #a06d00; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(4deg); } }

/* Games hub: always the dark arcade palette */
.arcade { --paper: #070A1C; --surface: #111836; --text: #F2F4FF; --muted: #9FA9CC; --line: rgba(242, 244, 255, .14); --soft: rgba(242, 244, 255, .07); color-scheme: dark;
  background: radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--rose) 30%, transparent), transparent), radial-gradient(50rem 28rem at 0% 10%, color-mix(in srgb, var(--brand) 35%, transparent), transparent), #070A1C; color: var(--text); }
.arcade .site-header { background: rgba(7, 10, 28, .82); }
.arcade h1 { font-size: clamp(2.8rem, 8vw, 6rem); letter-spacing: -.04em; }
.arcade .logo-mark::after { box-shadow: 0 0 0 3px #070A1C; }
.filterbar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-bottom: 2rem; }
.filterbar .chips { margin: 0; }
.search { flex: 1 1 16rem; max-width: 26rem; position: relative; }
.search input { width: 100%; padding: .7rem 1rem .7rem 2.6rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; }
.search .icon { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
[hidden] { display: none !important; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select { width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: inherit; font: inherit; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field .err { color: #D8344F; font-size: .9rem; margin-top: .3rem; }
.hp { position: absolute; left: -200vw; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; grid-template-columns: 2.8rem 1fr; gap: 1rem; align-items: start; }
.contact-list .row-icon { width: 2.8rem; height: 2.8rem; }
.contact-list b { display: block; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Pagination */
.pager { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 3rem; align-items: center; }
.pager a, .pager span { min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.pager a:hover { border-color: var(--text); }
.pager [aria-current] { background: var(--text); color: var(--paper); border-color: var(--text); }
.pager .gap { border: 0; min-width: 1rem; padding: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D0E8; margin-top: clamp(3rem, 7vw, 6rem); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; font-size: .97rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 1rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer .logo { color: #fff; margin-bottom: 1rem; }
.site-footer .logo-mark::after { box-shadow: 0 0 0 3px var(--ink); }
.footer-grid > * { min-width: 0; }
.subscribe { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; max-width: 24rem; }
.subscribe input { flex: 1 1 11rem; min-width: 0; padding: .7rem .9rem; border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.subscribe input::placeholder { color: #8C96B8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .13); margin-top: 3rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .9rem; color: #97A1C4; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

/* Cookie notice and flash message */
.cookie { position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; font-size: .95rem; }
.cookie div { display: flex; gap: .6rem; margin-top: .9rem; }
.flash { position: fixed; z-index: 70; top: 5.2rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .85rem 1.3rem; border-radius: 99px; box-shadow: var(--shadow); font-weight: 500; max-width: calc(100% - 2rem); display: flex; gap: .6rem; align-items: center; animation: flash 6s forwards; }
.flash .icon { color: var(--mint); }
@keyframes flash { 0% { opacity: 0; translate: 0 -10px; } 6%, 90% { opacity: 1; translate: 0 0; } 100% { opacity: 0; visibility: hidden; } }

/* Team and misc */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.people li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; align-items: center; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.avatar { width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 1.2rem/1 var(--font-display); }
.people small { color: var(--muted); display: block; line-height: 1.4; }
.error-page { min-height: 62vh; display: grid; place-content: center; text-align: center; gap: .5rem; padding: 4rem 1.25rem; }
.error-page .code { font: 700 clamp(5rem, 18vw, 11rem)/.9 var(--font-display); color: var(--brand); letter-spacing: -.05em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .site-footer, .ad, .cookie, aside { display: none !important; } }
