/* LOOP AWARD 1.6.0 — one reference, no reinterpretation.
 * Reference: the APPROVED «LAS IDEAS / NO SE QUEDAN / QUIETAS.» block.
 * Values are literally inherited from award.css .motion-intro h2:
 *   font-size: clamp(3.8rem, 8.2vw, 9rem);
 *   line-height: .91;
 *   letter-spacing: -.085em;
 *   top gap: 2.5rem.
 * Avoid broad rules on every h2 / Elementor widget: cards, articles and forms
 * should not inadvertently become display headings.
 */
:root {
  --lc-display-size: clamp(3.8rem, 8.2vw, 9rem);
  --lc-display-leading: .91;
  --lc-display-tracking: -.085em;
  --lc-display-gap: 2.5rem;
}

/* Don't change the reference's desktop rendering. The spans are still actual text. */
.lc-theme-home .motion-intro h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--lc-display-size);
  line-height: var(--lc-display-leading);
  letter-spacing: var(--lc-display-tracking);
  font-weight: 950;
  margin-top: var(--lc-display-gap);
  text-wrap: normal;
}

/* Main display compositions — equivalent metrics, same left alignment and break structure. */
.lc-theme-home .statement h2,
.lc-theme-home .signature h2,
.lc-theme-home .services .section-top h2,
.lc-theme-home .projects .projects-top h2,
.lc-theme-home .technology .section-top h2,
.lc-theme-home .resources .section-top h2,
.lc-theme-home .contact h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--lc-display-size);
  font-weight: 950;
  line-height: var(--lc-display-leading);
  letter-spacing: var(--lc-display-tracking);
  font-kerning: normal;
  text-transform: uppercase;
  text-wrap: normal;
  overflow-wrap: normal;
  max-width: 100%;
}
/* A section label always sits 2.5rem above the headline, including 01.5. */
.lc-theme-home .statement h2,
.lc-theme-home .signature h2,
.lc-theme-home .contact h2 { margin-top: var(--lc-display-gap); }
.lc-theme-home .services .section-top,
.lc-theme-home .projects .projects-top,
.lc-theme-home .technology .section-top,
.lc-theme-home .resources .section-top {
  margin-top: var(--lc-display-gap);
}
.lc-theme-home .signature h2 { text-wrap: normal; }

/* Inner pages: same visual grammar without overriding existing Elementor widgets. */
.lc-theme-inner .lc-page-hero-inner {
  justify-content: flex-start;
  gap: 0;
}
.lc-theme-inner .lc-page-hero .lc-micro,
.lc-theme-inner .lc-section-heading > .lc-micro {
  font-size: .72rem;
  letter-spacing: .16em;
  line-height: 1.35;
  font-weight: 800;
}
.lc-theme-inner .lc-page-title,
.lc-theme-inner .lc-section-heading h2,
.lc-theme-inner .lc-split-message h2,
.lc-theme-inner .lc-about-values h2,
.lc-theme-inner .lc-contact-aside h2,
.lc-theme-inner .lc-footer-hero h2,
.lc-theme-inner .lc-display-reference {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--lc-display-size);
  font-weight: 950;
  line-height: var(--lc-display-leading);
  letter-spacing: var(--lc-display-tracking);
  text-transform: uppercase;
  overflow-wrap: normal;
  text-wrap: normal;
  max-width: 100%;
}
.lc-theme-inner .lc-page-title {
  margin: var(--lc-display-gap) 0 clamp(36px, 5vw, 72px);
}
.lc-theme-inner .lc-section-heading {
  row-gap: 0;
}
.lc-theme-inner .lc-section-heading h2,
.lc-theme-inner .lc-split-message h2,
.lc-theme-inner .lc-about-values h2,
.lc-theme-inner .lc-contact-aside h2 {
  margin-top: var(--lc-display-gap);
}
/* Every manual line break is authoritative. Highlighting must not change metrics. */
.lc-theme-home .motion-intro h2 span,
.lc-theme-home .signature h2 em,
.lc-theme-inner .lc-page-title em,
.lc-theme-inner .lc-section-heading h2 em {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
}

/* Rotation does NOT change the font size, spacing, alignment or height of its line. */
.lc-rotating-word {
  display: inline-block;
  white-space: nowrap;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  transition: opacity 220ms ease, transform 220ms ease;
}
.lc-rotating-word.lc-word-changing { opacity: 0; transform: translateY(-.065em); }

/* A clearly opt-in Elementor class for a heading widget: lc-display-reference.
 * No rule targets ALL Elementor headings: that would damage cards and articles. */
.lc-elementor-page .lc-display-reference,
.elementor .lc-display-reference .elementor-heading-title {
  font-size: var(--lc-display-size) !important;
  line-height: var(--lc-display-leading) !important;
  letter-spacing: var(--lc-display-tracking) !important;
  font-weight: 950;
  text-transform: uppercase;
}

/* Responsive ratios preserve the same shape while fitting real mobile widths. */
@media (max-width: 900px) {
  :root { --lc-display-size: clamp(2.9rem, 8vw, 5.7rem); }
}
@media (max-width: 700px) {
  :root {
    --lc-display-size: clamp(2.3rem, 9.65vw, 4.8rem);
    --lc-display-gap: clamp(24px, 6vw, 40px);
  }
  .lc-theme-inner .lc-page-hero-inner { padding-top: 125px; }
  .lc-theme-inner .lc-page-title,
  .lc-theme-inner .lc-section-heading h2 { overflow-wrap: anywhere; }
  .lc-rotating-word { white-space: nowrap; }
}
@media (max-width: 390px) {
  :root { --lc-display-size: clamp(2.05rem, 9.6vw, 3.1rem); }
}
@media (prefers-reduced-motion: reduce) {
  .lc-rotating-word { transition: none !important; transform: none !important; }
}
