/* ==========================================================================
   Treger Voice · homepage editorial layout
   Loaded only by index.html, after styles.css. Every rule is scoped to .hp
   so no other page is affected. The visual language is the marked-up
   document: underlines, margin numbers, severity tags, governed versions.
   ========================================================================== */


.hp{
  --alarm:#8B3A2F;
  --gold-ink:#8A6D1D;
  --gold-bright:#E0B450;
  --rule:#D8D2C4;
  --measure:38rem;
}

/* ---- containers & grid ------------------------------------------------- */
.hp .wrap{max-width:var(--max);margin:0 auto;padding:0 1.25rem}
.hp .grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(1rem,2.4vw,2.2rem);row-gap:1.5rem}
.hp .c-1-7{grid-column:1/8}
.hp .c-1-8{grid-column:1/9}
.hp .c-9-13{grid-column:9/13}
.hp .c-8-13{grid-column:8/13}
.hp .c-1-5{grid-column:1/6}
.hp .c-6-13{grid-column:6/13}
.hp .c-1-13{grid-column:1/13}
.hp .c-1-4{grid-column:1/5}
.hp .c-5-13{grid-column:5/13}
.hp .c-1-2{grid-column:1/3}
.hp .c-3-13{grid-column:3/13}
.hp section p{max-width:none;margin-bottom:0}          /* we set our own */
.hp .prose p{max-width:var(--measure);margin-bottom:1rem;line-height:1.62}

/* ---- type scale ---------------------------------------------------------- */
.hp .standfirst{font-family:var(--sans);font-weight:700;font-size:clamp(.74rem,.9vw,.86rem);letter-spacing:.16em;text-transform:uppercase;color:var(--gold-ink);margin:0 0 1rem}
.hp .h-display{text-wrap:balance;font-family:var(--serif);font-weight:700;letter-spacing:-.012em;line-height:1.02;color:var(--navy);max-width:none;margin:0;font-size:clamp(2.7rem,7.2vw,5.5rem)}
.hp .h-section{font-family:var(--serif);font-weight:600;letter-spacing:-.008em;line-height:1.08;color:var(--navy);max-width:none;margin:0 0 1.2rem;font-size:clamp(1.9rem,4.2vw,3.1rem)}
.hp .h-minor{font-family:var(--serif);font-weight:600;line-height:1.15;color:var(--navy);margin:0 0 .6rem;font-size:clamp(1.3rem,2.2vw,1.7rem)}
.hp .lede{font-size:clamp(1.1rem,1.5vw,1.3rem);line-height:1.5;color:var(--mist);max-width:36em;margin:0 0 1rem}
.hp .lede.on-paper{color:var(--ink)}
.hp .small{font-size:.9rem;color:var(--grey);line-height:1.5}
.hp .rule-top{border-top:1px solid var(--rule);padding-top:1.4rem}
.hp .rule-gold{border-top:2px solid var(--gold);padding-top:1.2rem}

/* ---- margin note (the editor's annotation) ------------------------------- */
.hp .note{
  position:relative;padding-left:1.15rem;
  font-family:var(--sans);font-size:.98rem;line-height:1.55;color:var(--mist);
}
.hp .note::before{content:"";position:absolute;left:0;top:.3em;bottom:.2em;width:3px;background:var(--gold)}
.hp .note b{color:#fff;font-weight:700}
.hp .note.on-paper{color:var(--ink)}
.hp .note.on-paper::before{background:var(--gold-ink)}
.hp .note.on-paper b{color:var(--navy)}
.hp .note-tag{display:block;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:.45rem}
.hp .note.on-paper .note-tag{color:var(--gold-ink)}

/* ---- 1. hero ------------------------------------------------------------- */
.hp-hero{background:#FFFFFF;color:var(--ink);padding:clamp(2.8rem,6vw,4.6rem) 0 clamp(2.4rem,5vw,3.6rem);border-bottom:3px solid var(--navy)}
.hp-hero .hero-col{max-width:44rem}
.hp-hero .eyebrow-caps{font-family:var(--sans);font-weight:700;font-size:clamp(.78rem,.95vw,.92rem);letter-spacing:.16em;text-transform:uppercase;color:var(--gold-ink);margin:0 0 1.2rem}
.hp-hero .standfirst{color:var(--gold);font-size:clamp(1.1rem,1.7vw,1.45rem);margin-bottom:1.3rem}
.hp-hero .h-display em{font-style:italic;color:var(--alarm);display:block}
.hp-hero .h-display{font-size:clamp(2.3rem,5.6vw,4.15rem)}
.hp-hero .lede{margin-top:1.5rem;font-size:clamp(1.05rem,1.4vw,1.2rem);font-weight:400;max-width:34em;color:#3A4650}
.hp-hero .actions{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;margin:1.8rem 0 1.2rem}
.hp-hero .actions .btn{margin:0}
.hp-hero .audience{font-size:.95rem;color:var(--grey);font-weight:400;max-width:40em;line-height:1.5;margin:.2rem 0 0}

/* ---- 2. the problem (paper, one big statement + one counterpoint) --------- */
.hp-problem{background:var(--paper);padding:clamp(4.2rem,8.5vw,7rem) 0 clamp(2.6rem,5vw,4rem)}
.hp-problem .h-section{max-width:16em}
.hp-problem .counter{
  font-family:var(--serif);font-weight:500;font-size:clamp(1.15rem,1.9vw,1.45rem);line-height:1.4;color:var(--navy);
  border-left:3px solid var(--gold-ink);padding-left:1.1rem;margin:0
}

/* ---- 3. three tiers (a ledger) -------------------------------------------- */
.hp-tiers{background:var(--paper);padding:.5rem 0 clamp(3rem,6vw,4.8rem)}
.hp-tiers ol{list-style:none;margin:0;padding:0;border-top:2px solid var(--navy)}
.hp-tiers li{display:grid;grid-template-columns:5.5rem 1fr;column-gap:1.4rem;padding:1.6rem 0;border-bottom:1px solid var(--rule)}
.hp-tiers .num{font-family:var(--serif);font-weight:500;font-size:clamp(2.4rem,4.6vw,3.6rem);line-height:.9;color:var(--gold-ink);letter-spacing:-.02em}
.hp-tiers h3{font-family:var(--serif);font-weight:600;font-size:clamp(1.25rem,2vw,1.6rem);color:var(--navy);margin:.1rem 0 .55rem;line-height:1.15}
.hp .hp-tiers p{max-width:var(--measure);line-height:1.6;margin:0}
.hp-tiers p strong{color:var(--navy)}

/* ---- 4. the audit --------------------------------------------------------- */
.hp-audit{background:#fff;padding:clamp(3.2rem,6.5vw,5.2rem) 0;border-top:1px solid var(--rule)}
.hp-audit .h-section{max-width:12em;font-size:clamp(1.6rem,2.8vw,2.2rem)}
.hp-audit .q{font-family:var(--serif);font-style:italic;font-size:clamp(1.15rem,1.8vw,1.4rem);color:var(--gold-ink);margin:.4rem 0 0;line-height:1.35}
.hp-audit .deliver{list-style:none;margin:1.2rem 0 1.4rem;padding:0;border-top:2px solid var(--navy)}
.hp-audit .deliver li{display:grid;grid-template-columns:2.2rem 1fr;column-gap:.6rem;padding:.75rem 0;border-bottom:1px solid var(--rule);line-height:1.5}
.hp-audit .deliver li::before{content:counter(dl,decimal-leading-zero);counter-increment:dl;font-family:var(--sans);font-weight:700;font-size:.78rem;color:var(--gold-ink);padding-top:.25rem}
.hp-audit .deliver{counter-reset:dl}
.hp-audit .terms{font-weight:700;color:var(--navy);margin:0 0 .5rem}
.hp-audit .then{margin-top:1.2rem}
.hp-audit .svc-cta{margin-top:1.6rem}

/* ---- 5. the artifact demonstration (the memorable element) --------------- */
.hp-demo{background:#FFFFFF;padding:clamp(3.2rem,6.5vw,5.2rem) 0;border-bottom:1px solid var(--rule)}
.hp-demo .h-section{max-width:14em}
.hp-demo .doc{
  background:#fff;border:1.5px solid var(--navy);border-left:5px solid var(--gold-ink);border-radius:3px;
  padding:1.7rem 1.9rem;font-family:'Courier New',Courier,monospace;font-size:.92rem;line-height:1.8;color:#2A2926;
  box-shadow:0 2px 12px rgba(18,38,58,.07);margin:0
}
.hp-demo .doc .label{font-family:var(--sans);font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--grey);margin:0 0 .9rem;font-weight:700}
.hp-demo .doc.after{border-left-color:var(--navy)}
.hp-demo .doc.after .label{color:var(--gold-ink)}
.hp-demo .doc p{margin:0;max-width:none;font-family:inherit;font-size:inherit;line-height:inherit}
.hp-demo mark{background:transparent;color:inherit;position:relative;padding-bottom:1px}
.hp-demo mark::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--alarm);transform:scaleX(0);transform-origin:left center}
.hp-demo sup{font-family:var(--sans);font-weight:700;color:var(--alarm);font-size:.7rem;margin-left:2px}
.hp-demo .findings{list-style:none;margin:0;padding:0}
.hp-demo .findings li{display:grid;grid-template-columns:1.6rem 1fr;column-gap:.6rem;padding:.9rem 0;border-top:1px solid var(--rule);align-items:start}
.hp-demo .findings li:last-child{border-bottom:1px solid var(--rule)}
.hp-demo .findings .n{font-family:var(--sans);font-weight:700;font-size:.78rem;color:var(--alarm);padding-top:.35rem}
.hp-demo .findings h3{font-family:var(--serif);font-weight:600;font-size:1.05rem;color:var(--navy);margin:0 0 .25rem;line-height:1.3}
.hp-demo .findings .sev{display:inline-block;font-family:var(--sans);font-size:.66rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;padding:.14rem .5rem;border-radius:2px;background:var(--alarm);color:#fff;margin-bottom:.35rem}
.hp-demo .findings-head{font-family:var(--sans);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--grey);margin:0 0 .3rem;font-weight:700}
.hp-demo .caption{margin-top:1.4rem}
.hp-demo .caption em{color:var(--grey)}
.hp-demo .caption strong{color:var(--navy)}
.hp-demo .more{margin-top:1rem}
.hp-demo .more a{font-weight:700;text-decoration:underline}

/* ---- payoff strip --------------------------------------------------------- */
.hp-payoff{background:var(--paper);padding:clamp(2rem,4vw,3rem) 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.hp-payoff .h-minor{margin-bottom:1rem}
.hp-payoff .item{border-top:2px solid var(--navy);padding-top:.8rem}
.hp-payoff .item strong{display:block;color:var(--navy);font-family:var(--serif);font-size:1.15rem;margin-bottom:.3rem}
.hp-payoff .bc{margin-top:1.2rem}
.hp-payoff .bc a{font-weight:700;text-decoration:underline;text-decoration-color:var(--gold-ink);text-underline-offset:.18em}
.dbronly{display:none}
@media (min-width:901px){.dbronly{display:inline}}

/* ---- 6. larger engagements ------------------------------------------------ */
.hp-more{background:#fff;padding:clamp(3.2rem,6.5vw,5.2rem) 0}
.hp-more .intro{color:var(--grey);margin:0 0 1.6rem;max-width:var(--measure)}
.hp-more .eng{border-top:2px solid var(--navy);padding-top:1rem}
.hp-more .eng p{max-width:var(--measure);line-height:1.6;margin:0 0 .6rem}
.hp-more .eng .q{font-family:var(--serif);font-style:italic;color:var(--gold-ink);font-size:1.12rem}
.hp-more .pull{
  font-family:var(--serif);font-style:italic;font-weight:500;font-size:clamp(1.25rem,2.1vw,1.6rem);line-height:1.35;color:var(--navy);
  border-left:3px solid var(--gold-ink);padding-left:1.1rem;margin:2rem 0 0;max-width:30em
}
.hp-more .method{margin-top:1.2rem}
.hp-more .method a{font-weight:700;text-decoration:underline}

/* ---- 7. experience --------------------------------------------------------- */
.hp-exp{background:var(--navy);color:var(--mist);padding:clamp(3.2rem,6.5vw,5rem) 0;border-top:3px solid var(--gold)}
.hp-exp .standfirst{color:#E0B450;margin-bottom:1.4rem}
.hp-exp .figs{list-style:none;margin:0 0 2.2rem;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.2rem;border-top:1px solid rgba(201,212,222,.35)}
.hp-exp .figs li{padding-top:1rem}
.hp-exp .figs strong{display:block;font-family:var(--serif);font-weight:600;font-size:clamp(1.9rem,3.6vw,2.8rem);color:var(--gold-bright);line-height:1;letter-spacing:-.01em;margin-bottom:.35rem}
.hp-exp .figs span{font-size:.92rem;line-height:1.4;display:block}
.hp-exp .founder{display:grid;grid-template-columns:120px 1fr;column-gap:1.6rem;align-items:start}
.hp-exp .founder img{width:120px;height:120px;aspect-ratio:1/1;flex:none;border-radius:50%;object-fit:cover;object-position:center top;border:3px solid var(--gold);max-width:none}
.hp-exp .founder p{max-width:var(--measure);line-height:1.6;color:var(--mist);margin:0 0 .7rem}
.hp-exp .founder strong{color:#fff}
.hp-exp .founder a{color:var(--gold-bright);font-weight:700;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}

/* ---- 8. worked audits index ------------------------------------------------ */
.hp-index{background:var(--paper);padding:clamp(3.2rem,6.5vw,5.2rem) 0}
.hp-index .h-section{max-width:12em;font-size:clamp(1.6rem,2.8vw,2.2rem)}
.hp-index .intro{color:var(--grey);max-width:var(--measure);margin:0}
.hp-index ol{list-style:none;margin:0;padding:0;border-top:2px solid var(--navy)}
.hp-index li{border-bottom:1px solid var(--rule)}
.hp-index ol a{display:grid;grid-template-columns:2.6rem 1fr auto;column-gap:1rem;align-items:baseline;padding:1.05rem 0;color:inherit;text-decoration:none}
.hp-index ol a:hover h3,.hp-index ol a:focus-visible h3{text-decoration:underline;text-decoration-color:var(--gold-ink);text-underline-offset:.18em}
.hp-index .n{font-family:var(--sans);font-weight:700;font-size:.78rem;color:var(--gold-ink)}
.hp-index h3{font-family:var(--serif);font-weight:600;font-size:clamp(1.15rem,1.8vw,1.4rem);color:var(--navy);margin:0 0 .15rem;line-height:1.2}
.hp-index .deck{color:var(--grey);font-size:.95rem;margin:0}
.hp-index .go{font-family:var(--sans);font-size:.8rem;font-weight:700;color:var(--gold-ink);white-space:nowrap}
.hp-index .essays{margin-top:1.6rem}
.hp-index .essays a{display:inline;font-weight:700;text-decoration:underline;color:var(--gold-ink)}

/* ---- 9. final call --------------------------------------------------------- */
.hp-cta{background:#FFFFFF;color:var(--ink);padding:clamp(3.4rem,7vw,5.6rem) 0 clamp(2.6rem,5vw,4rem);border-top:1px solid var(--rule)}
.hp-cta .h-section{color:var(--navy);max-width:14em}
.hp-cta .prose p{color:#3A4650}
.hp-cta .contact{font-size:1.08rem;margin:1.4rem 0 1.6rem}
.hp-cta .contact a{color:var(--gold-ink);display:inline-block;padding:.25rem 0}
.hp-cta .contact a.tel{font-family:var(--serif);font-style:italic;font-size:1.08em}
@media (max-width:600px){.hp-cta .contact a.tel{display:block;margin-top:.1rem}}
@media (min-width:601px){.hp-cta .contact .ftsep{margin:0 .35rem}}
@media (max-width:600px){.hp-cta .btn-gold{display:block;width:100%}.hp-cta .prose p:has(> .btn-gold){max-width:none;margin-bottom:.75rem}}

/* ---- motion: one page-load moment, one on-scroll moment ------------------- */
@media (prefers-reduced-motion:no-preference){
  .hp-demo.in mark::after{animation:hpDraw .7s cubic-bezier(.2,.7,.2,1) forwards}
  .hp-demo.in mark:nth-of-type(2)::after{animation-delay:.35s}
  .hp-demo.in mark:nth-of-type(3)::after{animation-delay:.7s}
  .hp-demo .findings li{opacity:0;transition:opacity .5s ease}
  .hp-demo.in .findings li{opacity:1}
  .hp-demo.in .findings li:nth-child(2){transition-delay:.35s}
  .hp-demo.in .findings li:nth-child(3){transition-delay:.7s}
}
@media (prefers-reduced-motion:reduce){
  .hp-demo mark::after{transform:scaleX(1)}
}
@keyframes hpDraw{to{transform:scaleX(1)}}

/* ---- skip link -------------------------------------------------------------- */
.hp .skip{position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;background:var(--gold);color:var(--navy);padding:.6rem 1rem;font-weight:700;z-index:100}
.hp .skip:focus{width:auto;height:auto;overflow:visible;clip:auto;clip-path:none;left:1rem;top:1rem;outline:2.5px solid #fff}

/* ---- responsive ------------------------------------------------------------- */
@media (max-width:900px){
  .hp .grid{row-gap:1.1rem}
  .hp .c-1-7,.hp .c-1-8,.hp .c-9-13,.hp .c-8-13,.hp .c-1-5,.hp .c-6-13,.hp .c-1-4,.hp .c-5-13,.hp .c-1-2,.hp .c-3-13{grid-column:1/13}
  .hp-exp .figs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-tiers li{grid-template-columns:2.8rem 1fr}
  .hp-tiers .num{font-size:1.8rem}
  .hp-demo .findings-head{border-top:2px solid var(--gold-ink);padding-top:.7rem;margin-top:.4rem}
  .hp-index ol a{grid-template-columns:2.2rem 1fr}
  .hp-index .go{display:none}
  .hp-index h3{text-decoration:underline;text-decoration-color:var(--gold-ink);text-decoration-thickness:1px;text-underline-offset:.18em}
}
@media (max-width:560px){
  .hp-exp .founder{grid-template-columns:1fr}
  .hp-exp .founder{row-gap:1.1rem}
  .hp-exp .founder img{width:104px;height:104px;margin-bottom:.4rem}
  .hp-demo .doc{padding:1.2rem 1.1rem;font-size:1rem;line-height:1.7}
  .hp-hero .actions .btn{width:100%;text-align:center}
  .hp-payoff .grid{row-gap:1.2rem}
}

/* ---- the category (between hero and problem) ----------------------------- */
.hp-category{background:var(--paper);padding:clamp(3rem,5.5vw,4.4rem) 0 clamp(3rem,5.5vw,4.2rem);border-bottom:1px solid var(--rule)}
.hp-category .cat-col{max-width:44rem}
.hp-category .h-section{max-width:16em;margin-bottom:1.4rem}
.hp-category .prose p{font-size:clamp(1.05rem,1.4vw,1.2rem);line-height:1.6;max-width:36em}
.hp-category .note{margin-top:1.8rem;font-size:1.02rem}
.hp-category .note p{margin:0;max-width:36em;line-height:1.55}
.hp-problem{padding-top:clamp(3rem,6vw,4.6rem)}

/* nav links land with the heading near the top, not below a full band of section padding */
.hp section[id]{scroll-margin-top:calc(var(--navh,58px) - 2rem)}
