/* Hero headline 1-5 (Opus, Nov 9, NEW). Preview typography only.
   Scope every rule under .hero-content[data-headline-v="1"] .. "5".
   Same words as current. Do not style headline 0 or 6-10.
   Hooks come from headline-nov9.js: .hn9-line1 / .hn9-line2 inside the h1.
   Faces: 'Glaze Display' (Fraunces, wght 350-700, roman + italic) and DM Sans.
   Motion: one quiet detail per variant, runs once, after the hero rise. Off under reduced motion. */

/* ---------- shared across 1-5 ---------- */
html body .hero-content:is([data-headline-v="1"], [data-headline-v="2"], [data-headline-v="3"], [data-headline-v="4"], [data-headline-v="5"]) h1 {
  --hn9o-plum: var(--plum, #4A1942);
  --hn9o-plum-deep: var(--plum-deep, #3A1336);
  --hn9o-rule: var(--honey-gold-dark, #B8902D);
  --hn9o-muted: var(--text-muted, #5A4D44);
  font-family: 'Glaze Display', Georgia, 'Times New Roman', serif;
  font-variant-ligatures: none;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  max-width: 100%;
}
html body .hero-content:is([data-headline-v="1"], [data-headline-v="2"], [data-headline-v="3"], [data-headline-v="4"], [data-headline-v="5"]) h1 br { display: none; }
html body .hero-content:is([data-headline-v="1"], [data-headline-v="2"], [data-headline-v="3"], [data-headline-v="4"], [data-headline-v="5"]) h1 .hn9-line { display: block; }
html body .hero-content:is([data-headline-v="1"], [data-headline-v="2"], [data-headline-v="3"], [data-headline-v="4"], [data-headline-v="5"]) h1 .h1-sig {
  /* room for the italic overhang so the last stroke of "up." never clips */
  padding-right: .07em;
  margin-right: -.07em;
}
html body .hero-content:is([data-headline-v="1"], [data-headline-v="2"], [data-headline-v="3"], [data-headline-v="4"], [data-headline-v="5"]) > h1 + p {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text-muted, #5A4D44);
  text-wrap: pretty;
}

@keyframes hn9o-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hn9o-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hn9o-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes hn9o-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- 1: Hairline Signature ----------
   Light roman first line, signature line a touch smaller and lighter,
   a short gold hairline drawn under the headline, airy subline. */
html body .hero-content[data-headline-v="1"] h1 {
  font-size: clamp(2.6rem, 3.7vw, 3.95rem);
  font-weight: 370;
  line-height: 1.05;
  letter-spacing: -.028em;
  margin-bottom: 0;
  text-wrap: balance;
}
html body .hero-content[data-headline-v="1"] h1 .hn9-line2 {
  margin-top: .16em;
  font-size: .9em;
  letter-spacing: -.02em;
}
html body .hero-content[data-headline-v="1"] h1 .h1-sig { font-weight: 360; letter-spacing: -.012em; }
html body .hero-content[data-headline-v="1"] h1::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 1px;
  margin: .55em 0 0;
  background: var(--hn9o-rule);
  transform-origin: left center;
}
html body .hero-content[data-headline-v="1"] > h1 + p {
  margin-top: 1.25rem !important;
  max-width: 31rem;
  font-size: 1.0625rem;
  line-height: 1.62;
  letter-spacing: .003em;
}

/* ---------- 2: Editorial Masthead ----------
   First line becomes a tracked small-caps eyebrow with a gold hairline;
   the second line carries the page as one large serif statement. */
html body .hero-content[data-headline-v="2"] h1 {
  line-height: 1;
  letter-spacing: -.032em;
  margin-bottom: 0;
}
html body .hero-content[data-headline-v="2"] h1 .hn9-line1 {
  display: flex;
  align-items: center;
  gap: .95rem;
  margin: 0 0 1.05rem;
  font: 600 .74rem/1.5 'DM Sans', system-ui, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hn9o-plum);
  -webkit-text-fill-color: var(--hn9o-plum);
}
html body .hero-content[data-headline-v="2"] h1 .hn9-line1::after {
  content: "";
  flex: 0 0 2.75rem;
  height: 1px;
  background: var(--hn9o-rule);
  transform-origin: left center;
}
html body .hero-content[data-headline-v="2"] h1 .hn9-line2 {
  font-size: 1.1em;
  font-weight: 400;
  text-wrap: balance;
}
html body .hero-content[data-headline-v="2"] h1 .h1-sig { font-weight: 380; letter-spacing: -.02em; }
html body .hero-content[data-headline-v="2"] > h1 + p {
  margin-top: 1.35rem !important;
  max-width: 30rem;
  font-size: 1.04rem;
  line-height: 1.6;
}

/* ---------- 3: Stagger ----------
   Weighted first line in deep plum, then the signature line steps in from
   the left and opens up in a larger, lighter gold italic. */
html body .hero-content[data-headline-v="3"] h1 {
  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin-bottom: 0;
}
html body .hero-content[data-headline-v="3"] h1 .hn9-line1 {
  font-weight: 520;
  color: var(--hn9o-plum-deep);
  -webkit-text-fill-color: var(--hn9o-plum-deep);
  text-wrap: balance;
}
html body .hero-content[data-headline-v="3"] h1 .hn9-line2 {
  margin-top: .1em;
  padding-left: 1em;
  font-weight: 400;
  letter-spacing: -.02em;
}
html body .hero-content[data-headline-v="3"] h1 .h1-sig {
  font-size: 1.1em;
  font-weight: 350;
  letter-spacing: -.018em;
}
html body .hero-content[data-headline-v="3"] > h1 + p {
  margin-top: 1.4rem !important;
  max-width: 31rem;
  font-size: 1.03rem;
  line-height: 1.6;
}

/* ---------- 4: Gold Leaf ----------
   A double gold rule caps the headline; first line in deep plum at a firmer
   weight; the signature is filled like gold leaf and catches one slow sheen. */
html body .hero-content[data-headline-v="4"] h1 {
  font-size: clamp(2.55rem, 3.7vw, 3.95rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin-bottom: 0;
  text-wrap: balance;
}
html body .hero-content[data-headline-v="4"] h1::before {
  content: "";
  display: block;
  width: 4.5rem;
  height: 4px;
  margin: 0 0 .5em;
  border-top: 1px solid var(--hn9o-rule);
  border-bottom: 1px solid var(--hn9o-rule);
  box-sizing: border-box;
  transform-origin: left center;
}
html body .hero-content[data-headline-v="4"] h1 .hn9-line1 {
  font-weight: 480;
  color: var(--hn9o-plum-deep);
  -webkit-text-fill-color: var(--hn9o-plum-deep);
}
html body .hero-content[data-headline-v="4"] h1 .hn9-line2 { margin-top: .08em; font-weight: 400; }
html body .hero-content[data-headline-v="4"] h1 .h1-sig {
  font-weight: 430;
  letter-spacing: -.015em;
  color: #7f6116;
  background-image: linear-gradient(100deg, #7a5c14 0%, #8a6b1e 30%, #a3812a 45%, #b08c32 50%, #a3812a 55%, #8a6b1e 70%, #7a5c14 100%);
  background-size: 260% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
html body .hero-content[data-headline-v="4"] > h1 + p {
  margin-top: 1.3rem !important;
  max-width: 31rem;
  font-size: 1.04rem;
  line-height: 1.6;
  letter-spacing: .004em;
}

/* ---------- 5: Ink Swash ----------
   Even, generous serif in plum with a hand-drawn gold swash under the
   signature, like a pen stroke on a bakery box label. */
html body .hero-content[data-headline-v="5"] h1 {
  font-size: clamp(2.6rem, 3.8vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.024em;
  margin-bottom: 0;
}
html body .hero-content[data-headline-v="5"] h1 .hn9-line1 { text-wrap: balance; }
html body .hero-content[data-headline-v="5"] h1 .hn9-line2 { margin-top: .04em; }
html body .hero-content[data-headline-v="5"] h1 .h1-sig {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  padding-bottom: .16em;
  font-weight: 400;
}
html body .hero-content[data-headline-v="5"] h1 .h1-sig::after {
  content: "";
  position: absolute;
  left: -.02em;
  right: .02em;
  bottom: -.02em;
  height: .26em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11.5C58 6 120 3.5 178 5.2c44 1.3 86 4.6 119 8.3' fill='none' stroke='%23B8902D' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M40 13.6c50-3.4 104-4.4 160-2.6' fill='none' stroke='%23B8902D' stroke-width='1.1' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  pointer-events: none;
}
html body .hero-content[data-headline-v="5"] > h1 + p {
  margin-top: 1.3rem !important;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

@media (min-width: 960px) {
  html body .hero-content[data-headline-v="3"] h1 .h1-sig { white-space: nowrap; }
}

/* ---------- phones and tablets (centered hero, below 960px) ---------- */
@media (max-width: 959px) {
  html body .hero-content[data-headline-v="1"] h1::after { margin-inline: auto; transform-origin: center; }
  html body .hero-content[data-headline-v="2"] h1 .hn9-line1 { justify-content: center; gap: .7rem; letter-spacing: .17em; }
  html body .hero-content[data-headline-v="2"] h1 .hn9-line1::before {
    content: "";
    flex: 0 0 1.75rem;
    height: 1px;
    background: var(--hn9o-rule);
    transform-origin: right center;
  }
  html body .hero-content[data-headline-v="2"] h1 .hn9-line1::after { flex-basis: 1.75rem; }
  html body .hero-content[data-headline-v="3"] h1 .hn9-line2 { padding-left: 0; text-wrap: balance; }
  html body .hero-content[data-headline-v="4"] h1::before { margin-inline: auto; transform-origin: center; }
  html body .hero-content:is([data-headline-v="1"], [data-headline-v="2"], [data-headline-v="3"], [data-headline-v="4"], [data-headline-v="5"]) > h1 + p {
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 1rem;
  }
}

/* Base mobile rules set h1 size/leading with !important; match them per variant. */
@media (max-width: 768px) {
  html body .hero-content[data-headline-v="1"] h1 { font-size: clamp(1.95rem, 8vw, 2.45rem) !important; line-height: 1.08 !important; }
  html body .hero-content[data-headline-v="2"] h1 { font-size: clamp(1.95rem, 8.2vw, 2.5rem) !important; line-height: 1.04 !important; }
  html body .hero-content[data-headline-v="2"] h1 .hn9-line1 { font-size: .68rem; margin-bottom: .8rem; }
  html body .hero-content[data-headline-v="2"] h1 .hn9-line2 { font-size: 1.08em; }
  html body .hero-content[data-headline-v="3"] h1 { font-size: clamp(1.9rem, 7.6vw, 2.35rem) !important; line-height: 1.06 !important; }
  html body .hero-content[data-headline-v="3"] h1 .h1-sig { font-size: 1.1em; }
  html body .hero-content[data-headline-v="4"] h1 { font-size: clamp(1.95rem, 7.8vw, 2.4rem) !important; line-height: 1.08 !important; }
  html body .hero-content[data-headline-v="5"] h1 { font-size: clamp(1.95rem, 7.8vw, 2.45rem) !important; line-height: 1.12 !important; }
  html body .hero-content:is([data-headline-v="1"], [data-headline-v="2"], [data-headline-v="3"], [data-headline-v="4"], [data-headline-v="5"]) > h1 + p {
    margin-top: 1rem !important;
    font-size: .98rem;
    line-height: 1.55;
  }
}
@media (max-width: 400px) {
  html body .hero-content[data-headline-v="1"] h1,
  html body .hero-content[data-headline-v="4"] h1,
  html body .hero-content[data-headline-v="5"] h1 { font-size: clamp(1.8rem, 7.6vw, 2.15rem) !important; }
  html body .hero-content[data-headline-v="2"] h1 { font-size: clamp(1.8rem, 7.8vw, 2.2rem) !important; }
  html body .hero-content[data-headline-v="2"] h1 .hn9-line1 { letter-spacing: .08em; font-size: .62rem; }
  html body .hero-content[data-headline-v="3"] h1 { font-size: clamp(1.75rem, 7.2vw, 2.05rem) !important; }
}
/* Narrow phones: the eyebrow stays on one line; the gold signature carries the accent. */
@media (max-width: 479px) {
  html body .hero-content[data-headline-v="2"] h1 .hn9-line1 { letter-spacing: .12em; font-size: .64rem; text-wrap: wrap; }
  html body .hero-content[data-headline-v="2"] h1 .hn9-line1::before,
  html body .hero-content[data-headline-v="2"] h1 .hn9-line1::after { display: none; }
}

/* ---------- motion: once, after the hero rise, never on the CTA ---------- */
@media (prefers-reduced-motion: no-preference) {
  html body .hero-content[data-headline-v="1"] h1::after { animation: hn9o-rule .9s cubic-bezier(.22, 1, .36, 1) .75s both; }
  html body .hero-content[data-headline-v="2"] h1 .hn9-line1::before,
  html body .hero-content[data-headline-v="2"] h1 .hn9-line1::after { animation: hn9o-rule .85s cubic-bezier(.22, 1, .36, 1) .7s both; }
  html body .hero-content[data-headline-v="3"] h1 .hn9-line2 { animation: hn9o-fade .8s ease-out .62s both; }
  html body .hero-content[data-headline-v="4"] h1::before { animation: hn9o-rule .8s cubic-bezier(.22, 1, .36, 1) .6s both; }
  html body .hero-content[data-headline-v="4"] h1 .h1-sig { animation: hn9o-sheen 2.4s cubic-bezier(.4, 0, .2, 1) .9s both; }
  html body .hero-content[data-headline-v="5"] h1 .h1-sig::after { animation: hn9o-draw .9s cubic-bezier(.65, 0, .35, 1) .8s both; }
}
