/* MLJ – company site stylesheet (original work, no third‑party CSS) */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --surface: #ffffff;
  --text: #16202e;
  --muted: #5b6878;
  --line: #e2e7ee;
  --brand: #0b3d91;
  --brand-dark: #072a66;
  --accent: #1fa2ff;
  --accent-soft: #e6f4ff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 61, 145, .08);
  --max: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141d;
    --bg-alt: #131b27;
    --surface: #182233;
    --text: #e9eef5;
    --muted: #9fadbf;
    --line: #253145;
    --brand: #4c8dff;
    --brand-dark: #2f6fe0;
    --accent: #57b8ff;
    --accent-soft: #16304a;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 2.5rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .75rem;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 1000; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: .02em; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--text); font-weight: 500; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .85rem; font-weight: 600; }
.lang a { padding: .35rem .75rem; color: var(--muted); }
.lang a:hover { text-decoration: none; color: var(--brand); }
.lang a[aria-current="true"] { background: var(--brand); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--text);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 8rem) 0; background: var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__art { border-radius: var(--radius); box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.stat { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat strong { display: block; font-size: 1.8rem; color: var(--brand); }
.stat span { color: var(--muted); font-size: .95rem; }

/* Cards / grids */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; transition: .2s ease; height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--brand); margin-bottom: 1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card p:last-child { margin: 0; }

/* Projects */
.project { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.project__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project:hover .project__media img { transform: scale(1.04); }
.project__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.project__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .25rem; }
.tag {
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--brand);
}
.project__link { margin-top: auto; font-weight: 600; }
.project__link::after { content: " →"; }

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { position: relative; padding: 1.5rem 1.5rem 1.5rem; border-top: 3px solid var(--brand); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-weight: 800; color: var(--brand); font-size: 1.4rem; display: block; margin-bottom: .5rem;
}

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact__list svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: .2rem; }
.contact__list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cta-box { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 2.25rem; }
.cta-box h3 { color: #fff; }
.cta-box .btn--primary { background: #fff; color: var(--brand); }
.cta-box .btn--primary:hover { background: #eaf1ff; }

/* Detail page */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.detail { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.detail__aside { position: sticky; top: 96px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.facts li span:first-child { color: var(--muted); }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.footer__links { display: flex; gap: 1.25rem; }
.footer__links a { color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .contact, .detail { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .detail__aside { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: .25rem;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .6rem .5rem; width: 100%; }
  .nav .lang { margin-top: .5rem; }
  .grid--3, .grid--2, .steps, .stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Brand logo (real MLJ logotype) */
.logo__mark { width: auto; height: 40px; }

/* About + certification badge */
.about__grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 3rem; align-items: center; }
.badge { text-align: center; }
.badge img { width: min(220px, 70%); height: auto; margin: 0 auto 1rem; }
.badge p { font-size: .9rem; color: var(--muted); margin: 0; }
.hero__art--photo { aspect-ratio: 16 / 10; height: auto; object-fit: cover; width: 100%; }

/* Screenshot galleries */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0; }
.gallery--tablet { grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 12px; }
.gallery figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: .6rem; }
.feature-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.feature-list li { padding-left: 1.6rem; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
@media (max-width: 960px) { .about__grid { grid-template-columns: 1fr; } .gallery { grid-template-columns: repeat(2, 1fr); } .gallery--tablet { grid-template-columns: 1fr; } }

/* Hero logo + header logo that appears only once the hero logo scrolls away */
.hero__logo { display: grid; place-items: center; padding: clamp(2rem, 6vw, 4rem); }
.hero__logo img { width: min(360px, 80%); height: auto; }
.header .logo { transition: opacity .25s ease, transform .25s ease; }
.header--logo-hidden .logo { opacity: 0; transform: translateY(-6px); pointer-events: none; }
@media (max-width: 960px) { .hero__logo { order: -1; } }
