/*
 * PT Intai Aero Perkasa — page styles, on top of _base.css.
 *
 * Fonts (Big Shoulders Display, IBM Plex Mono, Inter) and every variable
 * are scoped to .iap, so nothing here leaks outside the page.
 *
 * Light theme — the hero is the one dark/photo moment (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. 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: #2e7bff;
  --iap-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;
}
/* White logo over the dark hero; full-colour logo once the topbar turns
   white on scroll (.is-scrolled, set by intai-aero-perkasa.js). */
.iap-logo-img { height: 32px; width: auto; display: block; }
.iap-logo-img-color { display: none; }
.iap-topbar.is-scrolled .iap-logo-img-white { display: none; }
.iap-topbar.is-scrolled .iap-logo-img-color { display: block; }
.iap-nav {
  display: flex;
  gap: 30px;
  font-size: 0.86rem;
  font-weight: 600;
}
.iap-nav .iap-dd-trigger {
  position: relative;
  color: #fff;
  transition: color .35s ease;
}
.iap-topbar.is-scrolled .iap-nav .iap-dd-trigger { color: var(--iap-ink-2); }
.iap-nav .iap-dd-trigger::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--iap-accent);
  transition: width .25s var(--ease, ease);
}
.iap-nav .iap-dd-trigger:hover { color: var(--iap-accent); }
.iap-nav .iap-dd-trigger:hover::after { width: 100%; }

/* ---- Menu dropdowns: plain text trigger (no pill, unlike the language
   switch) opening a square white panel with a blue top bar, a mono group
   label and numbered rows. Desktop: opens on hover or click (JS sets
   .is-open). Mobile (860 px and below): see the media block further down. ---- */
.iap-dd { position: relative; display: flex; align-items: center; }
.iap-nav .iap-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.iap-dd-chevron { font-size: 0.58rem; transition: transform .25s ease; }
.iap-dd.is-open .iap-dd-chevron { transform: rotate(180deg); }
.iap-nav .iap-dd.is-open .iap-dd-trigger { color: var(--iap-accent-2); }
.iap-topbar.is-scrolled .iap-nav .iap-dd.is-open .iap-dd-trigger { color: var(--iap-accent); }
.iap-nav .iap-dd.is-open .iap-dd-trigger::after { width: 100%; }
.iap-dd-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: -18px;
  min-width: 270px;
  padding: 14px 0 8px;
  background: #fff;
  border-top: 2px solid var(--iap-accent);
  box-shadow: 0 18px 44px rgba(12,15,20,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
/* invisible bridge so the panel stays open while the pointer moves down to it */
.iap-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.iap-dd-label {
  margin: 0 18px 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--iap-line);
  font-family: var(--iap-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--iap-ink-2);
  text-transform: uppercase;
}
.iap-dd-link {
  display: grid;
  grid-template-columns: 26px 1fr 14px;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  color: var(--iap-ink);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s ease, box-shadow .2s ease, color .2s ease;
}
.iap-dd-num { font-family: var(--iap-font-mono); font-size: 0.7rem; color: var(--iap-accent); }
.iap-dd-arrow { font-size: 0.7rem; color: var(--iap-accent); opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease; }
.iap-dd-link:hover, .iap-dd-link:focus-visible { background: var(--iap-bg); box-shadow: inset 2px 0 0 var(--iap-accent); color: var(--iap-accent); }
.iap-dd-link:hover .iap-dd-arrow, .iap-dd-link:focus-visible .iap-dd-arrow { opacity: 1; transform: translateX(0); }
@media (min-width: 861px) {
  .iap-dd.is-open .iap-dd-panel { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
}
@media (min-width: 861px) and (hover: hover) {
  .iap-dd:hover .iap-dd-panel { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
  .iap-dd:hover .iap-dd-chevron { transform: rotate(180deg); }
}

.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); }

.iap-nav-cta { display: none; }
.iap-nav-lang { display: none; }

/* ---- Language switch: flag + short name + chevron; dropdown on desktop,
   two flag pills inside the menu panel on mobile ---- */
.iap-flag { display: block; width: 18px; height: 13px; border-radius: 2px; overflow: hidden; flex: none; }
.iap-flag svg { display: block; width: 100%; height: 100%; }
.iap-lang { position: relative; flex-shrink: 0; }
.iap-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--iap-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: border-color .25s ease, background .25s ease, color .35s ease;
}
.iap-lang-trigger:hover,
.iap-lang-trigger[aria-expanded="true"] { border-color: var(--iap-accent); }
.iap-topbar.is-scrolled .iap-lang-trigger {
  border-color: var(--iap-line);
  background: #fff;
  color: var(--iap-ink);
}
.iap-topbar.is-scrolled .iap-lang-trigger:hover,
.iap-topbar.is-scrolled .iap-lang-trigger[aria-expanded="true"] { border-color: var(--iap-accent); }
.iap-lang-chevron { font-size: 0.6rem; transition: transform .25s ease; }
.iap-lang-trigger[aria-expanded="true"] .iap-lang-chevron { transform: rotate(180deg); }
.iap-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 172px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--iap-ink);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.iap-lang-menu[hidden] { display: none; }
.iap-lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.86rem;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}
.iap-lang-opt:hover { background: rgba(255,255,255,0.08); color: #fff; }
.iap-lang-opt.is-active { background: rgba(46,123,255,0.14); color: var(--iap-accent-2); }
.iap-nav-backdrop { display: none; }

@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), visibility 0s linear .35s;
    z-index: 1;
    visibility: hidden;
  }
  .iap-nav.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  /* Panel links are always white, also after the topbar turned white on scroll */
  .iap-topbar .iap-nav .iap-dd-trigger,
  .iap-topbar.is-scrolled .iap-nav .iap-dd-trigger { color: #fff; font-size: 1.05rem; }
  .iap-topbar .iap-nav .iap-dd-trigger:hover { color: var(--iap-accent-2); }
  .iap-nav .iap-dd-trigger::after { display: none; }
  .iap-topbar-cta { display: none; }
  .iap-nav .iap-nav-cta { display: inline-flex; }
  .iap-lang { display: none; }
  .iap-nav-lang { display: flex; gap: 10px; margin-top: auto; }
  .iap-nav-lang-opt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 100px;
    color: #fff;
    font-family: var(--iap-font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
  }
  .iap-nav-lang-opt.is-active { border-color: var(--iap-accent); background: rgba(46,123,255,0.16); }
  .iap-nav-toggle { display: block; position: relative; z-index: 101; }
  /* Menu open: white close icon over the dark panel, dim backdrop behind it.
     backdrop-filter is switched off so the fixed panel is positioned against
     the screen, not against the (blurred) topbar. */
  .iap-topbar.is-menu-open { backdrop-filter: none; }
  .iap-topbar.is-menu-open .iap-nav-toggle { color: #fff; }
  .iap-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(4, 6, 10, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  .iap-topbar.is-menu-open .iap-nav-backdrop { opacity: 1; pointer-events: auto; }

  /* Menu panel: no dropdowns; each group is a mono label over its links */
  .iap-nav { gap: 22px; overflow-y: auto; padding-top: 88px; }
  .iap-dd { display: block; width: 100%; }
  .iap-nav .iap-dd-trigger { display: none; }
  .iap-dd-panel {
    position: static;
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .iap-dd-panel::before { display: none; }
  .iap-dd-label { margin: 0 0 4px; padding-bottom: 8px; border-color: rgba(255,255,255,0.12); color: var(--iap-accent-2); }
  .iap-dd-link { padding: 8px 0; color: #fff; font-size: 1rem; grid-template-columns: 26px 1fr 14px; }
  .iap-dd-num { color: rgba(255,255,255,0.45); }
  .iap-dd-link:hover, .iap-dd-link:focus-visible { background: none; box-shadow: none; color: var(--iap-accent-2); }
}

/* ---------------------------------------------------------------------
 * 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;
  /* light on purpose — the photo reads through clearly behind the type
     instead of being crushed 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(92,155,255,0.28);
  stroke-width: 1;
}
.iap-radar-cross { stroke: rgba(92,155,255,0.16); stroke-width: 1; }
.iap-radar-ticks line { stroke: rgba(92,155,255,0.4); stroke-width: 1.2; }
.iap-radar-edge { stroke: #5c9bff; stroke-width: 1.6; stroke-opacity: 0.85; }
/* Blips: flash when the sweep's edge passes (delay set per blip in index.php),
   then fade out over the rest of the 6 s turn. Static and dim without motion. */
.iap-radar-blip {
  fill: #5c9bff;
  opacity: 0.25;
  transform-box: fill-box;
  transform-origin: center;
  animation: iap-blip 6s linear infinite;
}
@keyframes iap-blip {
  0%   { opacity: 1; transform: scale(1.6); }
  8%   { opacity: 0.9; transform: scale(1); }
  70%  { opacity: 0; }
  100% { opacity: 0; }
}
.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; }
  /* Radar stays clearly visible on phones: bigger, centered behind the title,
     brighter rings and crosshair. */
  .iap-radar { opacity: 0.8; width: 110vw; right: 50%; transform: translate(50%, -50%); }
  .iap-radar-ring { stroke: rgba(92,155,255,0.45); stroke-width: 1.6; }
  .iap-radar-cross { stroke: rgba(92,155,255,0.28); stroke-width: 1.4; }
  .iap-radar-ticks line { stroke: rgba(92,155,255,0.55); stroke-width: 1.6; }
  .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 carousel of large panels (overrides _base.css's
 * .sub-gallery small-tile grid). 4 panels per view (2 on phones); the
 * track scrolls sideways with snap, arrows move one view.
 * ------------------------------------------------------------------- */
.iap-gallery-section { background: var(--iap-bg); padding-top: clamp(56px, 7vw, 96px); }
.iap-gallery-head { padding-bottom: clamp(24px, 3vw, 36px); }

.iap-gallery-carousel { position: relative; }
.iap-gallery-section .sub-gallery {
  display: flex;
  width: 100%;
  height: clamp(360px, 60vh, 640px);
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.iap-gallery-section .sub-gallery::-webkit-scrollbar { display: none; }
.iap-gallery-section .sub-gallery-item {
  position: relative;
  flex: 0 0 25%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  scroll-snap-align: start;
}
.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,
.iap-gallery-section .sub-gallery-item:focus-visible::after { opacity: 1; transform: translateY(0); }

/* Arrows: square dark buttons on the panel edges, hidden at the ends */
.iap-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px; height: 48px;
  margin-top: -24px;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  border-radius: 0;
  background: rgba(6, 8, 12, 0.72);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background .25s ease, opacity .25s ease;
}
.iap-gallery-arrow:hover, .iap-gallery-arrow:focus-visible { background: var(--iap-accent); }
.iap-gallery-prev { left: 0; }
.iap-gallery-next { right: 0; }
.iap-gallery-arrow[hidden] { display: none; }

@media (max-width: 720px) {
  .iap-gallery-section .sub-gallery { height: 300px; }
  .iap-gallery-section .sub-gallery-item { flex-basis: 50%; }
  /* no hover on touch screens: captions always shown */
  .iap-gallery-section .sub-gallery-item::after { opacity: 1; transform: none; font-size: 0.7rem; padding: 14px 10px; }
  .iap-gallery-arrow { width: 40px; height: 40px; margin-top: -20px; }
}

/* Auto-drift (JS adds .is-auto): no snap, no smooth jump on each frame; the
 * arrows are always shown because the loop has no end. */
.iap-gallery-carousel.is-auto .sub-gallery {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce) {
  .iap-gallery-section .sub-gallery { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------
 * 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;
}

/* =====================================================================
 * Company content sections (Phase 2): vision, team, customers, products,
 * services, track record. Same look as above: mono eyebrows, red / blue
 * bracket labels like the hero, blue accent lines like the stats, hover
 * zoom like the capability tiles, hatch stripes like the hero tag.
 * ===================================================================== */
.iap-section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 64px);
  position: relative;
  z-index: 1;
}
.iap-sec-title {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.iap-sec-intro {
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--iap-ink-2);
  margin-bottom: clamp(32px, 4vw, 52px);
}
.iap-bracket {
  display: inline-block;
  padding: 6px 14px;
  background: var(--iap-accent-red);
  color: #fff;
  font-family: var(--iap-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.iap-bracket-blue { background: var(--iap-accent); }

/* ---- Vision, mission and values ---- */
.iap-vision { position: relative; overflow: hidden; background: var(--iap-bg); }
.iap-vision-radar {
  position: absolute;
  top: 38%; right: -12%;
  transform: translateY(-50%);
  width: min(56vw, 640px);
  pointer-events: none;
}
.iap-vision-radar circle { fill: none; stroke: var(--iap-line); stroke-width: 1.2; }
.iap-vision-radar line { stroke: var(--iap-line); stroke-width: 1; }
.iap-vision-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.iap-vision-text {
  font-family: var(--iap-font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 1rem + 2.4vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.iap-mission-list { list-style: none; margin: 0; padding: 0; }
.iap-mission-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--iap-line);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--iap-ink-2);
}
.iap-mission-list li:last-child { border-bottom: 1px solid var(--iap-line); }
.iap-mission-num { font-family: var(--iap-font-mono); font-size: 0.8rem; font-weight: 600; color: var(--iap-accent); padding-top: 3px; }
.iap-values-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.iap-values-tag { font-family: var(--iap-font-mono); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; color: var(--iap-accent-red); }
.iap-values-title { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); text-transform: uppercase; }
.iap-values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.iap-value {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 20px 22px;
  background: var(--iap-bg-2);
  border: 1px solid var(--iap-line);
  transition: border-color .25s ease, transform .25s var(--ease, ease);
}
.iap-value::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--iap-accent-red) 0 6px, var(--iap-ink) 6px 12px);
}
.iap-value:hover { border-color: var(--iap-accent); transform: translateY(-3px); }
.iap-value i { font-size: 1.25rem; color: var(--iap-accent); }
.iap-value-num { font-family: var(--iap-font-mono); font-size: 0.7rem; color: var(--iap-ink-2); letter-spacing: 0.08em; }
.iap-value-word { font-family: var(--iap-font-display); font-weight: 800; font-size: clamp(1.3rem, 1rem + 0.8vw, 1.7rem); text-transform: uppercase; }

/* ---- Team ---- */
.iap-team { background: var(--iap-bg-2); }
.iap-team-grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: stretch; }
.iap-team-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 104px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 104px) clamp(20px, 5vw, 88px);
  max-width: 640px;
}
.iap-team-title { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); line-height: 1.02; text-transform: uppercase; margin-bottom: 20px; }
.iap-team-text { font-size: 1.05rem; line-height: 1.75; color: var(--iap-ink-2); margin-bottom: 24px; }
.iap-team-quote {
  padding-left: 14px;
  border-left: 2px solid var(--iap-accent-red);
  font-family: var(--iap-font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--iap-ink);
}
.iap-team-media { overflow: hidden; }
.iap-team-media img {
  width: 100%; height: 100%;
  min-height: 420px;
  object-fit: cover;
  /* slanted bottom-left corner, the cut the company's material uses */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 110px 100%, 0 calc(100% - 64px));
  transition: transform .6s var(--ease, ease);
}
.iap-team-media:hover img { transform: scale(1.04); }
.iap-pillars { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--iap-ink); color: #fff; }
.iap-pillars::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: repeating-linear-gradient(-45deg, var(--iap-accent-2) 0 8px, var(--iap-ink) 8px 16px);
}
.iap-pillar {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: clamp(30px, 4vw, 48px) clamp(20px, 4vw, 56px);
  border-right: 1px solid rgba(255,255,255,0.1);
}
.iap-pillar:last-child { border-right: 0; }
.iap-pillar-num { font-family: var(--iap-font-mono); font-size: 0.8rem; color: var(--iap-accent-2); }
.iap-pillar-word { font-family: var(--iap-font-display); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); text-transform: uppercase; }

/* ---- Customers ---- */
.iap-cust { background: var(--iap-bg-2); border-top: 1px solid var(--iap-line); }
.iap-cust .iap-section-inner { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.iap-cust-head { margin-bottom: clamp(24px, 3vw, 36px); }
.iap-cust-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--iap-line);
  border-bottom: 1px solid var(--iap-line);
}
.iap-cust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 16px 22px;
  border-right: 1px solid var(--iap-line);
}
.iap-cust-item:last-child { border-right: 0; }
.iap-cust-item img {
  height: clamp(56px, 6vw, 84px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter .3s ease, opacity .3s ease, transform .3s var(--ease, ease);
}
.iap-cust-item:hover img { filter: none; opacity: 1; transform: scale(1.05); }
.iap-cust-name { font-family: var(--iap-font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; color: var(--iap-ink-2); text-align: center; }

/* ---- Products and solutions (with ICT) ---- */
.iap-prod { background: var(--iap-bg-2); }
.iap-prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.iap-prod-card {
  display: flex;
  flex-direction: column;
  background: var(--iap-bg-2);
  border: 1px solid var(--iap-line);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.iap-prod-card:hover { border-color: var(--iap-accent); box-shadow: inset 0 2px 0 var(--iap-accent); }
.iap-prod-media { aspect-ratio: 4 / 3; overflow: hidden; background: #eceee8; }
.iap-prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease, ease); }
.iap-prod-media.is-contain img { object-fit: contain; padding: 14px; }
.iap-prod-card:hover .iap-prod-media img { transform: scale(1.06); }
.iap-prod-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 20px 24px; flex: 1; }
.iap-prod-num { font-family: var(--iap-font-mono); font-size: 0.75rem; font-weight: 600; color: var(--iap-accent); }
.iap-prod-title { font-size: clamp(1.2rem, 1rem + 0.5vw, 1.45rem); text-transform: uppercase; line-height: 1.05; }
.iap-prod-text { font-size: 0.92rem; line-height: 1.65; color: var(--iap-ink-2); }
.iap-prod-body .iap-textlink { margin-top: auto; font-size: 0.88rem; }
.iap-ict {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--iap-line);
}
.iap-ict-title { font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.5rem); text-transform: uppercase; margin-bottom: 16px; }
.iap-ict-text { font-size: 1rem; line-height: 1.75; color: var(--iap-ink-2); margin-bottom: 26px; }
.iap-ict-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
}
.iap-ict-list li {
  position: relative;
  padding: 9px 0 9px 18px;
  border-bottom: 1px solid var(--iap-line);
  font-family: var(--iap-font-mono);
  font-size: 0.8rem;
  color: var(--iap-ink);
}
.iap-ict-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: var(--iap-accent); }
.iap-ict-media { overflow: hidden; }
.iap-ict-media img {
  width: 100%; height: 100%;
  min-height: 360px;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 90px) 0, 100% 56px, 100% 100%, 0 100%);
}

/* ---- Services and packages ---- */
.iap-svc { background: var(--iap-bg); }
.iap-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.iap-svc-card { background: var(--iap-bg-2); border-top: 2px solid var(--iap-accent); display: flex; flex-direction: column; }
.iap-svc-media { aspect-ratio: 16 / 10; overflow: hidden; }
.iap-svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease, ease); }
.iap-svc-card:hover .iap-svc-media img { transform: scale(1.06); }
.iap-svc-body { padding: 24px 24px 28px; }
.iap-svc-num { font-family: var(--iap-font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; color: var(--iap-ink-2); }
.iap-svc-title { font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.2rem); text-transform: uppercase; margin: 8px 0 12px; }
.iap-svc-text { font-size: 0.95rem; line-height: 1.7; color: var(--iap-ink-2); }
.iap-svc-principles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.iap-svc-principles span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--iap-line);
  background: var(--iap-bg-2);
  font-family: var(--iap-font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.iap-svc-principles i { color: var(--iap-accent); }

/* ---- Track record ---- */
.iap-track { background: var(--iap-bg-2); }
.iap-timeline {
  position: relative;
  list-style: none;
  margin: 0 0 28px; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.iap-timeline::before {
  content: "";
  position: absolute;
  top: 36px; left: 0; right: 0;
  border-top: 1px dashed var(--iap-ink-2);
  opacity: 0.45;
}
.iap-timeline li { position: relative; display: flex; flex-direction: column; gap: 22px; }
.iap-timeline-year { font-family: var(--iap-font-mono); font-size: 1.15rem; font-weight: 600; color: var(--iap-accent); }
.iap-timeline li::before {
  content: "";
  position: absolute;
  top: 31px; left: 0;
  width: 11px; height: 11px;
  background: var(--iap-bg-2);
  border: 2px solid var(--iap-accent);
  transform: rotate(45deg);
}
.iap-timeline-text { font-size: 0.86rem; line-height: 1.55; color: var(--iap-ink-2); padding-right: 8px; }
.iap-track-cert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: clamp(36px, 4vw, 56px);
  background: var(--iap-bg);
  border-left: 2px solid var(--iap-accent-red);
  font-family: var(--iap-font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
}
.iap-track-cert i { color: var(--iap-accent-red); margin-top: 3px; }
.iap-mission-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.iap-mission { display: flex; flex-direction: column; border: 1px solid var(--iap-line); background: var(--iap-bg-2); transition: border-color .25s ease; }
.iap-mission:hover { border-color: var(--iap-accent); }
.iap-mission-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--iap-ink); }
.iap-mission-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease, ease); }
.iap-mission:hover .iap-mission-media img { transform: scale(1.06); }
.iap-mission-status {
  position: absolute;
  top: 10px; left: 10px;
  padding: 5px 9px;
  background: var(--iap-accent-red);
  color: #fff;
  font-family: var(--iap-font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.iap-mission-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 20px; flex: 1; }
.iap-mission-meta { font-family: var(--iap-font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; color: var(--iap-accent); }
.iap-mission-title { font-size: 1.15rem; line-height: 1.08; text-transform: uppercase; }
.iap-mission-partner { font-size: 0.84rem; line-height: 1.55; color: var(--iap-ink-2); }
.iap-mission-fig { margin-top: auto; padding: 6px 0 0 12px; border-left: 2px solid var(--iap-accent); }
.iap-mission-fig-num { display: block; font-family: var(--iap-font-mono); font-weight: 600; font-size: 1.25rem; }
.iap-mission-fig-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--iap-ink-2); }

/* ---- Company sections: tablet and phone ---- */
@media (max-width: 1100px) {
  .iap-prod-grid { grid-template-columns: repeat(2, 1fr); }
  .iap-mission-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .iap-vision-grid, .iap-team-grid, .iap-ict { grid-template-columns: 1fr; }
  .iap-vision-radar { width: 110vw; right: -40%; opacity: 0.6; }
  .iap-values { grid-template-columns: repeat(3, 1fr); }
  .iap-team-media img { min-height: 280px; }
  .iap-pillars { grid-template-columns: 1fr; }
  .iap-pillar { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .iap-cust-grid { grid-template-columns: repeat(3, 1fr); }
  .iap-cust-item:nth-child(3) { border-right: 0; }
  .iap-cust-item:nth-child(-n+3) { border-bottom: 1px solid var(--iap-line); }
  .iap-svc-grid { grid-template-columns: 1fr; }
  .iap-ict-media img { min-height: 240px; }
  /* timeline turns vertical: dashed line on the left */
  .iap-timeline { grid-template-columns: 1fr; gap: 0; padding-left: 26px; }
  .iap-timeline::before { top: 6px; bottom: 6px; left: 5px; right: auto; border-top: 0; border-left: 1px dashed var(--iap-ink-2); }
  .iap-timeline li { flex-direction: row; gap: 14px; padding: 8px 0; }
  .iap-timeline li::before { top: 13px; left: -26px; }
  .iap-timeline-year { min-width: 52px; font-size: 1rem; }
  .iap-mission-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .iap-values { grid-template-columns: repeat(2, 1fr); }
  .iap-value:last-child { grid-column: 1 / -1; }
  .iap-cust-grid { grid-template-columns: repeat(2, 1fr); }
  .iap-cust-item:nth-child(3) { border-right: 1px solid var(--iap-line); }
  .iap-cust-item:nth-child(2n) { border-right: 0; }
  .iap-cust-item:nth-child(-n+4) { border-bottom: 1px solid var(--iap-line); }
  .iap-cust-item:last-child { grid-column: 1 / -1; }
  .iap-prod-grid, .iap-mission-grid { grid-template-columns: 1fr; }
  .iap-ict-list { grid-template-columns: 1fr; }
}

/* =====================================================================
 * Video button (hero), certificate links, and the two modals
 * (certificates viewer, YouTube video). Modals are near full screen,
 * dark like the hero, square corners, mono labels.
 * ===================================================================== */
.iap-hero-video {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(22px, 3vh, 34px);
  padding: 0;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}
.iap-hero-video-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--iap-accent-red);
  font-size: 1rem;
  transition: transform .25s var(--ease, ease);
}
.iap-hero-video-icon i { margin-left: 3px; }
.iap-hero-video-icon::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 61, 61, 0.55);
  animation: iap-ping 2.4s ease-out infinite;
}
@keyframes iap-ping {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
.iap-hero-video-text {
  font-family: var(--iap-font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 3px;
  transition: border-color .25s ease, color .25s ease;
}
.iap-hero-video:hover .iap-hero-video-icon { transform: scale(1.08); }
.iap-hero-video:hover .iap-hero-video-text { border-color: var(--iap-accent-2); color: var(--iap-accent-2); }

.iap-about-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.iap-textlink-btn { background: none; border: 0; border-bottom: 2px solid transparent; padding: 0 0 2px; font: inherit; font-weight: 700; cursor: pointer; }
.iap-textlink-light { color: var(--iap-accent-2); }
.iap-textlink-light:hover { border-color: var(--iap-accent-2); }

.iap-track-cert { align-items: center; flex-wrap: wrap; }
.iap-track-cert > span { flex: 1 1 320px; }
.iap-track-cert-btn { font-family: var(--iap-font-body); font-size: 0.85rem; padding: 11px 20px; }

/* ---- Modals ---- */
.iap-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5vw, 32px);
}
.iap-modal[hidden] { display: none; }
.iap-modal-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 10, 0.86); }
.iap-modal-box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1100px;
  max-height: 100%;
  background: var(--iap-ink);
  color: #fff;
  border-top: 2px solid var(--iap-accent);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: iap-modal-in .3s var(--ease, ease);
}
.iap-modal-certs .iap-modal-box { height: 100%; }
@keyframes iap-modal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.iap-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 2.5vw, 28px) 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.iap-modal-label { font-family: var(--iap-font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; color: var(--iap-accent-2); margin-bottom: 4px; }
.iap-modal-title { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); text-transform: uppercase; }
.iap-modal-close {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.iap-modal-close:hover { border-color: var(--iap-accent-red); background: var(--iap-accent-red); }
.iap-modal-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* certificates */
.iap-cert-tabs {
  display: flex;
  gap: 4px;
  padding: 10px clamp(16px, 2.5vw, 28px);
  overflow-x: auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.iap-cert-tab {
  flex: none;
  padding: 9px 14px;
  background: none;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.65);
  font-family: var(--iap-font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.iap-cert-tab span { color: var(--iap-accent-2); margin-right: 4px; }
.iap-cert-tab:hover { color: #fff; }
.iap-cert-tab.is-active { color: #fff; border-color: rgba(92,155,255,0.6); background: rgba(46,123,255,0.14); }
.iap-cert-stage { flex: 1; min-height: 0; overflow-y: auto; background: #1a1d23; }
.iap-cert { display: none; margin: 0; padding: clamp(14px, 2.5vw, 28px); }
.iap-cert.is-active { display: block; }
.iap-cert img {
  display: block;
  width: 100%;
  max-width: 780px;
  height: auto;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.iap-cert figcaption {
  max-width: 780px;
  margin: 14px auto 0;
  font-family: var(--iap-font-mono);
  font-size: 0.74rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}
.iap-cert-nav {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  transition: border-color .2s ease;
}
.iap-cert-nav:hover { border-color: var(--iap-accent-2); }
.iap-cert-count { font-family: var(--iap-font-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.75); }

/* video */
.iap-video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.iap-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 640px) {
  .iap-hero-video-icon { width: 46px; height: 46px; }
  .iap-hero-video-text { font-size: 0.72rem; }
  .iap-modal { padding: 0; }
  .iap-modal-box { height: 100%; border-top-width: 0; }
  .iap-modal-video .iap-modal-box { justify-content: center; }
}

/* ---------------------------------------------------------------------
 * 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-logo { height: 28px; width: auto; margin: 0 auto 12px; }
.iap-footer a { color: rgba(255,255,255,0.85); font-weight: 600; }
.iap-footer a:hover { color: var(--iap-accent-2); }

/* =====================================================================
 * Surveillance — the page's dark "sensor screen" band. Same fonts,
 * palette and mono labels as the rest, but set apart by a faint grid
 * background, a camera viewfinder on the photo (corner brackets,
 * crosshair, REC dot, scan line) and "SECTOR" tiles with corner ticks.
 * ===================================================================== */
.iap-surv {
  position: relative;
  overflow: hidden;
  background-color: var(--iap-ink);
  background-image:
    linear-gradient(rgba(92, 155, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 155, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #fff;
}
.iap-surv .iap-sec-title { color: #fff; }
.iap-surv .iap-sec-intro { color: rgba(255, 255, 255, 0.72); }

.iap-surv-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}

/* Viewfinder */
.iap-surv-scope {
  position: relative;
  margin: 0;
  min-height: 340px;
  overflow: hidden;
  background: #000;
}
.iap-surv-scope img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.iap-surv-scope::after { /* soft vignette so the HUD reads */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(6, 8, 12, 0) 45%, rgba(6, 8, 12, 0.55) 100%);
  pointer-events: none;
}
.iap-surv-corner {
  position: absolute;
  z-index: 2;
  width: 34px; height: 34px;
  border: 0 solid var(--iap-accent-2);
}
.iap-surv-corner.is-tl { top: 16px; left: 16px; border-top-width: 2px; border-left-width: 2px; }
.iap-surv-corner.is-tr { top: 16px; right: 16px; border-top-width: 2px; border-right-width: 2px; }
.iap-surv-corner.is-bl { bottom: 16px; left: 16px; border-bottom-width: 2px; border-left-width: 2px; }
.iap-surv-corner.is-br { bottom: 16px; right: 16px; border-bottom-width: 2px; border-right-width: 2px; }
.iap-surv-cross {
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}
.iap-surv-cross::before, .iap-surv-cross::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
}
.iap-surv-cross::before { left: 50%; top: -14px; bottom: -14px; width: 1px; }
.iap-surv-cross::after { top: 50%; left: -14px; right: -14px; height: 1px; }
.iap-surv-scan {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--iap-accent-2), transparent);
  box-shadow: 0 0 14px var(--iap-accent-2);
  opacity: 0.7;
  animation: iap-surv-scan 4.5s linear infinite;
}
@keyframes iap-surv-scan { from { top: 0; } to { top: 100%; } }
.iap-surv-hud {
  position: absolute;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--iap-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.iap-surv-hud.is-tl { top: 26px; left: 62px; }
.iap-surv-hud.is-tr { top: 26px; right: 62px; }
.iap-surv-hud.is-bl { bottom: 26px; left: 62px; color: var(--iap-accent-2); }
.iap-surv-rec {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--iap-accent-red);
  animation: iap-surv-blink 1.2s steps(2, start) infinite;
}
@keyframes iap-surv-blink { to { visibility: hidden; } }

/* Feature blocks */
.iap-surv-features { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 24px); }
.iap-surv-feat {
  position: relative;
  flex: 1;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--iap-accent);
  background: rgba(255, 255, 255, 0.03);
}
.iap-surv-idx { font-family: var(--iap-font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--iap-accent-2); }
.iap-surv-feat-title {
  margin: 10px 0 12px;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
  text-transform: uppercase;
  color: #fff;
}
.iap-surv-feat-text { font-size: 0.95rem; line-height: 1.7; color: rgba(255, 255, 255, 0.72); }
.iap-surv-readout {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}
.iap-surv-readout strong {
  font-family: var(--iap-font-display);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--iap-accent-2);
}
.iap-surv-readout span { font-family: var(--iap-font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.6); }

/* Sectors */
.iap-surv-areas-label {
  margin: clamp(48px, 6vw, 80px) 0 20px;
  font-family: var(--iap-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--iap-accent-2);
}
.iap-surv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12); /* 1px gaps read as grid lines */
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.iap-surv-area {
  position: relative;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--iap-ink);
  transition: background .3s ease;
}
.iap-surv-area::before, .iap-surv-area::after { /* corner ticks, light up on hover */
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 0 solid transparent;
  transition: border-color .3s ease;
}
.iap-surv-area::before { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.iap-surv-area::after { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }
.iap-surv-area:hover { background: #121722; }
/* Faded photo in the bottom-right corner, fading out toward the top-left */
.iap-surv-area { overflow: hidden; }
.iap-surv-area-bg {
  position: absolute;
  right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right bottom;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse 95% 100% at 100% 100%, #000 15%, rgba(0,0,0,0.5) 50%, transparent 80%);
  mask-image: radial-gradient(ellipse 95% 100% at 100% 100%, #000 15%, rgba(0,0,0,0.5) 50%, transparent 80%);
  pointer-events: none;
  transition: opacity .4s ease, transform .6s var(--ease, ease);
}
.iap-surv-area:hover .iap-surv-area-bg { opacity: 0.6; transform: scale(1.04); }
.iap-surv-area-head, .iap-surv-area-title, .iap-surv-area-list { position: relative; z-index: 1; }
.iap-surv-area::before, .iap-surv-area::after { z-index: 2; }
.iap-surv-area:hover::before, .iap-surv-area:hover::after { border-color: var(--iap-accent-2); }
.iap-surv-area-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.iap-surv-area-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(92, 155, 255, 0.5);
  color: var(--iap-accent-2);
  font-size: 1.05rem;
}
.iap-surv-area-num { font-family: var(--iap-font-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.5); }
.iap-surv-area-title {
  margin-bottom: 14px;
  font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.35rem);
  text-transform: uppercase;
  color: #fff;
}
.iap-surv-area-list { list-style: none; margin: 0; padding: 0; }
.iap-surv-area-list li {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.iap-surv-area-list li::before {
  content: "\203A";
  position: absolute; left: 2px; top: 6px;
  font-family: var(--iap-font-mono);
  color: var(--iap-accent-red);
}

@media (max-width: 960px) {
  .iap-surv-top { grid-template-columns: 1fr; }
  .iap-surv-scope { min-height: 0; aspect-ratio: 3 / 2; }
  .iap-surv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .iap-surv-grid { grid-template-columns: 1fr; }
  .iap-surv-hud.is-tr { display: none; }
  .iap-surv-hud.is-tl, .iap-surv-hud.is-bl { left: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .iap-surv-scan { animation: none; top: 50%; opacity: 0.35; }
  .iap-surv-rec { animation: none; }
}
