/* Colours follow the platform's clients/_default/theme.json (light and dark). */
:root {
  --brand: #1d4ed8;
  --brand-hover: #2563eb;
  --accent: #d97706;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --sunken: #eef0f3;
  --text: #0f172a;
  --muted: #52607a;
  --subtle: #8593ab;
  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.24);
  --ring: #2563eb;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --hero-a: #0b2a6b;
  --hero-b: #1d4ed8;
  --hero-c: #0e7490;
  --radius: 1rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #2dd4bf;
    --brand-hover: #5eead4;
    --accent: #38bdf8;
    --bg: #0a0f1a;
    --surface: #111827;
    --sunken: #070b13;
    --text: #e8ecf3;
    --muted: #9aa7bd;
    --subtle: #68758c;
    --border: rgba(232, 236, 243, 0.14);
    --border-strong: rgba(232, 236, 243, 0.28);
    --ring: #38bdf8;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --hero-a: #07131f;
    --hero-b: #0b3b4a;
    --hero-c: #0f766e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; }

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.25rem; letter-spacing: 0.01em; }
.brand img { width: 40px; height: 40px; }
.langs { display: flex; gap: 0.15rem; flex-wrap: wrap; }
.langs a { padding: 0.25rem 0.5rem; border-radius: 0.375rem; color: var(--muted); text-decoration: none; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }
.langs a:hover { background: var(--sunken); color: var(--text); }
.langs a[aria-current] { background: var(--sunken); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* hero: always light text on a deep wash, in both colour schemes */
.hero { background: linear-gradient(120deg, var(--hero-a) 0%, var(--hero-b) 58%, var(--hero-c) 100%); color: #f1f5ff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; align-items: center; padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 700; max-width: 22ch; margin-bottom: 1.5rem; }
.hero p { max-width: 62ch; color: rgba(241, 245, 255, 0.84); }
.hero p + p { margin-top: 0.9rem; }
.hero p.lead { font-size: 1.125rem; color: #ffffff; }
.hero-mark img { width: clamp(120px, 16vw, 200px); height: auto; opacity: 0.9; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
}

/* sections */
.section { padding-block: clamp(2.25rem, 5vw, 3.5rem) 0; }
.section h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; }
.intro { color: var(--muted); margin-top: 0.4rem; }

/* client cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.cards > li { display: flex; }
.card { display: flex; flex-direction: column; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 16 / 9; background: var(--sunken); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--hero-a), var(--hero-c)); }
.card-img-empty img.placeholder { width: 72px; height: 72px; object-fit: contain; opacity: 0.85; }
/* logo alone (no photograph), and logo chip over a photograph: always on white, logos are drawn for light backgrounds */
.card-img-logo { display: grid; place-items: center; background: #ffffff; }
.card-img img.logo { position: absolute; top: 16%; left: 15%; width: 70%; height: 68%; object-fit: contain; }
.card-logo { position: absolute; right: 0.6rem; bottom: 0.6rem; background: #ffffff; border-radius: 0.5rem; padding: 0.3rem 0.5rem; }
.card-img .card-logo img { width: auto; height: 1.75rem; object-fit: contain; }
.markers { position: absolute; top: 0.6rem; left: 0.6rem; right: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.marker { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #ffffff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); }
.marker-in_development { background: #b45309; }
.marker-research { background: #0e7490; }
.card-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.15rem 1.1rem; flex: 1; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 1.25rem; font-weight: 700; }
.tagline { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.operator { font-size: 0.875rem; color: var(--subtle); }
.credit { margin-top: auto; padding-top: 0.6rem; font-size: 0.75rem; color: var(--subtle); }

/* partners */
.partners { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.partner { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1.1rem 0.85rem 0.85rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: inherit; text-decoration: none; }
.partner:hover { border-color: var(--border-strong); }
/* Logos are drawn for light backgrounds: keep them on a white plate in both schemes. */
.plate { display: grid; place-items: center; background: #ffffff; border-radius: 0.625rem; padding: 0.6rem 0.9rem; min-width: 9rem; height: 4rem; }
.plate img { max-height: 2.6rem; max-width: 10rem; width: auto; height: auto; }
.partner-text { display: flex; flex-direction: column; line-height: 1.35; }
.partner-text strong { font-weight: 650; }
.partner-text span { font-size: 0.875rem; color: var(--muted); }

/* footer */
.foot { margin-top: clamp(2.5rem, 6vw, 4rem); background: var(--surface); border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; padding-block: 1.75rem; }
.foot-brand { display: flex; align-items: center; gap: 0.75rem; max-width: 32rem; }
.foot-brand img { width: 32px; height: 32px; }
.foot-brand p { display: flex; flex-direction: column; line-height: 1.4; }
.foot-brand strong { color: var(--text); font-size: 1rem; font-weight: 650; }
.foot-h { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--subtle); margin-bottom: 0.3rem; }
.foot-col ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.foot-col a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot-col a:hover { color: var(--brand); text-decoration: underline; }
