/* ELIOS blocks: sections a customer can move to another page. Their styles live here (not in a page's own stylesheet)
   so they look the same wherever they land. Every page with a section order loads this file after styles.css. */

/* ===== from about.css ===== */
.btn--plain { background: none; color: inherit; -webkit-backdrop-filter: none; backdrop-filter: none; position: relative; }
/* it keeps the button's 1.25rem inner padding (focus ring, hit area), so inside a row it pulls back by that much and sits one row gap after its neighbour */
.btn-row > .btn--plain { margin-left: -1.25rem; }
/* a quiet underline at rest so it reads as a link; on hover a full-strength line draws over it */
.btn--plain::before, .btn--plain::after { content: ""; position: absolute; left: 1.25rem; bottom: 0.5rem; height: 1px; background: currentColor; }
.btn--plain::before { right: 1.25rem; opacity: .4; }
.btn--plain::after { right: 100%; transition: right .3s ease; }
.btn--plain:hover::after { right: 1.25rem; }
/* ==========================================================================
   Logistics partner + "Supported by" (photo bleeds off the right edge)
   ========================================================================== */
.about-partner { position: relative; overflow: hidden; }
.about-partner__inner { min-height: min(1094px, 63.31vw); padding-top: var(--section-y); padding-bottom: var(--section-y); display: flex; }
.about-partner__copy { width: min(676px, calc(50% - 40px)); display: flex; flex-direction: column; justify-content: space-between; gap: 5rem; }
.about-partner__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 3rem; }
.about-partner__title { display: flex; flex-direction: column; gap: 1rem; }
.about-partner__intro > .text-mono { max-width: calc(33.5 * var(--rt)); }
.about-partner .logo-grid { grid-template-columns: repeat(2, minmax(0, 333px)); }
.about-partner .logo-card { height: 8rem; }
.about-partner .logo-grid .brand--sm { word-spacing: .16em; }
/* the tight tracking ate the word space: "STARKENERGY" */
.about-partner__media { position: absolute; top: 0; bottom: 0; left: 50%; right: 0; }
/* The photo bleeds to the window edge at every width. The file is the whole container (1200 x 1094 at 1x): on narrower windows the box crops its right
   end exactly like the design, on wider ones the container simply gets longer instead of being cut at the gutter. */
.about-partner__media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
/* ==========================================================================
   Our values (photo left, copy + activating list right)
   ========================================================================== */
.about-values__inner { display: flex; justify-content: space-between; gap: 2.5rem; }
.about-values__copy { flex: 0 1 675px; display: flex; flex-direction: column; justify-content: space-between; gap: 5rem; }
.about-values__media { order: -1; width: 40.96%; aspect-ratio: 675 / 974; }
/* the source photo has a 1% sliver of another picture along its bottom edge: crop it out */
.about-values__media > img { height: 102%; }
.about-values__stats { gap: .5rem; }
/* the 20px strip of bare photo between the two cards read as a tear in the panel */
.about-values__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 3rem; }
.about-values__title { display: flex; flex-direction: column; gap: 1rem; }
.about-values__intro > .text-mono { max-width: calc(43.5 * var(--rt)); }
.about-values .why__item { grid-template-columns: calc(10.1 * var(--rt)) 1fr; }
/* fixed px measure (the type is fixed px), so every item wraps the same at every window size: the list keeps an even pitch */
.about-values .why__item p { max-width: 327px; }
.about-partner + .about-values { padding-top: 0; }
/* two light sections in a row: one section gap between them, not two */
/* ==========================================================================
   The ELIOS standard (dark; cards bleed off the right edge)
   ========================================================================== */
.about-standard { padding: var(--section-y) 0; }
.about-standard__inner { display: flex; justify-content: space-between; align-items: stretch; gap: 2.5rem; }
.about-standard__copy { flex: 0 1 calc(31.8 * var(--rt)); min-width: 450px; display: flex; flex-direction: column; justify-content: space-between; gap: 4rem; }
.about-standard__title { display: flex; flex-direction: column; gap: 1rem; }
.about-standard__body { display: flex; flex-direction: column; gap: 3rem; }
.about-standard__cards { width: 928px; flex: 0 8 auto; min-width: 0; margin-right: calc(var(--gutter) * -1); display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (min-width: 1729px) {
  .about-standard__cards { margin-right: 0; }
}
.standard-card { min-height: 39rem; padding: 4.125rem 1.25rem; background: var(--surface-dark); display: flex; flex-direction: column; }
.standard-card .index { line-height: 1.2; }
.standard-card__title { margin-top: 3rem; }
.standard-card > .text-mono { margin-top: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-dark); }
.standard-card__tags { margin-top: auto; padding-top: 3rem; }
/* both cards share four row tracks (number, title, copy + rule, tags) so the two rules and the two tag blocks line up whatever the copy length */
@media (min-width: 761px) {
  .about-standard__cards { grid-template-rows: auto auto auto 1fr; row-gap: 0; }
  .standard-card { grid-row: 1 / span 4; display: grid; grid-template-rows: subgrid; }
  .standard-card__tags { align-self: end; }
}
.standard-card__tags .tag { color: rgba(255, 255, 255, .64); }
/* >= 4.5:1 on the card */
/* ==========================================================================
   Our team
   ========================================================================== */
.about-team .section-head { margin-bottom: 7.5rem; }
/* four equal columns, and the gap between columns equals the gap between rows, so the grid reads as one even field at every width */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5rem; }
.team-card { --dot-color: rgba(0, 0, 0, .25); padding: 2.25rem 0.625rem; background: var(--surface-light); }
.team-card__photo { aspect-ratio: 1; }
.team-card__name { margin-top: 1.25rem; font-size: var(--fs-lg); line-height: 1.2; font-weight: 400; }
.team-card__role { margin-top: 0.625rem; opacity: .62; }
@media (max-width: 1200px) {
  .about-values__copy, .about-values__media { flex: none; width: calc(50% - 30px); }
  .about-values .why__item { grid-template-columns: 96px 1fr; }
  .about-standard__inner { flex-direction: column; gap: 64px; }
  .about-standard__copy { flex: none; width: 100%; min-width: 0; max-width: 640px; gap: 40px; }
  .about-standard__cards { flex: none; width: 100%; margin-right: 0; }
  .standard-card { min-height: 0; }
  .standard-card__title .d-br { display: none; }
  .about-team .section-head { margin-bottom: 64px; }
}
@media (max-width: 1024px) {
  /* Partner: copy, logos, then image bleeding right */
  .about-partner__inner { min-height: 0; padding-bottom: 64px; }
  .about-partner__copy { width: 100%; max-width: 676px; gap: 64px; }
  .about-partner__media { position: relative; left: auto; top: auto; bottom: auto; right: auto; margin-left: var(--gutter); aspect-ratio: 16 / 10; }
  .about-partner__media img { object-position: left 82%; }
  /* Values: copy first, image below */
  .about-values__inner { flex-direction: column; gap: 64px; }
  .about-values__copy, .about-values__media { width: 100%; }
  .about-values__copy { gap: 64px; }
  /* the photo shows the locomotive (lower half of the picture) and the two cards sit under it in normal flow, never over the subject */
  .about-values__media { order: 0; aspect-ratio: auto; display: grid; gap: 10px; background: none; }
  .about-values__media > img { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; object-position: center 72%; }
  .about-values__stats { position: static; width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .about-values .stat-glass { padding: 28px 16px 24px; background: var(--ink); }
  .about-values .stat-glass__label { margin-top: 16px; padding-top: 16px; }
  .about-values .why__item { grid-template-columns: 139px 1fr; }
  .team-grid { gap: 40px 20px; }
  .team-card__role { font-size: var(--fs-mono); }
}
/* Team: two columns once four no longer fit comfortably */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .about-partner__media { aspect-ratio: 4 / 3; }
  .about-partner__media img { object-position: left 76%; }
  .about-partner .logo-card { height: 104px; }
  .about-partner .logo-grid .brand { font-size: 18px; }
  .about-partner .logo-grid .brand--sm { font-size: 12px; }
  .about-values .why__item { grid-template-columns: 64px 1fr; }
  .about-values__media > img { aspect-ratio: 4 / 5; object-position: center 60%; }
  .about-values .stat-glass { padding: 24px 14px 20px; }
  .about-values .stat-glass__label { margin-top: 14px; padding-top: 14px; }
  .about-standard__cards { grid-template-columns: 1fr; }
  .standard-card { padding: 56px 20px; }
  .standard-card__title { margin-top: 32px; }
  .standard-card__tags { padding-top: 32px; }
  .btn--plain, .btn-row > .btn--plain { padding-left: 0; padding-right: 0; margin-left: 0; }
  .btn--plain::before, .btn--plain::after { left: 0; }
  .btn--plain::before { right: 0; }
  .btn--plain:hover::after { right: 0; }
  .team-grid { gap: 20px 10px; }
  .team-card { padding: 24px 8px 20px; }
  .team-card__name { margin-top: 14px; }
  .team-card__role { margin-top: 6px; }
}

/* ===== from services.css ===== */
/* warehouse: forklift and the stacked pallets */
/* ---------- Process (steps list + photo) ---------- */
.process .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(42.1875rem, 675px)); column-gap: 2.5rem; }
/* photo 675 x 1000 at 1728, scaling with the page like Home's Why photo */
.process__intro { display: flex; flex-direction: column; justify-content: space-between; gap: 5rem; }
/* list sits on the photo's bottom edge; spare height opens the gap under the button */
.process__intro-top { display: flex; flex-direction: column; align-items: flex-start; gap: 3rem; }
.process__intro-top > div { display: flex; flex-direction: column; gap: 1rem; }
.process__intro-top p { max-width: calc(33.375 * var(--rt)); }
.process .why__item p { max-width: calc(33.5 * var(--rt)); }
.process__media { width: 100%; align-self: stretch; }
.process__media::before { content: ""; display: block; padding-top: calc(1000 / 675 * 100%); }
/* 675 x 1000 like the design, and taller if the list ever is */
.process__stats .stat-glass__label { padding-right: max(0px, calc(100% - 19ch)); }
/* wraps like the design */
/* ---------- Reliable logistics collage (scaled stage, exact composition on desktop) ---------- */
/* White process section followed by the white collage: the section padding plus the collage's own 120px title offset made 235px of nothing (every other seam is 117). Pulling the collage up by 3rem puts the ship 117px under the photo and keeps the eyebrow where the design has it relative to the stage. */
.process + .reliable { margin-top: -3rem; }
.reliable { overflow: hidden; }
.reliable .stage { aspect-ratio: 1728 / 1057; }
.reliable__ship { left: calc(805 / 1728 * 100cqw); top: calc(45.8 / 1728 * 100cqw); width: calc(1314 / 1728 * 100cqw); height: calc(537.4 / 1728 * 100cqw); }
/* the whole ship (1314 x 537 in the design); the section clips it at the window edge, so it bleeds off the page exactly as in the design at 1728 and shows more of the same picture on wider windows: never stretched, never cropped differently */
.reliable__ship img { width: 100%; height: 100%; object-fit: fill; }
.reliable__title { left: var(--gutter); top: calc(120 / 1728 * 100cqw); width: calc(34.46 * var(--rt)); display: flex; flex-direction: column; gap: 1rem; }
.reliable__body { left: var(--gutter); bottom: calc(120 / 1728 * 100cqw); width: min(calc(34.46 * var(--rt)), 36cqw); display: flex; flex-direction: column; gap: 3rem; }
.reliable .stat-tile { width: calc(317.83 / 1728 * 100cqw); height: calc(317.83 / 1728 * 100cqw); gap: calc(25.4 / 1728 * 100cqw); }
.reliable .stat-tile__value { gap: calc(16.5 / 1728 * 100cqw); }
.reliable .r-1 { left: calc(735 / 1728 * 100cqw); top: calc(365 / 1728 * 100cqw); }
.reliable .r-2 { left: calc(1052.83 / 1728 * 100cqw); top: calc(618.87 / 1728 * 100cqw); }
.reliable .r-3 { left: calc(1370.67 / 1728 * 100cqw); top: calc(455.48 / 1728 * 100cqw); }
/* ---------- Why choose ELIOS — 2×2 grid of image + card pairs ---------- */
.advantages { background: var(--black); }
.advantages__head { margin-bottom: 7.5rem; }
.advantages__aside { width: min(calc(24.8125 * var(--rt)), 386px); }
/* one measure at every desktop width (it opened to 2 lines above 1889px) */
.advantages__aside p { text-wrap: balance; }
.advantages__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.advantage { display: grid; grid-template-columns: 350fr 454fr; gap: 0.625rem; min-height: min(30.875rem, 494px); }
.advantage__card {
  background: rgba(255, 255, 255, .16); padding: 7rem 1.25rem 2.875rem;   /* copy is top-aligned (title 7.5rem under the card top in the design), so every title in a row sits on one line whatever the summary or the number of tag rows */
  display: flex; flex-direction: column; justify-content: flex-start; gap: 1.5rem;
}
.advantage__copy h3 { margin-bottom: 1rem; }
.advantage__copy p { min-height: 3em; }
/* two lines reserved, so the rule and the tags of neighbouring cards line up too */
.advantage__tags { border-top: 1px solid var(--line-dark); padding-top: 1.5rem; }
.advantage__tags .tag { color: rgba(255, 255, 255, .64); }
/* ==========================================================================
   Responsive (tablet and phone keep their own rules)
   ========================================================================== */
@media (max-width: 1200px) {
  .advantages__head { margin-bottom: 64px; }
  .advantages__aside { width: 100%; max-width: 397px; }
  .advantages__grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .process .container { grid-template-columns: 1fr; row-gap: 64px; }
  .process__media::before { padding-top: 75%; }
  /* Collage → flow: copy, ship, then tiles (dark + yellow overlap the ship like the design) */
  .reliable { padding: var(--section-y) 0; }
  .reliable .stage { aspect-ratio: auto; container-type: normal; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 var(--gutter); }
  .reliable .stage > *, .reliable .stage__group > * { position: static; left: auto; top: auto; width: auto; }
  .reliable__title, .reliable__body { grid-column: 1 / -1; }
  .reliable__title { grid-row: 1; max-width: 560px; }
  .reliable__body { grid-row: 2; }
  .reliable__body { max-width: 560px; gap: 32px; margin-bottom: 44px; }
  .reliable__ship { grid-column: 1 / -1; grid-row: 3; height: auto; aspect-ratio: 1264 / 517; }
  /* the whole picture (1264 x 517), never a crop of its bow */
  .reliable__ship img { object-fit: contain; object-position: 0 50%; }
  .reliable .stat-tile { height: auto; aspect-ratio: 1; gap: 16px; }
  .reliable .stat-tile__value { gap: 10px; }
  /* size = --fs-stat token */
  /* the tiles sit under the ship instead of overlapping it (the overlap belongs to the wide desktop crop) */
  .reliable .r-1 { grid-column: 1; grid-row: 4; }
  .reliable .r-3 { grid-column: 2; grid-row: 4; }
  .reliable .r-2 { grid-column: 1 / -1; grid-row: 5; aspect-ratio: auto; padding: 48px 0; }
}
@media (max-width: 760px) {
  .process__media::before { padding-top: 125%; }
  .process__stats .stat-glass__label { padding-right: 0; }
  .reliable .stage { gap: 10px; }
  .advantage { grid-template-columns: 1fr; min-height: 0; }
  .advantage__media { aspect-ratio: 4 / 3; }
  .advantage__card { padding: 56px 20px; }
}
/* ---------- Tablet: the three numbers sit in one even row under the photo ---------- */
@media (min-width: 601px) and (max-width: 1024px) {
  .reliable .stage { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reliable .r-1, .reliable .r-3, .reliable .r-2 { grid-row: 4; margin-top: 0; aspect-ratio: 1; padding: 0; }
  .reliable .r-1 { grid-column: 1; }
  .reliable .r-3 { grid-column: 2; }
  .reliable .r-2 { grid-column: 3; }
}

/* ===== from industries.css ===== */
/* ---------- How we tailor it (three steps in a row) ---------- */
.tailor .section-head { margin-bottom: 7.5rem; }
.tailor .section-head__aside { align-items: flex-start; }
/* three columns share three subgrid rows (number, title, copy), so the copy lines up whatever the title length */
.tailor__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: 1.25rem; row-gap: 0; }
.tailor__item { display: grid; grid-row: span 3; grid-template-rows: subgrid; border-top: 1px solid var(--line-dark); padding-top: 1.25rem; }
.tailor__item .h3 { margin-top: 3.5rem; }
.tailor__item .text-mono { margin-top: 1rem; max-width: calc(24.8125 * var(--rt)); }
/* ==========================================================================
   Responsive (tablet and phone keep their own rules)
   ========================================================================== */
@media (max-width: 1200px) {
  .tailor .section-head { margin-bottom: 64px; }
}
@media (max-width: 1024px) {
  .tailor__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 40px; }
  .tailor__item { grid-row: auto; grid-template-rows: none; }
  .tailor__item .h3 { margin-top: 40px; }
}
/* tablets: each step is a row (number and title on the left, the copy on the right) instead of a narrow column in a wide empty line */
@media (min-width: 761px) and (max-width: 1024px) {
  .tailor__grid { row-gap: 0; }
  .tailor__item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "num copy" "title copy"; column-gap: 40px; align-items: start; padding-bottom: 40px; margin-bottom: 40px; }
  .tailor__item:last-child { padding-bottom: 0; margin-bottom: 0; }
  .tailor__item .index { grid-area: num; }
  .tailor__item .h3 { grid-area: title; margin-top: 24px; }
  .tailor__item .text-mono { grid-area: copy; margin-top: 0; max-width: 420px; align-self: end; }
}
