/* JustTekno compact typography contract.
   Body copy is 16px; the largest heading is 20px (roughly +3pt).
   Hierarchy comes from weight, spacing and colour instead of display-scale type. */
:root {
  --jt-type-body: 1rem;
  --jt-type-h1: 1.25rem;
  --jt-type-h2: 1.1875rem;
  --jt-type-h3: 1.125rem;
  --jt-type-h4: 1rem;
  --jt-card-border-width: 1mm;
  --jt-card-border-color: color-mix(in srgb, var(--jt-theme-ink) 34%, var(--jt-theme-line));
  --jt-card-divider-color: color-mix(in srgb, var(--jt-theme-brand) 42%, var(--jt-theme-line));
}

html[data-theme] body.jt-site {
  font-size: var(--jt-type-body);
}

html[data-theme] body.jt-site #main-content :where(h1, h2, h3, h4, h5, h6),
html[data-theme] body.jt-site .elite-footer :where(h2, h3, h4, h5, h6) {
  max-width: 72ch;
  margin-block: 0 0.72em;
  color: var(--jt-theme-ink) !important;
  line-height: 1.34 !important;
  letter-spacing: -.012em !important;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

html[data-theme] body.jt-site #main-content h1 {
  font-size: var(--jt-type-h1) !important;
  font-weight: 720 !important;
}

html[data-theme] body.jt-site #main-content h2 {
  font-size: var(--jt-type-h2) !important;
  font-weight: 690 !important;
}

html[data-theme] body.jt-site #main-content h3,
html[data-theme] body.jt-site .elite-footer h3 {
  font-size: var(--jt-type-h3) !important;
  font-weight: 670 !important;
}

html[data-theme] body.jt-site #main-content :where(h4, h5, h6) {
  font-size: var(--jt-type-h4) !important;
  font-weight: 650 !important;
}

/* Card contract: one clear outer boundary, more breathing room, no visual merging. */
html[data-theme] body.jt-site #main-content :where(
  .card, .scenario-card, .product-card, .jt26-product-card,
  .jt26-market, .jt26-program, .jt26-model-grid > article,
  .jt26-flow > article, .jt26-continuity-list > article,
  .world-showcase-copy, .gallery-item, .spx-market-card,
  .spx-feature-grid > article, .mk-grid > article, .flow-step,
  .info-box, .download-row, .model-large, .arch-card, .track-visual,
  .jt-update-feature-grid > article, .jt-update-communications-grid > article,
  .jt-update-workflow > article
) {
  border-width: var(--jt-card-border-width) !important;
  border-style: solid !important;
  border-color: var(--jt-card-border-color) !important;
  background-color: var(--jt-theme-surface) !important;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--jt-theme-ink) 12%, transparent) !important;
  isolation: isolate;
}

html[data-theme] body.jt-site #main-content :where(
  .cards, .product-card-grid, .jt26-catalog-grid,
  .jt26-market-grid, .jt26-program-grid, .jt26-model-grid,
  .spx-feature-grid, .mk-grid
) {
  gap: clamp(20px, 2vw, 26px) !important;
}

/* Product catalogue: image and information are two readable zones of one card. */
html[data-theme] body.jt-site #main-content .jt26-product-card {
  overflow: hidden;
  border-radius: 20px;
}

html[data-theme] body.jt-site #main-content .jt26-product-card figure {
  border-right: var(--jt-card-border-width) solid var(--jt-card-divider-color);
  background: var(--jt-theme-bg-deep);
}

html[data-theme] body.jt-site #main-content .jt26-product-card > div {
  padding: 24px;
}

html[data-theme] body.jt-site #main-content .jt26-product-card:hover {
  border-color: color-mix(in srgb, var(--jt-theme-brand) 58%, var(--jt-theme-ink)) !important;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--jt-theme-brand) 15%, transparent) !important;
}

/* Theatre uses one outlined copy panel in desktop mode; fallback uses one outer card. */
html[data-theme] body.jt-site #main-content .jt-theatre.is-enhanced .jt-theatre-copy,
html[data-theme] body.jt-site #main-content .jt-theatre:not(.is-enhanced) .jt-theatre-scene {
  border-width: var(--jt-card-border-width) !important;
  border-style: solid !important;
  border-color: var(--jt-card-border-color) !important;
  box-shadow: 0 12px 34px color-mix(in srgb, var(--jt-theme-ink) 14%, transparent) !important;
}

/* Keep page openings concise now that titles no longer act as billboards. */
html[data-theme] body.jt-site :where(
  .page-hero, .hero, .spx-hero, .mk-hero, .el-hero,
  .jt-update-hero, .jt26-catalog-hero
) {
  padding-top: clamp(42px, 5vw, 62px) !important;
  padding-bottom: clamp(38px, 4.5vw, 56px) !important;
}

html[data-theme] body.jt-site #main-content :where(
  .page-hero, .hero, .spx-hero, .mk-hero, .el-hero,
  .jt-update-hero, .jt26-catalog-hero
) h1 {
  max-width: 62ch !important;
  margin: 11px 0 13px !important;
}

html[data-theme] body.jt-site #main-content :where(
  .page-hero, .hero, .spx-hero, .mk-hero, .el-hero,
  .jt-update-hero, .jt26-catalog-hero
) p {
  max-width: 76ch;
  font-size: 1rem !important;
  line-height: 1.68 !important;
}

/* Homepage hero: compact copy, balanced image and a single proof row. */
html[data-theme] body.jt-site .jt26-hero {
  padding: 56px 0 52px !important;
}

html[data-theme] body.jt-site .jt26-hero-grid {
  grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
  gap: clamp(38px, 4vw, 58px);
  align-items: center;
}

html[data-theme] body.jt-site .jt26-hero-copy {
  max-width: 700px;
}

html[data-theme] body.jt-site #main-content .jt26-hero h1 {
  max-width: 60ch !important;
  margin: 13px 0 14px !important;
}

html[data-theme] body.jt-site .jt26-hero-copy > p {
  max-width: 68ch;
  font-size: 1rem !important;
  line-height: 1.68 !important;
}

html[data-theme] body.jt-site .jt26-actions {
  margin-top: 22px;
}

html[data-theme] body.jt-site .jt26-proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

html[data-theme] body.jt-site .jt26-proof-grid article {
  min-height: 82px;
  padding: 11px 12px;
}

html[data-theme] body.jt-site .jt26-hero-media {
  border-radius: 22px;
}

/* Three-scene theatre: preserve the layered 3D motion, remove billboard text. */
html[data-theme] body.jt-site .jt-theatre-intro {
  align-items: flex-end;
  gap: 28px;
  padding-top: 58px;
  padding-bottom: 40px;
}

html[data-theme] body.jt-site .jt-theatre-intro header {
  max-width: 780px;
}

html[data-theme] body.jt-site #main-content .jt-theatre-intro h2 {
  max-width: 68ch;
  margin: 10px 0 11px !important;
}

html[data-theme] body.jt-site .jt-theatre-intro p {
  max-width: 74ch;
  font-size: 1rem;
  line-height: 1.68;
}

html[data-theme] body.jt-site .jt-theatre-scene {
  min-height: 540px;
  grid-template-columns: minmax(0, .72fr) minmax(440px, 1.28fr);
  gap: clamp(30px, 4vw, 60px);
  padding: clamp(26px, 3.2vw, 42px);
  border-radius: 24px;
}

html[data-theme] body.jt-site .jt-theatre-copy {
  max-width: 500px;
}

html[data-theme] body.jt-site #main-content .jt-theatre-copy h3 {
  max-width: 58ch;
  margin: 11px 0 6px !important;
}

html[data-theme] body.jt-site .jt-theatre-copy p {
  margin-top: 13px;
  line-height: 1.66;
}

html[data-theme] body.jt-site .jt-theatre-copy ul {
  margin: 17px 0 20px;
}

html[data-theme] body.jt-site .jt-theatre.is-enhanced .jt-theatre-stage {
  grid-template-columns: 82px minmax(0, 1fr);
  padding-top: 70px;
}

html[data-theme] body.jt-site .jt-theatre.is-enhanced .jt-theatre-scene {
  grid-template-columns: minmax(320px, .7fr) minmax(500px, 1.3fr);
  gap: clamp(34px, 4vw, 62px);
  padding: 0 2px 0 16px;
}

html[data-theme] body.jt-site .jt-theatre.is-enhanced .jt-theatre-copy {
  max-width: 480px;
  padding: 24px;
  border-radius: 19px;
}

html[data-theme] body.jt-site .jt-theatre-visual {
  min-height: 480px;
}

@media (max-width: 1120px) {
  html[data-theme] body.jt-site .jt26-hero-grid {
    grid-template-columns: 1fr;
  }

  html[data-theme] body.jt-site .jt26-hero-media {
    max-width: 860px;
  }

  html[data-theme] body.jt-site .jt-theatre.is-enhanced .jt-theatre-scene {
    grid-template-columns: minmax(290px, .76fr) minmax(420px, 1.24fr);
    gap: 30px;
  }
}

@media (max-width: 899px), (max-height: 649px) {
  html[data-theme] body.jt-site .jt-theatre-intro {
    align-items: flex-start;
    padding-top: 48px;
    padding-bottom: 30px;
  }

  html[data-theme] body.jt-site .jt-theatre-scene {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
  }

  html[data-theme] body.jt-site .jt-theatre-copy {
    max-width: none;
  }

  html[data-theme] body.jt-site .jt-theatre-visual {
    min-height: clamp(300px, 66vw, 460px);
  }
}

@media (max-width: 700px) {
  html[data-theme] body.jt-site .jt26-hero {
    padding: 42px 0 40px !important;
  }

  html[data-theme] body.jt-site .jt26-proof-grid {
    grid-template-columns: 1fr;
  }

  html[data-theme] body.jt-site .jt26-proof-grid article {
    min-height: 0;
  }

  html[data-theme] body.jt-site .jt-theatre-intro {
    padding-top: 42px;
    padding-bottom: 26px;
  }

  html[data-theme] body.jt-site .jt-theatre-scene {
    padding: 19px;
    border-radius: 19px;
  }

  html[data-theme] body.jt-site .jt-theatre-visual {
    min-height: 285px;
  }

  html[data-theme] body.jt-site #main-content .jt26-product-card figure {
    border-right: 0;
    border-bottom: var(--jt-card-border-width) solid var(--jt-card-divider-color);
  }
}
