/* The Green 4 Group: home page film hero (herofilm.js). Brand: Jost, uppercase headlines, #121413, green accent. */
.hf { position: relative; background: #121413; color: #FFFFFF; }
.hf > header { position: absolute; top: 0; left: 0; right: 0; z-index: 6; }
.hf-track { position: relative; height: 100vh; height: 100svh; }
.hf-pin { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
@media (min-width: 900px) and (min-height: 560px) {
  html.js .hf-track { height: 210vh; }
  html.js .hf-pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
}

/* the film */
.hf-frame { position: absolute; inset: 0; overflow: hidden; background: #141414; will-change: clip-path; }
.hf-still, .hf-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 55%; }
.hf-video { opacity: 0; transition: opacity 0.9s ease; }
.hf.is-playing .hf-video { opacity: 1; }
.hf-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(18,20,19,0.82) 0%, rgba(18,20,19,0.5) 34%, rgba(18,20,19,0.06) 62%, rgba(18,20,19,0) 100%),
    linear-gradient(to top, rgba(18,20,19,0.85) 0%, rgba(18,20,19,0.25) 26%, rgba(18,20,19,0) 44%),
    linear-gradient(to bottom, rgba(18,20,19,0.6) 0%, rgba(18,20,19,0) 22%); }
/* a faint blueprint grid and scan line: the "drawing board" over the footage */
.hf-grid { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: screen;
  background-image: linear-gradient(rgba(183,224,176,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(183,224,176,0.07) 1px, transparent 1px);
  background-size: 88px 88px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, transparent 30%, #000 85%); mask-image: radial-gradient(ellipse at 60% 50%, transparent 30%, #000 85%); }
.hf-grid::after { content: ""; position: absolute; left: 0; right: 0; height: 22%; top: -22%;
  background: linear-gradient(to bottom, rgba(183,224,176,0), rgba(183,224,176,0.06) 70%, rgba(183,224,176,0.16) 100%);
  animation: hfScan 7s linear infinite; }
@keyframes hfScan { to { transform: translateY(560%); } }
.hf-corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(183,224,176,0.75); pointer-events: none; opacity: calc(var(--hf-p, 0) * 2); }
.hf-corner.tl { top: 14px; left: 14px; border-top-width: 1.5px; border-left-width: 1.5px; }
.hf-corner.tr { top: 14px; right: 14px; border-top-width: 1.5px; border-right-width: 1.5px; }
.hf-corner.bl { bottom: 14px; left: 14px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hf-corner.br { bottom: 14px; right: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hf-label { position: absolute; z-index: 4; right: var(--pad-x); bottom: 96px; margin: 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(242,241,238,0.72); }

/* text and readouts over the film */
.hf-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; padding: 150px var(--pad-x) 28px; box-sizing: border-box; display: grid;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; gap: 24px 40px; }
.hf-ui a, .hf-ui button { pointer-events: auto; }

.hf-intro { grid-column: 1; grid-row: 1; align-self: end; max-width: 900px; display: flex; flex-direction: column; gap: 22px; }
.hf-kicker { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: #B7E0B0; }
.hf-dot { width: 7px; height: 7px; border-radius: 50%; background: #8FD08A; box-shadow: 0 0 0 0 rgba(143,208,138,0.6); animation: hfPulse 2.2s ease-out infinite; }
@keyframes hfPulse { 70% { box-shadow: 0 0 0 9px rgba(143,208,138,0); } 100% { box-shadow: 0 0 0 0 rgba(143,208,138,0); } }
.hf .hm-h1 { font-size: clamp(52px, 7.4vw, 128px); }
.hf-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hf .hm-h1 span { color: inherit; }
.hf-w > span { display: inline-block; }
.hf .hm-h1 .hf-g > span { color: #B7E0B0; }
.hf-sub { margin: 0; font-size: clamp(18px, 1.55vw, 23px); font-weight: 300; line-height: 1.55; color: #E3E5E0; max-width: 38ch; }

/* the headline reveals word by word, then steps aside while the build runs, and comes back at the end */
.hf-intro > * { transition: opacity 0.7s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.hf-w > span { transition: transform 1s cubic-bezier(.2,.75,.15,1); }
.hf:not(.is-intro) .hf-w > span { transform: translateY(105%); transition-duration: 0.6s; }
.hf:not(.is-intro) .hf-kicker, .hf:not(.is-intro) .hf-sub { opacity: 0; transform: translateY(-12px); }
.hf.is-intro .hf-w:nth-child(2) > span { transition-delay: 0.08s; }
.hf.is-intro .hf-w:nth-child(3) > span { transition-delay: 0.16s; }
.hf.is-intro .hf-w:nth-child(4) > span { transition-delay: 0.24s; }
html.js .hf.is-intro:not(.is-ready) .hf-w > span { transform: translateY(105%); }
html.js .hf:not(.is-ready) .hf-sub, html.js .hf:not(.is-ready) .hf-kicker, html.js .hf:not(.is-ready) .hm-ctas { opacity: 0; transform: translateY(14px); }
.hf .hm-ctas { transition: transform 0.8s cubic-bezier(.2,.7,.2,1), opacity 0.6s ease; }
/* during the build the headline folds away and the buttons stay, under the stage caption */
.hf .hm-h1, .hf-sub, .hf-kicker { max-height: 4.2em; transition: max-height 0.9s cubic-bezier(.2,.7,.2,1), opacity 0.6s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.hf .hf-sub { max-height: 6em; }
.hf:not(.is-intro) .hm-h1, .hf:not(.is-intro) .hf-sub, .hf:not(.is-intro) .hf-kicker { max-height: 0; overflow: hidden; }
.hf:not(.is-intro) .hf-intro { gap: 0; }

/* stage caption */
.hf-stage { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: 84px; display: flex; gap: 22px; align-items: flex-start; max-width: 640px; opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.6s ease; }
.hf:not(.is-intro) .hf-stage { opacity: 1; transform: none; }
.hf-snum { font-size: clamp(56px, 6vw, 96px); font-weight: 300; line-height: 0.82; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(183,224,176,0.9); font-variant-numeric: tabular-nums; }
.hf-stext { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.hf-stitle { font-size: clamp(26px, 2.6vw, 42px); font-weight: 500; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
.hf-sdesc { font-size: 17px; font-weight: 300; line-height: 1.5; color: #E3E5E0; max-width: 46ch; }
.hf-stage.in .hf-snum, .hf-stage.in .hf-stitle, .hf-stage.in .hf-sdesc { animation: hfIn 0.8s cubic-bezier(.2,.75,.15,1) both; }
.hf-stage.in .hf-stitle { animation-delay: 0.06s; } .hf-stage.in .hf-sdesc { animation-delay: 0.14s; }
@keyframes hfIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* wall diagram, top right, fills in as each stage arrives */
.hf-wall { grid-column: 2; grid-row: 1; align-self: start; margin: 4px 0 0; width: 268px; padding: 14px 16px 12px; box-sizing: border-box; border-radius: 16px;
  background: rgba(18,20,19,0.42); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  opacity: 0; transform: translateY(-8px); transition: opacity 0.6s ease, transform 0.6s ease; }
.hf:not(.is-intro) .hf-wall { opacity: 1; transform: none; }
.hf-wall figcaption { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #C9CDC7; margin-bottom: 6px; }
.hf-wall-mm { color: #B7E0B0; opacity: 0; transition: opacity 0.5s; }
.hf.show-gap .hf-wall-mm { opacity: 1; }
.hf-wall svg { display: block; width: 100%; height: auto; overflow: visible; }
.hf-l rect { fill: rgba(255,255,255,0.03); stroke: rgba(255,255,255,0.18); stroke-width: 1; transition: fill 0.6s, stroke 0.6s; }
.hf-l.on rect { fill: rgba(227,229,224,0.28); stroke: rgba(227,229,224,0.55); }
.hf-l.hot rect { fill: rgba(143,208,138,0.55); stroke: #B7E0B0; }
.hf-fillzone rect { stroke: none; opacity: 0; transition: opacity 0.8s; }
.hf-fillzone.on rect { opacity: 0.55; fill: url(#hf-fill); } .hf-fillzone.hot rect { opacity: 1; fill: url(#hf-fill); }
.hf-stud path { fill: none; stroke: rgba(255,255,255,0.22); stroke-width: 3; stroke-linecap: square; transition: stroke 0.6s; }
.hf-stud.on path { stroke: #C9D2D8; } .hf-stud.hot path { stroke: #B7E0B0; }
.hf-gap path { fill: none; stroke: #B7E0B0; stroke-width: 1; opacity: 0; transition: opacity 0.5s; }
.hf-gap text { fill: #B7E0B0; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0; transition: opacity 0.5s; }
.hf.gap-hot .hf-gap path, .hf.gap-hot .hf-gap text { opacity: 1; }
.hf-side { fill: #8E948F; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }
.hf-wall-now { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: #E3E5E0; min-height: 2.8em; }

/* bottom readout: play/pause, stage number and name, a segment per stage, the clock */
.hf-hud { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #E3E5E0; }
.hf-play { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #FFFFFF;
  background: var(--glass-light, rgba(255,255,255,0.14)); -webkit-backdrop-filter: var(--glass-blur, blur(12px)); backdrop-filter: var(--glass-blur, blur(12px)); box-shadow: var(--glass-rim, inset 0 0 0 1px rgba(255,255,255,0.3)); }
.hf-play svg { fill: currentColor; }
.hf-play .i-play { display: none; } .hf.is-paused .hf-play .i-play { display: block; } .hf.is-paused .hf-play .i-pause { display: none; }
.hf-play:focus-visible, .hf-seg:focus-visible { outline: 2px solid #B7E0B0; outline-offset: 3px; }
.hf-read { flex: 0 0 auto; display: flex; gap: 12px; min-width: 250px; }
.hf-rnum { color: #B7E0B0; font-variant-numeric: tabular-nums; }
.hf-segs { flex: 1 1 auto; display: flex; gap: 6px; min-width: 0; }
.hf-seg { flex: 1 1 0; height: 26px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.hf-seg::before, .hf-seg > span { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; }
.hf-seg::before { background: rgba(255,255,255,0.22); }
.hf-seg > span { background: #8FD08A; transform: scaleX(0); transform-origin: 0 50%; }
.hf-seg.done > span { transform: scaleX(1) !important; }
.hf-seg:not(.on):not(.done) > span { transform: scaleX(0) !important; }
@media (hover: hover) { .hf-seg:hover::before { background: rgba(255,255,255,0.5); } }
.hf-time { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: #C9CDC7; min-width: 44px; text-align: right; }

/* after the scroll: benefits beside the card */
.hf-aside { position: absolute; z-index: 2; left: var(--pad-x); top: 15vh; bottom: 13vh; width: calc(42vw - var(--pad-x) - 40px); display: none; flex-direction: column; justify-content: center; gap: 40px; opacity: 0; visibility: hidden; }
.hf-aside-k { margin: 0; font-size: clamp(34px, 3.6vw, 60px); font-weight: 500; line-height: 0.98; letter-spacing: -0.02em; text-transform: uppercase; }
.hf-aside-k span { color: #B7E0B0; }
.hf-bens { display: grid; grid-template-columns: 1fr; gap: 0; font-size: 13px; letter-spacing: 0.16em; line-height: 1.5; color: #E3E5E0; text-transform: uppercase; }
.hf-ben { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.hf-ben:last-child { border-bottom: 1px solid rgba(255,255,255,0.14); }
.hf-ben svg { flex: 0 0 auto; width: 28px; height: 28px; }
@media (min-width: 900px) and (min-height: 560px) { html.js .hf-aside { display: flex; } }

/* no motion: still of the finished house, everything visible, benefits below */
.hf.is-still .hf-stage, .hf.is-still .hf-wall { display: none; }
html:not(.js) .hf-aside, .hf.is-still .hf-aside { position: static; display: flex; width: auto; opacity: 1; visibility: visible; padding: 40px var(--pad-x); }
html:not(.js) .hf-aside-k, .hf.is-still .hf-aside-k { display: none; }
html:not(.js) .hf-bens, .hf.is-still .hf-bens { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 28px; }

@media (max-width: 1100px) {
  .hf-read { min-width: 0; } .hf-rname { display: none; }
  .hf-wall { width: 220px; }
}
/* phones and small tablets: no pinning; header on the dark band, the film fills the rest of the screen,
   the benefits follow as a swipeable row */
@media (max-width: 899px), (max-height: 559px) {
  .hf { display: flex; flex-direction: column; min-height: 100svh; }
  .hf > header { position: relative !important; background: #121413 !important; flex: 0 0 auto; }
  .hf > .prod-bar-m { flex: 0 0 auto !important; height: auto !important; align-items: center; }
  .hf-track { flex: 1 1 auto; height: auto; display: flex; }
  .hf-pin { flex: 1 1 auto; height: auto; min-height: 520px; }
  .hf-label { top: 14px; bottom: auto; right: 16px; font-size: 10px; }
  .hf-ui { padding: 48px var(--pad-x) 16px; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hf-wall { display: none; }
  .hf .hm-h1 { font-size: 40px !important; }
  .hf-intro { align-self: end; gap: 14px; }
  .hf-sub { font-size: 16px; }
  .hf-stage { margin-bottom: 70px; gap: 14px; }
  .hf-snum { font-size: 48px; }
  .hf-stitle { font-size: 22px; } .hf-sdesc { font-size: 15px; }
  .hf .hm-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
  .hf .hm-ctas .hm-pill { flex: 1 1 0; min-width: max-content; min-height: 48px; padding: 0 14px; font-size: 16px; justify-content: center; }
  .hf-hud { gap: 12px; padding-top: 10px; }
  .hf-time { display: none; }
  .hf-shade { background: linear-gradient(to top, rgba(18,20,19,0.94) 0%, rgba(18,20,19,0.6) 38%, rgba(18,20,19,0.05) 70%), linear-gradient(to bottom, rgba(18,20,19,0.4), rgba(18,20,19,0) 20%); }
  .hf-pin { display: flex; flex-direction: column; }
  .hf-frame, .hf-ui { bottom: 66px; }
  .hf-aside { position: relative !important; inset: auto !important; margin-top: auto; height: 66px; box-sizing: border-box; display: flex !important; justify-content: center; width: auto; opacity: 1 !important; visibility: visible !important; transform: none !important; padding: 0 0 0 var(--pad-x); gap: 0; background: #121413; }
  .hf-aside-k { display: none; }
  .hf-bens { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-right: var(--pad-x); scrollbar-width: none; font-size: 11px; }
  .hf-bens::-webkit-scrollbar { display: none; }
  .hf-ben { flex: 0 0 auto; border: 1px solid rgba(255,255,255,0.16) !important; border-radius: 999px; padding: 8px 16px 8px 12px; gap: 10px; scroll-snap-align: start; white-space: nowrap; }
  .hf-ben svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-grid::after, .hf-dot { animation: none; }
  .hf *, .hf *::before { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
