/* ==========================================================================
   Dyna-K — Homepage-only layout. Loaded only on index.php.
   Uses existing palette variables from style.css — no new colors.
   ========================================================================== */

/* Header on the home page is the same solid white bar (dark logo) as every other page. */
@media (max-width: 900px) {
  .page-home .hero-full .container { padding-top: 70px; }
}

/* ---- Full-bleed hero ---- */
.hero-full {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-full .hero-bg {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center;
  z-index: -2;
  opacity: 0;
  animation: heroSlideShow 25s infinite;
}
.hero-full .hero-bg:nth-child(1) { animation-delay: 0s; }
.hero-full .hero-bg:nth-child(2) { animation-delay: -5s; }
.hero-full .hero-bg:nth-child(3) { animation-delay: -10s; }
.hero-full .hero-bg:nth-child(4) { animation-delay: -15s; }
.hero-full .hero-bg:nth-child(5) { animation-delay: -20s; }
@keyframes heroSlideShow {
  0%   { opacity: 0; transform: scale(1.05); }
  4%   { opacity: 1; transform: scale(1.05); }
  16%  { opacity: 1; transform: scale(1.14); }
  20%  { opacity: 0; transform: scale(1.14); }
  100% { opacity: 0; }
}
.hero-full::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,25,49,.90) 0%, rgba(10,25,49,.74) 42%, rgba(10,25,49,.94) 100%);
  z-index: -1;
}
.hero-full .container { position: relative; padding-top: clamp(70px, 9vw, 120px); padding-bottom: 148px; }
.hero-full .hero-copy { max-width: 920px; margin: 0; text-align: left; }
.hero-full h1 { color: var(--white); font-size: clamp(34px, 4.4vw, 62px); line-height: 1.12; }
.hero-full h1 em { color: var(--blue-light); font-style: normal; }
.hero-full p.lede { color: var(--blue-light); }
.hero-full .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.hero-full .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ---- Headline: words reveal one-by-one on load ---- */
.hero-full h1.reveal-words { opacity: 1; transform: none; animation: none; }
.hero-full .wmask { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-full .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(115%);
  animation: wordUp .65s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes wordUp { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .hero-full .hero-bg { animation: none !important; opacity: 0; }
  .hero-full .hero-bg:first-child { opacity: 1; }
  .hero-full .w { animation: none !important; opacity: 1 !important; transform: none !important; }
}
/* ---- Icon service strip, overlapping the hero's bottom edge ---- */
.service-strip { position: relative; z-index: 3; margin-top: -84px; margin-bottom: 44px; }
.service-strip-inner {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 56px -16px rgba(10,25,49,.35);
  display: flex;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: stripIn .7s .55s var(--ease-out, cubic-bezier(.22,.61,.36,1)) forwards;
}
@keyframes stripIn { to { opacity: 1; transform: translateY(0); } }
.service-chip {
  flex: 1 1 0; min-width: 150px; padding: 26px 16px; text-align: center;
  border-right: 1px solid var(--line);
  transition: background .2s, color .2s;
}
.service-chip:last-child { border-right: none; }
.service-chip svg { width: 26px; height: 26px; margin: 0 auto 10px; stroke: var(--blue); display: block; }
.service-chip span { display: block; font-family: var(--f-body); font-weight: 600; font-size:19px; line-height: 1.3; letter-spacing: .01em; color: var(--ink); }
.service-chip:hover { background: var(--blue); }
.service-chip:hover svg { stroke: var(--white); }
.service-chip:hover span { color: var(--white); }
@media (max-width: 900px) { .service-strip { margin-top: -50px; } .service-chip { min-width: 33%; border-bottom: 1px solid var(--line); } }

/* ---- Why band (3 pillars, pulled from vision-quality-policy.php) ---- */
.why-band { padding: 66px 0 60px; text-align: center; }
.why-band .eyebrow { justify-content: center; }
.why-band h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 10px 0 18px; }
.why-band .why-lede { max-width: 70ch; margin: 0 auto 40px; color: var(--steel); font-size:22px; }
.why-band .why-lede strong { color: var(--ink); }
.pillars { position: relative; display: flex; justify-content: center; max-width: 640px; margin: 0 auto 28px; }
.pillars::before { content: ''; position: absolute; top: 6px; left: 10%; right: 10%; height: 1px; background: var(--line); }
.pillar { flex: 1; position: relative; padding: 0 16px; }
.pillar-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--blue-light);
  margin: 0 auto 14px; position: relative; z-index: 2; transition: background .3s, transform .3s;
}
.pillar:hover .pillar-dot { background: var(--blue); transform: scale(1.3); }
.pillar span { font-family: var(--f-mono); font-size:15px; letter-spacing: .05em; text-transform: uppercase; color: var(--steel); }
.pillar:hover span { color: var(--blue); }
.why-band .go-link { font-family: var(--f-mono); font-size:16px; letter-spacing: .06em; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }

/* ---- About split (image + Company Profile paragraph) ---- */
.about-split { padding: 20px 0 64px; }
.about-split .container { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 48px -16px rgba(10,25,49,.22); }
.about-media > img { width: 100%; display: block; }
.about-media-float {
  position: absolute; right: 16px; bottom: 16px; width: 44%;
  border: 5px solid var(--white); border-radius: 8px; overflow: hidden;
  box-shadow: 0 16px 32px rgba(10,25,49,.28);
}
.about-media-float img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.about-copy p { color: var(--steel); margin-bottom: 18px; }
.about-copy p strong { color: var(--ink); }
.num-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); color: var(--white);
  transition: background .2s, transform .2s;
}
.num-link:hover { background: var(--blue-dark); transform: translateX(4px); }
@media (max-width: 900px) {
  .about-split .container { grid-template-columns: 1fr; }
  .about-media-float { width: 50%; }
}

/* ---- Products & Facilities as media cards ---- */
.media-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.media-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: 0 10px 30px rgba(10,25,49,.08); }
.media-card .media-photo { aspect-ratio: 16/10; overflow: hidden; }
.media-card .media-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.media-card:hover .media-photo img { transform: scale(1.06); }
.media-card .media-body { padding: 26px 28px 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.media-card .media-text .tag { font-family: var(--f-mono); font-size:15px; color: var(--blue); letter-spacing: .1em; display: block; margin-bottom: 10px; }
.media-card h3 { font-size:25.5px; margin-bottom: 10px; }
.media-card p { color: var(--steel); font-size:20px; margin: 0; }

/* ---- Dark full-bleed customers band ---- */
.dark-band { background: var(--navy-deep); padding: 60px 0; }
.dark-band .section-head h2 { color: var(--white); }
.dark-band .section-head h2::after { background: var(--blue-light); }
.dark-band .logo-strip { border: none; gap: 14px; }
.dark-band .logo-strip .logo-cell { border: none; border-radius: 8px; background: var(--white); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.dark-band .logo-strip .logo-cell:hover { box-shadow: 0 14px 30px rgba(0,0,0,.34); transform: translateY(-4px); }
.dark-band .go-link { color: var(--blue-light); }

/* ---- Customer logo marquee (homepage, replaces the static grid above) ---- */
.dark-band .logo-marquee {
  overflow: hidden;
  padding: 28px 0 8px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.dark-band .logo-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
}
.dark-band .logo-marquee .logo-cell {
  flex: 0 0 170px;
  aspect-ratio: 3/2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.dark-band .logo-marquee .logo-cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Overview gallery: two photos side by side */
.gallery-grid.g-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.g-cols-2 .g-item { aspect-ratio: 3/2; }
@media (max-width: 600px) { .gallery-grid.g-cols-2 { grid-template-columns: 1fr; } }

/* Overview gallery: keep every photo inside its box, whatever its own proportions */
.gallery-grid.g-cols-2 .g-item { position: relative; overflow: hidden; min-height: 0; }
.gallery-grid.g-cols-2 .g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---- Our Journey (home) ---- */
.journey-home { padding: 20px 0 64px; }
.journey-home .section-head p { color: var(--steel); margin-top: 8px; }
