/* Homepage photo direction — September 2026 */
.hero {
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  column-gap: clamp(40px, 5.5vw, 104px);
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(56px, 5.85vw, 104px);
  line-height: .88;
}

.hero-visual {
  width: min(43vw, 650px);
}

.hero-photo {
  aspect-ratio: .76;
  clip-path: inset(0 round 6px 112px 6px 6px);
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 6px 112px 6px 6px;
  box-shadow: 0 48px 105px rgba(52, 96, 122, .22);
}

.hero-photo img {
  object-position: 50% 43%;
  filter: saturate(.92) contrast(1.015) brightness(1.025);
}

.hero-photo::after {
  background: linear-gradient(180deg, transparent 58%, rgba(13, 33, 47, .32));
}

@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-photo {
    animation: 1.35s cubic-bezier(.77, 0, .18, 1) .34s both homeHeroMaskIn !important;
  }
}

@keyframes homeHeroMaskIn {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0 round 6px 112px 6px 6px);
    transform: translateY(28px);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 round 6px 112px 6px 6px);
    transform: translateY(0);
  }
}

.hero-caption,
.hero-proof {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(255, 255, 255, .95);
  box-shadow: 0 18px 45px rgba(42, 76, 99, .15);
}

.hero-caption {
  right: 22px;
  bottom: 22px;
  max-width: calc(100% - 44px);
}

.hero-proof {
  top: 24px;
  left: 22px;
}

.hero-trustbar {
  background: #fffefa;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-block: clamp(48px, 5vw, 76px);
}

.hero-trustbar article {
  min-height: 142px;
  padding: 4px clamp(24px, 3.1vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-trustbar article + article {
  border-left: 1px solid var(--line);
}

.hero-trustbar strong {
  color: var(--ink);
  font: 400 clamp(32px, 3.1vw, 52px)/.95 var(--serif);
  letter-spacing: -.04em;
}

.hero-trustbar span {
  max-width: 190px;
  color: #697983;
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-story-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--blue-soft);
  box-shadow: 0 32px 85px rgba(42, 76, 99, .16);
  opacity: 1;
  visibility: visible;
  clip-path: none;
  transform: none;
}

.home-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.015);
  transition: transform 1.2s cubic-bezier(.2, .78, .2, 1), filter .5s;
}

.home-story-media:hover img {
  transform: scale(1.025);
  filter: saturate(1);
}

.home-story-media figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 15px;
  color: #425766;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.expertise-preview {
  grid-template-columns: minmax(250px, .68fr) minmax(260px, .72fr) minmax(330px, 1fr);
  gap: clamp(38px, 5vw, 86px);
  align-items: center;
}

.home-story-expert {
  aspect-ratio: .71;
  border-radius: 4px 74px 4px 4px;
}

.home-story-expert img {
  object-position: 50% 46%;
}

.safety {
  display: grid;
  grid-template-columns: minmax(220px, .52fr) minmax(290px, .72fr) minmax(380px, 1fr);
  gap: clamp(36px, 5vw, 82px);
  align-items: center;
}

.home-story-precision {
  aspect-ratio: .77;
  border-radius: 76px 4px 4px 4px;
}

.home-story-precision img {
  object-position: 50% 48%;
}

.safety-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process {
  grid-template-columns: minmax(205px, .5fr) minmax(290px, .67fr) minmax(420px, 1.05fr);
  gap: clamp(36px, 5vw, 82px);
  align-items: center;
}

.home-story-process {
  aspect-ratio: .72;
  border-radius: 4px 4px 72px 4px;
}

.home-story-process img {
  object-position: 50% 45%;
}

@media (max-width: 1180px) {
  .expertise-preview,
  .safety,
  .process {
    grid-template-columns: minmax(240px, .7fr) minmax(330px, 1fr);
  }

  .expertise-facts,
  .safety-grid,
  .process-list {
    grid-column: 1 / -1;
  }

  .expertise-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 128px;
    padding-bottom: 58px;
  }

  .hero-visual {
    justify-self: stretch;
    width: min(100%, 720px);
    margin-top: 54px;
  }

  .hero-photo {
    aspect-ratio: .84;
  }

  .hero-meta {
    position: static;
    grid-template-columns: 1fr 1fr;
    grid-column: 1;
    gap: 10px 24px;
    margin-top: 34px;
  }

  .hero-meta a {
    display: none;
  }

  .hero-trustbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-trustbar article:nth-child(3) {
    border-left: 0;
  }

  .hero-trustbar article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    padding-top: 30px;
    margin-top: 30px;
  }

  .expertise-preview,
  .safety,
  .process {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .expertise-facts,
  .safety-grid,
  .process-list {
    grid-column: auto;
  }

  .expertise-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-story-media {
    width: min(100%, 680px);
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 112px 20px 42px;
  }

  .hero h1 {
    font-size: clamp(45px, 13vw, 62px);
    line-height: .9;
  }

  .hero-visual {
    width: calc(100% + 40px);
    margin: 42px -20px 0;
  }

  .hero-photo {
    aspect-ratio: .72;
    border: 0;
    border-radius: 0;
    clip-path: none;
  }

  .hero-photo img {
    object-position: 50% 43%;
  }

  .hero-caption {
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }

  .hero-proof {
    top: 14px;
    left: 14px;
  }

  .hero-proof b {
    font-size: 30px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    padding-top: 20px;
    font-size: 9px;
    line-height: 1.5;
  }

  .hero-trustbar {
    padding: 18px 20px 50px;
  }

  .hero-trustbar article {
    min-height: 142px;
    padding: 24px 15px;
  }

  .hero-trustbar article:nth-child(n + 3) {
    margin-top: 0;
    padding-top: 24px;
  }

  .hero-trustbar strong {
    font-size: clamp(27px, 9vw, 38px);
  }

  /* Keep the long fourth fact readable on narrow phone screens. */
  .hero-trustbar article {
    min-width: 0;
  }

  .hero-trustbar article:nth-child(4) strong {
    display: block;
    max-width: 100%;
    font-size: clamp(21px, 6.2vw, 28px);
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-trustbar span {
    font-size: 9px;
    line-height: 1.55;
  }

  .home-story-media {
    width: calc(100% + 40px);
    margin-inline: -20px;
    border-radius: 0;
  }

  .home-story-media figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 9px;
  }

  .expertise-facts,
  .safety-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile overflow fix: keep the long qualification title inside its card. */
@media (max-width:620px){
  .hero-trustbar article{min-width:0;overflow:hidden;}
  .hero-trustbar article:nth-child(4) strong{display:block;max-width:100%;font-size:clamp(18px,5.2vw,24px);line-height:1.08;white-space:normal;overflow-wrap:anywire;word-breakzbreak-word;letter-spacing:-.03em;}
}
