/* ============================================================
   piktiv.css — shared stylesheet for all pages
   Sections: brand tokens & global · components · sub-pages
   (subhero/feature) · cases page (hero/filterbar)
   ============================================================ */

/* ---- Piktiv 2026 brand tokens ---- */
:root {
  --ink: #070718; /* base near-black indigo */
  --navy: #0d0d33; /* deep navy */
  --indigo: #1a1856; /* mid indigo */
  --purple: #3a1d72; /* purple */
  --cyan: #36e0ff; /* electric cyan accent */
  --magenta: #ff3dbe; /* hot magenta accent */
  --paper: #eef0f6; /* light section (echoes deck's grey slides) */
  --paper-ink: #16182b; /* text on light */
  --mute: #9aa0c8; /* muted text on dark */
  --line: rgba(255, 255, 255, 0.1);
  --display: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
  --brand: "Baloo 2", cursive;
  --maxw: 1180px;
  /* recurring measurements */
  --radius-pill: 999px; /* fully-round controls */
  --radius-card: 18px; /* large rounded cards / panels */
  --radius-md: 16px; /* secondary cards */
  --logo-h-trust: 40px; /* trust-wall logo height (desktop) */
  --logo-h-case: 54px; /* case-card logo height (desktop) */
  --photo-h-person: 170px; /* person photo height */
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--body);
  background: var(--ink);
  color: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  box-shadow: 0 0 8px var(--cyan);
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.gradient-rule {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), #5b8cff 45%, var(--magenta));
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- buttons ---- */
.btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.btn-primary {
  background: linear-gradient(100deg, var(--cyan), var(--magenta));
  color: #0a0a1e;
  border-width: 0;
  padding: 15px 25px;
  box-shadow: 0 0 0 rgba(255, 61, 190, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 61, 190, 0.35);
}
.btn-ghost {
  border-color: var(--line);
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* ---- nav ---- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 7, 24, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-img {
  height: 30px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  color: #cfd3ee;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 7px rgba(255, 255, 255, 0.75);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 1rem;
  cursor: pointer;
}

/* ---- diagonal streak backdrop (deck signature) ---- */
.streaks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.streaks span {
  position: absolute;
  top: -30%;
  height: 160%;
  width: 7%;
  transform: skewX(-18deg);
  background: linear-gradient(180deg, rgba(94, 140, 255, 0), rgba(94, 140, 255, 0.16), rgba(94, 140, 255, 0));
}
.streaks span:nth-child(1) {
  left: 8%;
}
.streaks span:nth-child(2) {
  left: 20%;
  width: 3%;
  background: linear-gradient(180deg, rgba(54, 224, 255, 0), rgba(54, 224, 255, 0.18), rgba(54, 224, 255, 0));
}
.streaks span:nth-child(3) {
  left: 68%;
  width: 9%;
}
.streaks span:nth-child(4) {
  left: 82%;
  width: 4%;
  background: linear-gradient(180deg, rgba(255, 61, 190, 0), rgba(255, 61, 190, 0.12), rgba(255, 61, 190, 0));
}

/* ---- hero ---- */
.hero {
  position: relative;
  padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 110px);
  background:
    radial-gradient(1100px 500px at 75% -10%, rgba(58, 29, 114, 0.65), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(26, 24, 86, 0.85), transparent 55%),
    linear-gradient(160deg, var(--navy), var(--ink) 70%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin: 22px 0 0;
}
.hero h1 .glow {
  color: #fff;
  text-shadow: 0 0 30px rgba(54, 224, 255, 0.45);
}
.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #d7daf2;
  max-width: 640px;
  margin: 24px 0 0;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}
/* connector line motif */
.connector {
  position: relative;
  margin-top: 30px;
  height: 1px;
  max-width: 420px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.connector::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

/* ---- trust strip ---- */
.trust {
  background: var(--navy);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 60px;
}
.trust-label {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  margin-bottom: 8px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px 16px;
  margin-top: 26px;
}
/* Equal-width cells so logos align in tidy centered rows (6 per row desktop → 6+5). */
.trust-cell {
  flex: 0 0 calc(100% / 6 - 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

@media (max-width: 860px) {
  .trust-cell {
    flex-basis: calc(100% / 3 - 16px);
  }
}
@media (max-width: 520px) {
  .trust-cell {
    flex-basis: calc(100% / 2 - 16px);
  }
}
.trust-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  max-width: 720px;
  margin: 40px auto 32px;
}
.trust-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  text-align: center;
}
.trust-meta .stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 4px 0;
}
.trust-meta .stat + .stat::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
}
.trust-meta .stat b {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1;
  background: linear-gradient(100deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.6rem;
}
.trust-meta .stat span {
  font-size: 0.82rem;
  color: #c4c8e6;
  max-width: 160px;
  width: 160px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.35;
  min-height: 2.6em;
}

/* ---- section scaffolding ---- */
.section {
  padding: clamp(64px, 9vw, 110px) 0;
  position: relative;
}
.section.pt-0 {
  padding-top: 0;
}
.section.pt-48 {
  padding-top: 48px;
}
.section.pb-tight {
  padding-bottom: clamp(8px, 2vw, 24px);
}
.sec-head {
  max-width: 620px;
}
.sec-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 16px 0 0;
}
.sec-head p {
  color: #c4c8e6;
  margin-top: 16px;
  font-size: 1.05rem;
}

/* ---- two legs ---- */
.legs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.leg {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
  background: linear-gradient(165deg, rgba(26, 24, 86, 0.6), rgba(7, 7, 24, 0.4));
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
.leg:hover {
  transform: translateY(-4px);
}
.leg .tag {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.leg.alt .tag {
  color: var(--magenta);
}
.leg h3 {
  font-size: 1.6rem;
  margin: 14px 0 12px;
}
.leg p {
  color: #c4c8e6;
  font-size: 0.98rem;
}
.leg ul {
  list-style: none;
  margin: 20px 0 26px;
}
.leg li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: #dfe2f6;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.leg li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
  transform: translateY(4px);
}
.leg.alt li::before {
  background: var(--magenta);
}
.leg .more {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.leg .more::after {
  content: "→";
  transition: transform 0.2s;
}
.leg .more:hover::after {
  transform: translateX(4px);
}
.leg-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  top: -80px;
  right: -60px;
  z-index: -1;
}
.leg .leg-glow {
  background: var(--cyan);
}
.leg.alt .leg-glow {
  background: var(--magenta);
}

/* ---- engine strip ---- */
.engines {
  background: var(--paper);
  color: var(--paper-ink);
}
.engines .eyebrow {
  color: #6a3fc0;
}
.engines .eyebrow::before {
  background: linear-gradient(90deg, transparent, #6a3fc0);
  box-shadow: none;
}
.engines h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--paper-ink);
}
.engines p {
  color: #41476b;
  max-width: 640px;
  margin-top: 14px;
}
.engine-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}
.engine-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
}
@media (max-width: 720px) {
  .engine-row {
    gap: 20px;
  }
  .engine-logo {
    height: 34px;
  }
}
.engine-row .pill {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--paper-ink);
  border: 1px solid rgba(20, 24, 43, 0.16);
  border-radius: 10px;
  padding: 10px 16px;
  background: #fff;
}
a.pill {
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
a.pill:hover {
  border-color: #7a52d8;
  box-shadow: 0 6px 16px rgba(122, 82, 216, 0.2);
  transform: translateY(-1px);
}
.engine-sub {
  margin-top: 22px;
  font-size: 0.85rem;
  color: #545a7d;
  font-family: var(--display);
  letter-spacing: 0.04em;
}
.engine-sub.note {
  margin-top: 26px;
}
.engines .engine-sub a {
  color: #7a52d8;
}

/* ---- selected work ---- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 46px;
}
.work-more {
  text-align: center;
  margin-top: 40px;
}
.case {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(26, 24, 86, 0.5), rgba(7, 7, 24, 0.5));
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.case .cmeta {
  margin-top: auto;
}
.case:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 61, 190, 0.4);
}
.work-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.legs.legs-3 {
  grid-template-columns: repeat(3, 1fr);
}
.legs-3 .leg h3 {
  font-size: 1.3rem;
}
@media (max-width: 1100px) {
  .work-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.case .ctag {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  position: absolute;
  top: 24px;
  left: 24px;
}
.case.applied .ctag {
  color: var(--magenta);
}

.case .studio {
  font-size: 0.82rem;
  color: var(--mute);
  margin: 4px 0 12px;
  font-family: var(--display);
}
.case p {
  font-size: 0.9rem;
  color: #cfd3ee;
}

/* ---- why piktiv ---- */
.why {
  background: linear-gradient(180deg, var(--ink), var(--navy));
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}
.why-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  background: rgba(255, 255, 255, 0.02);
}
.why-card h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.why-card h3 em {
  font-style: normal;
  color: var(--cyan);
  font-family: var(--display);
}
.why-card p {
  font-size: 0.9rem;
  color: #c4c8e6;
}
.why-card .big {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(100deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- contact ---- */
.contact {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(700px 380px at 50% 120%, rgba(58, 29, 114, 0.7), transparent 60%), var(--ink);
}
.contact h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-top: 18px;
}
.contact .eyebrow {
  justify-content: center;
}
.contact p {
  color: #c4c8e6;
  max-width: 520px;
  margin: 18px auto 0;
}
.contact .hero-cta {
  justify-content: center;
}

/* ---- footer ---- */
footer {
  background: #05050f;
  border-top: 1px solid var(--line);
  padding: 54px 0 40px;
  color: var(--mute);
  font-size: 0.9rem;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-col h4 {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.foot-col a,
.foot-col p {
  display: block;
  color: var(--mute);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.foot-col a:hover {
  color: var(--cyan);
}
.foot-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
}
.foot-bottom a {
  color: var(--mute);
  transition: color 0.2s;
}
.foot-bottom a:hover {
  color: var(--cyan);
}
.foot-brand-img {
  height: 26px;
  width: auto;
  display: block;
}

/* ---- image / logo placeholders (replace with licensed assets) ---- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed rgba(54, 224, 255, 0.45);
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, rgba(54, 224, 255, 0.05) 0 10px, rgba(255, 61, 190, 0.05) 10px 20px);
  font-family: var(--display);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aeb3e0;
  padding: 10px;
}

.case-logo,
.ph.case-logo {
  height: var(--logo-h-case);
  min-width: 160px;
  max-width: 85%;
  align-self: flex-start;
  margin-top: 44px;
  margin-bottom: 14px;
  font-size: 0.66rem;
}

/* ---- references ---- */
.refs {
  background: linear-gradient(180deg, var(--ink), #0a0a22);
}
.ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 42px;
}
.ref-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  display: flex;
  flex-direction: column;
}
.ref-card .mark {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 0.4;
  color: var(--cyan);
  opacity: 0.55;
}
.ref-card blockquote {
  font-size: 1.08rem;
  color: #eef0ff;
  margin: 14px 0 22px;
  line-height: 1.5;
}
.ref-cite {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
  margin-top: auto;
}
.ref-cite b {
  color: #fff;
  font-family: var(--display);
}
.ref-cite .role {
  color: var(--mute);
}
.ref-cite img {
  width: auto;
  height: 30px;
}
.ref-cite img.ref-logo-lg {
  height: 36px;
}
.ref-cite .role a {
  color: var(--cyan);
}
.ref-card.placeholder {
  border-style: dashed;
  border-color: rgba(54, 224, 255, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: repeating-linear-gradient(135deg, rgba(54, 224, 255, 0.04) 0 12px, rgba(255, 61, 190, 0.04) 12px 24px);
}
.ref-card.placeholder p {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #aeb3e0;
  line-height: 1.7;
}
@media (max-width: 860px) {
  .ref-grid {
    grid-template-columns: 1fr;
  }
}
.ref-grid.one-col {
  grid-template-columns: 1fr;
}
.case-art {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 12px, rgba(54, 224, 255, 0.05) 12px 24px);
  z-index: 0;
}
.case-art span {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--display);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.case > *:not(.case-art) {
  position: relative;
  z-index: 1;
}
.hero-art-note {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(174, 179, 224, 0.7);
  border: 1px dashed rgba(54, 224, 255, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
}
@media (max-width: 860px) {
  .hero-art-note {
    display: none;
  }
}

/* ---- reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 24px 26px;
    background: rgba(7, 7, 24, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  .nav-links a {
    display: block;
    padding: 11px 0;
  }
  header.nav.open .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .legs,
  .legs.legs-3,
  .work-grid,
  .work-grid.grid-3,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .trust-meta {
    gap: 28px;
    flex-direction: column;
  }
  .trust-meta .stat + .stat::before {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---- sub-pages: games.html & applied.html ---- */
.subhero {
  position: relative;
  padding: clamp(90px, 13vw, 150px) 0 clamp(50px, 7vw, 80px);
  background:
    radial-gradient(1000px 460px at 78% -10%, rgba(58, 29, 114, 0.6), transparent 60%),
    radial-gradient(820px 460px at 0% 20%, rgba(26, 24, 86, 0.8), transparent 55%),
    linear-gradient(160deg, var(--navy), var(--ink) 72%);
}
.subhero .wrap {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.subhero .eyebrow,
.cases-hero .eyebrow {
  margin-top: 14px;
}
.subhero h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  margin: 20px 0 0;
}
.subhero h1 .glow {
  color: #fff;
  text-shadow: 0 0 30px rgba(54, 224, 255, 0.45);
}
.subhero .lede {
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  color: #d7daf2;
  max-width: 660px;
  margin: 22px 0 0;
}
.subhero .hero-cta {
  margin-top: 34px;
}
.crumbs {
  font-family: var(--display);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.crumbs a {
  color: var(--mute);
}
.crumbs a:hover {
  color: var(--cyan);
}
.crumbs b {
  color: #fff;
}
.feature {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 36px;
  align-items: center;
  margin-top: 46px;
}
.feature h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 14px 0 14px;
}
.feature p {
  color: #c4c8e6;
  font-size: 1rem;
}
.feature ul {
  list-style: none;
  margin: 20px 0 0;
}
.feature li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: #dfe2f6;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.feature li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  flex: none;
  transform: translateY(4px);
}
.feat-art {
  min-height: 320px;
  border-radius: var(--radius-card);
}
@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
  }
  .feat-art {
    min-height: 220px;
  }
}

/* ---- cases.html: hero + filter bar ---- */
.cases-hero {
  position: relative;
  padding: clamp(90px, 13vw, 140px) 0 clamp(30px, 4vw, 44px);
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(58, 29, 114, 0.55), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--ink) 75%);
}
.cases-hero .wrap {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.cases-hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  margin: 18px 0 0;
}
.cases-hero p {
  color: #d7daf2;
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin: 18px 0 0;
  max-width: 620px;
}

.filterbar {
  position: sticky;
  top: 68px;
  z-index: 20;
  background: rgba(11, 11, 33, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.fbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.fbar-spacer {
  flex: 1 1 auto;
  min-width: 0;
}

/* segmented control (Area) */
.seg {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}
.seg-btn {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 500;
  color: #cfd3f2;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.16s ease;
}
.seg-btn:hover {
  color: #fff;
}
.seg-btn.active {
  background: var(--cyan);
  color: #06121a;
  font-weight: 600;
}
.seg-btn.magenta.active {
  background: var(--magenta);
  color: #fff;
}

/* facet buttons (desktop) */
.facets {
  display: flex;
  gap: 8px;
}
.facet-btn {
  font-family: var(--display);
  font-size: 0.8rem;
  color: #cfd3f2;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.16s ease;
  line-height: 1.2;
}
.facet-btn:hover {
  border-color: rgba(54, 224, 255, 0.5);
  color: #fff;
}
.facet-btn.has-selection {
  border-color: var(--cyan);
  color: #fff;
  background: rgba(54, 224, 255, 0.08);
}
.facet-btn[aria-expanded="true"] {
  border-color: var(--cyan);
  color: #fff;
}
.facet-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #06121a;
}
.facet-badge[hidden] {
  display: none;
}
.facet-caret {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* search input */
.search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 1 240px;
  min-width: 160px;
}
.search-ico {
  position: absolute;
  left: 11px;
  font-size: 0.85rem;
  opacity: 0.6;
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  font-family: var(--body);
  font-size: 0.85rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 32px;
  outline: none;
  transition: border-color 0.16s ease;
}
.search-wrap input::placeholder {
  color: #8a8fb8;
}
.search-wrap input:focus {
  border-color: var(--cyan);
}

/* mobile filter button — hidden on desktop */
.mob-filter-btn {
  display: none;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}
.mob-filter-btn:hover {
  border-color: var(--cyan);
}

.result-meta {
  font-size: 0.82rem;
  color: var(--mute);
  font-family: var(--display);
}
.clear-btn {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}
.clear-btn[hidden] {
  display: none;
}

/* active filter pills (below bar) */
.active-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.active-pills[hidden] {
  display: none;
}
.active-pills .pill {
  font-family: var(--display);
  font-size: 0.74rem;
  color: #fff;
  background: rgba(54, 224, 255, 0.12);
  border: 1px solid rgba(54, 224, 255, 0.4);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.active-pills .pill:hover {
  background: rgba(255, 61, 190, 0.18);
  border-color: var(--magenta);
}
.pill {
  cursor: default;
}
.pill span {
  opacity: 0.7;
  font-size: 0.78rem;
}

/* desktop popover */
.popover {
  position: absolute;
  z-index: 30;
  background: #11123a;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  min-width: 200px;
  max-height: 340px;
  overflow: auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.popover[hidden] {
  display: none;
}
.pop-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pop-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--body);
  font-size: 0.86rem;
  color: #dfe2f6;
}
.pop-row:hover {
  background: rgba(54, 224, 255, 0.08);
}
.pop-row.on {
  color: #fff;
}
.pop-row input {
  accent-color: var(--cyan);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* mobile bottom sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 18, 0.6);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.sheet-backdrop.open {
  opacity: 1;
}
.sheet-backdrop[hidden] {
  display: none;
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: #0f1036;
  border-top: 1px solid var(--line);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
}
.sheet.open {
  transform: translateY(0);
}
.sheet[hidden] {
  display: none;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 8px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h3 {
  font-size: 1.05rem;
  font-family: var(--display);
}
.sheet-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.sheet-close:hover {
  background: rgba(255, 255, 255, 0.06);
}
.sheet-body {
  padding: 14px 20px;
  overflow-y: auto;
  flex: 1;
}
.sheet-section {
  margin-bottom: 18px;
}
.sheet-section h4 {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}
.sheet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sheet-foot {
  padding: 14px 20px 22px;
  border-top: 1px solid var(--line);
}
.sheet-apply {
  width: 100%;
  justify-content: center;
}
@media (prefers-reduced-motion: reduce) {
  .sheet,
  .sheet-backdrop {
    transition: none;
  }
}

/* chip (used in sheet) */
.chip {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #cfd3f2;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  white-space: nowrap;
  transition: all 0.16s ease;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.3;
}
.chip:hover {
  border-color: rgba(54, 224, 255, 0.5);
  color: #fff;
}
.chip.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #06121a;
  font-weight: 600;
}

.cmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.mchip {
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: #aeb3e0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: var(--display);
  text-transform: uppercase;
}
.mchip.eng {
  color: #7fe9ff;
  border-color: rgba(54, 224, 255, 0.3);
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--mute);
  padding: 60px 0;
  font-family: var(--display);
}

/* mobile filter layout */
@media (max-width: 880px) {
  .filterbar {
    top: 68px;
  }
  .facets {
    display: none;
  }
  .mob-filter-btn {
    display: inline-flex;
  }
  .fbar-spacer {
    display: none;
  }
  .result-meta {
    order: 5;
    flex: 1 1 auto;
  }
  .seg {
    order: 1;
    overflow-x: auto;
    max-width: 100%;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .seg::-webkit-scrollbar {
    display: none;
  }
  .mob-filter-btn {
    order: 2;
    margin-left: auto;
  }
  .search-wrap {
    order: 3;
    flex: 1 1 100%;
  }
  .clear-btn {
    order: 6;
  }
}

/* ---- people, contact & about pages ---- */
.person-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}
.person-grid.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
}
.person {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
}
.person .ph {
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
}
.person h3 {
  font-size: 1.15rem;
}
.person .role {
  display: block;
  color: var(--mute);
  font-size: 0.85rem;
  margin-top: 4px;
  font-family: var(--display);
}
.person p {
  font-size: 0.9rem;
  color: #c4c8e6;
  margin-top: 12px;
}
.person .plinks {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  font-family: var(--display);
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.person .plinks a {
  color: var(--cyan);
}
.person .plinks a:hover {
  text-decoration: underline;
}
@media (max-width: 860px) {
  .person-grid,
  .person-grid.two {
    grid-template-columns: 1fr;
  }
}
#leadership .person-grid.two {
  margin-top: 22px;
}
#company-photo .company-photo-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-card, 14px);
}
#stage .ph {
  height: 120px;
  margin-bottom: 16px;
}

.cform {
  margin-top: 40px;
  max-width: 640px;
  display: grid;
  gap: 18px;
}
.cform label {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: 7px;
}
.cform input,
.cform select,
.cform textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 13px 15px;
}
.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}
.cform textarea {
  min-height: 140px;
  resize: vertical;
}
.cform .frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .cform .frow {
    grid-template-columns: 1fr;
  }
}
.cform select {
  appearance: none;
  -webkit-appearance: none;
}
.cform option {
  background: var(--navy);
}
.cform[hidden],
.cform-msg[hidden],
.cform-done[hidden] {
  display: none;
}
.cform button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.cf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cform-msg {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}
.cform-msg.is-error {
  color: #ff9d8a;
}
.cform-done {
  margin-top: 40px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.03);
}
.cform-done h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  margin: 0 0 8px;
}
.cform-done p {
  margin: 0;
  color: var(--muted);
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.office {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
}
.office h3 {
  font-size: 1rem;
  color: var(--cyan);
}
.office p {
  font-size: 0.86rem;
  color: #c4c8e6;
  margin-top: 8px;
}
@media (max-width: 980px) {
  .office-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .office-grid {
    grid-template-columns: 1fr;
  }
}
.office-meta {
  margin-top: 28px;
  color: var(--mute);
}
.office-meta a {
  color: var(--cyan);
}

/* ---- clickable case cards (cases.html → case.html) ---- */
.case-more {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--cyan);
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
a.case:hover .case-more {
  color: #fff;
}
a.case .case-more::after {
  content: "";
  transition: transform 0.2s;
}
a.case:hover .case-more {
  transform: translateX(0);
}

/* ---- case detail page (case.html) ---- */
.case-studio {
  color: var(--mute);
  font-family: var(--display);
  font-size: 1rem;
  margin-top: 12px;
}
.subhero .lede.case-summary {
  margin-top: 14px;
}
.case-keyart {
  width: 100%;
  aspect-ratio: 21/8;
  min-height: 220px;
  margin-top: 8px;
}
.case-detail-grid {
  margin-top: 20px;
}
@media (max-width: 860px) {
  .case-keyart {
    aspect-ratio: 16/9;
    min-height: 180px;
  }
}

/* ---- breadcrumb bar (sits directly below the nav on sub-pages) ---- */
.crumb-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 24, 0.55);
}
.crumb-bar .wrap {
  padding-top: 12px;
  padding-bottom: 12px;
}
.crumb-bar .crumbs {
  margin: 0;
  font-size: 0.66rem;
}

/* ---- real brand assets (logos + key art) ---- */
/* Equal-area sizing: each logo is scaled so its artwork covers ~6400px²
   (80x80 equivalent), preserving aspect ratio. Extreme ratios capped at 4:1. */
.trust-logo {
  --tscale: 1;
  object-fit: contain;
  display: block;
  opacity: 0.95;
  filter: none;
}
.trust-logo[src*="coffee-stain"] {
  width: calc(91px * var(--tscale));
  height: calc(79px * var(--tscale));
}
.trust-logo[src*="iron-gate"] {
  width: calc(79px * var(--tscale));
  height: calc(92px * var(--tscale));
}
.trust-logo[src*="stunlock"] {
  width: calc(155px * var(--tscale));
  height: calc(41px * var(--tscale));
}
.trust-logo[src*="ghost-ship"] {
  width: calc(90px * var(--tscale));
  height: calc(84px * var(--tscale));
}
.trust-logo[src*="focus"] {
  width: calc(170px * var(--tscale));
  height: calc(56px * var(--tscale));
}
.trust-logo[src*="raw-fury"] {
  width: calc(102px * var(--tscale));
  height: calc(73px * var(--tscale));
}
.trust-logo[src*="dotemu"] {
  width: calc(96px * var(--tscale));
  height: calc(76px * var(--tscale));
}
.trust-logo[src*="lavapotion"] {
  width: calc(85px * var(--tscale));
  height: calc(84px * var(--tscale));
}
.trust-logo[src*="pugstorm"] {
  width: calc(172px * var(--tscale));
  height: calc(53px * var(--tscale));
}
.trust-logo[src*="flamebait"] {
  width: calc(77px * var(--tscale));
  height: calc(94px * var(--tscale));
}
.trust-logo[src*="saab"] {
  width: calc(178px * var(--tscale));
  height: calc(60px * var(--tscale));
}

.person-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 18px;
}
/* Equal-area sizing (same technique as the trust wall): each case logo is
   scaled so its trimmed artwork covers ~11000px², preserving aspect ratio.
   Extreme ratios are capped so nothing gets absurdly tall or wide. */
.case-logo-img {
  --cscale: 1;
  width: calc(171px * var(--cscale));
  height: calc(64px * var(--cscale));
  max-width: 85%;
  object-fit: contain;
  object-position: left center;
  align-self: flex-start;
  margin-top: 44px;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}
.case-logo-img[src*="core-keeper"] {
  width: calc(157px * var(--cscale));
  height: calc(70px * var(--cscale));
}
.case-logo-img[src*="drg-survivor"] {
  width: calc(174px * var(--cscale));
  height: calc(63px * var(--cscale));
}
.case-logo-img[src*="goat-simulator"] {
  width: calc(183px * var(--cscale));
  height: calc(60px * var(--cscale));
}
.case-logo-img[src*="passpartout"] {
  width: calc(189px * var(--cscale));
  height: calc(58px * var(--cscale));
}
.case-logo-img[src*="rv-there-yet"] {
  width: calc(215px * var(--cscale));
  height: calc(51px * var(--cscale));
}
.case-logo-img[src*="saight"] {
  width: calc(195px * var(--cscale));
  height: calc(56px * var(--cscale));
}
.case-logo-img[src*="songs-of-conquest"] {
  width: calc(172px * var(--cscale));
  height: calc(64px * var(--cscale));
}
.case-logo-img[src*="speed-freeks"] {
  width: calc(215px * var(--cscale));
  height: calc(51px * var(--cscale));
}
.case-logo-img[src*="starship-troopers"] {
  width: calc(161px * var(--cscale));
  height: calc(68px * var(--cscale));
}
.case-logo-img[src*="v-rising"] {
  width: calc(125px * var(--cscale));
  height: calc(88px * var(--cscale));
}
.case-logo-img[src*="valheim"] {
  width: calc(171px * var(--cscale));
  height: calc(64px * var(--cscale));
}
.case-logo-img[src*="void-crew"] {
  width: calc(129px * var(--cscale));
  height: calc(85px * var(--cscale));
}
/* Key art rendered as a real <img> for lazy-loading; fills the card art slot 1:1. */
.case-art-img {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border-radius: var(--radius-card);
}
.case-art-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.35s ease;
}
.case:hover .case-art-img img {
  filter: brightness(1.55);
}
.case-art-img span {
  display: none;
}
/* Dark gradient overlay above the image, below the card text */
.case-art-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 7, 24, 0.45) 0%, rgba(7, 7, 24, 0.72) 55%, rgba(7, 7, 24, 0.92) 100%);
}
/* Text that sits on top of case art — readability via shadow + overlay. */
.case .ctag,
.case .studio,
.case p,
.case .case-more {
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.95),
    0 0 4px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(0, 0, 0, 0.7);
}
.case-keyart-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-card);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--line);
}
.case-hero-logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  margin: 18px 0 6px;
}
@media (max-width: 860px) {
  .trust-logo {
    --tscale: 0.78;
  }
  .trust-cell {
    height: 80px;
  }

  .case-logo-img {
    --cscale: 0.82;
  }
}

/* ---- careers page (careers.html + careers-job.html) ---- */
/* Job cards reuse .case / .case-art / .ctag / .mchip / .case-more.
     Jobs have no brand logo, so the title is text in the slot the
     .case-logo-img normally occupies (same 44px top margin). */
.case .job-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.15;
  color: #fff;
  margin: 44px 0 10px;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.95),
    0 0 4px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(0, 0, 0, 0.7);
}

/* Loading skeleton shown while jobs.js fetches the cache. */
.job-skel {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, rgba(26, 24, 86, 0.5), rgba(7, 7, 24, 0.5));
}
.job-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: job-shimmer 1.3s infinite;
}
@keyframes job-shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Role detail (careers-job.html) — hero image as a safe <img>
     (not background-image, so a CDN url() can't be broken out of). */
.job-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-top: 8px;
}

/* Prose styling for the trusted Teamtailor body HTML. Scoped to .job-body
     so it never affects other content. The global * reset removes list
     bullets/indent, so they're restored here. */
.job-body {
  max-width: 760px;
  color: #cfd3ee;
  font-size: 1rem;
  line-height: 1.7;
}
.job-body h1,
.job-body h2,
.job-body h3,
.job-body h4 {
  color: #fff;
  font-family: var(--display);
  line-height: 1.2;
  margin: 28px 0 12px;
}
.job-body h2 {
  font-size: 1.5rem;
}
.job-body h3 {
  font-size: 1.2rem;
}
.job-body h4 {
  font-size: 1.05rem;
}
.job-body p {
  margin: 0 0 16px;
}
.job-body ul,
.job-body ol {
  margin: 0 0 16px 22px;
}
.job-body li {
  margin: 6px 0;
}
.job-body a {
  color: var(--cyan);
  text-decoration: underline;
}
.job-body strong,
.job-body b {
  color: #fff;
}
.job-body em {
  color: #dfe2f6;
}
.job-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.job-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

/* Careers filter row — in-section container for the cases filter
     components; position:relative so the .popover anchors to it. */
.jobs-filter {
  position: relative;
  margin-top: 24px;
}

/* Interim treatment for art slots with no real image yet (e.g. SAIght) */
.case-art:not(.case-art-img) {
  border-style: solid;
  border-color: var(--line);
  background: linear-gradient(160deg, var(--indigo) 0%, var(--purple) 75%);
}
.feat-art.ph {
  border-style: solid;
  border-color: var(--line);
  background: linear-gradient(160deg, var(--indigo), var(--purple));
}

/* Service tag contrast on bright key art */
.case .ctag {
  background: rgba(7, 7, 24, 0.55);
}
