/*
 * PT Intai Aero Perkasa — page-specific overrides on top of _base.css.
 *
 * Deliberately NOT reusing the main site's --font-display/--font-body
 * (Space Grotesk / IBM Plex Sans) — Big Shoulders Display / IBM Plex
 * Mono / Inter are scoped to .iap only, so this doesn't affect
 * Sembada Karya Mandiri or Biru Waste Management's own override files.
 *
 * Light theme (2026-08-11 revision) — hero is the one dark/photo
 * moment on the page (needed so the big white headline reads over a
 * photograph); everything below it is light. Full-bleed: hero,
 * capabilities strip, gallery and the closing band all span 100vw with
 * no side padding, matching the shield.ai/pdw.ai references. Only the
 * text-heavy sections (about, Alap-Alap copy) cap an inner column so
 * paragraphs stay readable — the section itself is still edge-to-edge.
 */

.iap {
  --iap-font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --iap-font-mono: "IBM Plex Mono", "Courier New", monospace;
  --iap-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --iap-bg: #f5f6f2;
  --iap-bg-2: #ffffff;
  --iap-ink: #0c0f14;
  --iap-ink-2: #4a4f58;
  --iap-line: #dee1da;
  --iap-accent: var(--accent, #2e7bff);
  --iap-accent-2: var(--accent-2, #5c9bff);
  /* red, tuned to the same saturation/lightness as --iap-accent (just
     hue-rotated to red) so the two read as a deliberate pair rather
     than a random second color */
  --iap-accent-red: #ff3d3d;
  --iap-accent-red-2: #ff7a7a;

  background: var(--iap-bg);
  color: var(--iap-ink);
  font-family: var(--iap-font-body);
  overflow-x: hidden;
}

.iap h1, .iap h2, .iap h3 {
  font-family: var(--iap-font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.iap-full { width: 100%; }

/* reduced motion: kill everything animated, show content immediately */
@media (prefers-reduced-motion: reduce) {
  .iap * { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------------
 * Scroll-reveal — plain IntersectionObserver hook, elements start
 * hidden/offset and settle in as they cross the viewport.
 * ------------------------------------------------------------------- */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease, ease), transform .7s var(--ease, ease);
}
.reveal-init.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------
 * Buttons / links
 * ------------------------------------------------------------------- */
.iap-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: transform .25s var(--ease, ease), background .25s ease, color .25s ease, border-color .25s ease;
}
.iap-btn i { transition: transform .25s var(--ease, ease); font-size: 0.82em; }
.iap-btn:hover i { transform: translateX(3px); }
.iap-btn-primary {
  background: var(--iap-accent);
  color: #fff;
}

.iap-btn-primary:hover { background: #1e5fe0; transform: translateY(-1px); }
.iap-btn-outline {
  background: transparent;
  color: var(--iap-ink);
  border: 1.5px solid var(--iap-line);
}
.iap-btn-outline:hover { border-color: var(--iap-accent); color: var(--iap-accent); }

/* ---------------------------------------------------------------------
 * Button color based on scroll state
 * ------------------------------------------------------------------- */
.iap-btn-scroll {
  /* Default state - no scroll, white background */
  background: #ffffff00;
  color: #c9c9c9;
  border: 1.5px solid #dee1da00;
}

/* When scrolled - black background */
.iap-topbar.is-scrolled .iap-btn-scroll {
  background: #0c0f1400;
  color: #1a1a1a;
  border-color: #0c0f1400;
}

/* Hover states */
.iap-btn-scroll:hover {
  transform: translateY(-1px);
}

.iap-topbar.is-scrolled .iap-btn-scroll:hover {
  background: #1a1a1a00;
  border-color: #1a1a1a00;
}

.iap-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--iap-accent);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color .25s ease;
}
.iap-textlink i { transition: transform .25s var(--ease, ease); }
.iap-textlink:hover { border-color: var(--iap-accent); }
.iap-textlink:hover i { transform: translateX(3px); }

.iap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--iap-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--iap-accent);
  margin-bottom: 18px;
}
.iap-eyebrow-light { color: var(--iap-accent-2); }

/* ---------------------------------------------------------------------
 * Topbar
 * ------------------------------------------------------------------- */
.iap-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 22px 0;
}
.iap-topbar.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--iap-line);
  padding: 12px 0;
}
.iap-topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.iap-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  transition: color .35s ease;
}
.iap-topbar.is-scrolled .iap-logo { color: var(--iap-ink); }
.iap-logo-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--iap-accent);
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.iap-logo-text {
  font-family: var(--iap-font-display);
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.iap-nav {
  display: flex;
  gap: 30px;
  font-size: 0.86rem;
  font-weight: 600;
}
.iap-nav a {
  position: relative;
  color: #fff;
  transition: color .35s ease;
  padding-bottom: 4px;
}
.iap-topbar.is-scrolled .iap-nav a { color: var(--iap-ink-2); }
.iap-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--iap-accent);
  transition: width .25s var(--ease, ease);
}
.iap-nav a:hover { color: var(--iap-accent); }
.iap-nav a:hover::after { width: 100%; }
.iap-topbar-cta { flex-shrink: 0; }
.iap-nav-toggle {
  display: none;
  background: none; border: 0;
  color: #fff;
  font-size: 1.3rem;
}
.iap-topbar.is-scrolled .iap-nav-toggle { color: var(--iap-ink); }

@media (max-width: 860px) {
  .iap-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    background: var(--iap-ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform .35s var(--ease, ease);
  }
  .iap-nav.is-open { transform: translateX(0); }
  .iap-nav a { color: #fff; font-size: 1.05rem; }
  .iap-topbar-cta { display: none; }
  .iap-nav-toggle { display: block; position: relative; z-index: 101; }
}

/* ---------------------------------------------------------------------
 * Hero — the one dark/photo moment on the page
 * ------------------------------------------------------------------- */
.iap-hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--iap-ink);
  color: #fff;
}
.iap-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}
.iap-hero-overlay {
  position: absolute;
  inset: 0;
  /* lighter than before on purpose — the PDW reference lets the photo
     read through clearly behind the type, it doesn't crush it to near-
     black. Text legibility comes from weight/size + a text-shadow on
     the title, not from a heavy overlay. */
  background:
    linear-gradient(180deg, rgba(6,8,12,0.42) 0%, rgba(6,8,12,0.5) 60%, rgba(6,8,12,0.68) 100%);
}
.iap-radar {
  position: absolute;
  top: 50%; right: -8%;
  transform: translateY(-50%);
  width: min(60vw, 720px);
  height: auto;
  opacity: 0.5;
  pointer-events: none;
}
.iap-radar-ring {
  fill: none;
  stroke: rgba(255,255,255,0.14);
  stroke-width: 1;
}
.iap-radar-cross { stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.iap-radar-sweep {
  transform-origin: 300px 300px;
  animation: iap-sweep 6s linear infinite;
}
@keyframes iap-sweep { to { transform: rotate(360deg); } }

.iap-hero-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin: clamp(90px, 14vh, 150px) 0 0;
  margin-left: clamp(16px, 4vw, 44px);
  padding: 7px 16px;
  background: var(--iap-accent-red);
  font-family: var(--iap-font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
}

.iap-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(10px, 2vh, 20px) clamp(16px, 4vw, 44px) 0;
}
.iap-hero-title {
  display: flex;
  flex-direction: column;
  /* sized to fill the width edge-to-edge and stay dominant at high
     browser zoom and on smaller screens alike — higher floor + steeper
     slope than a typical hero headline on purpose */
  font-size: clamp(4.4rem, 4vw + 5.5rem, 12rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 900;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.iap-hero-title-accent { color: var(--iap-accent-2); }

.iap-hero-info {
  position: absolute;
  z-index: 2;
  right: clamp(16px, 4vw, 44px);
  bottom: clamp(60px, 10vh, 110px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: var(--iap-font-mono);
}
.iap-hero-info-badge {
  padding: 7px 16px;
  background: var(--iap-accent-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.iap-hero-info-tag {
  display: flex;
  align-items: stretch;
  height: 30px;
}
.iap-hero-info-tag-text {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--iap-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.iap-hero-info-tag-stripe {
  width: 90px;
  background: repeating-linear-gradient(
    -45deg,
    var(--iap-accent-2) 0 8px,
    rgba(6,8,12,0.85) 8px 16px
  );
  opacity: 0.9;
}
.iap-hero-info-line {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}
.iap-hero-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  animation: iap-bob 2.2s ease-in-out infinite;
}
@keyframes iap-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (max-width: 640px) {
  .iap-hero-title { font-size: clamp(3.4rem, 15vw, 6rem); line-height: 0.9; }
  .iap-radar { opacity: 0.22; }
  .iap-hero-info { display: none; }
}

/* ---------------------------------------------------------------------
 * About / proof split
 * ------------------------------------------------------------------- */
.iap-about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  background: var(--iap-bg-2);
}
.iap-about-media { overflow: hidden; }
.iap-about-media img {
  width: 100%; height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.iap-about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 96px) clamp(24px, 6vw, 88px);
  max-width: 620px;
}
.iap-about-title {
  font-size: var(--h2, clamp(2rem, 1.2rem + 3vw, 3.2rem));
  margin-bottom: 20px;
  text-transform: uppercase;
}
.iap-about-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--iap-ink-2);
  margin-bottom: 26px;
}

@media (max-width: 860px) {
  .iap-about { grid-template-columns: 1fr; }
  .iap-about-media img { min-height: 280px; }
}

/* ---------------------------------------------------------------------
 * Capabilities strip — full-bleed, light
 * ------------------------------------------------------------------- */
.iap-cap { background: var(--iap-bg); padding: clamp(56px, 7vw, 96px) 0 0; }
.iap-cap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px) clamp(28px, 4vw, 44px);
  gap: 20px;
  flex-wrap: wrap;
}
.iap-cap-title {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  text-transform: uppercase;
}
.iap-cap-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}
.iap-cap-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-top: 1px solid var(--iap-line);
}
.iap-cap-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease, ease);
}
.iap-cap-item:hover img { transform: scale(1.06); }
.iap-cap-item-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px clamp(14px, 2vw, 22px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--iap-font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, 0.8rem + 0.4vw, 1.2rem);
  color: #fff;
  text-transform: uppercase;
  background: linear-gradient(0deg, rgba(6,8,12,0.75) 0%, rgba(6,8,12,0) 100%);
}
.iap-cap-item-label i { color: var(--iap-accent-2); font-size: 0.85em; }

@media (max-width: 860px) {
  .iap-cap-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------------
 * Alap-Alap spotlight
 * ------------------------------------------------------------------- */
.iap-spot {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  background: var(--iap-bg-2);
  gap: clamp(20px, 4vw, 60px);
}
.iap-spot-copy { padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 96px) clamp(20px, 5vw, 88px); }
.iap-spot-title { font-size: var(--h1, clamp(2.6rem, 1.1rem + 6vw, 5rem)); text-transform: uppercase; margin-bottom: 18px; }
.iap-spot-text { font-size: 1.05rem; line-height: 1.75; color: var(--iap-ink-2); max-width: 520px; margin-bottom: 40px; }

.iap-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
}
.iap-stat { border-left: 2px solid var(--iap-accent); padding-left: 16px; }
.iap-stat-num {
  display: block;
  font-family: var(--iap-font-mono);
  font-weight: 600;
  font-size: clamp(1.6rem, 1rem + 1.6vw, 2.3rem);
  color: var(--iap-ink);
}
.iap-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--iap-ink-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.iap-spot-media { overflow: hidden; height: 100%; }
.iap-spot-media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }

@media (max-width: 860px) {
  .iap-spot { grid-template-columns: 1fr; }
  .iap-spot-media img { min-height: 280px; }
}

/* ---------------------------------------------------------------------
 * Gallery — full-bleed large panels (overrides _base.css's .sub-gallery
 * small-tile grid for THIS page only; Sembada/Biru Waste keep the
 * Phase 1 default unless they opt into this look separately).
 * ------------------------------------------------------------------- */
.iap-gallery-section { background: var(--iap-bg); padding-top: clamp(56px, 7vw, 96px); }
.iap-gallery-head { padding-bottom: clamp(24px, 3vw, 36px); }

.iap-gallery-section .sub-gallery {
  display: flex;
  width: 100%;
  height: clamp(360px, 60vh, 640px);
  gap: 0;
}
.iap-gallery-section .sub-gallery-item {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  transition: flex-grow .45s var(--ease, ease);
}
.iap-gallery-section .sub-gallery-item:hover { flex-grow: 1.6; }
.iap-gallery-section .sub-gallery-item img {
  aspect-ratio: unset;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease, ease);
}
.iap-gallery-section .sub-gallery-item:hover img { transform: scale(1.05); }
.iap-gallery-section .sub-gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px clamp(12px, 2vw, 20px);
  font-family: var(--iap-font-mono);
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(6,8,12,0.75) 0%, rgba(6,8,12,0) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.iap-gallery-section .sub-gallery-item:hover::after { opacity: 1; transform: translateY(0); }

@media (max-width: 720px) {
  .iap-gallery-section .sub-gallery { flex-direction: column; height: auto; }
  /* flex-basis must be set explicitly here (not left at the desktop
     rule's "0"), or column-direction flex-basis:0 wins over this
     height and every item collapses to ~0px tall — this was the
     "gallery missing on mobile" bug. flex-grow/shrink 0 so items don't
     fight each other for the auto-height parent's (nonexistent) free
     space. */
  .iap-gallery-section .sub-gallery-item { flex: 0 0 260px; height: 260px; }
  .iap-gallery-section .sub-gallery-item:hover { flex-grow: 0; }
}

/* ---------------------------------------------------------------------
 * Closing band — bookends the hero as the second dark/photo moment
 * ------------------------------------------------------------------- */
.iap-closing {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.iap-closing-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.iap-closing-overlay {
  position: absolute; inset: 0;
  background: rgba(6,8,12,0.82);
}
.iap-closing-content {
  position: relative;
  z-index: 2;
  padding: 80px clamp(20px, 5vw, 64px);
  max-width: 760px;
}
.iap-closing-title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.iap-closing-address {
  font-family: var(--iap-font-mono);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

/* ---------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------- */
.iap-footer {
  background: var(--iap-ink);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 22px clamp(20px, 5vw, 64px);
  font-size: 0.82rem;
}
.iap-footer a { color: rgba(255,255,255,0.85); font-weight: 600; }
.iap-footer a:hover { color: var(--iap-accent-2); }
