/* ==========================================================================
   ELIOS — About page
   Loaded after styles.css. Desktop reference: 1728px (Figma "About ELIOS").
   Type comes only from the :root tokens in styles.css (fixed px, identical at every
   desktop width); this file only lays things out. Spacing is rem, so it scales with the window.
   ========================================================================== */
/* ---------- Page-level button variants (same box as every .btn: only colour / underline differ) ---------- */
.btn--shade { background: rgba(0, 0, 0, .2); color: var(--white); }
/* translucent dark, sits on photos */
.btn--shade:hover { background: rgba(0, 0, 0, .34); }
/* ==========================================================================
   Hero (background video; header sits on top of it)
   ========================================================================== */
.about-hero { position: relative; min-height: clamp(620px, min(59.14vw, 100svh), 1047px); display: flex; flex-direction: column; overflow: hidden; background: var(--ink); color: var(--white); }
/* Height: the design's 59.14vw, but never taller than the window, so the headline, both stat cards and both buttons are always on the first screen
   (a 1536 x 730 laptop used to cut the cards in half and push the buttons below the fold). The content is bottom-anchored, so a shorter hero just crops more video. */
/* The video box starts above the hero so the scroll parallax (the box slides down 16% of its own height) never uncovers a band at the top. */
.about-hero__bg { position: absolute; inset: -19% 0 0; }
.about-hero__video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
/* header nav pill over the video: a dark tint instead of the shared 8% / 12% ones, so the labels keep >= 4.5:1 on bright foam. Same tint in the static
   page (editor, ?nomotion) and in the animated one before the first scroll, so the customer sees the header they will publish. */
.site-header--light .nav, html.gsap .site-header--light:not(.is-scrolled) .nav { background: rgba(19, 18, 17, .36); }
/* two soft scrims: the header and its nav pill read on the bright foam at the top, the headline and cards on the lower water */
.about-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(6, 18, 28, .46) 0, rgba(6, 18, 28, 0) 24%, rgba(6, 18, 28, 0) 56%, rgba(6, 18, 28, .34) 100%); }
.about-hero__inner { position: relative; z-index: 2; flex: 1 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; padding-bottom: 2.75rem; }
/* the paragraph column gives way first, but never below 400px; after that the headline column narrows and the headline wraps (balanced),
   so a long customer headline can never run into the paragraph and buttons */
.about-hero__main { flex: none; max-width: calc(100% - 400px - 2.5rem); display: flex; flex-direction: column; gap: 3rem; }
/* the cards are 258px wide at every window size, so their height is fixed in px too (design 258 x 220): they keep one proportion instead of growing taller with the window */
.about-hero__stats { display: grid; grid-template-columns: repeat(2, 258px); gap: 1.25rem; }
.about-hero .stat-glass { padding: 64px 20px; }
.about-hero .stat-glass__label { margin-top: 20px; padding-top: 20px; }
.about-hero__aside { flex: 0 1 535px; min-width: 400px; display: flex; flex-direction: column; gap: 3rem; }
/* no moving background (phones, saved data): the poster stays and there is nothing to pause, so no control (main.js marks the video `data-bg-video-off`) */
.about-hero:has([data-bg-video-off]) .video-toggle { display: none; }
/* the pause button lives on the button row's baseline at the right gutter, clear of the header button above */
.about-hero .video-toggle { top: auto; bottom: 2.75rem; right: max(var(--gutter), calc(50% - 864px + var(--gutter))); width: calc(1.5rem + 14px); height: calc(1.5rem + 14px); border-radius: 0; }
/* ==========================================================================
   Our story — centred statement
   ========================================================================== */
.about-story { padding-top: calc(var(--section-y) * 2); padding-bottom: calc(var(--section-y) * 2); }
.about-story__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.about-story__lead { margin-top: 1rem; max-width: calc(75 * var(--rt)); }
.about-story .btn-row { margin-top: 3rem; justify-content: center; }
/* ==========================================================================
   Responsive
   ========================================================================== */
/* 1025 to 1279: the headline (64px) cannot sit beside a 400px paragraph column without wrapping to three or four lines and running under the header or over the ship.
   Here the hero stacks like the tablet one: headline on its own row (two lines), then the two cards on the left and the paragraph + buttons on the right.
   The hero grows with its content (min-height, never a fixed height) and keeps its first 300px for the ship. Type stays the desktop tokens. */
@media (min-width: 1025px) and (max-width: 1279px) {
  .about-hero { min-height: 720px; }
  .about-hero__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "h1 h1" "stats aside"; column-gap: 2.5rem; row-gap: 2.5rem; align-items: end; align-content: end; padding-top: 21rem; padding-bottom: 2.75rem; }
  .about-hero__main { display: contents; }
  .about-hero .h1 { grid-area: h1; max-width: 760px; }
  .about-hero__stats { grid-area: stats; }
  .about-hero .stat-glass { padding: 44px 20px; }
  .about-hero__aside { grid-area: aside; flex: none; min-width: 0; max-width: 535px; }
}
@media (max-width: 1200px) {
  .about-hero__aside { flex-basis: 420px; }
}
@media (max-width: 1024px) {
  /* Hero: the photo keeps its proportions at the top (the ship fills its upper half); the content starts under the ship and continues on the ocean tone.
     Rhythm: headline, then the paragraph + buttons on the left and the two compact cards on the right (one column on phones, buttons before the cards), so the first
     screen holds a call to action on every tablet and phone, landscape included. --hero-pad = the space the ship keeps (a share of the width, never of the window height). */
  .about-hero { --hero-pad: 36vw; min-height: 0; display: block; background: #03263d; }
  .about-hero::before { display: none; }
  .about-hero__bg { inset: 0 0 auto; }
  .about-hero__video { height: auto; aspect-ratio: 1728 / 1187; }
  /* a short scrim at the top keeps the wordmark readable on the foam (the desktop hero has the same one), then the photo melts into the ocean tone below */
  .about-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6, 18, 28, .42) 0, rgba(6, 18, 28, 0) 16%), linear-gradient(to bottom, rgba(3, 38, 61, 0) 45%, #03263d 97%); }
  .about-hero__inner { height: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "h1 h1" "stats aside"; column-gap: 40px; row-gap: 32px; align-items: start; align-content: start; padding-top: var(--hero-pad); padding-bottom: 72px; }
  .about-hero__main { display: contents; }
  .about-hero .h1 { grid-area: h1; max-width: 640px; }
  .about-hero__stats { grid-area: stats; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .about-hero .stat-glass { padding: 28px 16px 24px; }
  .about-hero .stat-glass__label { margin-top: 16px; padding-top: 16px; }
  .about-hero__aside { grid-area: aside; flex: none; width: auto; max-width: none; min-width: 0; gap: 32px; }
  /* the pause button: 44px, in the lower right corner of the hero (in the bottom padding), clear of the menu button at the top and of every text and card above it */
  .about-hero .video-toggle { top: auto; bottom: 10px; right: var(--gutter); width: 44px; height: 44px; }
  /* never below the 12px floor (the phone band sets --fs-mono to 13px) */
  .about-story { padding-top: calc(var(--section-y) * 1.2); padding-bottom: calc(var(--section-y) * 1.2); }
}
@media (max-width: 760px) {
  .about-hero { --hero-pad: 50vw; }
  .about-hero__video { aspect-ratio: 1 / 1; object-fit: cover; object-position: 58% center; }
  .about-hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h1" "aside" "stats"; row-gap: 28px; padding-bottom: 72px; }
  .about-hero .stat-glass { padding: 24px 14px 20px; }
  .about-hero .stat-glass__label { margin-top: 14px; padding-top: 14px; }
  .about-story__lead { font-size: var(--fs-h2); }
}
