/* ChatLord website — dark, cinematic, single theme.
   Deep graphite ground, warm oxide accent (a nod to Rust), teal for tags.
   Type: Archivo (variable width) everywhere; labels are small, letter-spaced uppercase in the same face. */

:root {
  --ground: #090c0e;
  --ground-2: #0e1316;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --ink: #eef2f1;
  --ink-2: #aab5b8;
  --ink-3: #7d8a8f;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --oxide: #ff6a2f;
  --oxide-deep: #c8451a;
  --oxide-ink: #12100e;
  --teal: #8fd4d8;
  --live: #4fd08a;
  --beta: #8fd4d8;
  --dev: #f2b544;
  --proto: #8a969b;
  --todo-bg: rgba(255, 106, 47, 0.12);
  --glow: radial-gradient(60% 50% at 50% 0%, rgba(255, 106, 47, 0.14), transparent 70%);

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Archivo", "Helvetica Neue", Arial, sans-serif; /* label face: same family, set as small caps-style uppercase */

  --fs-0: 1rem;
  --fs-1: 1.1875rem;
  --fs-2: 1.5rem;
  --fs-3: clamp(1.8rem, 1.2rem + 2.2vw, 2.75rem);
  --fs-4: clamp(2.4rem, 1.4rem + 4.2vw, 4.8rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* The canvas takes the footer's tone, so overscrolling past the footer shows no darker strip. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; background: var(--ground-2); }
/* Short pages still put the footer at the bottom of the window. */
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: var(--fs-0); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--oxide); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--fs-4); font-weight: 800; font-stretch: 108%; letter-spacing: -0.025em; line-height: 1.0; }
h2 { font-size: var(--fs-3); font-weight: 760; font-stretch: 110%; }
h3 { font-size: 1.3rem; font-weight: 700; font-stretch: 104%; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.label {
  display: flex; align-items: center; gap: 10px; font-family: var(--body); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); line-height: 1.4;
}
.section-head .label::before, .page-head .label::before, .hero-inner .label::before, .case-hero-inner .label::before, .cta-inner .label::before, .demo-head .label::before, .contact-intro > .label::before {
  content: ""; width: 22px; height: 2px; background: var(--oxide); border-radius: 2px; flex: none;
}
.lead { font-size: var(--fs-1); color: var(--ink-2); line-height: 1.55; max-width: 58ch; }
.tag { font-family: var(--body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--teal); text-transform: uppercase; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--oxide); color: var(--oxide-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.todo {
  display: inline-block; background: var(--todo-bg); outline: 1px dashed var(--oxide); outline-offset: 1px;
  color: var(--oxide); font-family: var(--mono); font-size: 0.74rem; padding: 1px 6px; border-radius: 3px; line-height: 1.5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 650 0.98rem/1 var(--body); padding: 15px 22px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 18px 28px; font-size: 1.05rem; }
/* Very narrow phones: a long label wraps inside the pill instead of widening the page. */
@media (max-width: 380px) { .btn { white-space: normal; text-align: center; line-height: 1.25; max-width: 100%; overflow-wrap: anywhere; } .btn-lg { padding-inline: 22px; } }
.btn-primary { background: var(--oxide); color: var(--oxide-ink); box-shadow: 0 8px 30px rgba(255, 106, 47, 0.28); }
.btn-primary:hover { background: #ff7d49; box-shadow: 0 12px 40px rgba(255, 106, 47, 0.4); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-glass { background: rgba(255,255,255,.08); color: var(--ink); border-color: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.14); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Status chips ---------- */
.st {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; line-height: 1.4;
}
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--proto); flex: none; }
.st-live::before { background: var(--live); box-shadow: 0 0 10px var(--live); }
.st-beta::before { background: var(--beta); }
.st-dev::before { background: var(--dev); }
.st-proto::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--proto); }
.st-unknown { color: var(--oxide); }
.st-unknown::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--oxide); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9, 12, 14, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.home .site-header { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(9,12,14,.75), rgba(9,12,14,0)); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .3s, border-color .3s; }
.home .site-header.scrolled { background: rgba(9, 12, 14, 0.78); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { text-decoration: none; }
.brand-mark { font-family: var(--display); font-weight: 850; font-size: 1.4rem; font-stretch: 125%; letter-spacing: -0.02em; }
.brand-mark i { font-style: normal; color: var(--oxide); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; padding-block: 6px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--oxide); transition: right .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
/* Way back to chatlord.com, set apart from the company's own sections. */
.nav .nav-hub { color: var(--ink-3); padding-right: 28px; border-right: 1px solid var(--line-strong); white-space: nowrap; }
.nav .nav-hub::after { right: calc(100% - 0px); }
.nav .nav-hub:hover::after { right: 28px; }
@media (max-width: 1100px) { .nav { gap: 20px; } .nav .nav-hub { padding-right: 20px; } .nav .nav-hub:hover::after { right: 20px; } }
.lang-switch { font-family: var(--mono); font-weight: 600; letter-spacing: .08em; font-size: 0.76rem; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line-strong); padding: 6px 11px; border-radius: 999px; }
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }
.header-cta { padding: 11px 18px; font-size: 0.9rem; box-shadow: none; }
.mobile-nav { display: none; }
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .lang-switch { margin-left: auto; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line-strong); border-radius: 999px; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { display: block; width: 18px; height: 2px; background: var(--ink); }
  .mobile-panel {
    position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px));
    background: #12181b; border: 1px solid var(--line-strong); border-radius: var(--radius); display: grid; padding: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  }
  .mobile-panel a { padding: 12px; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-panel a.btn { margin-top: 8px; border: 0; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(84vh, 820px); display: grid; align-content: end; overflow: hidden; isolation: isolate; padding-top: 120px; }
/* No photo or video here: a deep graphite field with a warm glow and a faint drafting grid. */
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 60% at 78% 18%, rgba(255, 106, 47, 0.22), transparent 65%),
    radial-gradient(40% 45% at 15% 85%, rgba(143, 212, 216, 0.10), transparent 65%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--ground);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,12,14,.2) 0%, rgba(9,12,14,0) 40%, var(--ground) 100%);
}
.hero-inner { display: grid; gap: 22px; padding-block: 48px 40px; max-width: 900px; margin-inline: 0; margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
/* Gradient text only paints inside the box: the padding keeps g/j/y descenders from being cut off. */
.hero-inner h1 { max-width: 15ch; background: linear-gradient(180deg, #ffffff 0%, #d9e0de 70%, #aeb9b6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-block: .12em .16em; margin-block: -.12em -.16em; }
.hero-inner .lead { color: var(--ink); opacity: .85; max-width: 52ch; }
.hero-inner .cta-row { margin-top: 8px; }
/* Full wrap width, left-aligned with the hero text; the rule stops at the gutters like the text does. */
.hero-clients {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 22px 36px; margin-top: 20px; width: 100%;
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
/* Terminal card: one `cargo build`, five targets — the headline, shown. Wide screens only. */
.hero-build {
  position: absolute; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); bottom: 150px; width: 440px; margin: 0;
  display: none; gap: 14px;
}
.build-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: rgba(255,255,255,.05); }
.build-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.build-bar i:first-child { background: var(--oxide); }
.build-bar span { margin-left: 8px; font: 500 0.78rem/1 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--ink-3); }
.build-log {
  margin: -14px 0 0; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(9,12,14,.72); backdrop-filter: blur(10px); box-shadow: 0 30px 80px -30px rgba(255,106,47,.35), 0 20px 50px -20px rgba(0,0,0,.8);
  font: 0.86rem/1.75 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--ink-2); white-space: pre; overflow: hidden;
}
.build-log b { font-weight: 600; }
.build-cmd { color: var(--ink); }
.build-cmd b { color: var(--oxide); }
.build-dim { color: var(--ink-3); }
.build-row b { color: var(--live); }
.build-row em { font-style: normal; color: var(--teal); }
.build-done { color: var(--ink); }
.build-done b { color: var(--live); }
.hero-build figcaption { font-size: 0.85rem; color: var(--ink-3); padding-left: 4px; }
@media (min-width: 1180px) { .hero-build { display: grid; } }
@media (min-width: 1180px) and (prefers-reduced-motion: no-preference) {
  .build-row, .build-done { animation: build-in .4s var(--ease) both; }
  .build-row:nth-of-type(3) { animation-delay: .5s; }
  .build-row:nth-of-type(4) { animation-delay: .66s; }
  .build-row:nth-of-type(5) { animation-delay: .82s; }
  .build-row:nth-of-type(6) { animation-delay: .98s; }
  .build-row:nth-of-type(7) { animation-delay: 1.14s; }
  .build-done { animation-delay: 1.4s; }
}
@keyframes build-in { from { opacity: 0; transform: translateX(-6px); } }
.hero-client { font-family: var(--display); font-weight: 720; font-stretch: 92%; font-size: 1.15rem; color: var(--ink-2); letter-spacing: 0.01em; }
@media (max-width: 700px) { .hero { min-height: 0; padding-top: 110px; } .hero-inner { padding-block: 40px 28px; } }
/* "platformfüggetlen" is one long word: on phones the size follows the width so it never runs off screen. */
@media (max-width: 760px) { .hero-inner h1 { font-size: min(var(--fs-4), 8.4vw); } }
.hero-inner { min-width: 0; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-work { background: var(--ground-2); border-block: 1px solid var(--line); }
.section-work::before { content: ""; position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.section-head { display: grid; gap: 12px; margin-bottom: 44px; max-width: 780px; }
.section-head.with-link { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; }
.section-head.with-link > div { display: grid; gap: 12px; max-width: 780px; }
.page-head { display: grid; gap: 18px; padding-block: clamp(56px, 8vw, 96px) 40px; max-width: 860px; }
.page-head h1 { max-width: 18ch; }
/* Hungarian compounds ("szoftverfejlesztésről") are long: on phones titles shrink and may hyphenate. */
@media (max-width: 760px) { .page-head h1 { font-size: min(var(--fs-4), 9vw); hyphens: auto; overflow-wrap: break-word; } }
.block { padding-block: 48px; border-top: 1px solid var(--line); }
.block-title { font-size: var(--fs-2); margin-bottom: 24px; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.svc-card {
  display: grid; gap: 14px; align-content: start; padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: border-color .3s, background-color .3s, transform .35s var(--ease);
}
.svc-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 0% 0%, rgba(255,106,47,.12), transparent 60%); opacity: 0; transition: opacity .4s; }
.svc-card:hover { border-color: var(--line-strong); background: var(--surface-hover); transform: translateY(-3px); }
.svc-card:hover::before { opacity: 1; }
.svc-card > * { position: relative; }
.svc-card h3 { font-size: var(--fs-2); font-stretch: 108%; }
.svc-card > p { color: var(--ink-2); max-width: 52ch; }
.offers-inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.offers-inline li { font-size: 0.82rem; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.svc-proof { display: grid; gap: 6px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.svc-proof a, .svc-proof > span:not(.label) { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.svc-proof a:hover { color: var(--oxide); }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } .svc-card { padding: 24px; } }

/* ---------- Partners ---------- */
.section-partners { background: var(--ground-2); border-block: 1px solid var(--line); }
.partner-list { display: grid; gap: 18px; }
.partner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 40px;
  padding: 30px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, background-color .3s;
}
.partner:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.partner-head { display: grid; gap: 10px; align-content: start; }
.partner-head h3 { font-size: var(--fs-2); font-stretch: 110%; }
.partner-head p { color: var(--ink-2); max-width: 52ch; }
.partner-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.partner-since { font-size: 0.8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--oxide); }
.partners-note { margin-top: 20px; color: var(--ink-2); max-width: 62ch; }
.partner-work { display: grid; gap: 8px; align-content: start; }
.partner-work ul { list-style: none; margin: 0; padding: 0; display: grid; }
.partner-work li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 9px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.partner-work a { text-decoration: none; font-weight: 620; min-width: 0; overflow-wrap: anywhere; }
.partner-work a:hover { color: var(--oxide); }
@media (max-width: 760px) { .partner { grid-template-columns: minmax(0, 1fr); padding: 24px; } }

/* ---------- Project cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.card-slot { display: grid; }
.card-slot[hidden] { display: none; }
.card {
  display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
a.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.card-media { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: #0d1215; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.card:hover .card-media img, a.card:hover .card-media video { transform: scale(1.04); }
.card-media.contain { background: #f3efe9; }
.card-media.contain img { object-fit: contain; padding: 12%; }
.card-status { position: absolute; left: 12px; bottom: 12px; background: rgba(9,12,14,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 6px 10px; border-radius: 999px; color: var(--ink); }
.card-type {
  /* The bottom padding keeps the tech line clear of the status pill in the corner. */
  position: absolute; inset: 0; display: grid; align-content: space-between; padding: 20px 20px 60px;
  background:
    radial-gradient(70% 60% at 80% 20%, rgba(143,212,216,.12), transparent 60%),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 26px 100%;
}
.card-type-name { font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: clamp(1.3rem, 0.9rem + 1.1vw, 1.75rem); line-height: 1.1; letter-spacing: -0.02em; hyphens: auto; overflow-wrap: break-word; max-width: 100%; }
.card-type-tech { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 0.7rem; color: var(--ink-3); }
.card-body { display: grid; gap: 8px; align-content: start; padding: 20px 22px 24px; }
.card-client { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.card-title { font-size: 1.25rem; }
.card-body p { color: var(--ink-2); font-size: 0.95rem; }
.card-more { color: var(--oxide); font-weight: 650; font-size: 0.92rem; margin-top: 6px; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.steps li { display: grid; gap: 10px; align-content: start; padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li:first-child { border-color: rgba(255,106,47,.45); box-shadow: inset 0 0 0 1px rgba(255,106,47,.15); }
.step-n { font-weight: 700; font-size: 0.74rem; text-transform: uppercase; color: var(--oxide); letter-spacing: 0.06em; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--ground-2); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 50% 100%, rgba(255,106,47,.22), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 16px; padding-block: clamp(72px, 10vw, 128px); }
.cta-inner h2 { font-size: var(--fs-4); font-weight: 800; font-stretch: 112%; line-height: 1; max-width: 16ch; background: linear-gradient(180deg, #ffffff 0%, #d9e0de 70%, #aeb9b6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-block: .12em .16em; margin-block: -.12em -.16em; }
.cta-inner p { color: var(--ink-2); font-size: var(--fs-1); max-width: 46ch; }
.cta-inner .btn { margin-top: 10px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 28px; }
.chip { font-family: var(--mono); font-weight: 600; font-size: 0.8rem; color: var(--ink-2); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 14px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.chip .count { opacity: .55; }
.table-scroll { overflow-x: auto; }

/* ---------- Case study ---------- */
.case-hero { position: relative; isolation: isolate; overflow: hidden; }
.case-hero.has-media { min-height: min(72vh, 720px); display: grid; align-content: end; }
.case-hero-bg { position: absolute; inset: 0; z-index: -1; }
.case-hero-bg img, .case-hero-bg video { width: 100%; height: 100%; object-fit: cover; }
/* Darker on the text side, so whatever the image says itself never fights the title. */
.case-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9,12,14,.82) 0%, rgba(9,12,14,.55) 45%, rgba(9,12,14,0) 75%),
    linear-gradient(180deg, rgba(9,12,14,.5) 0%, rgba(9,12,14,.3) 35%, rgba(9,12,14,.92) 80%, var(--ground) 100%);
}
@media (max-width: 760px) { .case-hero-bg::after { background: linear-gradient(180deg, rgba(9,12,14,.6) 0%, rgba(9,12,14,.55) 35%, rgba(9,12,14,.94) 75%, var(--ground) 100%); } }
.case-hero-inner { display: grid; gap: 16px; padding-block: clamp(40px, 6vw, 72px) 36px; max-width: 900px; margin-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.case-hero-inner h1 { max-width: 20ch; }
/* A long domain in a title (magnusaircraft.com) must not run off a phone screen. */
@media (max-width: 760px) { .case-hero-inner h1 { font-size: min(var(--fs-4), 8.4vw); overflow-wrap: anywhere; } }
.case-hero-inner { min-width: 0; }
.case-hero-inner .lead { color: var(--ink); opacity: .85; }
.crumbs { font-family: var(--mono); font-weight: 600; letter-spacing: .04em; font-size: 0.8rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 40px; }
.facts div { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.facts dt { font-family: var(--mono); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; }
.facts-tech { font-weight: 500 !important; font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.case-figure { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0d1215; }
.case-figure img { width: 100%; height: auto; display: block; }
.case-figure.contain { background: #ffffff; }
.case-figure.contain img { width: auto; max-height: 420px; margin-inline: auto; padding: 40px; }
.case-section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px 36px; padding-block: 44px; border-top: 1px solid var(--line); }
.case-section > .label { padding-top: 6px; }
.case-body { display: grid; gap: 20px; max-width: 74ch; }
.case-body > p { color: var(--ink-2); font-size: 1.08rem; line-height: 1.7; }
@media (max-width: 860px) { .case-section { grid-template-columns: 1fr; } }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.flow li { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.flow .step-n { color: var(--oxide); }
.flow b { font-weight: 650; line-height: 1.3; }
.flow span:last-child { color: var(--ink-2); font-size: 0.87rem; line-height: 1.4; }
.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec caption { text-align: left; padding-bottom: 8px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--line); }
.spec th { width: 28%; font-family: var(--mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.next-case { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: end; padding-block: 36px var(--section); border-top: 1px solid var(--line); }
.next-case a { text-decoration: none; color: var(--ink-2); }
.next-case a:hover { color: var(--oxide); }
.next-case .next { display: grid; gap: 4px; text-align: right; font-family: var(--display); font-weight: 700; font-size: var(--fs-2); color: var(--ink); }

/* ---------- Demos ---------- */
.demo { padding-block: 44px; border-top: 1px solid var(--line); display: grid; gap: 22px; }
.demo-head { display: grid; gap: 8px; max-width: 700px; }
.demo-head p { color: var(--ink-2); }
.viewer {
  position: relative; height: clamp(360px, 62vh, 640px); border-radius: var(--radius); overflow: hidden;
  background: #1a1f22 center / cover no-repeat; cursor: grab; touch-action: pan-y; user-select: none; border: 1px solid var(--line);
}
.viewer.dragging { cursor: grabbing; }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud { position: absolute; font-family: var(--mono); font-size: 0.74rem; color: var(--ink); pointer-events: none; }
.hud-box { background: rgba(9,12,14,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 8px 11px; border-radius: 8px; }
.hud-tl { top: 14px; left: 14px; display: grid; gap: 6px; justify-items: start; }
.hud-tr { top: 14px; right: 14px; text-align: right; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--oxide); margin-right: 7px; vertical-align: 1px; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,106,47,.7); } 70% { box-shadow: 0 0 0 7px rgba(255,106,47,0); } 100% { box-shadow: 0 0 0 0 rgba(255,106,47,0); } }
.reticle { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); pointer-events: none; opacity: .7; }
.reticle::before, .reticle::after { content: ""; position: absolute; background: var(--ink); }
.reticle::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reticle::after { top: 50%; left: 0; right: 0; height: 1px; }
.nodes { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.node-btn {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink); background: rgba(9,12,14,.62); text-align: left; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); padding: 9px 12px; border-radius: 8px;
}
.node-btn small { display: block; opacity: .65; font-size: 0.68rem; }
.node-btn[aria-pressed="true"] { border-color: var(--oxide); box-shadow: inset 3px 0 0 var(--oxide); }
.node-btn:hover { border-color: rgba(255,255,255,.6); }
.drag-hint { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; color: var(--ink); background: rgba(9,12,14,.62); padding: 8px 10px; border-radius: 8px; }
@media (max-width: 640px) { .hud-tr, .drag-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.compare { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-radius: var(--radius); user-select: none; --cut: 50%; border: 1px solid var(--line); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--cut)); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.compare .divider::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #090c0e; display: grid; place-items: center; font-family: var(--mono); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-tag { position: absolute; top: 12px; font-family: var(--mono); font-size: 0.72rem; color: var(--ink); background: rgba(9,12,14,.62); padding: 6px 9px; border-radius: 8px; pointer-events: none; }
.compare-tag.left { left: 12px; }
.compare-tag.right { right: 12px; }

/* ---------- About ---------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.person { display: grid; gap: 10px; align-content: start; justify-items: center; text-align: center;
  padding: 28px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
/* The portraits are low-resolution profile photos, so they are shown small:
   at this size the softness does not read as bad quality. */
/* Fixed size, not a stretched grid item: otherwise the circle turns into an egg.
   Kept modest — these are low-resolution profile photos. */
.portrait { width: 132px; height: 132px; border-radius: 50%; background: #0d1215;
  border: 1px solid var(--line); display: grid; place-items: center; object-fit: cover; margin-bottom: 4px; }
.portrait span { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 1.6rem; color: var(--line-strong); }
.person h3 { font-size: 1.1rem; }
.role, .previously { color: var(--ink-2); font-size: 0.95rem; }
.person .more { color: var(--oxide); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
@media (max-width: 860px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.terms { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.terms li::before { content: "— "; color: var(--oxide); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px 72px; padding-block: clamp(56px, 8vw, 96px) var(--section); align-items: start; }
.contact-intro { display: grid; gap: 18px; }
.contact-intro h2.label { margin-top: 20px; }
.next-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
/* min-width: 0 keeps a long, non-wrapping label from widening the grid column. */
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field.full, .form-foot.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.field .optional { text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: rgba(0,0,0,.35); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 13px 14px; width: 100%; }
/* The native select chrome looks out of place on a dark page: drop it and draw
   our own arrow. The list itself is still the operating system's. */
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 42px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field select:hover { border-color: var(--ink); }

/* Custom dropdown (JS only). The real <select> stays in the page for the form
   submission; it is hidden from sight and from assistive tech, which reads the
   button and the listbox instead. */
/* Standard visually-hidden: out of sight without adding to the page's
   scrollable area, which an off-canvas absolute box would do. */
/* `.field select` above also sets width: 100%, and it is the more specific
   selector, so this one has to match at least as tightly. */
.field select.select-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); border: 0; background: none; }
.select-shell { position: relative; min-width: 0; }
.select-btn {
  font: inherit; line-height: 1.6; color: var(--ink); background: rgba(0,0,0,.35); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 13px 42px 13px 14px; width: 100%; text-align: left; cursor: pointer;
  /* One line, like every other field: a long label is cut, not wrapped. */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.select-btn:hover { border-color: var(--ink); }
.select-btn[aria-expanded="true"] { border-color: var(--oxide); }
.select-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px;
  list-style: none; background: #12181b; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0,0,0,.55); max-height: 260px; overflow-y: auto;
}
.select-list li { padding: 11px 12px; border-radius: 6px; cursor: pointer; line-height: 1.3; }
.select-list li:hover, .select-list li.active { background: rgba(255,255,255,.08); }
.select-list li[aria-selected="true"] { color: var(--oxide); font-weight: 650; }
.field select option { background: #12181b; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--oxide); outline-offset: 0; border-color: transparent; }
.field.invalid input, .field.invalid textarea { border-color: var(--oxide); }
.field-error { display: none; color: var(--oxide); font-size: 0.85rem; }
.field.invalid .field-error { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-family: var(--body) !important; font-size: 0.92rem !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--ink-2) !important; }
.consent input { width: auto; margin-top: 4px; accent-color: var(--oxide); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-status { font-size: 0.95rem; }
.form-status.ok { color: var(--live); font-weight: 600; }
.form-status.error { color: var(--oxide); }
@media (max-width: 560px) { .lead-form { grid-template-columns: 1fr; } }

/* ---------- Legal, 404 ---------- */
.legal { padding-bottom: var(--section); }
.legal-rows { margin: 0; border-top: 1px solid var(--line-strong); max-width: 760px; }
.legal-rows div { display: grid; grid-template-columns: 240px 1fr; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.legal-rows dt { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
.legal-rows dd { margin: 0; }
.legal-section { display: grid; gap: 10px; padding-block: 22px; border-top: 1px solid var(--line); max-width: 760px; }
.legal-section h2 { font-size: 1.2rem; }
.legal-section p { color: var(--ink-2); }
@media (max-width: 600px) { .legal-rows div { grid-template-columns: 1fr; gap: 2px; } }
.not-found { padding-bottom: var(--section); }

/* ---------- Service pages and articles ---------- */
.landing-head { max-width: 900px; }
.landing-head h1 { max-width: 20ch; }
.landing-head .cta-row { margin-top: 6px; }
.prose-section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 16px 56px; padding-block: 48px; border-top: 1px solid var(--line); }
.prose-section h2 { font-size: var(--fs-2); font-stretch: 106%; line-height: 1.15; max-width: 18ch; }
.prose { display: grid; gap: 18px; max-width: 70ch; }
.prose p, .article-body p { color: var(--ink-2); font-size: 1.08rem; line-height: 1.75; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); line-height: 1.6; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2px solid var(--oxide); border-bottom: 2px solid var(--oxide); transform: rotate(-45deg);
}
@media (max-width: 860px) { .prose-section { grid-template-columns: minmax(0, 1fr); padding-block: 36px; } }

.faq { max-width: 900px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 20px; font-family: var(--display); font-weight: 680; font-size: 1.12rem; line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; color: var(--oxide); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--oxide); }
.faq-item p { color: var(--ink-2); line-height: 1.7; padding-bottom: 22px; max-width: 72ch; }

.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.link-grid-lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.link-card {
  display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, background-color .25s, transform .3s var(--ease);
}
.link-card:hover { border-color: var(--line-strong); background: var(--surface-hover); transform: translateY(-2px); }
.link-card b { font-family: var(--display); font-size: 1.25rem; font-weight: 720; font-stretch: 106%; line-height: 1.2; }
.link-card > span:not(.tag):not(.card-more) { color: var(--ink-2); font-size: 0.95rem; line-height: 1.6; }
.link-grid-lg .link-card { padding: 30px; gap: 12px; }
.link-grid-lg .link-card b { font-size: var(--fs-2); }
.link-card .card-more { margin-top: 6px; }
.services-note { margin-top: 32px; color: var(--ink-2); max-width: 70ch; }
.services-note a { color: var(--oxide); text-decoration: none; font-weight: 600; white-space: nowrap; }

.article-list { display: grid; border-top: 1px solid var(--line); max-width: 900px; }
.article-row { display: grid; gap: 8px; padding-block: 28px; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-row b { font-family: var(--display); font-size: var(--fs-2); font-weight: 740; font-stretch: 106%; line-height: 1.15; transition: color .2s; }
.article-row:hover b { color: var(--oxide); }
.article-row > span:last-child { color: var(--ink-2); max-width: 70ch; }
.article-meta { font-size: 0.8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.article .page-head { max-width: 780px; }
.article .page-head h1 { max-width: 22ch; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); }
.article-body { display: grid; gap: 40px; max-width: 72ch; padding-bottom: 56px; }
.article-body section { display: grid; gap: 16px; }
.article-body h2 { font-size: var(--fs-2); font-stretch: 106%; line-height: 1.2; }
@media (max-width: 760px) { .article .page-head h1 { overflow-wrap: anywhere; } }

/* ---------- Hub (chatlord.com) ---------- */
.hub-hero { position: relative; isolation: isolate; overflow: hidden; padding-top: 128px; }
.hub-hero-inner { display: grid; gap: 18px; padding-block: 40px 44px; }
.hub-hero-inner .label::before { content: ""; width: 22px; height: 2px; background: var(--oxide); border-radius: 2px; flex: none; }
.hub-hero-inner h1 { max-width: 16ch; background: linear-gradient(180deg, #ffffff 0%, #d9e0de 70%, #aeb9b6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-block: .12em .16em; margin-block: -.12em -.16em; }
.hub-hero-inner .lead { max-width: 54ch; }

.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; padding-bottom: var(--section); }
.tile {
  --tile-pos: center;
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-rows: auto 1fr;
  grid-column: span 6; min-height: clamp(400px, 38vw, 520px); padding: 22px; border-radius: 20px;
  text-decoration: none; color: var(--ink); background: #0d1215; border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.tile:nth-child(1), .tile:nth-child(4) { grid-column: span 7; }
.tile:nth-child(2), .tile:nth-child(3) { grid-column: span 5; }
.tile-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--tile-pos); transition: transform 1.1s var(--ease), filter .5s; filter: saturate(.92); }
.tile-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9,12,14,.5) 0%, rgba(9,12,14,0) 22%, rgba(9,12,14,0) 40%, rgba(9,12,14,.88) 66%, rgba(9,12,14,.97) 100%);
  transition: opacity .4s;
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: radial-gradient(70% 55% at 50% 110%, rgba(255,106,47,.32), transparent 70%);
}
.tile:hover, .tile:focus-visible { transform: translateY(-5px); border-color: rgba(255,106,47,.55); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,106,47,.25); }
.tile:hover .tile-img, .tile:focus-visible .tile-img { transform: scale(1.045); filter: saturate(1.05); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.tile-tag {
  font-weight: 650; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  background: rgba(9,12,14,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16); padding: 7px 12px; border-radius: 999px;
}
.tile-n { font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: 0.9rem; color: rgba(255,255,255,.75); text-shadow: 0 1px 8px rgba(0,0,0,.5); letter-spacing: .04em; }
.tile-body { align-self: end; display: grid; gap: 10px; max-width: 46ch; }
.tile-title { font-family: var(--display); font-weight: 820; font-stretch: 116%; font-size: clamp(2rem, 1.3rem + 2vw, 3rem); line-height: 1; letter-spacing: -0.02em; }
.tile-text { color: #c9d2d4; font-size: 1rem; line-height: 1.55; }
.tile-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; }
.tile-cta {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 0.95rem;
  background: var(--ink); color: var(--ground); padding: 12px 18px; border-radius: 999px; transition: background-color .25s, color .25s;
}
.tile:hover .tile-cta, .tile:focus-visible .tile-cta { background: var(--oxide); color: var(--oxide-ink); }
.tile-arrow { display: inline-block; transition: transform .35s var(--ease); }
.tile:hover .tile-arrow, .tile:focus-visible .tile-arrow { transform: translate(3px, -1px); }
.tile-host { font-size: 0.82rem; letter-spacing: .04em; color: var(--ink-2); }
.tile--visual { --tile-pos: 50% 0; }
.tile--text { --tile-pos: 88% 0; }
/* Below the game's top HUD. */
.tile--games { --tile-pos: 50% 62%; }
.tile--company { --tile-pos: 50% 30%; }
/* A screenshot full of text: darken it earlier, so the title does not sit on chat lines. */
.tile--text .tile-shade { background: linear-gradient(180deg, rgba(9,12,14,.45) 0%, rgba(9,12,14,0) 20%, rgba(9,12,14,.15) 34%, rgba(9,12,14,.94) 58%, rgba(9,12,14,.98) 100%); }
@media (max-width: 900px) {
  .tile:nth-child(n) { grid-column: 1 / -1; }
  .tile { min-height: 440px; }
  .tile--text { --tile-pos: 62% 0; }
}
@media (max-width: 520px) {
  .hub-hero { padding-top: 104px; }
  .hub-hero-inner { padding-block: 28px 32px; }
  .tiles { gap: 14px; }
  .tile { min-height: 470px; padding: 18px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .tile, .tile-img, .tile-arrow { transition: none !important; transform: none !important; } }

/* ---------- Games ---------- */
.games-hero.has-media { min-height: min(70vh, 680px); }
.games-hero .case-hero-inner { padding-top: 140px; }
.games-hero .case-hero-bg img { object-position: 50% 62%; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.game-media { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); aspect-ratio: 16 / 10; background: #0d1215; }
.game-media img { width: 100%; height: 100%; object-fit: cover; }
.game-info { display: grid; gap: 18px; align-content: start; }
.game-info h2 { font-size: var(--fs-4); font-weight: 820; font-stretch: 112%; line-height: 1; }
.game-facts { margin: 4px 0 6px; display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 10px; }
.game-facts div { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.game-facts dt { font-weight: 600; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.game-facts dd { margin: 0; font-weight: 650; }
.btn.is-disabled { cursor: default; color: var(--ink-2); border-style: dashed; }
.btn.is-disabled:hover { transform: none; border-color: var(--line-strong); }
.install { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.install .section-head { margin-bottom: 28px; }
.install .label::before { content: ""; width: 22px; height: 2px; background: var(--oxide); border-radius: 2px; flex: none; }
.install .block-title { margin-bottom: 0; font-size: var(--fs-3); }
.install .steps p { color: var(--ink-2); font-size: 0.95rem; }
.steps.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-note { color: var(--ink-2); max-width: 52ch; }
.game + .game { border-top: 1px solid var(--line); }
/* Alternate sides, so a second game does not read as a repeat of the first. */
.game:nth-of-type(even) .game-media { order: 2; }
.game-soon .game-media img { filter: saturate(.8) brightness(.85); }
@media (max-width: 900px) {
  .game-grid { grid-template-columns: 1fr; }
  .game:nth-of-type(even) .game-media { order: 0; }
  .steps.steps-3 { grid-template-columns: 1fr; }
  .game-facts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}

/* ---------- Footer ---------- */
main { flex: 1 0 auto; }
.site-footer { border-top: 1px solid var(--line); padding-top: 48px; background: var(--ground-2); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.footer-brand p { color: var(--ink-2); margin-top: 10px; max-width: 32ch; }
.footer-nav { display: grid; gap: 8px; align-content: start; }
.footer-nav a { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { padding-block: 28px; margin-top: 36px; background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; font-size: 0.85rem; color: var(--ink-3); }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; }
  .site-footer { padding-bottom: 80px; }
}

/* ---------- Reveal on scroll (visible at rest; JS only adds a gentle rise) ---------- */
.reveal { transition: transform .7s var(--ease), opacity .7s var(--ease); }
.js .reveal:not(.in) { transform: translateY(18px); opacity: 0.001; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .card, .btn, .svc-card { transition: none !important; transform: none !important; opacity: 1 !important; }
}
