/* ==========================================================================
   YASDER MARINE — Sections
   Hero, page header, editorial splits, products, applications, bands, CTA
   ========================================================================== *//* --------------------------------------------------------------------------
   Hero — the film, and nothing else.
   No headline, no buttons, no badges. The footage carries the opening.
   -------------------------------------------------------------------------- */
.s-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
  background: var(--green-900);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .s-hero { min-height: min(100svh, 960px); }
}

.s-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* The poster is art-directed (landscape / portrait) and always painted first.
   The film sits on top of it and stays transparent until hero.js attaches a
   source, so narrow and reduced-motion visitors simply keep the still. */
.s-hero__media picture,
.s-hero__media video {
  position: absolute;
  inset: 0;
}

.s-hero__media video,
.s-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .s-hero,
  .s-hero__media { min-height: 100vh; min-height: 100lvh; }
  .s-hero__media video { -webkit-appearance: none; background: var(--green-900); }
}

/* A restrained green grade. Light enough that the footage stays the subject —
   there is no text here that needs protecting. */
.s-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-700);
  opacity: 0.2;
}

.s-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(2, 16, 17, 0.46) 0%,
    rgba(2, 16, 17, 0.06) 26%,
    rgba(2, 16, 17, 0.1) 70%,
    rgba(2, 16, 17, 0.38) 100%
  );
}

/* --------------------------------------------------------------------------
   Page header — the dark opening band on every interior page
   -------------------------------------------------------------------------- */
.s-pagehead {
  position: relative;
  background: var(--green-700);
  color: var(--on-dark);
  isolation: isolate;
  overflow: hidden;
}

.s-pagehead__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.s-pagehead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-pagehead__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 45, 43, 0.94) 8%, rgba(0, 45, 43, 0.62) 48%, rgba(2, 16, 17, 0.32) 100%),
    linear-gradient(to bottom, rgba(2, 16, 17, 0.55), rgba(2, 16, 17, 0.2));
}

.s-pagehead__inner {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.75rem, 6vw, 4.75rem);
}

.s-pagehead h1 {
  margin-top: var(--space-5);
  color: var(--white);
  max-width: 18ch;
}

.s-pagehead__lead {
  margin-top: var(--space-5);
  max-width: 56ch;
  font-size: var(--step-1);
  color: var(--on-dark-2);
}

/* --------------------------------------------------------------------------
   Editorial split — image beside text, alternating
   -------------------------------------------------------------------------- */
.s-split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

@media (min-width: 900px) {
  .s-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .s-split--wide-media { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }

  .s-split--reverse .s-split__media { order: 2; }
  .s-split--top { align-items: start; }
}

.s-split__body { max-width: 54ch; }
.s-split__body > * + * { margin-top: var(--space-5); }
.s-split__body h2 + p { margin-top: var(--space-5); }
.s-split__body p { color: var(--ink-2); }
.u-on-dark .s-split__body p { color: var(--on-dark-2); }

/* --------------------------------------------------------------------------
   Statement — a large typographic passage { max-width: 22ch; }

.s-statement__text {
  display: grid;
  gap: var(--space-5);
  max-width: 60ch;
  font-size: var(--step-1);
  color: var(--ink-2);
}

@media (min-width: 780px) {

}

@media (min-width: 780px) {

}

@media (min-width: 760px) {

}

@media (min-width: 820px) {

}

@media (prefers-reduced-motion: reduce) {

}

/* --------------------------------------------------------------------------
   Full-bleed banner with an overlaid statement
   -------------------------------------------------------------------------- */
.s-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--green-900);
  color: var(--on-dark);
}

.s-banner__media { position: absolute; inset: 0; z-index: -2; }

.s-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 45, 43, 0.93) 0%, rgba(0, 45, 43, 0.68) 44%, rgba(2, 16, 17, 0.38) 100%),
    linear-gradient(to bottom, rgba(2, 16, 17, 0.34), rgba(2, 16, 17, 0.46));
}

.s-banner__inner {
  padding-block: clamp(4rem, 9vw, 8rem);
  display: grid;
  gap: var(--space-6);
}

.s-banner h2 {
  color: var(--white);
  max-width: 20ch;
  font-size: var(--step-3);
}

.s-banner p {
  max-width: 52ch;
  color: var(--on-dark-2);
  font-size: var(--step-1);
}

@media (min-width: 900px) {

}

/* ==========================================================================
   PRODUCT-LED COMPOSITIONS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section head — centred, quiet, two lines at most
   -------------------------------------------------------------------------- */
.s-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5.5vw, 4.5rem);
}

.s-head .c-label { margin-bottom: var(--space-4); }

.s-head h2 {
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.375rem);
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin-inline: auto;
}

.s-head p {
  margin-top: var(--space-4);
  max-width: 54ch;
  margin-inline: auto;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Showcase — the two product families, given the room they deserve
   -------------------------------------------------------------------------- */
.s-showcase { padding-block: clamp(4rem, 8vw, 8.5rem); background: var(--paper); }

.s-duo {
  display: grid;
  gap: clamp(3rem, 5vw, 2.5rem);
}

@media (min-width: 860px) {
  .s-duo { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 3.2vw, 2.5rem); }
}

.c-feature { display: block; position: relative; }

.c-feature__frame {
  position: relative;
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 1 / 1;
}

@media (min-width: 860px) {
  .c-feature__frame { aspect-ratio: 4 / 5; }
}

.c-feature__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1100ms var(--ease-out);
}

.c-feature:hover .c-feature__frame img,
.c-feature:focus-visible .c-feature__frame img { transform: scale(1.035); }

.c-feature__body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-5);
}

.c-feature__name {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.c-feature__note {
  flex: 1 1 100%;
  max-width: 46ch;
  font-size: var(--step--1);
  line-height: 1.65;
  color: var(--ink-2);
}

.c-feature__go {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--ink-3);
  transition: color var(--dur-2) var(--ease);
}

.c-feature:hover .c-feature__go { color: var(--orange-700); }

@media (prefers-reduced-motion: reduce) {
  .c-feature__frame img { transition: none; }
}

/* --------------------------------------------------------------------------
   Close-up — one product, one wall of photography, a short factual column
   -------------------------------------------------------------------------- */
.s-closeup {
  background: var(--green-900);
  color: var(--on-dark-2);
  overflow: hidden;
}

.s-closeup__grid { display: grid; }

@media (min-width: 900px) {
  .s-closeup__grid { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); align-items: stretch; }
}

.s-closeup__media {
  position: relative;
  min-height: 58svh;
  background: var(--green-800);
}

@media (min-width: 900px) { .s-closeup__media { min-height: 78svh; } }

.s-closeup__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-closeup__body {
  display: grid;
  align-content: center;
  gap: var(--space-5);
  padding: clamp(2.75rem, 6vw, 5.5rem) var(--gutter);
}

@media (min-width: 900px) {
  .s-closeup__body { padding-inline: clamp(2.5rem, 4.5vw, 4.5rem); }
}

.s-closeup__body h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
  max-width: 18ch;
}

.s-closeup__body p { max-width: 46ch; }

.s-closeup__spec {
  display: grid;
  gap: 0;
  margin-top: var(--space-3);
  border-top: 1px solid var(--line-dark);
}

.s-closeup__spec div {
  display: grid;
  gap: 0.15rem;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line-dark);
}

@media (min-width: 520px) {
  .s-closeup__spec div { grid-template-columns: 11rem minmax(0, 1fr); gap: var(--space-5); align-items: baseline; }
}

.s-closeup__spec dt {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--on-dark-3);
}

.s-closeup__spec dd { margin: 0; color: var(--on-dark); font-size: var(--step--1); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Application bands — full-bleed photography, stacked with sticky overlap.
   Each band names one place the products are used. Nothing else.
   -------------------------------------------------------------------------- */
.s-bands { position: relative; background: var(--green-900); }

.c-band {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 0;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .c-band { height: 100svh; }
}

.c-band__media { position: absolute; inset: 0; z-index: -2; }
.c-band__media picture { position: absolute; inset: 0; display: block; }

.c-band__media > picture > img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, 7%, 0) scale(1.08);
  transform-origin: center;
  will-change: transform;
}

.c-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
}

.c-band__content {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  position: relative;
  text-align: center;
  padding-inline: var(--gutter);
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  transform: translate3d(0, 2.5rem, 0);
  opacity: 0.35;
  will-change: transform, opacity;
}

.c-band.is-active .c-band__content { pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .c-band__media img,
  .c-band__content {
    transform: none !important;
    opacity: 1 !important;
    will-change: auto;
  }
}

.c-band__tag {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.82);
}

.c-band__title {
  font-size: clamp(1rem, 2.1vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--white);
  max-width: none;
  text-shadow: 0 2px 34px rgba(2, 16, 17, 0.42);
}

.c-band__note {
  display: block;
  max-width: 44ch;
  font-size: var(--step--1);
  line-height: 1.7;
  color: rgba(244, 242, 238, 0.82);
}

.c-band__go { margin-top: var(--space-3); }

/* Fixed running index, mirroring the band in view. Desktop only. */
.c-bandindex {
  position: sticky;
  top: 50svh;
  z-index: 3;
  display: none;
  margin-left: var(--gutter);
  width: max-content;
  height: 0;
  gap: 0.55rem;
  pointer-events: none;
}

@media (min-width: 1024px) { .c-bandindex { display: grid; } }

.c-bandindex span {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(244, 242, 238, 0.34);
  transition: color var(--dur-3) var(--ease);
}

.c-bandindex span.is-current { color: var(--gold-300); }

/* --------------------------------------------------------------------------
   Quiet contact close — an address, not a campaign
   -------------------------------------------------------------------------- */
.s-quiet {
  background: var(--paper);
  padding-block: clamp(4rem, 9vw, 9rem);
  text-align: center;
}

.s-quiet__mail {
  display: inline-block;
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 0.9rem + 2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  word-break: break-word;
  transition: color var(--dur-2) var(--ease);
}

.s-quiet__mail:hover { color: var(--ink); }

.s-quiet__note {
  margin-top: var(--space-5);
  max-width: 46ch;
  margin-inline: auto;
  font-size: var(--step--1);
  color: var(--ink-2);
}
