/* Homepage hero.
 *
 * Full-bleed photograph with a single left-aligned copy block sitting in the
 * middle of the frame, following the SAG reference: headline, one short line,
 * one call to action, and nothing else competing with the picture.
 *
 * The scrim is weighted to the left rather than the bottom. That keeps the
 * white copy legible over water while leaving the right-hand two thirds of the
 * photograph almost untouched, which is what stops the hero reading as a dark
 * panel with a picture behind it.
 */

.agm-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background: var(--agm-navy);
  color: #fff;
}

.agm-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Biased right so the vessel sits clear of the headline. */
  object-position: 62% 44%;
  will-change: transform;
  transform-origin: 62% 44%;
}

.agm-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(6, 16, 28, 0.74) 0%,
      rgba(6, 16, 28, 0.46) 34%,
      rgba(6, 16, 28, 0.1) 66%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(6, 16, 28, 0.46) 0%,
      rgba(6, 16, 28, 0.08) 26%,
      rgba(6, 16, 28, 0.1) 74%,
      rgba(6, 16, 28, 0.3) 100%
    );
}

.agm-hero-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  padding: 132px var(--agm-gutter) 88px;
  box-sizing: border-box;
  will-change: transform, opacity;
}

html.agm-has-cookie .agm-hero-inner {
  padding-bottom: 132px;
}

.agm-hero-copy {
  max-width: 38rem;
}

.agm-hero-inner .agm-eyebrow {
  display: block;
  width: fit-content;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agm-hero h1 {
  margin: 0 0 22px;
  max-width: none;
  font-family: var(--agm-sans);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.032em;
  color: #fff;
}

.agm-hero-line,
.agm-hero-lux {
  display: block;
  font-style: normal;
  font-weight: inherit;
  color: inherit;
  white-space: nowrap;
}

.agm-hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.28em);
}

.agm-hero.is-ready .agm-hero-word {
  animation: agmHeroWord 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--delay, 0ms) + (var(--i, 0) * 48ms));
}

@keyframes agmHeroWord {
  to {
    opacity: 1;
    transform: none;
  }
}

.agm-hero.is-ready .agm-hero-inner .agm-eyebrow,
.agm-hero.is-ready .agm-hero-statement,
.agm-hero.is-ready .agm-hero-lead,
.agm-hero.is-ready .agm-hero-actions {
  animation: agmHeroFade 0.65s ease both;
}

.agm-hero.is-ready .agm-hero-inner .agm-eyebrow { animation-delay: 0.04s; }
.agm-hero.is-ready .agm-hero-statement { animation-delay: 0.42s; }
.agm-hero.is-ready .agm-hero-lead { animation-delay: 0.5s; }
.agm-hero.is-ready .agm-hero-actions { animation-delay: 0.58s; }

@keyframes agmHeroFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.agm-hero-statement {
  margin: 0 0 10px;
  max-width: 36ch;
  font-family: var(--agm-sans);
  font-size: 17px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #fff;
}

.agm-hero-lead {
  margin: 0;
  max-width: 46ch;
  font-family: var(--agm-sans);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.72);
}

.agm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.agm-hero .agm-pill-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}

.agm-hero .agm-pill-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--agm-navy);
}

/* Four service cards under the hero. The old hairline columns read as a
   cheap spreadsheet strip; these sit as a quiet row of editorial cards. */
.agm-hero-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: -28px 0 0;
  padding: 28px var(--agm-inset) 28px;
  border-radius: 32px 32px 0 0;
  background:
    linear-gradient(180deg, #f3f6f9 0%, #eef3f7 100%);
  box-shadow: 0 -24px 60px rgba(6, 16, 28, 0.18);
  box-sizing: border-box;
}

.agm-hero-fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 22px;
  border: 1px solid rgba(11, 28, 51, 0.07);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(11, 28, 51, 0.045);
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s var(--agm-ease), box-shadow 0.28s var(--agm-ease), border-color 0.28s ease;
}

.agm-hero-facts.is-ready:not(.is-in) .agm-hero-fact {
  opacity: 0;
  transform: translateY(64px) scale(0.94);
  pointer-events: none;
}

.agm-hero-facts.is-in .agm-hero-fact {
  animation: agmFactPop 0.78s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 120ms);
}

.agm-hero-facts.is-popped .agm-hero-fact {
  animation: none;
  opacity: 1;
  transform: none;
}

.agm-hero-facts.is-in .agm-hero-fact:hover,
.agm-hero-facts.is-in .agm-hero-fact:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(10, 98, 168, 0.22);
  box-shadow: 0 18px 40px rgba(11, 28, 51, 0.1);
}

@keyframes agmFactPop {
  0% {
    opacity: 0;
    transform: translateY(64px) scale(0.94);
  }
  72% {
    opacity: 1;
    transform: translateY(-8px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.agm-hero-fact-n {
  font-family: var(--agm-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #b8954a;
}

.agm-hero-fact strong {
  margin: 0;
  font-family: var(--agm-serif);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--agm-navy);
}

.agm-hero-fact > span:last-child {
  font-family: var(--agm-sans);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--agm-ink-muted);
}

@media (max-width: 900px) {
  .agm-hero {
    min-height: 100svh;
    align-items: flex-end;
  }

  .agm-hero-media {
    object-position: 72% 42%;
  }

  .agm-hero-inner {
    padding: calc(var(--agm-appbar-h, 72px) + 16px) 16px 100px;
  }

  html.agm-has-cookie .agm-hero-inner {
    padding-bottom: 140px;
  }

  .agm-hero h1 {
    max-width: none;
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 16px;
  }

  .agm-hero-inner .agm-eyebrow {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .agm-hero-statement {
    font-size: 16px;
  }

  .agm-hero-lead {
    font-size: 14.5px;
  }

  .agm-hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 16px 20px;
  }

  html.agm-has-cookie .agm-hero-facts {
    padding-bottom: 88px;
  }

  .agm-hero-fact {
    min-height: 0;
    padding: 14px 12px;
  }

  .agm-hero-actions .agm-pill {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agm-hero-word,
  .agm-hero-inner .agm-eyebrow,
  .agm-hero-statement,
  .agm-hero-lead,
  .agm-hero-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .agm-hero-facts.is-ready:not(.is-in) .agm-hero-fact,
  .agm-hero-facts.is-in .agm-hero-fact,
  .agm-hero-fact:hover,
  .agm-hero-fact:focus-visible {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
