/* Hallmark · theme: architectural-flagship (PT Hasnur Riung Sinergi executive posture) · genre: modern-minimal · signature: full-bleed-living-atrium + asymmetric-bento-schematics */
/* critique: eliminated repetitive 3D toy boxes; introduced integrated transparent-to-solid header, 100svh flush hero with capability dock, editorial portrait spread, photorealistic service showcase, and asymmetric 7/5 bento schematics */

:root {
  --color-brand: #1e429f;
  --color-brand-hover: #153178;
  --color-brand-tint: #eef3fc;
  --color-accent-line: #3b76f6;
  --color-emerald: #10b981;
  --color-navy-950: #050b1a;
  --color-navy-900: #09142e;
  --color-navy-850: #0f1f44;
  --color-ink-900: #0c1424;
  --color-ink-700: #2a364d;
  --color-ink-600: #47556e;
  --color-ink-500: #64738c;
  --color-border: #dce3f0;
  --color-border-strong: #b9c6de;
  --color-surface: #fbfcff;
  --color-surface-alt: #f2f5fc;
  --color-accent-ink: #f7f9ff;
  --color-hero-muted: rgba(247, 249, 255, 0.82);
  --color-hero-dim: rgba(247, 249, 255, 0.58);
  --color-hero-line: rgba(247, 249, 255, 0.16);
  --color-hero-dock: rgba(5, 11, 26, 0.72);
  --color-hero-dock-hover: rgba(15, 31, 68, 0.84);
  --color-hero-scrim-start: rgba(5, 11, 26, 0.92);
  --color-hero-scrim-mid: rgba(9, 20, 46, 0.7);
  --color-hero-scrim-end: rgba(9, 20, 46, 0.28);
  --color-hero-top-scrim: rgba(5, 11, 26, 0.68);
  --color-card-vignette: rgba(5, 11, 26, 0.64);
  --color-footer-text: rgba(247, 249, 255, 0.76);
  --color-footer-muted: rgba(247, 249, 255, 0.5);
  --color-footer-border: rgba(247, 249, 255, 0.14);
  --color-outline-img: rgba(0, 0, 0, 0.1);
  --color-sheen: rgba(247, 249, 255, 0.22);
  --color-shadow-ambient: rgba(12, 20, 36, 0.06);
  --color-shadow-deep: rgba(9, 20, 46, 0.14);
  --color-focus: #2563eb;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-subtle: 0 4px 16px var(--color-shadow-ambient);
  --shadow-elevated: 0 20px 40px var(--color-shadow-deep);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --col-gap: 24px;
  --nav-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  overflow-x: clip;
  font-size: 16px;
  scrollbar-color: var(--color-border-strong) var(--color-surface);
}

body {
  font-family: var(--font-sans);
  color: var(--color-ink-700);
  background-color: var(--color-surface);
  caret-color: var(--color-brand);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--color-brand);
  color: var(--color-accent-ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

main section[tabindex='-1']:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section Rhythm ---------- */
.section {
  padding: 64px 0;
}

.section-alt {
  background-color: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.9rem, 3.3vw, 2.65rem);
  font-weight: 800;
  color: var(--color-ink-900);
  line-height: 1.14;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  text-wrap: balance;
  min-width: 0;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.04rem;
  color: var(--color-ink-600);
  line-height: 1.65;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.btn:not(:disabled):active {
  transform: scale(0.96);
}

.btn-primary {
  background-color: var(--color-brand);
  color: var(--color-accent-ink);
}

.btn-ghost-light {
  background-color: transparent;
  color: var(--color-accent-ink);
  border-color: var(--color-hero-line);
}

@media (hover: hover) {
  .btn-primary:hover {
    background-color: var(--color-brand-hover);
  }

  .btn-ghost-light:hover {
    background-color: var(--color-accent-ink);
    color: var(--color-navy-900);
    border-color: var(--color-accent-ink);
  }
}

/* ---------- Integrated Fixed Header (Transparent -> Solid) ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  color: var(--color-accent-ink);
  border-bottom: 1px solid var(--color-hero-line);
  transition: background-color 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out), color 240ms var(--ease-out);
}

.navbar.scrolled {
  background-color: var(--color-surface);
  color: var(--color-ink-900);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-subtle);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-accent-line);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 10;
}

.navbar.scrolled .scroll-progress {
  background-color: var(--color-brand);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  padding: 2px;
  flex-shrink: 0;
  object-fit: contain;
  background-color: transparent;
  filter: brightness(0) invert(1);
  transition: transform 240ms var(--ease-out), filter 240ms var(--ease-out);
}

.navbar.scrolled .brand-logo {
  filter: none;
}

@media (hover: hover) {
  .brand:hover .brand-logo {
    transform: scale(1.04);
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--color-accent-ink);
  line-height: 1.2;
  transition: color 240ms var(--ease-out);
}

.navbar.scrolled .brand-name {
  color: var(--color-navy-900);
}

.brand-tagline {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-hero-muted);
  transition: color 240ms var(--ease-out);
}

.navbar.scrolled .brand-tagline {
  color: var(--color-ink-600);
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-hero-muted);
  padding: 8px 0;
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--color-ink-700);
}

.nav-links a.active {
  color: var(--color-accent-ink);
}

.navbar.scrolled .nav-links a.active {
  color: var(--color-brand);
}

@media (hover: hover) {
  .nav-links a:hover {
    color: var(--color-accent-ink);
  }

  .navbar.scrolled .nav-links a:hover {
    color: var(--color-brand);
  }
}

.nav-indicator {
  display: none;
}

.js-motion .nav-indicator {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 48px;
  background-color: var(--color-accent-line);
  transform-origin: left center;
  transform: translate3d(0, 0, 0) scaleX(0);
  transition: transform 260ms var(--ease-out), opacity 180ms var(--ease-out), background-color 240ms var(--ease-out);
  opacity: 0;
  pointer-events: none;
}

.navbar.scrolled .nav-indicator {
  background-color: var(--color-brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent-ink);
  padding: 8px 16px;
  border: 1px solid var(--color-hero-line);
  border-radius: var(--radius-sm);
}

.navbar.scrolled .nav-link-cta {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

@media (hover: hover) {
  .nav-link-cta:hover {
    background-color: var(--color-accent-ink);
    color: var(--color-navy-900);
    border-color: var(--color-accent-ink);
  }

  .navbar.scrolled .nav-link-cta:hover {
    background-color: var(--color-brand);
    color: var(--color-accent-ink);
    border-color: var(--color-brand);
  }
}

.mobile-toggle {
  display: none;
  background-color: transparent;
  border: 1px solid var(--color-hero-line);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--color-accent-ink);
}

.navbar.scrolled .mobile-toggle {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-ink-900);
}

/* ---------- Full-Viewport Cinematic Hero + Capability Dock ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--color-navy-950);
  color: var(--color-accent-ink);
  padding-top: 80px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-live-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.06);
  will-change: transform;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroFadeIn 1100ms var(--ease-out) both;
}

.hero-live-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes heroFadeIn {
  from {
    opacity: 0.65;
  }

  to {
    opacity: 1;
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--color-hero-top-scrim) 0%, transparent 24%),
    linear-gradient(96deg, var(--color-hero-scrim-start) 0%, var(--color-hero-scrim-mid) 50%, var(--color-hero-scrim-end) 100%);
  z-index: 1;
}

.hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex: 1;
  padding-top: 16px;
  padding-bottom: 24px;
}

.hero-inner {
  max-width: 720px;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-rule {
  width: 56px;
  height: 4px;
  background-color: var(--color-accent-line);
  margin-bottom: 16px;
  transform-origin: left center;
  animation: ruleGrow 640ms var(--ease-out) both;
}

@keyframes ruleGrow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.hero-title {
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
  text-wrap: balance;
  min-width: 0;
  margin-bottom: 16px;
  animation: heroReveal 600ms var(--ease-out) 80ms both;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--color-hero-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 560px;
  animation: heroReveal 600ms var(--ease-out) 160ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: heroReveal 600ms var(--ease-out) 240ms both;
}

/* Bottom Architectural Capability Strip (HRS Flagship Signature) */
.hero-dock {
  position: relative;
  z-index: 2;
  background-color: var(--color-hero-dock);
  border-top: 1px solid var(--color-hero-line);
}

.hero-dock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-dock-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  color: var(--color-accent-ink);
  border-right: 1px solid var(--color-hero-line);
  transition: background-color 200ms var(--ease-out);
}

.hero-dock-item:first-child {
  padding-left: 0;
}

.hero-dock-item:last-child {
  padding-right: 0;
  border-right: none;
}

@media (hover: hover) {
  .hero-dock-item:hover {
    background-color: var(--color-hero-dock-hover);
  }
}

.dock-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-line);
  padding-top: 4px;
}

.dock-copy strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.dock-copy span {
  display: block;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--color-hero-dim);
}

/* ---------- Profil: Editorial Annual-Report Spread ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.24fr);
  gap: var(--col-gap);
  align-items: center;
}

.about-editorial {
  position: relative;
  padding-right: 24px;
}

.about-portrait-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-navy-950);
  outline: 1px solid var(--color-outline-img);
  outline-offset: -1px;
  box-shadow: var(--shadow-elevated);
  transform-style: preserve-3d;
  transition: transform 280ms var(--ease-out);
}

.about-portrait {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: top center;
  transition: transform 560ms var(--ease-out);
}

.about-portrait-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, var(--color-sheen) 50%, transparent 70%);
  transform: translate3d(-120%, 0, 0);
  pointer-events: none;
  transition: transform 760ms var(--ease-out);
}

@media (hover: hover) {
  .about-portrait-frame:hover .about-portrait {
    transform: scale(1.03);
  }

  .about-portrait-frame:hover .about-portrait-sheen {
    transform: translate3d(120%, 0, 0);
  }
}

.about-signature {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 2px solid var(--color-ink-900);
}

.about-signature strong {
  display: block;
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--color-ink-900);
}

.about-signature span {
  font-size: 0.88rem;
  color: var(--color-ink-600);
}

.about-meta-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-brand);
}

.about-narrative {
  padding-left: 24px;
}

.vm-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--col-gap);
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.vm-col {
  position: relative;
}

.vm-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: 8px;
}

.vm-col h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--color-ink-900);
  margin-bottom: 8px;
}

.vm-col p {
  font-size: 0.94rem;
  color: var(--color-ink-600);
}

/* ---------- Layanan: Photorealistic Editorial Cards + Smart Trigger ---------- */
.layanan-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.layanan-head-row .section-header {
  margin-bottom: 0;
}

.segmented-tabs {
  position: relative;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.segmented-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background-color: var(--color-navy-900);
  border-radius: 4px;
  transform: translate3d(0, 0, 0);
  transition: transform 280ms var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.segmented-tabs[data-active='hvac'] .segmented-thumb {
  transform: translate3d(100%, 0, 0);
}

.filter-btn {
  position: relative;
  z-index: 1;
  padding: 8px 20px;
  border: none;
  background-color: transparent;
  color: var(--color-ink-700);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 200ms var(--ease-out);
}

.filter-btn.active {
  color: var(--color-accent-ink);
}

.kbli-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
  perspective: 1100px;
}

.kbli-grid[data-count='2'] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kbli-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  transition: transform 260ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.kbli-card.is-3d-active {
  will-change: transform;
  transition: opacity 520ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .kbli-card:hover {
    border-color: var(--color-brand);
    box-shadow: var(--shadow-elevated);
  }
}

.kbli-card.hidden {
  display: none;
}

.kbli-card.filter-enter {
  animation: filterPop 320ms var(--ease-out) both;
}

@keyframes filterPop {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.service-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-navy-950);
  color: var(--color-accent-ink);
  outline: 1px solid var(--color-outline-img);
  outline-offset: -1px;
}

.service-live-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.08);
  transform-origin: center center;
  will-change: transform;
}

.service-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kbli-card[data-scene='repair'] .service-photo {
  object-position: center 46%;
}

.service-live-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.service-photo-sheen {
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg,
      transparent 34%,
      rgba(247, 249, 255, 0.2) 48%,
      rgba(147, 197, 253, 0.14) 52%,
      transparent 66%);
  transform: translate3d(-65%, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease-out);
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .kbli-card:hover .service-photo-sheen {
    opacity: 1;
  }
}

.service-photo-num {
  position: absolute;
  bottom: 12px;
  left: 16px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-ink);
  background-color: var(--color-card-vignette);
  border: 1px solid rgba(247, 249, 255, 0.16);
  backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: 4px;
  will-change: transform;
}

.kbli-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
}

.kbli-card h3 {
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--color-ink-900);
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.kbli-card p {
  font-size: 0.92rem;
  color: var(--color-ink-600);
  line-height: 1.55;
  text-wrap: pretty;
  margin-bottom: 20px;
}

.kbli-scope {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-bottom: 20px;
  font-size: 0.86rem;
  color: var(--color-ink-600);
}

.kbli-scope li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.kbli-scope li:last-child {
  margin-bottom: 0;
}

.kbli-scope li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 2px;
  background-color: var(--color-brand);
}

.service-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-brand);
  cursor: pointer;
  align-self: flex-start;
}

.service-select-btn svg {
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) {
  .service-select-btn:hover svg {
    transform: translate3d(4px, 0, 0);
  }
}

/* ---------- Keunggulan: Asymmetric 12-Col Bento + Real-Time 3D Schematics ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--col-gap);
  perspective: 1100px;
}

.bento-span-7 {
  grid-column: span 7;
}

.bento-span-5 {
  grid-column: span 5;
}

.bento-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--col-gap);
  align-items: center;
  transform-origin: center center;
  transition: border-color 220ms var(--ease-out), box-shadow 260ms var(--ease-out), transform 240ms var(--ease-out);
}

.bento-card.is-3d-active {
  will-change: transform;
  transition: opacity 520ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.bento-span-5.bento-card {
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
  gap: 18px;
}

@media (hover: hover) and (pointer: fine) {
  .bento-card:hover {
    border-color: var(--color-brand);
    box-shadow: var(--shadow-elevated);
  }
}

.bento-copy {
  min-width: 0;
}

.bento-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: 12px;
}

.bento-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-ink-900);
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 0.94rem;
  color: var(--color-ink-600);
  line-height: 1.55;
  text-wrap: pretty;
}

.bento-schematic {
  position: relative;
  width: 100%;
  height: 136px;
  background:
    radial-gradient(circle at 50% 42%, rgba(59, 130, 246, 0.22) 0%, transparent 68%),
    linear-gradient(150deg, #061024 0%, #0b1c3d 58%, #102854 100%);
  border: 1px solid rgba(59, 118, 246, 0.28);
  box-shadow: inset 0 1px 0 rgba(247, 249, 255, 0.12), 0 8px 20px rgba(9, 20, 46, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  overflow: hidden;
  transition: border-color 220ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.bento-schematic::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: center center;
  pointer-events: none;
  z-index: 0;
}

@media (hover: hover) and (pointer: fine) {
  .bento-card:hover .bento-schematic {
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: inset 0 1px 0 rgba(247, 249, 255, 0.2), 0 12px 26px rgba(15, 31, 68, 0.22);
  }
}

.bento-3d-canvas {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.bento-schematic.is-3d-ready .bento-3d-canvas {
  display: block;
}

.bento-schematic.is-3d-ready svg {
  display: none;
}

.bento-schem-sheen {
  position: absolute;
  inset: -25%;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgba(247, 249, 255, 0.16) 49%,
    rgba(125, 211, 252, 0.12) 52%,
    transparent 65%
  );
  transform: translate3d(-65%, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-out);
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .bento-card:hover .bento-schem-sheen {
    opacity: 1;
  }
}

.bento-schematic svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 220px;
}

/* Schematic Micro-Animations */
.schem-ring {
  transform-origin: center;
  transition: transform 520ms var(--ease-out);
}

.schem-bar {
  transform-origin: left center;
  transition: transform 360ms var(--ease-out);
}

.schem-needle {
  transform-origin: 110px 68px;
  transition: transform 480ms var(--ease-out);
}

.schem-pulse {
  transform-origin: center;
  animation: subtlePulse 3.2s ease-in-out infinite;
}

@keyframes subtlePulse {

  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

@media (hover: hover) {
  .bento-card:hover .schem-ring {
    transform: rotate(28deg);
  }

  .bento-card:hover .schem-bar {
    transform: scaleX(1.08);
  }

  .bento-card:hover .schem-needle {
    transform: rotate(52deg);
  }
}

/* ---------- Alur Kerja Proyek (SOP 4 Tahap + Ambient Laminar Canvas) ---------- */
.section-dark {
  position: relative;
  background-color: var(--color-navy-950);
  color: var(--color-accent-ink);
  overflow: hidden;
}

.sop-ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.section-dark .container {
  position: relative;
  z-index: 1;
}

.section-dark .section-title {
  color: var(--color-accent-ink);
}

.section-dark .section-subtitle {
  color: var(--color-hero-muted);
}

.sop-track {
  position: relative;
}

.sop-rail {
  position: relative;
  width: 100%;
  height: 4px;
  background-color: var(--color-footer-border);
  margin-bottom: 32px;
  overflow: hidden;
  border-radius: 999px;
}

.sop-rail-fill {
  width: 100%;
  height: 100%;
  background-color: var(--color-accent-line);
  transform-origin: left center;
  transform: scaleX(1);
}

.js-motion .sop-rail-fill {
  transform: scaleX(0);
  transition: transform 840ms var(--ease-out);
}

.js-motion .sop-track.is-visible .sop-rail-fill {
  transform: scaleX(1);
}

.sop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--col-gap);
}

.sop-step {
  background-color: var(--color-navy-900);
  color: var(--color-accent-ink);
  border: 1px solid var(--color-footer-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 240ms var(--ease-out), border-color 200ms var(--ease-out);
}

.sop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(247, 249, 255, 0.08);
}

.sop-num {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-line);
}

.sop-icon {
  color: var(--color-hero-muted);
  transition: color 200ms var(--ease-out), transform 240ms var(--ease-out);
}

.sop-step h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--color-accent-ink);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.sop-step p {
  font-size: 0.91rem;
  line-height: 1.56;
  color: var(--color-hero-muted);
  text-wrap: pretty;
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 769px) {
    .sop-step {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      row-gap: 0;
      align-items: start;
    }

    .kbli-card:not(.hidden) {
      display: grid;
      grid-row: span 5;
      grid-template-rows: subgrid;
      row-gap: 0;
    }

    .kbli-body {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 0;
      align-items: start;
    }

    .service-select-btn {
      align-self: end;
      justify-self: start;
    }
  }
}

@media (hover: hover) {
  .sop-step:hover {
    transform: translate3d(0, -4px, 0);
    border-color: var(--color-accent-line);
  }

  .sop-step:hover .sop-icon {
    color: var(--color-accent-ink);
  }
}

/* ---------- Kontak & Lokasi ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--col-gap);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.contact-row {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  background-color: var(--color-surface);
  transition: border-color 200ms var(--ease-out), transform 220ms var(--ease-out);
}

@media (hover: hover) {
  .contact-row:hover {
    border-color: var(--color-brand);
    transform: translate3d(4px, 0, 0);
  }
}

.contact-row h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-ink-900);
  margin-bottom: 4px;
}

.contact-row p,
.contact-row a {
  font-size: 0.93rem;
  color: var(--color-ink-600);
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-brand);
}

@media (hover: hover) {

  .contact-row a:hover,
  .map-link:hover {
    color: var(--color-brand-hover);
  }
}

.contact-form-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color 300ms var(--ease-out);
}

.contact-form-panel.is-highlighted {
  border-color: var(--color-brand);
}

.contact-form-panel h3 {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--color-ink-900);
  margin-bottom: 8px;
}

.contact-form-panel>p {
  font-size: 0.92rem;
  color: var(--color-ink-600);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-grid .form-group {
  margin-bottom: 0;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-ink-700);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.94rem;
  color: var(--color-ink-900);
  background-color: var(--color-surface-alt);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.form-control:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
  background-color: var(--color-surface);
  border-color: var(--color-brand);
}

textarea.form-control {
  resize: vertical;
  min-height: 108px;
}

.submit-full {
  width: 100%;
}

/* ---------- Asymmetric Corporate Footer ---------- */
.footer {
  background-color: var(--color-navy-950);
  color: var(--color-footer-text);
  border-top: 1px solid var(--color-footer-border);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--col-gap);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-footer-border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 36px;
  width: auto;
  background-color: transparent;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand h3 {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--color-accent-ink);
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-footer-text);
  max-width: 380px;
}

.footer h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--color-accent-ink);
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

@media (hover: hover) {
  .footer-links a:hover {
    color: var(--color-accent-ink);
  }
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--color-footer-muted);
}

/* ---------- Floating Right-Corner Ecosystem Widget (Portofolio & Website Layanan) ---------- */
.eco-widget {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 995;
}

.eco-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  background: linear-gradient(145deg, var(--color-navy-900) 0%, var(--color-navy-850) 100%);
  color: var(--color-accent-ink);
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(5, 11, 26, 0.28), inset 0 1px 0 rgba(247, 249, 255, 0.14);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 220ms var(--ease-out), background-color 180ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.eco-trigger:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .eco-trigger:hover {
    transform: translate3d(0, -2px, 0);
    border-color: rgba(96, 165, 250, 0.72);
    box-shadow: 0 16px 34px rgba(5, 11, 26, 0.36), inset 0 1px 0 rgba(247, 249, 255, 0.22);
  }
  .eco-trigger:hover:active {
    transform: scale(0.96);
  }
}

.eco-trigger-icon {
  color: #93c5fd;
  flex-shrink: 0;
}

.eco-trigger-label {
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.eco-panel {
  position: fixed;
  inset: auto;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(max(20px, env(safe-area-inset-bottom, 0px)) + 58px);
  margin: 0;
  width: min(384px, calc(100vw - 32px));
  max-height: calc(100dvh - var(--nav-height) - 96px);
  display: none;
  flex-direction: column;
  background-color: var(--color-surface);
  color: var(--color-ink-700);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(5, 11, 26, 0.22);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.96);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), display 200ms var(--ease-out), overlay 200ms var(--ease-out);
  transition-behavior: allow-discrete;
  z-index: 996;
}

.eco-panel:is(:popover-open, .is-open) {
  display: flex;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@starting-style {
  .eco-panel:is(:popover-open, .is-open) {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.96);
  }
}

.eco-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  background: linear-gradient(155deg, var(--color-navy-950) 0%, var(--color-navy-900) 100%);
  color: var(--color-accent-ink);
  border-bottom: 1px solid rgba(247, 249, 255, 0.1);
}

.eco-panel-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--color-accent-ink);
  margin-bottom: 4px;
}

.eco-panel-sub {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--color-hero-muted);
  text-wrap: pretty;
}

.eco-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(247, 249, 255, 0.16);
  background-color: rgba(247, 249, 255, 0.06);
  color: var(--color-hero-muted);
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.eco-close:active {
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .eco-close:hover {
    background-color: rgba(247, 249, 255, 0.16);
    color: var(--color-accent-ink);
  }
}

.eco-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 14px;
  background-color: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}

.eco-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--color-ink-600);
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.eco-tab.active {
  background-color: var(--color-surface);
  color: var(--color-ink-900);
  border-color: var(--color-border);
  box-shadow: 0 2px 6px var(--color-shadow-ambient);
}

@media (hover: hover) and (pointer: fine) {
  .eco-tab:not(.active):hover {
    color: var(--color-ink-900);
    background-color: rgba(255, 255, 255, 0.55);
  }
}

.eco-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: min(360px, calc(100dvh - 240px));
}

.eco-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.eco-item.hidden {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .eco-item:hover {
    border-color: var(--color-brand);
    background-color: #f8faff;
    transform: translate3d(0, -2px, 0);
    box-shadow: var(--shadow-subtle);
  }
  .eco-item:hover .eco-arrow {
    color: var(--color-brand);
    transform: translate3d(2px, -2px, 0);
  }
}

.eco-item-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eco-item-copy {
  min-width: 0;
}

.eco-item-copy strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-ink-900);
  margin-bottom: 2px;
}

.eco-item-copy span {
  display: block;
  font-size: 0.81rem;
  line-height: 1.45;
  color: var(--color-ink-600);
  text-wrap: pretty;
}

.eco-item-copy .eco-domain {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-brand);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eco-arrow {
  flex-shrink: 0;
  color: var(--color-ink-500);
  transition: transform 180ms var(--ease-out), color 180ms var(--ease-out);
}

/* ---------- Scroll Reveal Choreography ---------- */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}

.js-motion [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .hero-live-wrap,
  .hero-img,
  .service-live-stage,
  .service-photo-num,
  .bento-card {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 1025px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  html {
    scroll-snap-type: y mandatory;
  }

  #beranda,
  .section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .footer {
    scroll-snap-align: end;
  }
}

@media (min-width: 1025px) {
  .section {
    min-height: calc(100svh - var(--nav-height));
    padding-top: clamp(20px, 3.8svh, 52px);
    padding-bottom: clamp(24px, 4.2svh, 60px);
  }

  main>.section:not(#layanan) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
  }

  .section .section-header {
    margin-bottom: clamp(18px, 3svh, 36px);
  }

  .layanan-head-row .section-header {
    margin-bottom: 0;
  }

  .section .section-title {
    font-size: clamp(1.65rem, min(2.9vw, 4.3svh), 2.4rem);
    margin-bottom: 6px;
  }

  .section .section-subtitle {
    font-size: clamp(0.92rem, 1.9svh, 1rem);
    line-height: 1.5;
  }

  /* Profil */
  .about-portrait {
    max-height: clamp(290px, 55svh, 460px);
  }

  .about-signature {
    padding-top: 16px;
    margin-top: 16px;
  }

  .vm-columns {
    margin-top: clamp(24px, 4svh, 36px);
    padding-top: clamp(20px, 3.2svh, 28px);
  }

  /* Layanan */
  .layanan-head-row {
    margin-bottom: clamp(16px, 2.6svh, 30px);
  }

  .service-photo-wrap {
    aspect-ratio: auto;
    height: clamp(120px, 23svh, 204px);
  }

  .kbli-grid[data-count='2'] .service-photo-wrap {
    height: clamp(144px, 28.5svh, 244px);
  }

  .kbli-body {
    padding: clamp(14px, 2.2svh, 22px) 22px;
  }

  .kbli-card h3 {
    font-size: clamp(1rem, 1.08vw, 1.12rem);
    margin-bottom: 6px;
  }

  .kbli-card p {
    font-size: 0.89rem;
    line-height: 1.5;
    margin-bottom: clamp(10px, 1.6svh, 16px);
  }

  .kbli-scope {
    padding-top: clamp(10px, 1.5svh, 14px);
    margin-bottom: clamp(10px, 1.6svh, 18px);
    font-size: 0.85rem;
    line-height: 1.48;
  }

  .kbli-scope li {
    margin-bottom: clamp(4px, 0.75svh, 7px);
  }

  /* Keunggulan (Bento) */
  .bento-grid {
    gap: clamp(16px, 2.4svh, 24px);
  }

  .bento-card {
    padding: clamp(18px, 2.8svh, 28px) 26px;
  }

  .bento-span-5.bento-card {
    padding-inline: 24px;
  }

  .bento-card h3 {
    font-size: clamp(1.04rem, 1.15vw, 1.16rem);
    margin-bottom: 6px;
  }

  .bento-card p {
    font-size: 0.9rem;
    line-height: 1.52;
  }

  .bento-schematic {
    height: clamp(100px, 16svh, 132px);
  }

  /* Alur Kerja (SOP) */
  .sop-rail {
    margin-bottom: clamp(20px, 3svh, 28px);
  }

  .sop-step {
    padding: clamp(20px, 3svh, 28px) 22px;
  }

  /* Kontak */
  .contact-list {
    margin-top: clamp(16px, 2.6svh, 28px);
    gap: clamp(10px, 1.5svh, 14px);
  }

  .contact-row {
    padding: clamp(12px, 1.9svh, 18px) 20px;
  }

  .contact-form-panel {
    padding: clamp(20px, 3svh, 32px);
  }

  .contact-form-panel>p {
    margin-bottom: clamp(12px, 1.8svh, 20px);
  }

  .form-grid {
    gap: clamp(10px, 1.5svh, 14px);
    margin-bottom: clamp(12px, 1.8svh, 16px);
  }

  .form-group label {
    margin-bottom: 5px;
  }

  .form-control {
    padding: clamp(8px, 1.3svh, 11px) 14px;
  }

  textarea.form-control {
    min-height: clamp(64px, 10svh, 96px);
  }
}

@media (max-height: 680px) and (min-width: 769px) {
  :root {
    --nav-height: 64px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-main {
    padding-top: 12px;
    padding-bottom: 16px;
  }

  .hero-rule {
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 3.2vw, 2.65rem);
    margin-bottom: 12px;
  }

  .hero-desc {
    font-size: 0.98rem;
    margin-bottom: 20px;
  }

  .hero-dock-item {
    padding: 16px 20px;
  }

  .hero-dock-item:first-child {
    padding-left: 0;
  }

  .hero-dock-item:last-child {
    padding-right: 0;
  }
}

@media (max-width: 1024px) {
  html {
    scroll-snap-type: y proximity;
    scroll-padding-top: calc(var(--nav-height) + 16px);
  }

  #beranda,
  .section,
  .kbli-card,
  .bento-card,
  .sop-step,
  .contact-form-panel {
    scroll-snap-align: start;
  }

  .footer {
    scroll-snap-align: end;
  }

  .section {
    padding: 52px 0 64px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-editorial,
  .about-narrative {
    padding-left: 0;
    padding-right: 0;
  }

  .bento-span-7,
  .bento-span-5 {
    grid-column: span 6;
  }

  .bento-card,
  .bento-span-5.bento-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .kbli-grid,
  .sop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    background-color: var(--color-navy-950);
  }

  .navbar.scrolled {
    background-color: var(--color-surface);
  }

  .nav-links,
  .nav-actions .nav-link-cta,
  .nav-indicator {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    padding: 20px 24px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
    align-items: flex-start;
    overscroll-behavior: contain;
  }

  .nav-links.open a {
    color: var(--color-ink-900);
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .hero-dock-grid,
  .vm-columns,
  .kbli-grid,
  .kbli-grid[data-count='2'],
  .bento-grid,
  .sop-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-span-7,
  .bento-span-5 {
    grid-column: span 1;
  }

  .hero-dock-item {
    border-right: none;
    border-bottom: 1px solid var(--color-hero-line);
    padding: 16px 0;
  }

  .hero-dock-item:last-child {
    border-bottom: none;
  }

  .segmented-tabs {
    width: 100%;
  }

  .filter-btn {
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .section {
    padding: 44px 0 56px;
  }
  .eco-widget {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }
  .eco-trigger {
    padding: 9px 14px;
    font-size: 0.83rem;
  }
  .eco-panel {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(max(14px, env(safe-area-inset-bottom, 0px)) + 54px);
    width: calc(100vw - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }
}