/* ERA Canada · How It Works — independent interior page (Sonnet 5.5).
   Rooted in [data-section-design="how-it-works"]. The homepage @scope stops at that attribute, so this
   file carries its own resets and tokens; the approved header and footer are not touched.
   Same geometry as the other Sonnet interiors: every seam, plane and photo edge leans "/" (rises to the right),
   edged by a green and a blue stripe. Light page, dark Inter type.
   This page is the story that joins the service pages (collection, data security, refurbishment, donation), so
   order is the whole design. Source order throughout; every step opens with the same title bar, its source
   number set large beside its heading, and then gives its photograph and its text. A headline beside one tall
   photograph; the four steps indexed on a pale plane; the truck panorama carrying step 1; steps 2, 3 and 4 with
   the photograph on alternating sides; the eight equipment lists beside a pallet photograph; the closing line;
   ten native FAQs beside a sticky portrait. Everything is native HTML (links, lists, details); nothing here
   needs script. */

@keyframes hw-open{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

[data-section-design="how-it-works"]{
  --ink:#0d1a22;--text:#32424d;--muted:#566772;--line:#d5dee5;--paper:#f2f6f9;
  --blue:#0d5a92;--blue-deep:#0a3f69;--blue-bright:#1b8bd0;--blue-tint:#e4f0f8;
  --green:#2c7a1c;--green-bright:#7cc242;--green-hover:#69ad2f;
  --hw-gutter:clamp(20px,4.2vw,64px);
  --hw-edge:max(var(--hw-gutter),calc((100vw - 1240px) / 2));
  --hw-edge-wide:max(var(--hw-gutter),calc((100vw - 1520px) / 2));   /* lines the headline up with the header logo */
  --hw-rise:5vw;                          /* height every plane seam gains across the full width: slope .05 */
  --hw-slash:clamp(40px,5.6vw,92px);      /* sideways run of a slanted photo edge */
  --hw-s:clamp(6px,.8vw,12px);            /* stripe thickness */
  --hw-g:clamp(3px,.42vw,6px);            /* white gap between the two stripes */
  --hw-pad:clamp(52px,6.2vw,100px);
  --hw-col:clamp(28px,4.4vw,72px);
  --hw-numcol:clamp(96px,12vw,200px);     /* the numeral column of every step's title bar */
  --hw-hs:calc(var(--hw-rise) + var(--hw-s) * 2 + var(--hw-g));   /* height of the striped foot of the truck panorama */
  position:relative;display:block;overflow-x:clip;background:#fff;color:var(--text);
  font:400 17px/1.7 Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;

  /* ---------- Reset + type ---------- */
  & *,& *::before,& *::after{box-sizing:border-box}
  & h1,& h2,& h3,& p,& ul,& ol,& figure{margin:0}
  & ul,& ol{padding:0;list-style:none}
  & img{display:block;max-width:100%}
  & a{color:inherit}
  & [hidden]{display:none!important}
  & :focus-visible{outline:3px solid var(--blue);outline-offset:3px}
  & h1,& h2,& h3{color:var(--ink);font-weight:800;letter-spacing:-.04em;line-height:1.04;text-wrap:balance}
  /* Section label: two-tone right triangle + small caps, as on the homepage. */
  & .hw-kicker{display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.3;font-weight:750;letter-spacing:.15em;text-transform:uppercase;color:var(--blue)}
  & .hw-kicker::before{content:"";flex:none;width:20px;height:15px;background:linear-gradient(to top left,var(--green-bright) 0 34%,var(--blue-bright) 34%);clip-path:polygon(0 100%,100% 0,100% 100%)}
  & .hw-label{font-size:12px;line-height:1.3;font-weight:750;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}

  /* ---------- Ways in: one green button where the page asks for action, plain links with a green underline elsewhere ---------- */
  & .how-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px 30px;margin-top:clamp(22px,2.4vw,34px)}
  & .hw-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:26px;min-height:56px;padding:0 22px 0 26px;border:2px solid var(--green-bright);border-radius:2px;background:var(--green-bright);color:var(--ink);font-size:16px;line-height:1.2;font-weight:760;letter-spacing:-.01em;text-decoration:none;transition:background-color .18s,border-color .18s}
  & .hw-btn::after{content:"→";content:"→" / "";flex:none;font-size:20px;font-weight:600;line-height:1;transition:transform .2s}
  & .hw-btn:hover{background:var(--green-hover);border-color:var(--green-hover)}
  & .hw-btn:hover::after{transform:translateX(3px)}
  & .how-actions a:not(.hw-btn){display:inline-block;padding:10px 0;font-size:16px;line-height:1.3;font-weight:740;letter-spacing:-.012em;color:var(--ink);text-decoration:underline;text-decoration-color:var(--green-bright);text-decoration-thickness:3px;text-underline-offset:6px;transition:color .15s,text-decoration-color .15s}
  & .how-actions a:not(.hw-btn)::after{content:"→";content:"→" / "";display:inline-block;margin-left:.45em;font-weight:600;text-decoration:none;transition:transform .2s}
  & .how-actions a:not(.hw-btn):hover{color:var(--blue-deep);text-decoration-color:var(--blue-bright)}
  & .how-actions a:not(.hw-btn):hover::after{transform:translateX(3px)}
  /* Links inside the source paragraphs: heavier ink, the same green underline. */
  & .hw-text p a,& .hw-contact-copy p a{color:var(--ink);font-weight:700;text-decoration:underline;text-decoration-color:var(--green-bright);text-decoration-thickness:2px;text-underline-offset:4px}
  & .hw-text p a:hover,& .hw-contact-copy p a:hover{color:var(--blue-deep);text-decoration-color:var(--blue-bright)}

  /* ---------- Photographs: "/" edge on the side facing the text, green and blue stripes hugging it ---------- */
  & .hw-photo{position:relative;isolation:isolate;min-width:0}
  & .hw-photo img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:var(--pos,50% 50%);clip-path:polygon(var(--hw-slash) 0,100% 0,100% 100%,0 100%)}
  & .hw-photo::before,& .hw-photo::after{content:"";position:absolute;top:0;bottom:0;z-index:-1;pointer-events:none}
  & .hw-photo::before{left:calc(var(--hw-s) * -1);width:calc(var(--hw-slash) + var(--hw-s) + 1px);background:var(--green-bright);clip-path:polygon(var(--hw-slash) 0,calc(var(--hw-slash) + var(--hw-s) + 1px) 0,calc(var(--hw-s) + 1px) 100%,0 100%)}
  & .hw-photo::after{left:calc((var(--hw-s) * 2 + var(--hw-g)) * -1);width:calc(var(--hw-slash) + var(--hw-s));background:var(--blue-bright);clip-path:polygon(var(--hw-slash) 0,calc(var(--hw-slash) + var(--hw-s)) 0,var(--hw-s) 100%,0 100%)}
  /* Photos on the left bleed off the page edge; the slanted edge is on the right and the stripes follow it. */
  & .hw-photo.is-left img{clip-path:polygon(0 0,100% 0,calc(100% - var(--hw-slash)) 100%,0 100%)}
  & .hw-photo.is-left::before{left:calc(100% - var(--hw-slash) - 1px)}
  & .hw-photo.is-left::after{left:calc(100% - var(--hw-slash) + var(--hw-s) + var(--hw-g))}
  /* Crops, set per photograph so the people and the equipment stay clear of the slanted edge. */
  & .hw-photo--hero{--pos:50% 50%} /* ERA staff member and testing benches */
  & .hw-photo--shred{--pos:52% 54%} /* tray of shredded drives */
  & .hw-photo--bench{--pos:65% 50%} /* open computer and technician */
  & .hw-photo--class{--pos:50% 42%} /* both students and ERA laptops */
  & .hw-photo--pallets{--pos:50% 62%} /* staff processing equipment */
  & .hw-photo--handover{--pos:60% 50%} /* both ERA staff at the event */
  & .hw-photo--cages{--pos:48% 50%} /* ERA staff member at the front counter */

  /* ---------- Planes and ribbons: pale areas cut on the same "/" diagonal, with the two-tone ribbon above the edge ---------- */
  & .hw-plane::before{content:"";position:absolute;inset:-2px 0 0;z-index:-1;background:var(--paper);clip-path:polygon(0 var(--hw-rise),100% 0,100% calc(100% - var(--hw-rise)),0 100%)}
  & .hw-ribbon{position:absolute;z-index:-1;left:0;right:0;top:calc((var(--hw-s) * 2 + var(--hw-g)) * -1);height:calc(var(--hw-rise) + var(--hw-s) * 2 + var(--hw-g));pointer-events:none}
  & .hw-ribbon::before,& .hw-ribbon::after{content:"";position:absolute;inset:0}
  & .hw-ribbon::before{background:var(--green-bright);clip-path:polygon(0 var(--hw-rise),100% 0,100% var(--hw-s),0 calc(var(--hw-rise) + var(--hw-s)))}
  & .hw-ribbon::after{background:var(--blue-bright);clip-path:polygon(0 calc(var(--hw-rise) + var(--hw-s) + var(--hw-g)),100% calc(var(--hw-s) + var(--hw-g)),100% calc(var(--hw-s) * 2 + var(--hw-g)),0 calc(var(--hw-rise) + var(--hw-s) * 2 + var(--hw-g)))}

  /* ---------- Hero: the headline and its way in on the left, one tall photograph on the right, flush under the header ---------- */
  & .hw-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:stretch;padding-bottom:clamp(48px,5vw,76px)}
  & .hw-hero-copy{align-self:center;min-width:0;padding:clamp(34px,4vw,60px) calc(var(--hw-col) + var(--hw-s) * 2 + var(--hw-g)) 0 var(--hw-edge-wide)}
  & .hw-hero h1{margin:clamp(14px,1.5vw,22px) 0 clamp(20px,2.2vw,32px);font-size:clamp(42px,4.8vw,88px);line-height:.96;letter-spacing:-.04em}
  /* The subtitle paragraph, set as a lead line with the green underline used across the concepts. */
  & .hw-hero-copy>p{display:inline;padding:0 .06em;background:linear-gradient(transparent 80%,var(--green-bright) 80% 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;font-size:clamp(21px,2.1vw,31px);line-height:1.3;font-weight:780;letter-spacing:-.03em;color:var(--ink)}
  & .hw-hero .how-actions{margin-top:clamp(26px,2.8vw,40px)}
  & .hw-hero-photo{min-height:clamp(480px,40vw,700px)}

  /* ---------- The four steps: the source introduction, then a numbered index on the pale plane, each entry a jump to its step ---------- */
  & .hw-intro{position:relative;isolation:isolate;padding:calc(var(--hw-rise) + clamp(34px,4.4vw,68px)) var(--hw-edge) calc(var(--hw-rise) + clamp(36px,4.6vw,72px))}
  & .hw-intro-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--hw-col);align-items:start}
  & .hw-intro h2{font-size:clamp(30px,3.5vw,54px);line-height:1.02;letter-spacing:-.045em}
  & .hw-intro-grid>p{max-width:36em;font-size:clamp(17px,1.4vw,20px);line-height:1.7;color:var(--ink)}
  & .hw-route{margin-top:clamp(38px,4.6vw,68px)}
  & .hw-route-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 28px;padding-bottom:clamp(10px,1.2vw,16px)}
  & .hw-route-more{display:flex;flex-wrap:wrap;gap:0 22px}
  & .hw-route-more a{display:inline-flex;align-items:center;min-height:40px;background:linear-gradient(transparent 82%,var(--green-bright) 82% 94%,transparent 94%) 0 0 / 0 100% no-repeat;font-size:15px;line-height:1.3;font-weight:680;letter-spacing:-.01em;color:var(--ink);text-decoration:none;transition:background-size .28s ease,color .15s}
  & .hw-route-more a:hover,& .hw-route-more a:focus-visible{background-size:100% 100%;color:var(--blue-deep)}
  & .hw-route ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:2px solid var(--ink)}
  & .hw-route li+li{border-left:1px solid #c6d2db}
  & .hw-route a{display:flex;align-items:baseline;gap:clamp(12px,1.4vw,20px);padding:clamp(18px,2vw,28px) clamp(14px,1.6vw,24px);color:var(--ink);text-decoration:none}
  & .hw-route li:first-child a{padding-left:0}
  & .hw-route .n{flex:none;font-size:clamp(40px,4.6vw,72px);line-height:.9;font-weight:800;letter-spacing:-.06em}
  & .hw-route .t{min-width:0;background:linear-gradient(transparent 86%,var(--green-bright) 86% 96%,transparent 96%) 0 0 / 0 100% no-repeat;font-size:clamp(17px,1.5vw,22px);line-height:1.25;font-weight:760;letter-spacing:-.025em;transition:background-size .28s ease}
  & .hw-route a:hover .t,& .hw-route a:focus-visible .t{background-size:100% 100%}

  /* ---------- Every step: a title bar (source number large, then the source heading), then photograph and text ---------- */
  & .hw-stage{position:relative;isolation:isolate;padding:calc(var(--hw-pad) * .62) 0}
  & .hw-head{display:grid;grid-template-columns:var(--hw-numcol) minmax(0,1fr);column-gap:var(--hw-col);align-items:center;margin:0 var(--hw-edge)}
  & .hw-head .hw-num{grid-column:1;grid-row:1}
  & .hw-head h2{grid-column:2;grid-row:1;font-size:clamp(28px,3.4vw,52px);line-height:1.04;letter-spacing:-.045em}
  /* The number is the source paragraph; "Step" is a label drawn above it, and the slanted two-tone bar closes it. */
  & .hw-num{display:flex;flex-direction:column;align-items:flex-start;gap:clamp(10px,1.1vw,16px)}
  & .hw-num::before{content:"Step";font-size:12px;line-height:1;font-weight:750;letter-spacing:.15em;text-transform:uppercase;color:var(--blue)}
  & .hw-num strong{display:block;font-size:clamp(88px,11vw,180px);line-height:.74;font-weight:800;letter-spacing:-.06em;color:var(--ink)}
  & .hw-num::after{content:"";width:clamp(46px,4.8vw,72px);height:clamp(8px,.8vw,11px);background:linear-gradient(90deg,var(--green-bright) 0 50%,var(--blue-bright) 50%);clip-path:polygon(16% 0,100% 0,84% 100%,0 100%)}
  & .hw-body{display:grid;column-gap:var(--hw-col);align-items:center;margin-top:clamp(28px,3.4vw,52px)}
  & .hw-text{min-width:0}
  & .hw-text p{max-width:34em;font-size:clamp(16.5px,1.25vw,18.5px);line-height:1.72}
  & .hw-text p+p{margin-top:1.15em}
  & .hw-body .hw-photo{align-self:stretch;min-height:clamp(360px,37vw,620px)}
  /* Steps 2 and 4: text left, photograph bleeding off the right edge. Step 3: photograph left, text right. */
  & .hw-stage--r .hw-body{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
  & .hw-stage--r .hw-text{padding-left:var(--hw-edge)}
  & .hw-stage--l .hw-body{grid-template-columns:minmax(0,7.4fr) minmax(0,4.6fr)}
  & .hw-stage--l .hw-text{padding-right:var(--hw-edge)}
  & .hw-stage--l .hw-photo{order:-1}

  /* Step 1: the truck photograph spans the page. It hangs from the intro plane on the shared diagonal; its foot follows the
     green stripe exactly (same slope, same offsets). The title bar and text sit beneath it, the text under the heading. */
  & .hw-stage--wide{display:grid;grid-template-columns:minmax(0,1fr);padding:0 0 calc(var(--hw-pad) * .62)}
  & .hw-wide-photo{grid-row:1;position:relative;isolation:isolate;height:clamp(300px,43vw,760px);margin-top:calc(var(--hw-rise) * -1 - 1px)}
  & .hw-wide-photo img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 40%;clip-path:polygon(0 var(--hw-rise),100% 0,100% calc(100% - var(--hw-hs)),0 calc(100% - var(--hw-hs) + var(--hw-rise)))}
  & .hw-wide-photo::before,& .hw-wide-photo::after{content:"";position:absolute;z-index:2;left:0;right:0;bottom:0;height:var(--hw-hs);pointer-events:none}
  & .hw-wide-photo::before{background:var(--green-bright);clip-path:polygon(0 var(--hw-rise),100% 0,100% var(--hw-s),0 calc(var(--hw-rise) + var(--hw-s)))}
  & .hw-wide-photo::after{background:var(--blue-bright);clip-path:polygon(0 calc(var(--hw-rise) + var(--hw-s) + var(--hw-g)),100% calc(var(--hw-s) + var(--hw-g)),100% calc(var(--hw-s) * 2 + var(--hw-g)),0 calc(var(--hw-rise) + var(--hw-s) * 2 + var(--hw-g)))}
  & .hw-stage--wide .hw-head{grid-row:2;margin-top:clamp(34px,4.2vw,64px)}
  & .hw-stage--wide .hw-body{grid-row:3;grid-template-columns:var(--hw-numcol) minmax(0,1fr);margin:clamp(16px,1.8vw,26px) var(--hw-edge) 0}
  & .hw-stage--wide .hw-text{grid-column:2}
  & .hw-stage--wide .hw-text p{max-width:40em}

  /* ---------- Electronics we accept: a pallet photograph bleeding off the left edge beside the heading, then the eight source
     lists in four columns, all on a pale plane. The wrapper around heading and lists is display:contents so both
     take their places in the section's own grid. ---------- */
  & .hw-accept{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,7.4fr) minmax(0,4.6fr);column-gap:var(--hw-col);align-items:center;padding:calc(var(--hw-rise) + var(--hw-pad) * .8) 0}
  & .hw-accept-copy{display:contents}
  & .hw-accept .hw-photo{grid-column:1;grid-row:1;align-self:stretch;min-height:clamp(300px,31vw,520px)}
  & .hw-accept h2{grid-column:2;grid-row:1;padding-right:var(--hw-edge);font-size:clamp(32px,3.9vw,60px);line-height:1;letter-spacing:-.048em}
  /* Lists as typography: a heavy rule over the first row, hairlines over the second. Lines read the same whether the
     source uses <br> inside one paragraph or one paragraph per line. */
  & .equipment-grid{grid-column:1 / -1;grid-row:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:clamp(22px,2.6vw,40px);margin:clamp(30px,3.6vw,52px) var(--hw-edge) 0}
  & .equipment-item{min-width:0;padding:clamp(16px,1.6vw,22px) 0 clamp(20px,2vw,28px);border-top:1px solid #c6d2db}
  & .equipment-item:nth-child(-n+4){border-top:2px solid var(--ink)}
  & .equipment-item h3{margin-bottom:10px;font-size:clamp(20px,1.8vw,26px);line-height:1.15;letter-spacing:-.034em}
  & .equipment-item p{font-size:16px;line-height:1.7;color:var(--text)}

  /* ---------- Contact: the closing line beside the handover photograph, which bleeds off the right edge ---------- */
  & .hw-contact{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,6fr) minmax(0,6fr);column-gap:var(--hw-col);align-items:center;padding:var(--hw-pad) 0 calc(var(--hw-pad) * .6)}
  & .hw-contact-copy{min-width:0;padding-left:var(--hw-edge)}
  & .hw-contact h2{font-size:clamp(32px,4vw,62px);line-height:1.02;letter-spacing:-.046em}
  & .hw-contact-copy>p{max-width:32em;margin-top:clamp(18px,2vw,28px);font-size:clamp(17px,1.4vw,20px);line-height:1.7;color:var(--ink)}
  & .hw-contact .hw-photo{align-self:stretch;min-height:clamp(380px,38vw,640px)}

  /* ---------- FAQ: a portrait that bleeds off the left edge (sticky) beside the heading and the native disclosure list ---------- */
  & .hw-faq{display:grid;grid-template-columns:minmax(0,4.6fr) minmax(0,7.4fr);column-gap:var(--hw-col);align-items:start;padding:calc(var(--hw-pad) * .6) 0 var(--hw-pad)}
  & .hw-faq h2{grid-column:2;grid-row:1;padding-right:var(--hw-edge);margin-bottom:clamp(22px,2.6vw,38px);font-size:clamp(32px,3.9vw,60px);line-height:1;letter-spacing:-.048em}
  & .hw-faq .hw-photo{grid-column:1;grid-row:1 / span 2;position:sticky;top:calc(var(--header-h,72px) + 32px);align-self:start;height:clamp(420px,66vh,700px)}
  & .hw-faq-list{grid-column:2;grid-row:2;min-width:0;padding-right:var(--hw-edge)}
  & .hw-faq-list>details{border-bottom:1px solid var(--line)}
  & .hw-faq-list>details:first-child{border-top:2px solid var(--ink)}
  & .how-faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;cursor:pointer;list-style:none}
  & .how-faq-item summary::-webkit-details-marker{display:none}
  & .how-faq-item summary h3{min-width:0;font-size:clamp(17px,1.5vw,20px);line-height:1.32;font-weight:680;letter-spacing:-.02em;text-wrap:pretty;transition:color .15s}
  & .how-faq-item summary::after{content:"";flex:none;width:34px;height:34px;border:1px solid var(--line);border-radius:2px;color:var(--blue);background:linear-gradient(currentColor,currentColor) 50% 50% / 14px 2px no-repeat,linear-gradient(currentColor,currentColor) 50% 50% / 2px 14px no-repeat;transition:background-color .2s,border-color .2s}
  & .how-faq-item[open] summary::after{border-color:var(--blue);background:linear-gradient(#fff,#fff) 50% 50% / 14px 2px no-repeat var(--blue)}
  & .how-faq-item summary:hover h3,& .how-faq-item[open] summary h3{color:var(--blue)}
  & .how-faq-item>div{padding:0 54px 26px 0}
  & .how-faq-item[open]>div{animation:hw-open .28s ease-out both}
  & .how-faq-item>div p{max-width:44em;font-size:16px;line-height:1.75}

  /* ---------- Close: the page ends on the same "/" seam, handing over to the pale footer ---------- */
  & .hw-close{position:relative;display:block;height:calc(var(--hw-rise) + var(--hw-s) * 2 + var(--hw-g));pointer-events:none}
  & .hw-close::before,& .hw-close::after{content:"";position:absolute;inset:0}
  & .hw-close::before{background:var(--green-bright);clip-path:polygon(0 var(--hw-rise),100% 0,100% var(--hw-s),0 calc(var(--hw-rise) + var(--hw-s)))}
  & .hw-close::after{background:var(--blue-bright);clip-path:polygon(0 calc(var(--hw-rise) + var(--hw-s) + var(--hw-g)),100% calc(var(--hw-s) + var(--hw-g)),100% calc(var(--hw-s) * 2 + var(--hw-g)),0 calc(var(--hw-rise) + var(--hw-s) * 2 + var(--hw-g)))}
  & .hw-close i{position:absolute;inset:0;background:var(--paper);clip-path:polygon(0 100%,100% calc(var(--hw-s) * 2 + var(--hw-g)),100% 100%)}
}

/* ---------- Narrow desktop: the text columns beside the step photographs get a little more room ---------- */
@media (max-width:1199px){
  [data-section-design="how-it-works"]{
    & .hw-stage--r .hw-body{grid-template-columns:minmax(0,5.6fr) minmax(0,6.4fr)}
    & .hw-stage--l .hw-body{grid-template-columns:minmax(0,6.4fr) minmax(0,5.6fr)}
  }
}

/* ---------- Tablet and phone: one column, the copy leads, photographs cut on a shallow "/" at the foot ---------- */
@media (max-width:960px){
  [data-section-design="how-it-works"]{
    --hw-rise:7vw;--hw-slash:clamp(22px,6.5vw,44px);--hw-pad:clamp(40px,8vw,64px);--hw-numcol:clamp(64px,14vw,104px);

    /* Hero: the headline and its way in stack, then the photograph. */
    & .hw-hero{grid-template-columns:minmax(0,1fr);padding-bottom:clamp(30px,6vw,48px)}
    & .hw-hero-copy{padding:clamp(26px,5vw,40px) var(--hw-gutter) clamp(26px,5vw,38px)}
    & .hw-hero h1{font-size:clamp(38px,10.4vw,76px)}
    & .hw-hero-photo{min-height:0;aspect-ratio:4/3}

    & .hw-photo img,& .hw-photo.is-left img{clip-path:polygon(0 0,100% 0,100% calc(100% - var(--hw-slash)),0 100%)}
    & .hw-photo::before,& .hw-photo::after{display:none}

    /* Introduction and index. */
    & .hw-intro{padding-inline:var(--hw-gutter)}
    & .hw-intro-grid{grid-template-columns:minmax(0,1fr);row-gap:clamp(18px,3.4vw,26px)}
    & .hw-intro h2{font-size:clamp(30px,6.6vw,46px)}
    & .hw-route ol{grid-template-columns:repeat(2,minmax(0,1fr))}
    & .hw-route li:nth-child(odd){border-left:0}
    & .hw-route li:nth-child(odd) a{padding-left:0}
    & .hw-route li:nth-child(n+3){border-top:1px solid #c6d2db}

    /* Steps: the title bar keeps the number beside the heading, the text comes next, the photograph closes the step. */
    & .hw-head{margin-inline:var(--hw-gutter);column-gap:clamp(16px,3vw,24px)}
    & .hw-head h2{font-size:clamp(26px,5.4vw,40px)}
    & .hw-num strong{font-size:clamp(64px,13vw,104px)}
    & .hw-body,& .hw-stage--r .hw-body,& .hw-stage--l .hw-body{grid-template-columns:minmax(0,1fr);row-gap:clamp(22px,4vw,32px);margin-top:clamp(20px,3.4vw,30px)}
    & .hw-stage--r .hw-text,& .hw-stage--l .hw-text{padding:0 var(--hw-gutter)}
    & .hw-stage--l .hw-photo{order:0}
    & .hw-body .hw-photo{min-height:0;aspect-ratio:4/3}
    & .hw-wide-photo{height:clamp(220px,56vw,430px)}
    & .hw-stage--wide .hw-head{margin-top:clamp(26px,5vw,38px)}
    & .hw-stage--wide .hw-body{grid-template-columns:minmax(0,1fr);margin-inline:var(--hw-gutter)}
    & .hw-stage--wide .hw-text{grid-column:1}

    /* Equipment: the heading, the lists in two columns, then the photograph. */
    & .hw-accept{grid-template-columns:minmax(0,1fr);row-gap:clamp(22px,4vw,32px)}
    & .hw-accept h2{grid-column:1;grid-row:1;padding:0 var(--hw-gutter);font-size:clamp(32px,6vw,46px)}
    & .equipment-grid{grid-column:1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));margin:0 var(--hw-gutter)}
    & .equipment-item:nth-child(-n+4){border-top:1px solid #c6d2db}
    & .equipment-item:nth-child(-n+2){border-top:2px solid var(--ink)}
    & .hw-accept .hw-photo{grid-column:1;grid-row:3;min-height:0;aspect-ratio:4/3}

    /* Photographs that carry an aspect ratio sit at the start of their row instead of stretching. */
    & .hw-hero-photo,& .hw-body .hw-photo,& .hw-accept .hw-photo,& .hw-contact .hw-photo{align-self:start}

    /* Contact: the copy first, the photograph after it. */
    & .hw-contact{grid-template-columns:minmax(0,1fr);row-gap:clamp(26px,4.4vw,38px);padding-top:clamp(40px,7vw,56px)}
    & .hw-contact-copy{padding:0 var(--hw-gutter)}
    & .hw-contact .hw-photo{min-height:0;aspect-ratio:4/3}

    /* FAQ: heading, portrait, then the list. */
    & .hw-faq{grid-template-columns:minmax(0,1fr);padding-top:clamp(30px,6vw,44px)}
    & .hw-faq h2{grid-column:1;padding:0 var(--hw-gutter);font-size:clamp(32px,6vw,46px)}
    & .hw-faq .hw-photo{grid-column:1;grid-row:2;position:relative;top:auto;height:auto;aspect-ratio:4/3;margin-bottom:clamp(22px,4vw,30px)}
    & .hw-faq-list{grid-column:1;grid-row:3;padding:0 var(--hw-gutter)}
    & .how-faq-item>div{padding-right:0}
  }
}
@media (max-width:640px){
  [data-section-design="how-it-works"]{
    & .hw-hero .how-actions{align-items:stretch;flex-direction:column;gap:6px}
    & .hw-btn{width:100%}
    & .hw-hero .how-actions a:not(.hw-btn){align-self:flex-start}
    & .hw-route-head{flex-direction:column;align-items:flex-start}
    & .hw-route .n{font-size:clamp(36px,10vw,48px)}
    & .hw-route .t{font-size:17px}
    & .hw-head{grid-template-columns:minmax(0,1fr);row-gap:18px}
    & .hw-head .hw-num,& .hw-head h2{grid-column:1}
    & .hw-head h2{grid-row:2}
    & .hw-body .hw-photo{aspect-ratio:4/3}
    & .hw-accept .hw-photo,& .hw-contact .hw-photo,& .hw-faq .hw-photo{aspect-ratio:16/11}
    & .how-faq-item summary{gap:14px;padding:18px 0}
  }
}
@media (max-width:520px){
  [data-section-design="how-it-works"]{
    & .hw-route ol{grid-template-columns:minmax(0,1fr)}
    & .hw-route li:nth-child(n+2){border-left:0;border-top:1px solid #c6d2db}
    & .hw-route a{padding-block:14px}
  }
}
@media (max-width:359px){
  [data-section-design="how-it-works"]{
    & .equipment-grid{grid-template-columns:minmax(0,1fr)}
    & .equipment-item:nth-child(2){border-top:1px solid #c6d2db}
  }
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  [data-section-design="how-it-works"] *,[data-section-design="how-it-works"] *::before,[data-section-design="how-it-works"] *::after{transition:none!important;animation:none!important}
}

/* ---------- Hero photograph meets the seam (2026-11-23, after launch; Tibor: "the hero has lines, image, kinda
   looks off") ----------
   As first drawn, the photograph ended in a flat foot, then 48 to 76px of white, then the two stripes of the
   next plane: it floated above the seam, unlike Recycling Depots and Accepted Items, where the photograph's
   foot IS the seam. Here the same construction: no white band, the photograph and its side stripes continue
   below the hero and are cut along the top edge of the green stripe (same slope, same offsets), so the stripes
   read as the photograph's foot. Two-column layout only; the stacked layout below 961px is unchanged. */
@media (min-width:961px){
  [data-section-design="how-it-works"]{
    --hw-k:.545455; /* share of the width taken by the copy column: 1.2 / (1.2 + 1) */
    & .hw-hero{padding-bottom:0}
    /* The foot is drawn 2px under the green stripe, which is painted over it: two edges cut on the same line
       would leave a hairline of white between them. */
    & .hw-hero-photo{clip-path:polygon(calc((var(--hw-s) * 2 + var(--hw-g) + 2px) * -1) 0,100% 0,100% calc(100% - var(--hw-s) * 2 - var(--hw-g) + 2px),calc((var(--hw-s) * 2 + var(--hw-g) + 2px) * -1) calc(100% + var(--hw-rise) * (1 - var(--hw-k)) - var(--hw-s) * 2 - var(--hw-g) + 2px))}
    & .hw-hero-photo img{height:calc(100% + var(--hw-rise))}
    & .hw-hero-photo::before,& .hw-hero-photo::after{bottom:calc(var(--hw-rise) * -1)}
  }
}

/* ---------- Mid-page photographs meet the seam (2026-11-24; Tibor: "mid page seam fix, do it") ----------
   Lower on the page the same construction as the old hero remained: a side photograph with a flat edge, a strip
   of empty page, then the seam. Both photographs beside the seam between step 4 and "Electronics We Accept" now
   run into it, like the hero. Two-column layout only (961px and wider); the stacked layout is unchanged.
   A. The photograph of the stage directly above the seam runs into it (its foot is the green stripe).
   B. The photograph at the top of the plane is tucked under the seam (its top is the blue stripe). */
@media (min-width:961px){
  [data-section-design="how-it-works"]{
    /* A. The whole stage is cut along the top edge of the green stripe, 2px under it; the photograph continues
          below the stage so there is something to cut. The stage is full width, so the cut needs no knowledge
          of where the photograph starts. */
    & #process-4{padding-bottom:0;clip-path:polygon(0 0,100% 0,100% calc(100% - var(--hw-s) * 2 - var(--hw-g) + 2px),0 calc(100% + var(--hw-rise) - var(--hw-s) * 2 - var(--hw-g) + 2px))}
    & #process-4 .hw-photo img{height:calc(100% + var(--hw-rise))}
    & #process-4 .hw-photo::before,& #process-4 .hw-photo::after{bottom:calc(var(--hw-rise) * -1)}

    /* B. The photograph is pulled up to the top of the plane and cut along the plane's edge (slope .05, the
          same number as --hw-rise:5vw), 2px under the blue stripe, which is raised above the photograph. Its
          width is the first column of the section's grid: (100vw - column gap) * 7.4 / 12. */
    & .hw-accept .hw-ribbon{z-index:1}
    & .hw-accept .hw-photo{
      margin-top:calc((var(--hw-rise) + var(--hw-pad) * .8) * -1);
      min-height:calc(clamp(300px,31vw,520px) + var(--hw-rise) + var(--hw-pad) * .8);
      clip-path:polygon(
        0 calc(var(--hw-rise) - 2px),
        calc(100% + var(--hw-s) * 2 + var(--hw-g) + 2px) calc(var(--hw-rise) - 2px - ((100vw - var(--hw-col)) * 7.4 / 12 + var(--hw-s) * 2 + var(--hw-g) + 2px) * .05),
        calc(100% + var(--hw-s) * 2 + var(--hw-g) + 2px) 100%,
        0 100%)}
  }
}

/* Review toolbar: keep all review controls visible on phones. */
@media(max-width:640px){.review-bar .review-id>a{display:none}.review-bar .review-id{font-size:10px}.review-bar{gap:10px}}
