/* Homepage only. Legal, privacy, support and capabilities retain main.css.
   Read in order: local font/tokens → hero → editorial sections → breakpoints.
   Hero light edges are native Typst SVG, not CSS shadows.
   Contact/toolbox rules are homepage-scoped: other pages retain main.css. */
@font-face {
  font-family: "Monaspace Argon";
  src: url("../fonts/MonaspaceArgonVar.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: optional;
}
.jm-home {
  --home-bg: #154575;
  --home-surface: #10375e;
  --home-ink: #eff6ff;
  --home-muted: #d1deeb;
  --home-rule: #4b7197;
  --home-cyan: #48dbf5;
  --home-emerald: #67c19b;
  background: var(--home-bg);
  color: var(--home-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
.jm-home .container { max-width: 1240px; padding-inline: 40px; }
.jm-home h1, .jm-home h2, .jm-home h3, .home-brand {
  font-family: "Monaspace Argon", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: var(--home-ink);
}
.jm-home a { color: var(--home-ink); }
.jm-home a:hover { color: var(--home-cyan); }
.jm-home a:focus-visible {
  outline: 2px solid var(--home-cyan);
  outline-offset: 5px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  z-index: 5;
  left: 24px;
  top: 12px;
  padding: 12px 20px;
  background: var(--home-ink);
  color: var(--home-bg) !important;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.home-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 116px;
}
.home-brand { display: flex; flex-direction: column; justify-content: center; min-height: 44px; font-size: 16px; line-height: 1.45; }
.home-brand span:last-child { color: var(--home-muted); font-size: 13px; }
.home-header nav { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.home-header nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.jm-home .hero {
  margin-top: -116px;
  min-height: 836px;
  padding: 226px 0 170px;
  display: block;
  text-align: left;
  background: var(--home-bg);
  isolation: isolate;
  /* Clip artwork only; content and keyboard focus remain in their own layer. */
  overflow: clip;
}
.hero-art {
  position: absolute;
  z-index: -1;
  top: 30px;
  right: -100px;
  width: min(76vw, 1000px);
  height: auto;
  pointer-events: none;
}
.jm-home .hero-content { padding-block: 0; }
.hero-kicker { color: var(--home-muted); font-size: 13px; letter-spacing: 0.08em; margin-bottom: 26px; }
.jm-home .hero-content h1 {
  max-width: 700px;
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.055em;
  margin-bottom: 28px;
}
.jm-home .hero-content .sub {
  max-width: 520px;
  margin: 0 0 36px;
  font-size: 18px;
  color: var(--home-muted);
  line-height: 1.85;
}
.jm-home .hero-content .cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 52px;
  padding: 12px 20px;
  background: var(--home-emerald);
  color: var(--home-bg);
  border: 1px solid var(--home-emerald);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  transition: background 160ms, border-color 160ms;
}
.jm-home .hero-content .cta:hover { background: var(--home-cyan); border-color: var(--home-cyan); color: var(--home-bg); }
.jm-home section { padding-block: 96px; scroll-margin-top: 24px; }
.jm-home .values { background: var(--home-bg); padding-block: 0 76px; }
.jm-home .values .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.jm-home .card { background: none; border: none; border-top: 1px solid var(--home-rule); border-radius: 0; padding: 26px 0 0; }
.jm-home .card h3 { font-size: 17px; margin-bottom: 12px; }
.jm-home .card p { color: var(--home-muted); font-size: 15px; line-height: 1.7; }
.jm-home #services { background: var(--home-surface); }

.jm-home .section-header { text-align: left; margin-bottom: 44px; }
.jm-home .section-header h2 { font-size: clamp(25px, 3vw, 36px); margin-bottom: 18px; letter-spacing: -0.04em; }
.jm-home .section-header p { margin: 0; max-width: 660px; color: var(--home-muted); }
.jm-home #services .services-grid { display: block; }
.jm-home #services .service {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: 64px;
  border-top: 1px solid var(--home-rule);
  padding-block: 30px;
}
.jm-home .service h3 { font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
.jm-home .service p { font-size: 16px; line-height: 1.8; color: var(--home-muted); }
.jm-home #services .service p + p { grid-column: 2; margin-top: 12px; color: var(--home-ink); }
.jm-home .about .services-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
.jm-home .about .service { padding-top: 24px; border-top: 1px solid var(--home-rule); }
.jm-home .about .service h3 { margin-bottom: 12px; }
.jm-home .toolbox .container { display: grid; grid-template-columns: 0.9fr 1.1fr; column-gap: 64px; }
.jm-home .toolbox .section-header { margin: 0; }
.jm-home .toolbox .services-grid { display: block; }
.jm-home .toolbox .service { display: grid; grid-template-columns: 160px 1fr; column-gap: 24px; padding-block: 24px; }
.jm-home .toolbox .service h3 { font-size: 15px; margin: 0; }
.jm-home .toolbox .service p { margin: 0; }
.jm-home #about { border-top: 1px solid var(--home-rule); }
.jm-home #about .container { display: grid; grid-template-columns: 0.9fr 1.1fr; column-gap: 64px; }
.jm-home #about .section-header { grid-row: 1 / 4; }
.jm-home #about p { max-width: 680px; color: var(--home-muted); font-size: 17px; }
.jm-home #about p + p { margin-top: 24px; }
.jm-home .home-contact { background: var(--home-surface); padding-block: 64px 80px; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; column-gap: 64px; }
.jm-home .demo-bar { background: none; text-align: left; padding: 0; }
.jm-home .home-contact h2 { font-size: clamp(23px, 2.4vw, 30px); line-height: 1.4; letter-spacing: -0.04em; margin-bottom: 20px; }
.jm-home .text-cta { display: inline-flex; align-items: center; min-height: 44px; padding-block: 10px; color: var(--home-cyan); text-decoration: underline; text-underline-offset: 6px; font-size: 16px; }
.contact-details { display: flex; flex-direction: column; align-items: flex-start; }
.contact-email { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; overflow-wrap: anywhere; text-decoration: underline !important; text-underline-offset: 6px; }
.contact-details .text-cta { margin-top: 16px; }
.jm-home .site-footer { background: var(--home-bg); color: var(--home-muted); text-align: left; padding: 48px max(40px, calc((100vw - 1160px) / 2)); font-size: 13px; line-height: 1.8; }
.jm-home .site-footer p + p { margin-top: 12px; }
.jm-home .site-footer a { display: inline-block; min-height: 44px; padding-block: 10px; text-decoration: underline; text-underline-offset: 4px; }
.jm-home .site-footer { border-top: 1px solid var(--home-rule); }
@media (max-width: 1000px) {
  .jm-home .hero { min-height: 756px; padding-block: 216px 130px; }
  .hero-art { right: -180px; top: 96px; width: 820px; }
  .jm-home .hero-content h1 { font-size: 46px; max-width: 520px; }
  .jm-home .hero-content .sub { max-width: 390px; font-size: 16px; }
  .jm-home .values .container { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .jm-home #services .service, .jm-home #about .container, .jm-home .toolbox .container, .contact-grid { column-gap: 32px; }
  .jm-home .toolbox .service { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 760px) {
  .jm-home .container { padding-inline: 24px; }
  .home-header { min-height: 124px; align-items: flex-start; padding-top: 24px; gap: 18px; flex-direction: column; }
  .home-header nav { gap: 24px; }
  .jm-home .hero { display: flex; flex-direction: column; margin-top: 0; padding: 44px 0 0; min-height: 0; }
  .jm-home .hero-content { order: 0; width: 100%; }
  .hero-art { order: 1; position: relative; z-index: 0; top: auto; right: auto; width: 100%; height: auto; margin-top: -80px; margin-bottom: -30px; }
  .jm-home .hero-content h1 { font-size: clamp(33px, 7.6vw, 52px); }
  .hero-kicker { font-size: 11px; margin-bottom: 20px; }
  .jm-home .hero-content .sub { font-size: 16px; max-width: 100%; margin-bottom: 24px; }
  .jm-home section { padding-block: 64px; }
  .jm-home .values { padding-block: 16px 64px; }
  .jm-home .values .container { gap: 26px; }
  .jm-home .card h3 { font-size: 15px; }
  .jm-home .card p { font-size: 14px; }
  .jm-home #services .service { display: block; padding-block: 26px; }
  .jm-home .service h3 { font-size: 17px; margin-bottom: 14px; overflow-wrap: anywhere; }
  .jm-home .service p { font-size: 16px; }
  .jm-home .about .services-grid { grid-template-columns: 1fr; gap: 28px; }
  .jm-home #about .container { display: block; }
  .jm-home .toolbox .container, .contact-grid { display: block; }
  .jm-home .toolbox .section-header { margin-bottom: 32px; }
  .contact-details { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--home-rule); }
  .jm-home .home-contact { padding-block: 48px 64px; }
  .contact-email { font-size: 16px; }
  .jm-home #about p { font-size: 16px; }
  .jm-home .section-header { margin-bottom: 32px; }
  .jm-home .site-footer { padding: 36px 24px; }
  .jm-home .demo-bar a { margin: 0; }
}
@media (max-width: 360px) {
  .home-header nav { gap: 14px; }
  .jm-home .values .container { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .jm-home a { transition: none; }
}
