/*
 * PT Sembada Karya Mandiri — page-specific overrides on top of _base.css.
 *
 * Built from PT Intai Aero Perkasa's override file (same skeleton, same
 * interaction patterns — see subsidiaries-standalone-handoff.md §2/§5
 * and the sign-off discussion), re-skinned to read cooler and more
 * institutional/engineering-credible: --biru-royal (an existing brand
 * token, not a new color) replaces the electric-blue --accent as the
 * primary, everything else structural carries over unchanged.
 *
 * Deliberately NOT reusing the main site's --font-display/--font-body
 * — Archivo Black / IBM Plex Mono / Inter, same three families as Intai
 * Aero, scoped to .skm only so this doesn't affect that page or Biru
 * Waste Management's own override file. Consistent typography across
 * all 3 standalone pages is a deliberate subtle thread even without
 * shared chrome.
 *
 * Light theme, matching Intai Aero's 2026-08-11 revision (that page
 * moved off the original dark/full-page plan — see its own CSS header
 * for why). Hero is the one dark/photo moment; everything below it is
 * light. Full-bleed: hero, subsystem strip, gallery and the closing
 * band all span 100vw with no side padding. Text-heavy sections (about,
 * SKM MIT copy) cap an inner column for readability only.
 */

.skm {
  --skm-font-display: "Archivo Black", "Arial Black", "Arial Narrow", sans-serif;
  --skm-font-mono: "IBM Plex Mono", "Courier New", monospace;
  --skm-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --skm-bg: #f5f6f2;
  --skm-bg-2: #ffffff;
  --skm-ink: #0c0f14;
  --skm-ink-2: #4a4f58;
  --skm-line: #dee1da;
  /* --biru-royal (#14318c) instead of --accent's electric blue — this is
     the whole "cooler / institutional, not blurring with Intai Aero"
     move; an existing brand token per prompt.txt, not a new color. */
  --skm-accent: var(--biru-royal, #14318c);
  --skm-accent-2: #4d6fc4;
  /* red kept as-is (same value as Intai Aero) — it still reads as
     "alert/status" regardless of which page it's paired with, and
     having the base navy differ is what separates the two pages, not
     needing every accent to differ too */
  --skm-accent-red: #ff3d3d;
  --skm-accent-red-2: #ff7a7a;

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

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

.skm-full { width: 100%; }

/* reduced motion: kill everything animated, show content immediately */
@media (prefers-reduced-motion: reduce) {
  .skm * { 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
 * ------------------------------------------------------------------- */
.skm-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;
}
.skm-btn i { transition: transform .25s var(--ease, ease); font-size: 0.82em; }
.skm-btn:hover i { transform: translateX(3px); }
.skm-btn-primary {
  background: var(--skm-accent);
  color: #fff;
}
.skm-btn-primary:hover { background: #1e5fe0; transform: translateY(-1px); }
.skm-btn-outline {
  background: transparent;
  color: var(--skm-ink);
  border: 1.5px solid var(--skm-line);
}
.skm-btn-outline:hover { border-color: var(--skm-accent); color: var(--skm-accent); }

/* ---------------------------------------------------------------------
 * Topbar CTA — transparent/colorless background in both scroll states;
 * only the text (and hover lift) reacts. White text over the hero photo
 * when unscrolled, black text once the topbar goes solid white.
 * ------------------------------------------------------------------- */
.skm-btn-scroll {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid transparent;
}
.skm-topbar.is-scrolled .skm-btn-scroll {
  background: transparent;
  color: #000000;
  border-color: transparent;
}
.skm-btn-scroll:hover { transform: translateY(-1px); }

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

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

/* ---------------------------------------------------------------------
 * Topbar
 * ------------------------------------------------------------------- */
.skm-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;
}
.skm-topbar.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--skm-line);
  padding: 12px 0;
}
.skm-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;
}
.skm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  transition: color .35s ease;
}
.skm-topbar.is-scrolled .skm-logo { color: var(--skm-ink); }
.skm-logo-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--skm-accent);
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.skm-logo-text {
  font-family: var(--skm-font-display);
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.skm-nav {
  display: flex;
  gap: 30px;
  font-size: 0.86rem;
  font-weight: 600;
}
.skm-nav a {
  position: relative;
  color: #fff;
  transition: color .35s ease;
  padding-bottom: 4px;
}
.skm-topbar.is-scrolled .skm-nav a { color: var(--skm-ink-2); }
.skm-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--skm-accent);
  transition: width .25s var(--ease, ease);
}
.skm-nav a:hover { color: var(--skm-accent); }
.skm-nav a:hover::after { width: 100%; }
.skm-topbar-cta { flex-shrink: 0; }
.skm-nav-toggle {
  display: none;
  background: none; border: 0;
  color: #fff;
  font-size: 1.3rem;
}
.skm-topbar.is-scrolled .skm-nav-toggle { color: var(--skm-ink); }

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

/* ---------------------------------------------------------------------
 * Hero — the one dark/photo moment on the page
 * ------------------------------------------------------------------- */
.skm-hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--skm-ink);
  color: #fff;
}
.skm-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}
.skm-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%);
}
/* ---------------------------------------------------------------------
 * Sonar-ping — Intai Aero's radar-sweep signature element, same SVG
 * scaffolding (fixed-position rings + cross), swapped from a rotating
 * sweep to an expanding, fading ping ring: different physical metaphor
 * (sonar vs. radar), same restrained "single spot of motion" brief.
 * ------------------------------------------------------------------- */
.skm-radar {
  position: absolute;
  top: 50%; left: -8%;
  transform: translateY(-50%);
  width: min(60vw, 720px);
  height: auto;
  opacity: 0.5;
  pointer-events: none;
}
.skm-radar-ring {
  fill: none;
  stroke: rgba(255,255,255,0.14);
  stroke-width: 1;
}
.skm-radar-cross { stroke: rgba(255,255,255,0.08); stroke-width: 1; }
.skm-radar-ping {
  fill: none;
  stroke: var(--skm-accent-2);
  stroke-width: 2;
  transform-origin: 300px 300px;
  animation: skm-ping 3.6s ease-out infinite;
}
.skm-radar-ping.is-delay { animation-delay: 1.8s; }
@keyframes skm-ping {
  0%   { r: 20; opacity: 0.9; stroke-width: 3; }
  100% { r: 290; opacity: 0; stroke-width: 0.5; }
}

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

.skm-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(10px, 2vh, 20px) clamp(16px, 4vw, 44px) 0;
}
.skm-hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  /* fixed, not viewport-scaled — stays this size across desktop/tablet
     window widths instead of continuously growing/shrinking with vw;
     only steps down at the mobile breakpoints below */
  font-size: 7.6rem;
  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);
}
.skm-hero-title-accent { color: var(--skm-accent-2); }

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

@media (max-width: 900px) {
  .skm-hero-title { font-size: 5.6rem; }
}

@media (max-width: 640px) {
  .skm-hero-title { font-size: 3.6rem; line-height: 0.92; }
  .skm-radar { opacity: 0.22; }
  .skm-hero-info { display: none; }
}

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

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

/* ---------------------------------------------------------------------
 * Subsystem strip — Intai Aero's 4-photo capability tiles, restyled as
 * a console/schematic readout instead: numbered rows, mono type, thin
 * dividing lines, no photography. Closer to the Saab naval-systems
 * register than a lifestyle-photo grid — see handoff §2.
 * ------------------------------------------------------------------- */
.skm-cap { background: var(--skm-bg); padding: clamp(56px, 7vw, 96px) 0; }
.skm-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;
}
.skm-cap-title {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  text-transform: uppercase;
}
.skm-cap-strip {
  border-top: 1px solid var(--skm-line);
  max-width: 1000px;
  margin: 0 clamp(20px, 5vw, 64px);
}
@media (min-width: 1141px) {
  .skm-cap-strip { margin-left: auto; margin-right: auto; }
}
.skm-cap-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 22px 4px;
  border-bottom: 1px solid var(--skm-line);
}
.skm-cap-item-index {
  font-family: var(--skm-font-mono);
  font-size: 0.85rem;
  color: var(--skm-accent);
  letter-spacing: 0.04em;
}
.skm-cap-item-body {
  font-family: var(--skm-font-display);
  font-weight: 800;
  font-size: clamp(1rem, 0.85rem + 0.5vw, 1.3rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.skm-cap-item-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--skm-font-mono);
  font-size: 0.72rem;
  color: var(--skm-ink-2);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.skm-cap-item-tag i { color: var(--skm-accent); font-size: 0.85em; }

@media (max-width: 640px) {
  .skm-cap-item { grid-template-columns: 40px 1fr; }
  .skm-cap-item-tag { grid-column: 2; }
}

/* ---------------------------------------------------------------------
 * SKM MIT spotlight — Intai Aero's stat-block spotlight, restyled: the
 * media slot takes a ship-silhouette/system-integration diagram image
 * (img/naval/skm-mit.jpg) instead of a hardware photo, and a short
 * subsystem list replaces the numeric stat grid. No numeric specs are
 * published for SKM MIT (unlike Alap-Alap's MTOW/endurance/speed/range
 * figures), so this stays qualitative rather than inventing
 * defense-system numbers — swap in real figures here later if/when
 * they're available.
 * ------------------------------------------------------------------- */
.skm-spot {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  background: var(--skm-bg-2);
  gap: clamp(20px, 4vw, 60px);
}
.skm-spot-copy { padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 96px) clamp(20px, 5vw, 88px); }
.skm-spot-title { font-size: var(--h1, clamp(2.6rem, 1.1rem + 6vw, 5rem)); text-transform: uppercase; margin-bottom: 18px; }
.skm-spot-text { font-size: 1.05rem; line-height: 1.75; color: var(--skm-ink-2); max-width: 520px; margin-bottom: 40px; }

.skm-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 20px;
}
.skm-module { border-left: 2px solid var(--skm-accent); padding-left: 16px; }
.skm-module-name {
  display: block;
  font-family: var(--skm-font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, 0.8rem + 0.3vw, 1.1rem);
  text-transform: uppercase;
  color: var(--skm-ink);
}
.skm-module-desc {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--skm-ink-2);
}

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

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

/* ---------------------------------------------------------------------
 * Gallery — full-bleed large panels, carried over from Intai Aero as-is
 * (overrides _base.css's .sub-gallery small-tile grid for THIS page).
 * Reads as a schematic/spec-sheet strip here too, no changes needed.
 * ------------------------------------------------------------------- */
.skm-gallery-section { background: var(--skm-bg); padding-top: clamp(56px, 7vw, 96px); }
.skm-gallery-head { padding-bottom: clamp(24px, 3vw, 36px); }

.skm-gallery-section .sub-gallery {
  display: flex;
  width: 100%;
  height: clamp(360px, 60vh, 640px);
  gap: 0;
}
.skm-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);
}
.skm-gallery-section .sub-gallery-item:hover { flex-grow: 1.6; }
.skm-gallery-section .sub-gallery-item img {
  aspect-ratio: unset;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease, ease);
}
.skm-gallery-section .sub-gallery-item:hover img { transform: scale(1.05); }
.skm-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(--skm-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;
}
.skm-gallery-section .sub-gallery-item:hover::after { opacity: 1; transform: translateY(0); }

@media (max-width: 720px) {
  .skm-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. */
  .skm-gallery-section .sub-gallery-item { flex: 0 0 260px; height: 260px; }
  .skm-gallery-section .sub-gallery-item:hover { flex-grow: 0; }
}

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

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