/* The second scene's approved typography is the shared site standard. */
:root {
  --ene-font-family:Inter,"Helvetica Neue",Arial,sans-serif;
  --ene-title-weight:600;
  --ene-title-rule-color:#53bfc0;
  --ene-title-rule-width:clamp(52px,5.5vw,106px);
  --ene-title-rule-height:3px;
  --ene-kicker-color:#62c6bb;
}
body,button,input,select,textarea {
  font-family:var(--ene-font-family);
}

header.nav a,header.nav button{text-transform:uppercase}
@media(min-width:801px) and (max-width:1100px){
  header.nav > nav > a{font-size:clamp(12px,1.5vw,16px)}
}

/* Use the twelfth scene's green for the small labels above the headings.
   Specificity matches scene styles without overriding the lens's text fill. */
:is(#s1,#s2,#s3,#s4,#s5,#s6,#s7,#s8,#s9,#s10,#s11,#s12)
:is(.copy,.s2-heading,.energy-heading,.ea-intro,.ea-highlights,.about-story)
:is(.eyebrow,.ea-kicker,.about-kicker){color:var(--ene-kicker-color)}

/* Adjust the label's native position to the heading's visible glyph edge.
   No transform or font scaling is applied when the pointer enters the text. */
[data-heading-kicker]{position:relative;inset-inline-start:var(--ene-kicker-align,0px);text-align:start}

/* Keep the existing responsive sizes and deliberate language-specific lines.
   Only the main headings receive the reference's stronger weight. */
.ene-title {
  position:relative;
  font-family:var(--ene-font-family);
  font-weight:var(--ene-title-weight)!important;
  --ene-title-rule-gap:clamp(7px,1svh,12px);
}

/* Draw in the existing space below each heading. The rule stays outside the
   glyph texture: hovering text never hides, duplicates or shifts the rule. */
.ene-title:not(#s2-advantages-title)::after {
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:calc(100% + var(--ene-title-rule-gap));
  display:block;
  inline-size:var(--ene-title-rule-width);
  max-inline-size:100%;
  block-size:var(--ene-title-rule-height);
  background:var(--ene-title-rule-color);
  pointer-events:none;
}

/* The reference already has a rule on its wrapper; retain exactly one. */
#s2 .s2-heading::after {
  width:var(--ene-title-rule-width);
  height:var(--ene-title-rule-height);
  background:var(--ene-title-rule-color);
}

/* Product-detail titles have a smaller existing gap before the description. */
#s8 .ea-intro .ene-title {--ene-title-rule-gap:4px}

@media (min-width:901px) {
  /* Match the first scene's proportional type, including the accent itself. */
  #s1 .ene-title {
    --ene-title-rule-width:calc(106 * var(--hero-unit));
    --ene-title-rule-height:calc(3 * var(--hero-unit));
    --ene-title-rule-gap:calc(12 * var(--hero-unit));
  }

  /* The bolder reference face is wider. Keep the sixth scene's two title
     lines inside its original 820px / 56vw text column. */
  #s6 .copy h2.ene-title {
    font-size:min(clamp(57px,5.3vw,86px),5.15vw,75.5px);
  }
}
@media (min-width:901px) and (max-height:750px) {
  #s6 .copy h2.ene-title {
    font-size:min(clamp(52px,4.9vw,72px),5.15vw,75.5px);
  }
}
@media (min-width:901px) and (max-width:1100px) {
  #s3 .copy h2.ene-title {font-size:min(68px,6.65vw)}
  #s8 > .copy h2.ene-title {font-size:min(72px,7vw)}
}
