/* ERA Canada · Calgary city page — independent concept (Sonnet 5.5).
   Rooted in [data-section-design="calgary"]. The homepage @scope stops at that attribute, so this file carries its
   own reset and tokens; the approved header, footer and review bar are untouched (the one rule outside the main is the phone
   review-bar tidy-up that every sibling concept carries).
   Same geometry as the other Sonnet interiors: every seam, plane and photo foot leans "/" (rises to the right), edged by a
   green and a blue stripe taken from the warehouse walls. Light page, dark Inter type. The saturated moments are the hero,
   the deep-blue data-security plane and the green donation band that rises under it.
   Composition, top to bottom: a full-screen photograph of the Calgary truck with the original heading low over the asphalt
   (the lettering on the truck stays clear), handed to the page on one "/" seam; a pale band with the original address and
   phone beside the real customer entrance and two jump buttons (enquiry form, map); a sticky index of the page; the
   introduction on white; the recipient photographs as a two-row swipe rail on a blue-tint plane (every photograph at its own
   proportions, nothing cropped); five testimonials as one lead voice and four quiet ones; the eight services as a ruled list
   on a pale plane; data security on deep blue beside the technician photograph; the donation band; the long ITAD copy set as
   a ledger (side-heads left, a 38em reading column right); the 19 questions as native disclosures; the real form; the map.
   Nothing here needs script: calgary.js only adds rail arrows, the current-section mark, open-all for the FAQ and a
   keyboard stop on the testimonial rail when it actually scrolls. */

@keyframes cg-settle{from{transform:scale(1.06)}to{transform:scale(1)}}
@keyframes cg-open{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

[data-section-design="calgary"]{
  --ink:#0d1a22;--text:#32424d;--muted:#566772;--line:#d5dee5;--rule:#c6d2db;--paper:#f2f6f9;
  --blue:#0d5a92;--blue-deep:#0a3f69;--blue-bright:#1b8bd0;--blue-tint:#e4f0f8;
  --green:#2c7a1c;--green-bright:#7cc242;--green-hover:#69ad2f;
  --cg-gutter:clamp(20px,4.2vw,64px);
  --cg-edge:max(var(--cg-gutter),calc((100vw - 1240px) / 2));        /* content edge: the 1240px shell */
  --cg-edge-wide:max(var(--cg-gutter),calc((100vw - 1520px) / 2));   /* lines the hero copy up with the header logo */
  --cg-col:clamp(28px,4.4vw,72px);                                   /* space between two columns */
  --cg-rise:5vw;                                                     /* height every seam gains across the full width: slope .05 */
  --cg-s:clamp(6px,.8vw,12px);                                       /* stripe thickness */
  --cg-g:clamp(3px,.42vw,6px);                                       /* gap between the two stripes */
  --cg-hs:calc(var(--cg-rise) + var(--cg-s) * 2 + var(--cg-g));      /* height of a striped seam */
  --cg-y:clamp(56px,7vw,112px);                                      /* vertical rhythm of a section */
  --cg-slash:clamp(40px,5.6vw,92px);                                 /* sideways run of a slanted photo edge */
  --cg-tile:clamp(150px,13.5vw,204px);                               /* height of every recipient photograph */
  --cg-pos:50% 48%;                                                  /* hero crop for stacked layouts; replaced inline from the photo manifest */
  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,& h6,& p,& ul,& figure{margin:0}
  & ul{padding:0;list-style:none}
  & img{display:block;max-width:100%;height:auto}
  & iframe{display:block;max-width:100%;border:0}
  & a{color:inherit}
  & button{font:inherit}
  & [hidden]{display:none!important}
  & :focus-visible{outline:3px solid var(--blue);outline-offset:3px}
  & h1,& h2,& h3,& h6{color:var(--ink);font-weight:800;letter-spacing:-.04em;line-height:1.04;text-wrap:balance}
  & h2{font-size:clamp(30px,3.9vw,56px);line-height:1.02;letter-spacing:-.047em}
  & p{color:var(--text)}
  & strong{font-weight:740}
  & [id]{scroll-margin-top:44px}   /* anchors land below the sticky header and the page index */
  /* Links inside source paragraphs: heavier ink, the same green underline as the other interiors. */
  & 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}
  & p a:hover{color:var(--blue-deep);text-decoration-color:var(--blue-bright)}

  /* Section label: two-tone right triangle + small caps, as on the homepage. */
  & .cg-kicker{display:flex;align-items:center;gap:10px;margin-bottom:clamp(16px,1.8vw,24px);font-size:12px;line-height:1.3;font-weight:750;letter-spacing:.15em;text-transform:uppercase;color:var(--kc,var(--blue))}
  & .cg-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%)}

  /* Actions: the green button is the one primary path; ghost sits on the photograph, line on light planes, dark on the green band. */
  & .cg-actions{display:flex;flex-wrap:wrap;gap:12px 14px;margin-top:clamp(20px,2.2vw,32px)}
  & .cg-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:22px;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,color .18s}
  & .cg-btn::after{content:"↓";content:"↓" / "";flex:none;font-size:20px;font-weight:600;line-height:1;transition:transform .2s}
  & .cg-btn:hover{background:var(--green-hover);border-color:var(--green-hover)}
  & .cg-btn:hover::after{transform:translateY(3px)}
  & .cg-btn--ghost{border-color:rgba(255,255,255,.72);background:rgba(255,255,255,.08);color:#fff}
  & .cg-btn--ghost:hover{border-color:#fff;background:#fff;color:var(--ink)}
  & .cg-btn--line{border-color:var(--ink);background:transparent;color:var(--ink)}
  & .cg-btn--line:hover{border-color:var(--ink);background:var(--ink);color:#fff}
  & .cg-btn--dark{border-color:var(--ink);background:var(--ink);color:#fff}
  & .cg-btn--dark:hover{border-color:var(--blue-deep);background:var(--blue-deep);color:#fff}

  /* ---------- Hero: one full-screen photograph, the heading low over the asphalt, the page handed over on a "/" seam ---------- */
  & #calgary-hero{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;min-height:max(600px,calc(100vh - var(--review-h,34px) - var(--header-h,72px)));min-height:max(600px,calc(100svh - var(--review-h,34px) - var(--header-h,72px)));padding:clamp(96px,10vw,160px) var(--cg-edge-wide) calc(var(--cg-hs) + clamp(22px,2.6vw,44px));background:#0b1419;color:#fff}
  & #calgary-hero :focus-visible{outline-color:#fff}
  & .cg-hero-media{position:absolute;inset:0;z-index:-2;overflow:hidden}
  /* The truck occupies the upper middle of the frame and its lettering ends just above half height, so on a landscape screen
     the crop is weighted toward the foot (the empty asphalt) and the copy sits below the lettering, never over it. */
  & .cg-hero-media img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:55% 74%;transform-origin:55% 40%;animation:cg-settle 2.2s cubic-bezier(.2,.7,.2,1) both}
  /* Darkness gathers along the foot, behind the copy; it has faded out before the lettering on the truck begins. */
  & .cg-hero-shade{position:absolute;inset:0;z-index:-1;background:
    linear-gradient(0deg,rgba(5,15,22,.94) 0%,rgba(5,15,22,.9) 20%,rgba(5,15,22,.78) 34%,rgba(5,15,22,.45) 42%,rgba(5,15,22,.14) 48%,rgba(5,15,22,0) 54%),
    linear-gradient(180deg,rgba(5,15,22,.45) 0%,rgba(5,15,22,0) 20%)}
  & #calgary-hero h1{max-width:16.5em;margin-bottom:clamp(16px,1.8vw,26px);color:#fff;font-size:clamp(34px,4.2vw,62px);line-height:1;letter-spacing:-.05em;text-shadow:0 2px 28px rgba(0,0,0,.45)}
  & .cg-hero-actions{display:flex;flex-wrap:wrap;gap:12px 14px}
  /* The seam: green stripe, pale gap, blue stripe, then the pale plane, all parallel on the shared slope. */
  & .cg-seam{position:absolute;z-index:1;left:0;right:0;bottom:-1px;height:calc(var(--cg-hs) + 1px);pointer-events:none}
  & .cg-seam::before,& .cg-seam::after{content:"";position:absolute;left:0;right:0;top:0;height:var(--cg-hs)}
  & .cg-seam::before{background:var(--green-bright);clip-path:polygon(0 var(--cg-rise),100% 0,100% var(--cg-s),0 calc(var(--cg-rise) + var(--cg-s)))}
  & .cg-seam::after{background:var(--blue-bright);clip-path:polygon(0 calc(var(--cg-rise) + var(--cg-s) + var(--cg-g)),100% calc(var(--cg-s) + var(--cg-g)),100% calc(var(--cg-s) * 2 + var(--cg-g)),0 calc(var(--cg-rise) + var(--cg-s) * 2 + var(--cg-g)))}
  & .cg-seam i{position:absolute;inset:0;background:var(--paper);clip-path:polygon(0 calc(var(--cg-rise) + var(--cg-s)),100% var(--cg-s),100% 100%,0 100%)}

  /* ---------- Page index: sticky under the header; plain anchors, so it works without script ---------- */
  & .cg-jump{position:sticky;top:var(--header-h,72px);z-index:30;background:var(--paper);border-bottom:1px solid var(--line)}
  & .cg-jump ul{display:flex;gap:0 clamp(18px,2.2vw,32px);margin:0;padding:0 var(--cg-edge);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;white-space:nowrap}
  & .cg-jump ul::-webkit-scrollbar{display:none}
  & .cg-jump li{flex:none}
  & .cg-jump a{display:flex;align-items:center;min-height:52px;font-size:14px;line-height:1.2;font-weight:680;letter-spacing:-.005em;color:var(--ink);text-decoration:none;box-shadow:inset 0 -3px 0 transparent;transition:box-shadow .15s,color .15s}
  & .cg-jump a:hover{box-shadow:inset 0 -3px 0 var(--rule)}
  & .cg-jump a[aria-current="true"]{color:var(--blue);box-shadow:inset 0 -3px 0 var(--green-bright)}

  /* ---------- Photographs: "/" edge toward the text, green and blue stripes hugging it ---------- */
  & .cg-photo{position:relative;isolation:isolate;min-width:0}
  & .cg-photo img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:var(--pos,50% 50%)}
  /* A photograph that bleeds off the left page edge: the slanted edge is on the right and the stripes follow it. */
  & .cg-photo--left{margin-left:calc(var(--cg-edge) * -1)}
  & .cg-photo--left img{clip-path:polygon(0 0,100% 0,calc(100% - var(--cg-slash)) 100%,0 100%)}
  & .cg-photo--left::before,& .cg-photo--left::after{content:"";position:absolute;top:0;bottom:0;z-index:-1;pointer-events:none}
  & .cg-photo--left::before{left:calc(100% - var(--cg-slash) - 1px);width:calc(var(--cg-slash) + var(--cg-s) + 1px);background:var(--green-bright);clip-path:polygon(var(--cg-slash) 0,calc(var(--cg-slash) + var(--cg-s) + 1px) 0,calc(var(--cg-s) + 1px) 100%,0 100%)}
  & .cg-photo--left::after{left:calc(100% - var(--cg-slash) + var(--cg-s) + var(--cg-g));width:calc(var(--cg-slash) + var(--cg-s));background:var(--blue-bright);clip-path:polygon(var(--cg-slash) 0,calc(var(--cg-slash) + var(--cg-s)) 0,var(--cg-s) 100%,0 100%)}

  /* ---------- Ribbon: the two stripes above the top edge of a plane (the plane's own edge is the blue stripe's lower edge) ---------- */
  & .cg-ribbon{position:absolute;z-index:-1;left:0;right:0;top:calc((var(--cg-s) * 2 + var(--cg-g)) * -1);height:calc(var(--cg-rise) + var(--cg-s) * 2 + var(--cg-g));pointer-events:none}
  & .cg-ribbon::before,& .cg-ribbon::after{content:"";position:absolute;inset:0}
  & .cg-ribbon::before{background:var(--green-bright);clip-path:polygon(0 var(--cg-rise),100% 0,100% var(--cg-s),0 calc(var(--cg-rise) + var(--cg-s)))}
  & .cg-ribbon::after{background:var(--blue-bright);clip-path:polygon(0 calc(var(--cg-rise) + var(--cg-s) + var(--cg-g)),100% calc(var(--cg-s) + var(--cg-g)),100% calc(var(--cg-s) * 2 + var(--cg-g)),0 calc(var(--cg-rise) + var(--cg-s) * 2 + var(--cg-g)))}

  /* ---------- Local details: the pale band under the hero seam. The original address and phone sit beside the entrance photograph. ---------- */
  & #calgary-details{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,6.4fr) minmax(0,5.6fr);column-gap:var(--cg-col);align-items:start;padding:clamp(36px,4.4vw,72px) var(--cg-edge) calc(var(--cg-rise) + clamp(44px,5vw,80px))}
  & #calgary-details::before{content:"";position:absolute;inset:0 0 -2px;z-index:-1;background:var(--paper);clip-path:polygon(0 0,100% 0,100% calc(100% - var(--cg-rise)),0 100%)}
  & .cg-details-photo{grid-column:1;grid-row:span 5;align-self:stretch;min-height:clamp(300px,30vw,460px)}
  & #calgary-details>:not(.cg-photo){grid-column:2;min-width:0}
  & #calgary-details p{padding:clamp(16px,1.5vw,22px) 0;border-top:1px solid var(--rule);font-size:clamp(21px,1.85vw,28px);line-height:1.25;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
  & #calgary-details .cg-kicker+p{border-top:2px solid var(--ink)}
  & #calgary-details p strong{display:block;margin-bottom:6px;font-size:12px;line-height:1.3;font-weight:750;letter-spacing:.16em;text-transform:uppercase;color:var(--blue)}
  /* The third original paragraph is the bare phone number; its label is drawn here so the paragraph text itself is untouched. */
  & #calgary-details p:nth-of-type(3)::before{content:"Calgary phone";display:block;margin-bottom:6px;font-size:12px;line-height:1.3;font-weight:750;letter-spacing:.16em;text-transform:uppercase;color:var(--blue)}
  & #calgary-details p:nth-of-type(3){white-space:nowrap}

  /* ---------- Introduction: the long heading runs across, the sub-heading sits left, the three paragraphs right ---------- */
  & #calgary-intro{display:grid;grid-template-columns:minmax(0,4.6fr) minmax(0,7.4fr);column-gap:var(--cg-col);align-items:start;padding:clamp(40px,5vw,80px) var(--cg-edge) var(--cg-y)}
  & #calgary-intro>.cg-kicker,& #calgary-intro>h2{grid-column:1 / -1}
  & #calgary-intro>h2{max-width:21em;margin-bottom:clamp(28px,3.6vw,56px)}
  & #calgary-intro>h3{grid-column:1;grid-row:span 3;padding-right:clamp(0px,1vw,16px);font-size:clamp(22px,2.1vw,30px);line-height:1.12;letter-spacing:-.035em}
  & #calgary-intro>p{grid-column:2;max-width:36em;font-size:clamp(17px,1.3vw,19px);line-height:1.76}
  & #calgary-intro>p+p{margin-top:1.1em}
  & #calgary-intro>p:first-of-type{font-size:clamp(19px,1.55vw,22px);line-height:1.62;color:var(--ink)}

  /* ---------- Who we've helped: a blue-tint plane. Two rows of photographs swipe sideways, each at its own proportions. ---------- */
  & #calgary-recipients{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;padding:calc(var(--cg-rise) + clamp(44px,5vw,80px)) 0 calc(var(--cg-rise) + clamp(48px,5.4vw,88px))}
  & #calgary-recipients::before{content:"";position:absolute;inset:-2px 0 0;z-index:-1;background:var(--blue-tint);clip-path:polygon(0 var(--cg-rise),100% 0,100% calc(100% - var(--cg-rise)),0 100%)}
  & #calgary-recipients>.cg-kicker{grid-column:1 / -1;padding-inline:var(--cg-edge)}
  & #calgary-recipients>h2{grid-column:1;padding-inline:var(--cg-edge) 0}
  & .cg-rail-tools{grid-column:2;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px 20px;padding-right:var(--cg-edge)}
  & .cg-rail-note{max-width:19em;font-size:14px;line-height:1.45;font-weight:600;color:var(--muted);text-align:right}
  & .cg-rail-buttons{display:flex;gap:8px}
  & .cg-rail-btn{display:grid;place-items:center;width:48px;height:48px;padding:0;border:2px solid var(--ink);border-radius:2px;background:#fff;color:var(--ink);font-size:20px;line-height:1;cursor:pointer;transition:background-color .18s,color .18s}
  & .cg-rail-btn:hover:not(:disabled){background:var(--ink);color:#fff}
  & .cg-rail-btn:disabled{opacity:.35;cursor:default}
  & .recipient-rail{grid-column:1 / -1;display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,max-content);grid-auto-columns:min-content;gap:clamp(22px,2.4vw,32px) clamp(14px,1.4vw,20px);margin-top:clamp(26px,3vw,44px);padding:6px 0 22px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:0;scrollbar-width:thin;scrollbar-color:var(--blue-bright) rgba(13,26,34,.12)}
  & .recipient-rail:focus-visible{outline-offset:-4px}
  & .recipient{--cg-cut:clamp(12px,1.4vw,20px);min-width:0;scroll-snap-align:start}
  /* Fixed height, natural width: portraits, squares and group photographs all stay whole. The caption wraps to the photograph's width. */
  & .recipient img{height:var(--cg-tile);width:auto;max-width:none;background:#fff;clip-path:polygon(var(--cg-cut) 0,100% 0,100% 100%,0 100%,0 var(--cg-cut))}
  & .recipient figcaption{margin-top:9px;font-size:13px;line-height:1.35;font-weight:650;letter-spacing:.005em;color:var(--ink);overflow-wrap:break-word}

  /* ---------- Testimonials: one lead voice across the top, four quiet ones in two columns ---------- */
  & #calgary-testimonials{padding:var(--cg-y) var(--cg-edge)}
  & #calgary-testimonials>.cg-kicker+h2{max-width:16em}
  & #calgary-testimonials>h2{margin-bottom:clamp(30px,3.8vw,56px)}
  & .testimonial-rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(34px,4vw,60px) var(--cg-col)}
  & .testimonial{display:flex;flex-direction:column;min-width:0;padding-top:clamp(18px,2vw,28px);border-top:2px solid var(--ink)}
  & .testimonial h6{font-size:clamp(21px,1.95vw,28px);line-height:1.16;font-weight:780;letter-spacing:-.03em}
  & .testimonial p{max-width:34em;margin-top:clamp(12px,1.3vw,18px);font-size:clamp(17px,1.3vw,18.5px);line-height:1.7}
  & .testimonial-author{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:clamp(16px,1.8vw,24px);font-size:12px;line-height:1.35;font-weight:750;letter-spacing:.14em;text-transform:uppercase;color:var(--blue)}
  & .testimonial-author::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%)}
  & .testimonial:first-child{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:var(--cg-col);align-items:start}
  & .testimonial:first-child h6{grid-column:1;grid-row:span 2;font-size:clamp(28px,3.4vw,50px);line-height:1.06;letter-spacing:-.045em;font-weight:820}
  & .testimonial:first-child p{grid-column:2;margin-top:0;font-size:clamp(18px,1.5vw,21px)}
  & .testimonial:first-child .testimonial-author{grid-column:2;margin-top:0}

  /* ---------- Services: the heading and its two paragraphs, then eight ruled entries on a pale plane ---------- */
  & #calgary-services{position:relative;isolation:isolate;padding:calc(var(--cg-rise) + clamp(44px,5.4vw,88px)) var(--cg-edge) calc(var(--cg-rise) + clamp(48px,5.6vw,92px))}
  & #calgary-services::before{content:"";position:absolute;inset:-2px 0 -2px;z-index:-1;background:var(--paper);clip-path:polygon(0 var(--cg-rise),100% 0,100% calc(100% - var(--cg-rise)),0 100%)}
  & .services-intro{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--cg-col);row-gap:clamp(16px,1.8vw,24px);align-items:start}
  & .services-intro>.cg-kicker,& .services-intro>h2{grid-column:1 / -1}
  & .services-intro>h2{max-width:20em;margin-bottom:clamp(8px,1.2vw,18px)}
  & .services-intro>p{max-width:34em;font-size:clamp(17px,1.3vw,19px);line-height:1.74}
  & .services-list{counter-reset:svc;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--cg-col);margin-top:clamp(36px,4.4vw,68px)}
  & .service{counter-increment:svc;display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:clamp(18px,2vw,26px) 0 clamp(26px,3vw,42px);border-top:2px solid var(--ink)}
  & .service::before{content:counter(svc,decimal-leading-zero);content:counter(svc,decimal-leading-zero) / "";margin-bottom:clamp(12px,1.4vw,18px);font-size:13px;line-height:1;font-weight:780;letter-spacing:.14em;color:var(--blue)}
  & .service h3{max-width:17em;font-size:clamp(22px,2vw,30px);line-height:1.12;font-weight:780;letter-spacing:-.035em}
  & .service p{max-width:30em;margin-top:clamp(12px,1.3vw,18px);margin-bottom:clamp(14px,1.6vw,22px);font-size:clamp(16.5px,1.25vw,18px);line-height:1.7}
  & .service>a{align-self:flex-start;display:inline-block;margin-top:auto;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}
  & .service>a::after{content:"→";content:"→" / "";display:inline-block;margin-left:.45em;font-weight:600;text-decoration:none;transition:transform .2s}
  & .service>a:hover{color:var(--blue-deep);text-decoration-color:var(--blue-bright)}
  & .service>a:hover::after{transform:translateX(3px)}

  /* ---------- Data security: the deep-blue plane. The technician photograph bleeds off the left edge; the plane rises under the services plane. ---------- */
  & #calgary-security{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,5.2fr) minmax(0,6.8fr);column-gap:var(--cg-col);align-items:start;margin-top:calc(var(--cg-rise) * -1);padding:calc(var(--cg-rise) + clamp(52px,6vw,96px)) var(--cg-edge) calc(var(--cg-rise) + clamp(56px,6.4vw,100px));color:#fff}
  & #calgary-security::before{content:"";position:absolute;inset:-2px 0 -2px;z-index:-1;background:var(--blue-deep);clip-path:polygon(0 var(--cg-rise),100% 0,100% calc(100% - var(--cg-rise)),0 100%)}
  & #calgary-security :focus-visible{outline-color:#fff}
  & #calgary-security>.cg-kicker{--kc:#fff}
  & .cg-security-photo{grid-column:1;grid-row:span 5;align-self:stretch;min-height:clamp(300px,32vw,480px)}
  & #calgary-security>:not(.cg-photo):not(.cg-ribbon){grid-column:2;min-width:0}
  & #calgary-security>h2{max-width:15em;margin-bottom:clamp(20px,2.2vw,32px);color:#fff;font-size:clamp(30px,3.4vw,50px)}
  & #calgary-security>p{max-width:34em;color:rgba(255,255,255,.9);font-size:clamp(17px,1.35vw,19px);line-height:1.76}
  & #calgary-security>p+p{margin-top:1.1em}
  & #calgary-security>p:first-of-type{font-size:clamp(18px,1.5vw,21px);color:#fff}

  /* ---------- Donate: the green band that rises under the deep-blue plane ---------- */
  & #calgary-donate{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:var(--cg-col);align-items:start;margin-top:calc(var(--cg-rise) * -1);padding:calc(var(--cg-rise) + clamp(48px,5.6vw,88px)) var(--cg-edge) calc(var(--cg-rise) + clamp(48px,5.4vw,84px));color:var(--ink)}
  & #calgary-donate::before{content:"";position:absolute;inset:-2px 0 -2px;z-index:-1;background:var(--green-bright);clip-path:polygon(0 var(--cg-rise),100% 0,100% calc(100% - var(--cg-rise)),0 100%)}
  & #calgary-donate :focus-visible{outline-color:var(--ink)}
  & #calgary-donate>.cg-kicker{grid-column:1 / -1;--kc:var(--ink)}
  & #calgary-donate>.cg-kicker::before{background:linear-gradient(to top left,#fff 0 34%,var(--blue-deep) 34%)}
  & #calgary-donate>h2{grid-column:1;grid-row:span 4;max-width:11em;padding-right:clamp(0px,1.4vw,24px);font-size:clamp(30px,3.4vw,50px)}
  & #calgary-donate>p,& #calgary-donate>.cg-actions{grid-column:2;min-width:0}
  & #calgary-donate>p{max-width:34em;color:var(--ink);font-size:clamp(17px,1.35vw,19px);line-height:1.74}
  & #calgary-donate>p+p{margin-top:1.1em}
  & #calgary-donate>p:first-of-type{font-size:clamp(18px,1.5vw,21px)}
  & #calgary-donate>p a{text-decoration-color:var(--ink)}

  /* ---------- Corporate ITAD: the long copy as a ledger. Side-heads left, a 38em reading column right. ---------- */
  & #calgary-itad{display:grid;grid-template-columns:minmax(0,4.2fr) minmax(0,7.8fr);column-gap:var(--cg-col);align-items:start;padding:var(--cg-y) var(--cg-edge)}
  & #calgary-itad>.cg-kicker,& #calgary-itad>h2{grid-column:1 / -1}
  & #calgary-itad>h2{max-width:21em;margin-bottom:clamp(28px,3.6vw,56px);font-size:clamp(30px,3.7vw,54px)}
  & #calgary-itad>p{grid-column:2;max-width:38em;font-size:clamp(17px,1.3vw,19px);line-height:1.78}
  & #calgary-itad>p+p{margin-top:1.15em}
  & #calgary-itad>p:nth-of-type(1){font-size:clamp(19px,1.55vw,22px);line-height:1.62;color:var(--ink)}
  & #calgary-itad>h3{grid-column:1;margin-top:clamp(40px,4.6vw,68px);padding-right:var(--cg-col);font-size:clamp(20px,1.7vw,26px);line-height:1.15;letter-spacing:-.03em}
  & #calgary-itad>h3::before{content:"";display:block;width:clamp(46px,4.2vw,64px);height:clamp(8px,.8vw,11px);margin-bottom:clamp(14px,1.5vw,20px);background:linear-gradient(90deg,var(--green-bright) 0 50%,var(--blue-bright) 50%);clip-path:polygon(16% 0,100% 0,84% 100%,0 100%)}
  & #calgary-itad>h3+p{margin-top:clamp(40px,4.6vw,68px)}
  /* The five service paragraphs read as ruled entries; the last paragraph is the closing statement. */
  & #calgary-itad>h3:nth-of-type(3)~p{padding-top:clamp(14px,1.5vw,20px);border-top:1px solid var(--rule)}
  & #calgary-itad>h3:nth-of-type(3)~p+p{margin-top:clamp(14px,1.5vw,20px)}
  & #calgary-itad>h3:nth-of-type(3)~p:last-of-type{margin-top:clamp(28px,3.4vw,48px);padding-top:clamp(20px,2vw,28px);border-top:2px solid var(--ink);font-size:clamp(19px,1.55vw,22px);line-height:1.62;font-weight:520;color:var(--ink)}

  /* ---------- FAQ: the heading holds the left column (sticky) beside the native disclosure list ---------- */
  & #calgary-faq{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,4.4fr) minmax(0,7.6fr);grid-template-rows:auto 1fr;column-gap:var(--cg-col);align-items:start;padding:calc(var(--cg-rise) + clamp(44px,5vw,80px)) var(--cg-edge) calc(var(--cg-rise) + clamp(44px,5vw,80px))}
  & #calgary-faq::before{content:"";position:absolute;inset:-2px 0 -2px;z-index:-1;background:var(--paper);clip-path:polygon(0 var(--cg-rise),100% 0,100% calc(100% - var(--cg-rise)),0 100%)}
  & #calgary-faq>.cg-kicker{grid-column:1;grid-row:1}
  & #calgary-faq>h2{grid-column:1;grid-row:2;position:sticky;top:calc(var(--header-h,72px) + 80px);padding-right:clamp(0px,1.4vw,24px);font-size:clamp(28px,2.8vw,42px);line-height:1.06}
  & #calgary-faq>.cg-faq-tools{grid-column:2;grid-row:1;align-self:center;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:clamp(16px,1.8vw,24px)}
  & #calgary-faq>.city-faq-list{grid-column:2;grid-row:2;min-width:0}
  & #calgary-faq>span{position:absolute;width:1px;height:1px;overflow:hidden}   /* the legacy anchor from the source, kept as a target */
  & .cg-faq-count{font-size:14px;line-height:1.4;font-weight:600;color:var(--muted)}
  & .cg-faq-toggle{min-height:44px;padding:0 18px;border:2px solid var(--ink);border-radius:2px;background:#fff;font-size:15px;line-height:1.2;font-weight:740;color:var(--ink);cursor:pointer;transition:background-color .18s,color .18s}
  & .cg-faq-toggle:hover{background:var(--ink);color:#fff}
  & .city-faq-list>details{border-bottom:1px solid var(--rule)}
  & .city-faq-list>details:first-child{border-top:2px solid var(--ink)}
  & .cg-faq-item summary{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 0;cursor:pointer;list-style:none}
  & .cg-faq-item summary::-webkit-details-marker{display:none}
  & .cg-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}
  & .cg-faq-item summary::after{content:"";flex:none;width:34px;height:34px;margin-top:-4px;border:1px solid var(--rule);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}
  & .cg-faq-item[open] summary::after{border-color:var(--blue);background:linear-gradient(#fff,#fff) 50% 50% / 14px 2px no-repeat var(--blue)}
  & .cg-faq-item summary:hover h3,& .cg-faq-item[open] summary h3{color:var(--blue)}
  & .cg-faq-item>div{padding:0 54px 26px 0}
  & .cg-faq-item[open]>div{animation:cg-open .28s ease-out both}
  & .cg-faq-item p{max-width:44em;font-size:17px;line-height:1.75}
  & .cg-faq-item p+p{margin-top:.9em}
  /* The one answer that lists the locations: the two lists run as compact link grids. */
  & .cg-faq-item ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:2px 18px;max-width:44em;margin:6px 0 20px}
  & .cg-faq-item li a{display:inline-block;padding:5px 0;font-weight:650;color:var(--ink);text-decoration:underline;text-decoration-color:var(--green-bright);text-decoration-thickness:2px;text-underline-offset:4px}
  & .cg-faq-item li a:hover{color:var(--blue-deep);text-decoration-color:var(--blue-bright)}

  /* ---------- Contact: the real form beside a sticky title ---------- */
  & #calgary-contact{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);grid-template-rows:auto 1fr;column-gap:var(--cg-col);align-items:start;padding:var(--cg-y) var(--cg-edge) clamp(28px,3.4vw,52px)}
  & #calgary-contact>.cg-kicker{grid-column:1;grid-row:1}
  & #calgary-contact>.cg-title{grid-column:1;grid-row:2;position:sticky;top:calc(var(--header-h,72px) + 80px);padding-right:clamp(0px,1.4vw,24px);font-size:clamp(28px,2.8vw,42px);line-height:1.06;font-weight:800;letter-spacing:-.047em;color:var(--ink);text-wrap:balance}
  & #calgary-contact>iframe{grid-column:2;grid-row:1 / span 2;width:100%;min-width:0;background:#fff;box-shadow:0 0 0 1px var(--line)}

  /* ---------- Map: the original embed under a short "/" cut at its top left; the foot is left clear for the map's own credits ---------- */
  & #calgary-map{padding:clamp(24px,3vw,44px) var(--cg-edge) clamp(56px,6.5vw,104px)}
  & #calgary-map>iframe{width:100%;height:clamp(340px,38vw,520px);clip-path:polygon(0 clamp(24px,4vw,60px),100% 0,100% 100%,0 100%)}

  /* ---------- Close: the page ends on the same "/" seam, handing over to the pale footer ---------- */
  & .cg-close{position:relative;display:block;height:calc(var(--cg-rise) + var(--cg-s) * 2 + var(--cg-g));pointer-events:none}
  & .cg-close::before,& .cg-close::after{content:"";position:absolute;inset:0}
  & .cg-close::before{background:var(--green-bright);clip-path:polygon(0 var(--cg-rise),100% 0,100% var(--cg-s),0 calc(var(--cg-rise) + var(--cg-s)))}
  & .cg-close::after{background:var(--blue-bright);clip-path:polygon(0 calc(var(--cg-rise) + var(--cg-s) + var(--cg-g)),100% calc(var(--cg-s) + var(--cg-g)),100% calc(var(--cg-s) * 2 + var(--cg-g)),0 calc(var(--cg-rise) + var(--cg-s) * 2 + var(--cg-g)))}
  & .cg-close i{position:absolute;inset:0;background:var(--paper);clip-path:polygon(0 100%,100% calc(var(--cg-s) * 2 + var(--cg-g)),100% 100%)}
}

/* Content edge and seam slope measured on the page itself (not the viewport, which includes the scrollbar), so the copy lines
   up with the header. Placed before the responsive rules so that the tablet and phone slope below still wins. */
@supports (width:1cqw){
  [data-section-design="calgary"]{
    container-type:inline-size;
    --cg-edge:max(var(--cg-gutter),calc((100cqw - 1240px) / 2));
    --cg-edge-wide:max(var(--cg-gutter),calc((100cqw - 1520px) / 2));
    --cg-rise:5cqw;
  }
}

/* Short, wide windows: the same hero, a little tighter, so the copy still stays under the lettering on the truck. */
@media (max-height:760px) and (min-width:761px) and (min-aspect-ratio:9/8){
  [data-section-design="calgary"]{
    & #calgary-hero{padding-top:88px;padding-bottom:calc(var(--cg-hs) + 18px)}
    & #calgary-hero h1{margin-bottom:14px;font-size:clamp(30px,3.7vw,48px)}
    & #calgary-hero .cg-btn{min-height:48px}
  }
}

/* Wide landscape screens: the heading holds the left, the two jump buttons stack at the right of the same baseline. The block
   is then only as tall as the two-line heading, which keeps it clear of the lettering on the truck. */
@media (min-width:1240px) and (min-aspect-ratio:9/8){
  [data-section-design="calgary"]{
    & #calgary-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;align-content:end;column-gap:clamp(32px,4vw,72px)}
    & #calgary-hero h1{grid-column:1;margin-bottom:0}
    & .cg-hero-actions{grid-column:2;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:12px}
  }
}

/* Touch screens swipe the recipient rail, so its arrow buttons are not shown there. */
@media (hover:none){
  [data-section-design="calgary"]{
    & .cg-rail-buttons{display:none}
  }
}

/* ---------- Portrait screens and phones: the photograph sits at the top (about 70% of its width or more stays in frame, so the
   truck is never cropped to a detail), the copy on the dark plane below it ---------- */
@media (max-aspect-ratio:9/8),(max-width:760px){
  [data-section-design="calgary"]{
    --cg-media-h:clamp(300px,80vw,560px);

    & #calgary-hero{justify-content:flex-end;min-height:max(560px,calc(100vh - var(--review-h,34px) - var(--header-h,64px)));min-height:max(560px,calc(100svh - var(--review-h,34px) - var(--header-h,64px)));padding:calc(var(--cg-media-h) - 34px) var(--cg-gutter) calc(var(--cg-hs) + 30px)}
    & .cg-hero-media{inset:0 0 auto 0;height:var(--cg-media-h)}
    & .cg-hero-media img{object-position:var(--cg-pos)}
    & .cg-hero-shade{background:linear-gradient(180deg,rgba(5,15,22,.4) 0%,rgba(5,15,22,0) 22%,rgba(5,15,22,0) calc(var(--cg-media-h) - 150px),rgba(11,20,25,.7) calc(var(--cg-media-h) - 56px),#0b1419 calc(var(--cg-media-h) - 4px),#0b1419 100%)}
    & #calgary-hero h1{max-width:18em;font-size:clamp(32px,10.4vw,60px);line-height:1.02}
    & .cg-hero-actions{align-self:stretch}
    & .cg-hero-actions .cg-btn{flex:1 1 auto}
  }
}

/* ---------- Tablet and below: one column; the planes keep their "/" edges at a slightly steeper slope ---------- */
@media (max-width:999px){
  [data-section-design="calgary"]{
    --cg-rise:7vw;--cg-col:clamp(24px,4vw,44px);--cg-slash:clamp(22px,6.5vw,44px);--cg-y:clamp(48px,8vw,72px);

    /* Photographs: full-bleed, the foot on a shallow "/" and no stripes (as on the other interiors). */
    & .cg-photo--left{grid-column:1;grid-row:auto;align-self:auto;min-height:0;aspect-ratio:16/10;margin:0 calc(var(--cg-edge) * -1) clamp(26px,5vw,40px)}
    & .cg-photo--left img{clip-path:polygon(0 0,100% 0,100% calc(100% - var(--cg-slash)),0 100%)}
    & .cg-photo--left::before,& .cg-photo--left::after{display:none}

    & #calgary-details{grid-template-columns:minmax(0,1fr)}
    & #calgary-details>:not(.cg-photo){grid-column:1}
    & #calgary-details p{font-size:clamp(21px,3.6vw,26px)}
    & #calgary-intro{grid-template-columns:minmax(0,1fr)}
    & #calgary-intro>h3{grid-column:1;grid-row:auto;max-width:20em;margin-bottom:18px;padding-right:0}
    & #calgary-intro>p{grid-column:1}
    & #calgary-recipients{grid-template-columns:minmax(0,1fr)}
    & .cg-rail-tools{grid-column:1;justify-content:flex-start;padding-inline:var(--cg-edge);margin-top:16px}
    & .cg-rail-note{max-width:none;text-align:left}
    & .testimonial:first-child{grid-template-columns:minmax(0,1fr)}
    & .testimonial:first-child h6{grid-column:1;grid-row:auto}
    & .testimonial:first-child p,& .testimonial:first-child .testimonial-author{grid-column:1;margin-top:clamp(12px,1.3vw,18px)}
    & .testimonial:first-child .testimonial-author{margin-top:0}
    & .services-intro{grid-template-columns:minmax(0,1fr)}
    & #calgary-security{grid-template-columns:minmax(0,1fr)}
    & #calgary-security>:not(.cg-photo):not(.cg-ribbon){grid-column:1}
    & #calgary-donate{grid-template-columns:minmax(0,1fr)}
    & #calgary-donate>h2{grid-column:1;grid-row:auto;max-width:15em;padding-right:0;margin-bottom:clamp(18px,3vw,28px)}
    & #calgary-donate>p,& #calgary-donate>.cg-actions{grid-column:1}
    & #calgary-itad{grid-template-columns:minmax(0,1fr)}
    & #calgary-itad>p,& #calgary-itad>h3{grid-column:1}
    & #calgary-itad>h3{margin-top:clamp(34px,6vw,52px);padding-right:0}
    & #calgary-itad>h3+p{margin-top:14px}
    & #calgary-faq{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
    & #calgary-faq>.cg-kicker,& #calgary-faq>h2,& #calgary-faq>.cg-faq-tools,& #calgary-faq>.city-faq-list{grid-column:1;grid-row:auto}
    & #calgary-faq>h2{position:static;margin-bottom:clamp(20px,3.6vw,30px)}
    & .cg-faq-item>div{padding-right:0}
    & #calgary-contact{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
    & #calgary-contact>.cg-kicker,& #calgary-contact>.cg-title,& #calgary-contact>iframe{grid-column:1;grid-row:auto}
    & #calgary-contact>.cg-title{position:static;margin-bottom:clamp(18px,3vw,26px)}
  }
}

/* ---------- Phone: the testimonials swipe, the services run as one column ---------- */
@media (max-width:760px){
  [data-section-design="calgary"]{
    --cg-tile:clamp(132px,38vw,172px);

    & .cg-jump a{min-height:46px}
    & #calgary-details p:nth-of-type(3){white-space:normal}
    & .recipient-rail{padding-inline:0;scroll-padding-inline:0}
    & .testimonial-rail{display:flex;gap:16px;margin-inline:calc(var(--cg-edge) * -1);padding:0 var(--cg-edge) 14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--cg-edge);scrollbar-width:thin;scrollbar-color:var(--blue-bright) rgba(13,26,34,.12)}
    & .testimonial-rail:focus-visible{outline-offset:-4px}
    & .testimonial,& .testimonial:first-child{display:flex;flex:0 0 min(84%,380px);scroll-snap-align:start}
    & .testimonial:first-child h6{font-size:clamp(22px,6.2vw,30px);line-height:1.12;font-weight:780;letter-spacing:-.03em}
    & .testimonial:first-child p{margin-top:14px;font-size:17px}
    & .testimonial:first-child .testimonial-author{margin-top:auto}
    & .services-list{grid-template-columns:minmax(0,1fr)}
    & .cg-actions .cg-btn{flex:1 1 auto}
    & .cg-faq-item summary{gap:14px;padding:18px 0}
    & .cg-faq-item p{font-size:16.5px}
    & #calgary-map>iframe{clip-path:polygon(0 24px,100% 0,100% 100%,0 100%)}
  }
}

@media (prefers-reduced-motion:reduce){
  [data-section-design="calgary"] *,[data-section-design="calgary"] *::before,[data-section-design="calgary"] *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}

@media print{
  [data-section-design="calgary"]{
    & #calgary-hero{min-height:0}
    & .cg-jump,& .cg-rail-tools,& .cg-faq-tools{display:none}
  }
}

/* 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}}
