/* BENEFSAN — services.css (services page only). Loaded after main.css; unlayered, so it wins over the layered globals.
   Tokens only — no raw hex. Sections keep the global anatomy (.section > .container > .sec-head + body).
   1 · Page head  2 · Umbrella: roof diagram (SVG gable over eight scope blocks), caption, key figures, site photo
   3 · Around the plant: three stacked panels (steps ladder, key figures, photo; photo side alternates) */

/* ============ 1 · Page head ============ */
.page-head--services .lead{max-width:62ch}
.page-head--services .page-head__meta{margin-top:calc(-1 * var(--sp-2))}

/* ============ 2 · Umbrella ============ */
.umbrella .sec-head .lead{max-width:60ch}

/* Roof: one gable over the whole grid. The SVG stretches to the grid width (preserveAspectRatio="none") and its strokes are
   non-scaling, so the slopes stay 2px and the ridge 5px at every width; the labels are HTML so they never scale with the drawing. */
.roof{position:relative}
.roof__svg{display:block;width:100%;height:150px;overflow:visible}
.roof__line,.roof__eave,.roof__ridge{fill:none;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
.roof__line{stroke:var(--ink);stroke-width:2}
.roof__eave{stroke:var(--steel);stroke-width:1;stroke-linecap:butt}
.roof__ridge{stroke:var(--gold);stroke-width:5}
.roof__label,.roof__sub{position:absolute;left:0;right:0;margin:0;font-family:var(--font-mono);font-weight:500;line-height:1;text-transform:uppercase;text-align:center;white-space:nowrap}
.roof__label{bottom:16px;font-size:var(--fs-eyebrow);letter-spacing:.16em;color:var(--ink)}
.roof__sub{bottom:42px;font-size:10.5px;letter-spacing:.14em;color:var(--gold-text-sm)}

/* Eight blocks, 4 × 2. Each hangs from the structure above it by a tick with a gold node: the first row from the eave,
   the second row from the first — the columns read as posts running down through the building. */
.roof__scopes{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px var(--gutter);padding-top:28px}
.roof__scope{position:relative;display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-5);min-width:0}
.roof__scope::before{content:"";position:absolute;left:50%;top:-29px;height:28px;border-left:1px solid var(--steel)}
.roof__scope::after{content:"";position:absolute;left:calc(50% - 4px);top:-5px;width:8px;height:8px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 1px var(--surface)}
.roof__scope:target{border-color:var(--gold);box-shadow:var(--shadow-2)}
.roof__head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3)}
.roof__n{font-family:var(--font-mono);font-size:var(--fs-eyebrow);font-weight:500;letter-spacing:.12em;color:var(--gold-deep)}
.roof__scope .icon{color:var(--navy)}
.roof__title{font-family:var(--font-display);font-weight:600;font-size:1.25rem;line-height:1.2;letter-spacing:-.01em;margin-top:var(--sp-2);text-wrap:balance}
.roof__text{color:var(--ink-2);font-size:15px;line-height:1.5}
/* "You receive" row: term above value, pinned to the bottom so the rows line up across the grid */
.roof__delivers{margin-top:auto}
.roof__delivers>div{grid-template-columns:1fr;gap:4px;padding:12px 0 0;border-bottom:0}
.roof__delivers dt{padding-top:0}
.roof__delivers dd{line-height:1.45;text-wrap:pretty}
/* caption line under the diagram */
.roof__cap{margin-top:var(--sp-6);padding-inline-start:var(--sp-4);border-inline-start:2px solid var(--gold);font-size:var(--fs-body);line-height:1.55;color:var(--ink-2);max-width:var(--reading)}

/* key figures beside the site photo (photo left, figures right ≥1024; the 582px source is never upscaled past 640px below) */
.umbrella__foot{display:grid;gap:var(--sp-7) var(--gutter);margin-top:var(--sp-8);align-items:start}
.umbrella__fig{max-width:640px}
.umbrella__stats .stat__ctx{text-wrap:pretty}
@media (min-width:1024px){
  .umbrella__foot{grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:var(--sp-8)}
  .umbrella__fig{max-width:none}
}

/* reveal: the slopes draw, the ridge and labels fade in, the ticks drop and the blocks rise one after another (--i) */
html.js .roof__fig.reveal .roof__line{stroke-dasharray:2600;stroke-dashoffset:2600;transition:stroke-dashoffset 1.6s var(--ease-out) .1s}
html.js .roof__fig.is-in .roof__line{stroke-dashoffset:0}
html.js .roof__fig.reveal .roof__ridge,html.js .roof__fig.reveal .roof__label,html.js .roof__fig.reveal .roof__sub{opacity:0;transition:opacity .6s var(--ease-out) 1s}
html.js .roof__fig.is-in .roof__ridge,html.js .roof__fig.is-in .roof__label,html.js .roof__fig.is-in .roof__sub{opacity:1}
html.js .roof__fig.reveal .roof__scope{opacity:0;transform:translateY(16px);transition:opacity .5s var(--ease-out),transform .6s var(--ease-out);transition-delay:calc(.6s + var(--i,0) * 90ms)}
html.js .roof__fig.is-in .roof__scope{opacity:1;transform:none}
html.js .roof__fig.reveal .roof__scope::before{transform:scaleY(0);transform-origin:top;transition:transform .5s var(--ease-out);transition-delay:calc(.45s + var(--i,0) * 90ms)}
html.js .roof__fig.is-in .roof__scope::before{transform:scaleY(1)}
html.js .roof__fig.reveal .roof__cap{opacity:0;transition:opacity .6s var(--ease-out) 1.4s}
html.js .roof__fig.is-in .roof__cap{opacity:1}

@media (max-width:1023.98px){
  .roof__svg{height:120px}
  .roof__label{bottom:14px;font-size:11px;letter-spacing:.12em}
  .roof__sub{bottom:36px;font-size:10px}
  .roof__scopes{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:599.98px){
  /* one column: the gable stays, the label moves under the eave as a caption, the ticks go */
  .roof__svg{height:72px}
  .roof__sub{display:none}
  .roof__label{position:static;white-space:normal;margin-top:var(--sp-3);line-height:1.5}
  .roof__scopes{grid-template-columns:1fr;gap:var(--sp-4);padding-top:var(--sp-5)}
  .roof__scope::before,.roof__scope::after{display:none}
}

/* ============ 3 · Around the plant ============ */
.lines .sec-head .lead{max-width:60ch}
.lines .sec-head{margin-bottom:var(--sp-5)}
@media (min-width:1024px){.lines .sec-head{margin-bottom:var(--sp-6)}}
.line{display:grid;gap:var(--sp-6) var(--gutter);padding-block:var(--sp-7);border-top:1px solid var(--line);grid-template-areas:"body" "fig"}
.line:last-child{padding-bottom:0}
.line__body{grid-area:body;display:flex;flex-direction:column;gap:var(--sp-6);min-width:0}
.line__fig{grid-area:fig;min-width:0}
@media (min-width:1024px){
  .line{grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-areas:"body fig";column-gap:var(--sp-8);padding-block:var(--sp-8);align-items:start}
  .line--flip{grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:"fig body"}
  /* the photo keeps pace with the longer text column */
  .line__fig{position:sticky;top:calc(var(--sticky-offset) + var(--sp-2))}
}
.line__head .eyebrow{margin-bottom:var(--sp-3)}
.line__head .h3{font-size:clamp(1.625rem,1.3rem + 1.2vw,2.25rem);max-width:20ch}
.line__head .lead{margin-top:var(--sp-4)}
.line__k{font-family:var(--font-mono);font-size:var(--fs-eyebrow);font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:var(--sp-4)}
.ladder--compact{gap:var(--sp-4)}
.ladder--compact>li .h4{margin-bottom:2px;font-size:1rem}
.ladder--compact>li p{font-size:15px;line-height:1.5}
/* the ladder's gold line grows down the steps on reveal */
.ladder{isolation:isolate}
.ladder::after{content:"";position:absolute;inset-inline-start:11px;top:4px;bottom:4px;width:1px;background:var(--gold);z-index:0}
.ladder>li .mono{z-index:1}
html.js .ladder.reveal::after{transform:scaleY(0);transform-origin:top;transition:transform var(--t-fill) var(--ease-out) .2s}
html.js .ladder.is-in::after{transform:scaleY(1)}
/* key figures: compact tiles; a figure whose value is a phrase, not a numeral, is a step smaller and may wrap */
.keyfigs .stat__value{font-size:clamp(1.375rem,1.1rem + .8vw,1.625rem);letter-spacing:-.02em}
.keyfigs .stat__label{font-size:15px}
.keyfigs .stat__ctx{font-size:var(--fs-eyebrow)}
.keyfigs .stat--text .stat__value{font-size:clamp(1.0625rem,.95rem + .5vw,1.25rem);line-height:1.2;letter-spacing:-.01em;white-space:normal;text-wrap:balance}
.keyfigs.hairline-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:719.98px){
  .keyfigs.hairline-grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .keyfigs.hairline-grid--3>.stat:nth-child(3){grid-column:1/-1}
  .keyfigs>*{padding:var(--sp-4)}
}
.lines .keyfigs>*{background:var(--surface)}
.line__cta{display:flex;flex-wrap:wrap;gap:var(--sp-3) var(--sp-6)}

/* ============ Reduced motion · QA switch · print ============ */
@media (prefers-reduced-motion:reduce){
  html.js .roof__fig.reveal .roof__line{stroke-dasharray:none;stroke-dashoffset:0;transition:none}
  html.js .roof__fig.reveal .roof__ridge,html.js .roof__fig.reveal .roof__label,html.js .roof__fig.reveal .roof__sub,html.js .roof__fig.reveal .roof__cap,html.js .roof__fig.reveal .roof__scope{opacity:1;transform:none;transition:none}
  html.js .roof__fig.reveal .roof__scope::before{transform:none;transition:none}
  html.js .ladder.reveal::after{transform:none;transition:none}
}
html[data-motion="off"] .roof__fig.reveal .roof__line{stroke-dasharray:none;stroke-dashoffset:0;transition:none}
html[data-motion="off"] .roof__fig.reveal .roof__ridge,html[data-motion="off"] .roof__fig.reveal .roof__label,html[data-motion="off"] .roof__fig.reveal .roof__sub,html[data-motion="off"] .roof__fig.reveal .roof__cap,html[data-motion="off"] .roof__fig.reveal .roof__scope{opacity:1;transform:none;transition:none}
html[data-motion="off"] .roof__fig.reveal .roof__scope::before{transform:none;transition:none}
html[data-motion="off"] .ladder.reveal::after{transform:none;transition:none}
@media print{
  .roof__svg{height:110px}
  .roof__scope,.line{break-inside:avoid}
  .roof__scope:target{box-shadow:none}
  .line__fig{position:static}
}
