/* ==========================================================================
   ELIOS — Industries page (industries.html)
   Loaded after styles.css; reuses its tokens and shared components (.industry cards,
   .section-head, .tag, .btn, .index, testimonial, CTA, footer).
   There is no Figma frame for this page: it is composed from the Home / Services / About
   language. LAYOUT ONLY: every font size comes from the :root type tokens in styles.css
   (fixed px, identical at every desktop width); only spacing and layout scale.
   ========================================================================== */
/* ---------- Hero: ink headline block, a wide photo band with four callouts, a hairline grid of partner logos ----------
   Same layout as the reference (and the build that was first tried on Home), scoped to this page with the `ind-hero` / `ind-callout` / `ind-logos` names.
   One rhythm: the block gap is --hero-gap (5rem, the step of the About intro rows and the Contact cards), the space under the header is --first-line (the line the Contact
   eyebrow and the Services headline start on) and the section ends on --section-y like every other section. The hero is an ordinary section: it scrolls with the page 1:1, nothing is
   pinned, veiled or parallaxed, and it is not tied to the window height. The motion layer does not treat it as a photo hero (no `.hero` / `.svc-hero` class): see "Industries hero" in animations.js. */
.ind-hero { --first-line: clamp(144px, 10vw, 173px); --hl: rgba(19, 18, 17, .14); --cell: 4.5rem; --hero-gap: 5rem; position: relative; padding-bottom: var(--section-y); background: var(--white); color: var(--ink); overflow: hidden; }
/* top block: chip, two-line headline, then the copy (left) and the one button (right, on the copy's last line) */
.ind-hero__top { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2.5rem; align-items: end; padding-top: var(--first-line); padding-bottom: var(--hero-gap); }
.ind-hero__chip { grid-column: 1 / -1; justify-self: start; margin-bottom: 1.5rem; padding: 0.5rem 0.875rem; border: 1px solid rgba(19, 18, 17, .2); --dot: 4px; --dot-inset: -2px; --dot-color: var(--ink); }
.ind-hero .h1 { grid-column: 1 / -1; max-width: 15em; margin-bottom: 3rem; }
.ind-hero__foot { display: contents; }
.ind-hero__lede { grid-column: 1; max-width: calc(41.25 * var(--rt)); color: rgba(19, 18, 17, .72); }
.ind-hero__foot .btn-row { grid-column: 2; align-self: end; flex-wrap: nowrap; }
/* the one quiet button on ink: dark translucent fill, hairline border, same size as every other button */
.ind-hero .btn--ghost { background: rgba(19, 18, 17, .04); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(19, 18, 17, .24); }
.ind-hero .btn--ghost:hover { background: rgba(19, 18, 17, .1); }
/* the photo band is the photo at its own 3:1, edge to edge up to a 1728px stage; beyond it the sides melt into the ink with a short eased feather (the callouts stay inside the solid part) */
.ind-hero__band { position: relative; width: 100%; margin: 0 0 var(--hero-gap); aspect-ratio: 3 / 1; overflow: hidden; }
/* everything pinned to the photo (callouts) is placed in percentages of the stage, so it stays on the same containers at every window size */
.ind-hero__stage { position: absolute; inset: 0; }
.ind-hero__stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ind-hero__callouts { position: absolute; inset: 0; z-index: 2; list-style: none; pointer-events: none; }
/* A callout = a tag on a dark tint, a short leader line (--len = 12.5% of the band) and a small white square on the thing it labels. The line and the square carry a 1px dark under-stroke,
   so they read on the pale containers as well as on the dark sea. (--fx, --fy) = where it points, as a share of the photo width and height; the tag hangs above (1, 3) or below (2, 4) the ship. */
.ind-callout { position: absolute; inset: 0; --tag-h: 2.25rem; --len: .125; --stroke: rgba(0, 0, 0, .45); --dot-o: 1; }
.ind-callout__tag {
  position: absolute; left: calc(var(--fx) * 100%); translate: -50% 0; height: var(--tag-h); padding: 0 0.875rem; display: flex; align-items: center; white-space: nowrap;
  background: rgba(19, 18, 17, .74); color: var(--white); --dot: 4px; --dot-inset: 5px; --dot-color: var(--white);
  font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 16px; letter-spacing: -.02em; text-transform: uppercase;
}
.ind-callout__line { position: absolute; left: calc(var(--fx) * 100% - .5px); width: 1px; background: var(--white); box-shadow: 0 0 0 1px var(--stroke); }
.ind-callout::after { content: ""; position: absolute; left: calc(var(--fx) * 100% - 3px); top: calc(var(--fy) * 100% - 3px); width: 6px; height: 6px; background: var(--white); box-shadow: 0 0 0 1px var(--stroke); opacity: var(--dot-o); }
/* where each callout points: 1 Retail = the first yellow bay, 2 Manufacturing = the middle bay, 3 Healthcare = the bay beside the bridge, 4 Energy = the red containers at the stern */
.ind-callout:nth-child(1) { --fx: .304; --fy: .2; }
.ind-callout:nth-child(2) { --fx: .545; --fy: .22; }
.ind-callout:nth-child(3) { --fx: .86; --fy: .78; }
.ind-callout:nth-child(4) { --fx: .525; --fy: .79; }
.ind-callout:nth-child(n+5) { display: none; }
.ind-callout:is(:nth-child(1), :nth-child(2)) .ind-callout__tag { bottom: calc((1 - var(--fy) + var(--len)) * 100%); }
.ind-callout:is(:nth-child(1), :nth-child(2)) .ind-callout__line { top: calc((var(--fy) - var(--len)) * 100%); bottom: calc((1 - var(--fy)) * 100%); transform-origin: 50% 0; }
.ind-callout:is(:nth-child(3), :nth-child(4)) .ind-callout__tag { top: calc((var(--fy) + var(--len)) * 100%); }
.ind-callout:is(:nth-child(3), :nth-child(4)) .ind-callout__line { top: calc(var(--fy) * 100%); bottom: calc((1 - var(--fy) - var(--len)) * 100%); transform-origin: 50% 100%; }
/* 1025 to 1279: the band is only 340 to 420px high, so the tags (32px) touch or hang over the photo edge. A shorter leader (8% of the band) and the top dots a little lower keep every tag fully inside the photo with air around it. */
@media (min-width: 1025px) and (max-width: 1279px) {
  .ind-callout { --len: .08; }
  .ind-callout:nth-child(1), .ind-callout:nth-child(2) { --fy: .27; }
}
/* Partner logos: a closed hairline grid for any number of logos (4 to 10 are shown; the grid picks its shape from the count so it is always a full rectangle, the label sits in the middle of the first row).
   Every cell draws its own four borders and overlaps its neighbours by 1px, so the frame is complete whatever the count and it fades in together with the cells. */
.ind-hero__logos { position: relative; z-index: 2; }
.ind-logos { --cols: 6; --ls: 3; --lspan: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: minmax(var(--cell), auto); padding: 1px 0 0 1px; }
.ind-logos__items { display: contents; }
.ind-logos__label, .ind-logos__cell { display: grid; place-items: center; min-width: 0; padding: 0.5rem 1rem; border: 1px solid var(--hl); margin: -1px 0 0 -1px; text-align: center; }
.ind-logos__label { grid-column: var(--ls) / span var(--lspan); grid-row: 1; color: var(--ink); }
@media (min-width: 1025px) {
  /* shape by count: 10 = 6 columns, label spans 2 (the default above) */
  .ind-logos:not(:has(.ind-logos__cell:nth-child(10))) { --cols: 5; --ls: 3; --lspan: 1; }
  /* 9: 4 logos, label, 5 logos */
  .ind-logos:not(:has(.ind-logos__cell:nth-child(9))) { --cols: 6; --ls: 2; --lspan: 4; }
  /* 8: logo, wide label, logo, then 6 */
  .ind-logos:not(:has(.ind-logos__cell:nth-child(8))) { --cols: 5; --ls: 2; --lspan: 3; }
  /* 7: logo, label, logo, then 5 */
  .ind-logos:not(:has(.ind-logos__cell:nth-child(7))) { --cols: 4; --ls: 2; --lspan: 2; }
  /* 6: logo, label, logo, then 4 */
  .ind-logos:not(:has(.ind-logos__cell:nth-child(6))) { --cols: 3; --ls: 2; --lspan: 1; }
  /* 5: logo, label, logo, then 3 */
  .ind-logos:not(:has(.ind-logos__cell:nth-child(5))) { --cols: 6; --ls: 3; --lspan: 2; }
}
/* wordmarks: one weight and one size, may wrap onto a second line instead of running under the next cell */
.ind-logos .brand { max-width: 100%; font-size: 20px; color: rgba(19, 18, 17, .78); font-weight: 600; font-style: normal; letter-spacing: -.01em; word-spacing: .14em; white-space: normal; text-align: left; }
.ind-logos .brand > span { min-width: 0; overflow-wrap: break-word; hyphens: none; }
.ind-logos .brand svg { height: 1.1em; }
.ind-logos .brand svg [fill="#fff"] { fill: var(--white); }
/* the bolt cut out of the Stark Energy disc */
/* customer logos are shown as uploaded on a small white tile (a logo made for a light page stays readable whatever its background); transparent and opaque files both work */
.ind-logos .brand img.is-custom-logo { box-sizing: content-box; height: 1.4em; max-width: calc(100% - 1.75rem); padding: 0.375rem 0.875rem; background: var(--white); object-fit: contain; opacity: .9; }
/* the hero is white: the header takes its light-page look from the page tone, and the next white section needs no top padding of its own */
.ind-hero + .section { padding-top: 0; }
/* ---------- Industries list: the shared .industry card pair, six to a page ---------- */
.ind-list .section-head { margin-bottom: 7.5rem; }
.ind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.ind-grid__items { display: contents; }
/* the list wrapper must not affect the grid */
.ind-list .industry__card { color: var(--white); }
/* the section is white, the cards are ink: set the text colour here (Home's section is dark) */
.ind-list .industry__card .tag { background: var(--chip-dark); color: var(--white); }
.industry--more { grid-template-columns: minmax(0, 1fr); }
/* no photo: the card takes the whole cell */
.industry--more .industry__copy .eyebrow { margin-bottom: 0; min-height: calc(var(--fs-lg) * 1.2); }
/* same height as the [01] index on the other cards, so the titles line up */
.industry--more .industry__copy > div { max-width: calc(33.5 * var(--rt)); }
/* Desktop: the two cards of a row share three row tracks (copy | tags | button) through nested subgrids, so the rule above the tags, the tags and the
   buttons sit at the same height in both cards whatever the length of the summary or the number of tag rows. A fourth, empty track is the gap between rows.
   The copy track takes the spare height, so copy stays at the top and tags + button at the bottom, like the old space-between layout; the height comes from the content (no fixed minimum, so wide windows do not leave a void inside the cards). */
@media (min-width: 1201px) {
  .ind-grid { row-gap: 0; grid-auto-rows: minmax(0, 1fr) auto auto 1.25rem; margin-bottom: -1.25rem; }
  .ind-list .industry { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; min-height: 0; }
  .ind-list .industry__media { grid-row: 1 / span 3; }
  .ind-list .industry__card { grid-row: 1 / span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; justify-content: stretch; }
  .ind-list .industry__copy { grid-row: 1; padding-bottom: 2rem; align-self: start; }
  .ind-list .industry__tags { grid-row: 2; margin-bottom: 2rem; align-content: flex-start;}
  .ind-list .industry__card > .btn { grid-row: 3; align-self: start; justify-self: start; }
  /* wide variants: a card that has a whole row to itself lays copy on the left and tags + button on the right
     (1) an even number of sectors plus the "more" card: the "more" card closes the grid as a full-width strip
     (2) an odd number of sectors with the "more" card hidden: the last sector spans the row, its photo keeps the width of the other photos */
  .ind-grid__items:has(> .industry:nth-child(even):last-child) + .industry--more,
  .ind-grid__items:last-child > .industry:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ind-grid__items:last-child > .industry:last-child:nth-child(odd) { grid-template-columns: calc(((100% - 1.25rem) / 2 - .625rem) * 350 / 804) minmax(0, 1fr); }
  .ind-grid__items:has(> .industry:nth-child(even):last-child) + .industry--more .industry__card,
  .ind-grid__items:last-child > .industry:last-child:nth-child(odd) .industry__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 2.5rem; min-height: 0; align-content: start; }
  .ind-grid__items:last-child > .industry:last-child:nth-child(odd) .industry__card { min-height: 18rem; }
  /* tall enough for the photo to stay a sensible crop, short enough not to leave an empty card */
  .ind-grid__items:has(> .industry:nth-child(even):last-child) + .industry--more .industry__copy,
  .ind-grid__items:last-child > .industry:last-child:nth-child(odd) .industry__copy { grid-column: 1; grid-row: 1 / span 3; padding-bottom: 0; }
  .ind-grid__items:has(> .industry:nth-child(even):last-child) + .industry--more .industry__tags,
  .ind-grid__items:last-child > .industry:last-child:nth-child(odd) .industry__tags { grid-column: 2; grid-row: 1; }
  .ind-grid__items:has(> .industry:nth-child(even):last-child) + .industry--more .industry__card > .btn,
  .ind-grid__items:last-child > .industry:last-child:nth-child(odd) .industry__card > .btn { grid-column: 2; grid-row: 2; }
}
/* ---------- Shared blocks: page-level spacing, same as Services ---------- */
.testimonial { padding-top: 10rem; padding-bottom: 10rem; }
/* ==========================================================================
   Responsive (tablet and phone keep their own rules)
   ========================================================================== */
@media (max-width: 1200px) {
  .ind-list .section-head { margin-bottom: 64px; }
  .ind-grid { grid-template-columns: minmax(0, 1fr); }
  .testimonial { padding-top: var(--section-y); padding-bottom: var(--section-y); }
}
@media (max-width: 1024px) {
  /* hero: stacked; the band keeps a generous height; callouts are for desktop */
  .ind-hero, body:has(.announce) .ind-hero { --hero-gap: 3rem; --first-line: 8rem; }
  body:has(.announce) .ind-hero { --first-line: calc(8rem + 2.125rem); }
  .ind-hero__top { display: flex; flex-direction: column; align-items: flex-start; }
  .ind-hero .h1 { margin-bottom: 2rem; }
  .ind-hero__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }
  .ind-hero__lede { max-width: 640px; }
  .ind-hero__foot .btn-row { flex-wrap: wrap; align-self: flex-start; }
  /* the band is a crop of the 3:1 port photo: the ship's bridge and containers sit on the left, the gantry crane in the middle, so the window starts at 22% of the picture and
     shows about half of it (the quay with the ship, never a stretch of empty yard). Height = a share of the width (never of the window height); callouts are for desktop. */
  .ind-hero__band { aspect-ratio: auto; height: min(66vw, 560px); }
  .ind-hero__stage img { object-position: 22% 50%; }
  .ind-hero__callouts { display: none; }
  .ind-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: var(--cell); }
  .ind-logos__label { grid-column: 1 / -1; grid-row: auto; padding: 18px 16px; }
  .ind-logos__cell:nth-child(n+7) { display: none; }
}
@media (max-width: 760px) {
  /* sector photos: the sources are small (350 to 700px wide), so the photo stays a short 3:2 strip instead of a tall 4:3 block; see the fix log (needs owner photos) */
  .ind-list .industry__media { aspect-ratio: 3 / 2; }
  .ind-list .industry__media img { object-position: center 40%; }
}
@media (max-width: 560px) {
  .ind-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* narrow phones: the icon sits above the name, so even a ten-letter name has the whole cell width and no name ever breaks inside a word */
@media (max-width: 420px) {
  .ind-logos__cell { padding: 0.5rem; }
  .ind-logos .brand { flex-direction: column; gap: .3em; font-size: 16px; text-align: center; word-spacing: .1em; }
}
