/* =========================================================
   KESMAKSAN — Professional Industrial Website
   No external CSS/framework dependency
   ========================================================= */

:root {
  --navy-950: #06111f;
  --navy-900: #081a2d;
  --navy-850: #0c2138;
  --navy-800: #102a46;
  --blue-700: #b51218;
  --blue-600: #d71920;
  --blue-500: #e5252b;
  --blue-400: #ff5b60;
  --red-600: #d94430;
  --red-500: #ed513b;
  --steel-900: #26313d;
  --steel-700: #516173;
  --steel-600: #657487;
  --steel-500: #8190a1;
  --steel-300: #cbd3dc;
  --steel-200: #dfe5eb;
  --steel-150: #e9edf1;
  --steel-100: #f2f5f7;
  --white: #ffffff;
  --success: #1a8a5a;
  --warning: #b7770d;
  --shadow-sm: 0 10px 24px rgba(6, 17, 31, 0.07);
  --shadow-md: 0 22px 52px rgba(6, 17, 31, 0.12);
  --shadow-lg: 0 32px 80px rgba(6, 17, 31, 0.24);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --container: 1240px;
  --header-height: 82px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--steel-900);
  background: var(--white);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--navy-900);
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5.75rem);
}

h2 {
  font-size: clamp(2.15rem, 4.1vw, 4rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  color: var(--white);
  background: var(--blue-600);
}

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 8px;
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(calc(100% - 40px), 900px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(72px, 8vw, 124px) 0;
}

.section--compact {
  padding: clamp(56px, 6vw, 84px) 0;
}

.section--muted {
  background: var(--steel-100);
}

.section--dark {
  color: #d9e2ec;
  background: var(--navy-950);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--grid {
  overflow: hidden;
}

.section--grid::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(215, 25, 32, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 25, 32, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.section--grid > .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--blue-600);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: currentColor;
}

.eyebrow--light {
  color: var(--blue-400);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-heading h2 {
  max-width: 800px;
  margin-bottom: 0;
}

.section-heading p {
  max-width: 600px;
  margin: 0;
  color: var(--steel-700);
  font-size: 1.06rem;
}

.section--dark .section-heading p {
  color: #aebdcb;
}

.text-lead {
  color: var(--steel-700);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.85;
}

.text-blue {
  color: var(--blue-500);
}

.text-red {
  color: var(--red-500);
}

.kicker {
  color: var(--steel-600);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Utility bar & header */
.utility-bar {
  position: relative;
  z-index: 1001;
  color: #d6e0ea;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.utility-bar__inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: .78rem;
}

.utility-bar__group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s ease;
}

.utility-item:hover {
  color: var(--white);
}

.utility-item svg {
  width: 15px;
  height: 15px;
  color: var(--blue-400);
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(8, 26, 45, .08);
  backdrop-filter: blur(18px);
  transition: box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 34px rgba(6, 17, 31, .09);
}

.site-header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: 255px;
  height: auto;
}

.primary-nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 5px;
}

.primary-nav > a {
  position: relative;
  display: inline-flex;
  height: 100%;
  align-items: center;
  padding: 0 13px;
  color: var(--navy-900);
  font-size: .88rem;
  font-weight: 750;
  letter-spacing: .015em;
}

.primary-nav > a::after {
  position: absolute;
  right: 13px;
  bottom: 18px;
  left: 13px;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--blue-600);
  transition: transform .25s var(--ease);
}

.primary-nav > a:hover::after,
.primary-nav > a.is-active::after {
  transform: scaleX(1);
}

.primary-nav > a.is-active {
  color: var(--blue-700);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  position: relative;
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  cursor: pointer;
  background: var(--steel-100);
  border: 0;
  border-radius: 10px;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 29px; }

body.nav-open .menu-toggle span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle span:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  overflow: hidden;
  padding: 0 24px;
  cursor: pointer;
  color: var(--white);
  background: var(--blue-600);
  border: 1px solid var(--blue-600);
  border-radius: var(--radius-sm);
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--blue-700);
  border-color: var(--blue-700);
  box-shadow: 0 13px 26px rgba(215, 25, 32, .22);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform .25s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--dark {
  color: var(--white);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.btn--dark:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  box-shadow: 0 13px 28px rgba(6, 17, 31, .22);
}

.btn--light {
  color: var(--navy-900);
  background: var(--white);
  border-color: var(--white);
}

.btn--light:hover {
  color: var(--navy-900);
  background: #eef4f9;
  border-color: #eef4f9;
}

.btn--outline-light {
  color: var(--white);
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .38);
}

.btn--outline-light:hover {
  color: var(--navy-900);
  background: var(--white);
  border-color: var(--white);
}

.btn--outline-dark {
  color: var(--navy-900);
  background: transparent;
  border-color: var(--steel-300);
}

.btn--outline-dark:hover {
  color: var(--white);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.btn--sm {
  min-height: 44px;
  padding-inline: 19px;
  font-size: .78rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-700);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(790px, calc(100vh - 38px));
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero__media,
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media video {
  filter: saturate(.75) contrast(1.05) brightness(.66);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 13, 24, .96) 0%, rgba(4, 13, 24, .82) 42%, rgba(4, 13, 24, .34) 72%, rgba(4, 13, 24, .42) 100%),
    linear-gradient(0deg, rgba(4, 13, 24, .88) 0%, transparent 46%);
}

.hero__overlay::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, #000, transparent 78%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: min(790px, calc(100vh - 38px));
  align-items: center;
  padding: clamp(90px, 12vh, 140px) 0 clamp(90px, 10vh, 120px);
}

.hero__content {
  max-width: 865px;
}

.hero h1 {
  max-width: 950px;
  margin-bottom: 28px;
  color: var(--white);
  font-size: clamp(3.15rem, 6.6vw, 6.45rem);
}

.hero h1 span {
  color: var(--blue-400);
}

.hero__lead {
  max-width: 720px;
  margin-bottom: 34px;
  color: #d4dfe9;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 34px;
  margin-top: 44px;
  color: #d2dce6;
  font-size: .88rem;
  font-weight: 700;
}

.hero__fact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero__fact::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--red-500);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(237, 81, 59, .13);
}

.hero__side-label {
  position: absolute;
  z-index: 3;
  right: max(18px, calc((100vw - var(--container)) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #c9d4df;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__side-label::before {
  width: 1px;
  height: 70px;
  content: "";
  background: rgba(255, 255, 255, .3);
}

.hero__scroll {
  position: absolute;
  z-index: 3;
  bottom: 36px;
  left: max(20px, calc((100vw - var(--container)) / 2));
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #cbd7e2;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero__scroll span {
  position: relative;
  display: block;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 20px;
}

.hero__scroll span::after {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  content: "";
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
  background: var(--blue-400);
  border-radius: 4px;
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* Internal page hero */
.page-hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950) url('../images/page-hero.webp') center/cover no-repeat;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 17, 31, .98) 0%, rgba(5, 17, 31, .86) 50%, rgba(5, 17, 31, .45) 100%),
    linear-gradient(0deg, rgba(5,17,31,.7), transparent 60%);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 470px;
  flex-direction: column;
  justify-content: center;
  padding: 85px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: #b7c4d0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.breadcrumb a:hover {
  color: var(--blue-400);
}

.breadcrumb__sep {
  color: var(--blue-400);
}

.page-hero h1 {
  max-width: 940px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
}

.page-hero__lead {
  max-width: 760px;
  margin: 0;
  color: #c8d4de;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

/* Statistics */
.stats-strip {
  position: relative;
  z-index: 5;
  margin-top: -38px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--steel-150);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.stat-card {
  position: relative;
  min-height: 142px;
  padding: 32px 32px 28px;
}

.stat-card + .stat-card {
  border-left: 1px solid var(--steel-150);
}

.stat-card::before {
  position: absolute;
  top: 0;
  left: 28px;
  width: 46px;
  height: 4px;
  content: "";
  background: var(--blue-600);
}

.stat-card:nth-child(2)::before,
.stat-card:nth-child(4)::before {
  background: var(--red-500);
}

.stat-card__value {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-900);
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(2.2rem, 3vw, 3.15rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}

.stat-card__label {
  color: var(--steel-600);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Split layouts & images */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(46px, 7vw, 100px);
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split__content h2 {
  margin-bottom: 26px;
}

.split__content .text-lead {
  margin-bottom: 25px;
}

.media-frame {
  position: relative;
}

.media-frame__main {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--steel-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.media-frame__main img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.media-frame__accent {
  position: absolute;
  z-index: 0;
  top: -22px;
  right: -22px;
  width: 68%;
  height: 72%;
  border: 2px solid rgba(215, 25, 32, .35);
  border-radius: var(--radius-lg);
}

.media-frame__badge {
  position: absolute;
  z-index: 3;
  right: -34px;
  bottom: 42px;
  width: 190px;
  padding: 25px;
  color: var(--white);
  background: var(--navy-900);
  border-left: 5px solid var(--blue-500);
  box-shadow: var(--shadow-md);
}

.media-frame__badge strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.28rem;
}

.media-frame__badge span {
  color: #bfcbd7;
  font-size: .78rem;
  line-height: 1.5;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 28px 0 34px;
}

.check-list li {
  position: relative;
  padding-left: 31px;
  color: var(--steel-700);
  font-weight: 650;
}

.check-list li::before {
  position: absolute;
  top: .4em;
  left: 0;
  display: grid;
  width: 19px;
  height: 19px;
  content: "✓";
  place-items: center;
  color: var(--white);
  background: var(--blue-600);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 900;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--steel-150);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 22px rgba(6, 17, 31, .045);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(215, 25, 32, .25);
  box-shadow: var(--shadow-md);
}

.product-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #edf1f5;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  transition: transform .7s var(--ease);
}

.product-card:hover .product-card__image img {
  transform: scale(1.045);
}

.product-card__index {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--navy-900);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  font-size: .76rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 26px 27px;
}

.product-card__tag {
  margin-bottom: 10px;
  color: var(--blue-700);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-card h3 {
  margin-bottom: 13px;
  font-size: 1.45rem;
}

.product-card p {
  margin-bottom: 24px;
  color: var(--steel-700);
  font-size: .93rem;
}

.product-card .link-arrow {
  margin-top: auto;
}

.service-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: 34px;
  color: #d7e1eb;
  background: var(--navy-900);
  border-radius: var(--radius-md);
  transition: transform .3s var(--ease), background .3s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  background: var(--navy-800);
}

.service-card::after {
  position: absolute;
  right: -58px;
  bottom: -58px;
  width: 170px;
  height: 170px;
  content: "";
  opacity: .1;
  background: url('../images/kesmaksan-logo-transparent.png') center/contain no-repeat;
  color: var(--blue-400);
}

.service-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 46px;
  place-items: center;
  color: var(--blue-400);
  background: rgba(215, 25, 32, .12);
  border: 1px solid rgba(255, 91, 96, .22);
  border-radius: 12px;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 15px;
  color: var(--white);
}

.service-card p {
  position: relative;
  z-index: 1;
  color: #b8c5d2;
  font-size: .94rem;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sector-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--steel-150);
  border-radius: 12px;
  transition: background .25s ease, transform .25s var(--ease), border-color .25s ease;
}

.sector-card:hover {
  transform: translateY(-5px);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.sector-card__number {
  display: block;
  margin-bottom: 48px;
  color: var(--blue-600);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 900;
}

.sector-card h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.sector-card p {
  color: var(--steel-600);
  font-size: .84rem;
  line-height: 1.5;
}

.sector-card:hover h3 {
  color: var(--white);
}

.sector-card:hover p {
  color: #aebdcb;
}

/* Capabilities */
.capability-list {
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.capability-item {
  display: grid;
  grid-template-columns: 100px minmax(260px, .8fr) minmax(320px, 1.2fr) 56px;
  gap: 26px;
  align-items: center;
  padding: 26px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  transition: background .25s ease, padding .25s ease;
}

.capability-item:hover {
  padding-right: 16px;
  padding-left: 16px;
  background: rgba(255, 255, 255, .035);
}

.capability-item__number {
  color: var(--blue-400);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
}

.capability-item h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.35rem;
}

.capability-item p {
  margin: 0;
  color: #9fb0c0;
  font-size: .91rem;
}

.capability-item__arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--blue-400);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.capability-item:hover .capability-item__arrow {
  transform: rotate(-45deg);
  color: var(--navy-900);
  background: var(--blue-400);
}

.capability-item__arrow svg {
  width: 18px;
  height: 18px;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: process;
}

.process-step {
  position: relative;
  min-height: 250px;
  padding: 30px 28px;
  counter-increment: process;
  border-top: 1px solid var(--steel-200);
  border-bottom: 1px solid var(--steel-200);
  border-left: 1px solid var(--steel-200);
}

.process-step:last-child {
  border-right: 1px solid var(--steel-200);
}

.process-step::before {
  display: block;
  margin-bottom: 44px;
  content: "0" counter(process);
  color: var(--blue-600);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
}

.process-step::after {
  position: absolute;
  top: 48px;
  right: -9px;
  z-index: 2;
  width: 17px;
  height: 17px;
  content: "";
  transform: rotate(45deg);
  background: var(--white);
  border-top: 1px solid var(--steel-200);
  border-right: 1px solid var(--steel-200);
}

.process-step:last-child::after {
  display: none;
}

.process-step h3 {
  margin-bottom: 13px;
  font-size: 1.18rem;
}

.process-step p {
  color: var(--steel-600);
  font-size: .87rem;
}

/* Video and editorial media */
.video-panel {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.video-panel video,
.video-panel > img {
  width: 100%;
  height: 100%;
  min-height: 590px;
  object-fit: cover;
}

.video-panel__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(30px, 5vw, 64px);
  pointer-events: none;
  background: linear-gradient(0deg, rgba(5, 16, 29, .9), rgba(5, 16, 29, .1) 68%);
}

.video-panel__content {
  max-width: 600px;
  color: #d9e3ec;
}

.video-panel__content h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.video-panel__content p {
  margin-bottom: 0;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  color: var(--navy-900);
  background: rgba(255, 255, 255, .92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, .1);
  transition: transform .25s ease, background .25s ease;
}

.video-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--blue-400);
}

.video-play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

/* CTA banner */
.cta-banner {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-700);
}

.cta-banner::before {
  position: absolute;
  top: -170px;
  right: -110px;
  width: 470px;
  height: 470px;
  content: "";
  opacity: .14;
  background: url('../images/kesmaksan-logo-transparent.png') center/contain no-repeat;
  color: var(--white);
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: clamp(54px, 7vw, 88px) 0;
}

.cta-banner h2 {
  max-width: 860px;
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 4rem);
}

.cta-banner p {
  max-width: 700px;
  margin: 0;
  color: #d8ebff;
}

.cta-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Product filtering */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}

.filter-btn {
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
  color: var(--steel-700);
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  color: var(--white);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.filter-item.is-hidden {
  display: none;
}

/* Product detail */
.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}

.product-detail-hero__image {
  overflow: hidden;
  background: var(--steel-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.product-detail-hero__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 18px;
  object-fit: contain;
}

.product-detail-hero__content h2 {
  margin-bottom: 24px;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 36px;
}

.product-spec {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 13px;
  padding: 15px;
  background: var(--steel-100);
  border: 1px solid var(--steel-150);
  border-radius: 10px;
}

.product-spec svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--blue-600);
}

.product-spec span {
  color: var(--steel-700);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.35;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 28px;
  margin-top: 35px;
}

.detail-list li {
  position: relative;
  padding: 14px 14px 14px 43px;
  background: var(--white);
  border: 1px solid var(--steel-150);
  border-radius: 10px;
  color: var(--steel-700);
  font-weight: 650;
}

.detail-list li::before {
  position: absolute;
  top: 17px;
  left: 15px;
  width: 15px;
  height: 15px;
  content: "";
  background: var(--blue-600);
  border: 4px solid #dcecff;
  border-radius: 50%;
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 40px;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 89px;
  width: 1px;
  content: "";
  background: var(--steel-200);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 32px;
  padding: 0 0 46px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item__year {
  position: relative;
  color: var(--blue-700);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
}

.timeline-item__year::after {
  position: absolute;
  top: 6px;
  right: -7px;
  width: 13px;
  height: 13px;
  content: "";
  background: var(--white);
  border: 4px solid var(--blue-600);
  border-radius: 50%;
}

.timeline-item__content {
  padding: 0 0 0 0;
}

.timeline-item__content h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.timeline-item__content p {
  color: var(--steel-700);
}

/* Values */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.value-card {
  min-height: 250px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--steel-150);
  border-radius: var(--radius-md);
}

.value-card__number {
  display: block;
  margin-bottom: 45px;
  color: var(--blue-600);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 2.3rem;
  font-weight: 900;
}

.value-card h3 {
  margin-bottom: 13px;
}

.value-card p {
  color: var(--steel-600);
  font-size: .9rem;
}

/* Machine park */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.machine-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--steel-150);
  border-radius: var(--radius-md);
  transition: transform .25s var(--ease), box-shadow .25s ease;
}

.machine-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.machine-card__icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 36px;
  place-items: center;
  color: var(--blue-600);
  background: #e7f2ff;
  border-radius: 12px;
}

.machine-card__icon svg {
  width: 26px;
  height: 26px;
}

.machine-card h3 {
  margin-bottom: 12px;
}

.machine-card p {
  color: var(--steel-600);
  font-size: .9rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--steel-100);
  border: 0;
  border-radius: 12px;
}

.gallery-card--wide {
  grid-column: span 2;
}

.gallery-card img,
.gallery-card video {
  width: 100%;
  height: 100%;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  transition: transform .65s var(--ease), filter .3s ease;
}

.gallery-card img {
  padding: 8px;
  object-fit: contain;
  background: #e7ebf0;
}

.gallery-card video {
  object-fit: cover;
}

.gallery-card:hover img,
.gallery-card:hover video {
  transform: scale(1.045);
  filter: brightness(.72);
}

.gallery-card__overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 70px 22px 20px;
  color: var(--white);
  pointer-events: none;
  background: linear-gradient(0deg, rgba(6,17,31,.88), transparent);
}

.gallery-card__overlay strong {
  font-size: 1rem;
}

.gallery-card__overlay span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
}

.gallery-card__overlay svg {
  width: 17px;
  height: 17px;
}

.video-card {
  cursor: pointer;
}

.video-card::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 64px;
  height: 64px;
  content: "▶";
  place-items: center;
  transform: translate(-50%, -50%);
  color: var(--navy-900);
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(255,255,255,.1);
}

.lightbox {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(3, 10, 18, .94);
  backdrop-filter: blur(10px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__content {
  position: relative;
  display: grid;
  max-width: min(1200px, 94vw);
  max-height: 90vh;
  place-items: center;
}

.lightbox__content img,
.lightbox__content video {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #050d16;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.lightbox__caption {
  margin-top: 14px;
  color: #d6e0ea;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  z-index: 3;
  top: -18px;
  right: -18px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  cursor: pointer;
  color: var(--white);
  background: var(--red-500);
  border: 0;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}

.contact-card-list {
  display: grid;
  gap: 14px;
  margin: 34px 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: var(--steel-100);
  border: 1px solid var(--steel-150);
  border-radius: 12px;
}

.contact-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: var(--blue-600);
  border-radius: 10px;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card small {
  display: block;
  margin-bottom: 3px;
  color: var(--steel-500);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.contact-card strong,
.contact-card a {
  color: var(--navy-900);
  font-size: .95rem;
}

.contact-card a:hover {
  color: var(--blue-700);
}

.form-card {
  padding: clamp(28px, 4vw, 46px);
  background: var(--white);
  border: 1px solid var(--steel-150);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.form-card > p {
  margin-bottom: 30px;
  color: var(--steel-600);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  color: var(--navy-900);
  font-size: .82rem;
  font-weight: 800;
}

.form-group label .required {
  color: var(--red-500);
}

.form-control {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--navy-900);
  background: var(--steel-100);
  border: 1px solid var(--steel-200);
  border-radius: 9px;
  outline: none;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus {
  background: var(--white);
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, .10);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  color: var(--steel-500);
  font-size: .76rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.map-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding: 42px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8,26,45,.96), rgba(8,26,45,.78)),
    url('../images/catalog/gearboxes-aligned-three.webp') center/cover no-repeat;
  border-radius: var(--radius-lg);
}

.map-panel__grid {
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 36px 36px;
}

.map-panel__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 336px;
  flex-direction: column;
  justify-content: flex-end;
}

.map-panel h3 {
  margin-bottom: 13px;
  color: var(--white);
  font-size: 2rem;
}

.map-panel p {
  max-width: 500px;
  color: #c4d1dc;
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--steel-200);
}

.faq-item {
  border-bottom: 1px solid var(--steel-200);
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  color: var(--navy-900);
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 800;
}

.faq-question span:last-child {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--blue-600);
  background: #e8f3ff;
  border-radius: 50%;
  transition: transform .25s ease;
}

.faq-item.is-open .faq-question span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}

.faq-answer > div {
  overflow: hidden;
}

.faq-answer p {
  max-width: 900px;
  padding: 0 0 25px;
  color: var(--steel-700);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

/* Footer */
.site-footer {
  color: #b5c3d0;
  background: var(--navy-950);
}

.footer-main {
  padding: 74px 0 58px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .75fr .85fr 1fr;
  gap: 54px;
}

.footer-brand img {
  width: 280px;
  margin-bottom: 24px;
}

.footer-brand p {
  max-width: 420px;
  color: #9dafbf;
  font-size: .9rem;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  transition: background .2s ease, color .2s ease;
}

.footer-social a:hover {
  color: var(--navy-900);
  background: var(--blue-400);
}

.footer-social svg {
  width: 19px;
  height: 19px;
}

.footer-column h3 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: .04em;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aab9c7;
  font-size: .88rem;
  transition: color .2s ease, transform .2s ease;
}

.footer-links a::before {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--blue-500);
  border-radius: 50%;
}

.footer-links a:hover {
  transform: translateX(4px);
  color: var(--white);
}

.footer-contact {
  display: grid;
  gap: 16px;
}

.footer-contact__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: #aab9c7;
  font-size: .87rem;
}

.footer-contact__item svg {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  color: var(--blue-400);
}

.footer-contact__item a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.footer-bottom__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #8395a6;
  font-size: .78rem;
}

.footer-bottom__links {
  display: flex;
  gap: 20px;
}

.footer-bottom__links a:hover {
  color: var(--white);
}

/* Floating actions */
.floating-actions {
  position: fixed;
  z-index: 900;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
}

.floating-action {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--white);
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, background .25s ease;
}

.floating-action--whatsapp {
  background: #1f9f5f;
}

.floating-action:hover {
  transform: translateY(-4px);
  background: var(--blue-600);
}

.floating-action svg {
  width: 24px;
  height: 24px;
}

.back-to-top {
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
}

.back-to-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Toast */
.toast {
  position: fixed;
  z-index: 6000;
  right: 24px;
  bottom: 92px;
  max-width: min(380px, calc(100vw - 48px));
  padding: 16px 19px;
  color: var(--white);
  background: var(--navy-900);
  border-left: 4px solid var(--blue-500);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--error {
  border-left-color: var(--red-500);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* 404 */
.error-page {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

.error-page__code {
  margin-bottom: 10px;
  color: var(--blue-600);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(6rem, 16vw, 12rem);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: .8;
}

.error-page p {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--steel-600);
}

/* Responsive */
@media (max-width: 1180px) {
  .primary-nav > a {
    padding-inline: 8px;
    font-size: .8rem;
  }

  .header-actions .btn {
    padding-inline: 16px;
  }

  .brand img {
    width: 220px;
  }

  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.3fr .7fr .9fr;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 72px;
  }

  .utility-bar {
    display: none;
  }

  .site-header {
    top: 0;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 22px 20px 40px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    background: var(--white);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }

  body.nav-open .primary-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-nav > a {
    height: auto;
    padding: 16px 8px;
    font-size: 1rem;
    border-bottom: 1px solid var(--steel-150);
  }

  .primary-nav > a::after {
    right: auto;
    bottom: 0;
    left: 8px;
    width: 40px;
  }

  .hero,
  .hero__inner {
    min-height: 760px;
  }

  .hero__side-label {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--steel-150);
  }

  .stat-card:nth-child(4) {
    border-top: 1px solid var(--steel-150);
  }

  .section-heading,
  .split,
  .product-detail-hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .card-grid,
  .machine-grid,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:nth-child(2n) {
    border-right: 1px solid var(--steel-200);
  }

  .process-step:nth-child(n+3) {
    border-top: 0;
  }

  .process-step::after {
    display: none;
  }

  .process-step:last-child {
    grid-column: 1 / -1;
  }

  .capability-item {
    grid-template-columns: 70px minmax(220px, .8fr) minmax(0, 1.2fr) 46px;
    gap: 18px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card--wide {
    grid-column: auto;
  }

  .cta-banner__inner {
    grid-template-columns: 1fr;
  }

  .cta-banner__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-column:last-child {
    grid-column: auto;
  }

  .footer-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container,
  .container--narrow {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .brand img {
    width: 190px;
  }

  .hero,
  .hero__inner {
    min-height: 730px;
  }

  .hero__inner {
    align-items: flex-end;
    padding-bottom: 110px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 14vw, 4.5rem);
  }

  .hero__actions,
  .hero__actions .btn {
    width: 100%;
  }

  .hero__facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 30px;
  }

  .hero__scroll {
    display: none;
  }

  .page-hero,
  .page-hero__inner {
    min-height: 400px;
  }

  .page-hero__inner {
    padding: 70px 0 55px;
  }

  .stats-strip {
    margin-top: 0;
    padding-top: 14px;
    background: var(--white);
  }

  .stats-grid,
  .card-grid,
  .machine-grid,
  .value-grid,
  .sector-grid,
  .gallery-grid,
  .product-specs,
  .detail-list,
  .form-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .stat-card + .stat-card {
    border-top: 1px solid var(--steel-150);
    border-left: 0;
  }

  .process-step {
    border-right: 1px solid var(--steel-200);
    border-top: 0;
  }

  .process-step:first-child {
    border-top: 1px solid var(--steel-200);
  }

  .process-step:last-child {
    grid-column: auto;
  }

  .media-frame__accent {
    top: -12px;
    right: 0;
  }

  .media-frame__badge {
    right: 14px;
    bottom: 14px;
    width: min(190px, 60%);
  }

  .capability-item {
    grid-template-columns: 52px minmax(0, 1fr) 42px;
    padding-block: 22px;
  }

  .capability-item p {
    grid-column: 2 / 4;
  }

  .capability-item__arrow {
    width: 40px;
    height: 40px;
  }

  .video-panel,
  .video-panel video,
  .video-panel > img {
    min-height: 480px;
  }

  .video-panel__overlay {
    padding: 28px;
  }

  .gallery-card img,
  .gallery-card video {
    min-height: 250px;
  }

  .timeline::before {
    left: 68px;
  }

  .timeline-item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 22px;
  }

  .timeline-item__year {
    font-size: 1.1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0;
  }

  .footer-bottom__links {
    flex-wrap: wrap;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
  }

  .floating-action {
    width: 50px;
    height: 50px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox__close {
    top: -10px;
    right: -5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Official KESMAKSAN brand lockup */
.brand{gap:12px;text-decoration:none;min-width:0}
.brand__mark{width:58px;height:58px;flex:0 0 58px;overflow:hidden;border-radius:50%;background:#fff;box-shadow:0 4px 15px rgba(4,25,50,.12)}
.brand .brand__mark img,.footer-logo .brand__mark img{display:block;width:100%;height:100%;object-fit:cover;margin:0;transform:scale(1.015)}
.brand__wordmark{display:flex;flex-direction:column;justify-content:center;line-height:1;white-space:nowrap}
.brand__wordmark strong{color:#111111;font-size:1.42rem;font-weight:900;letter-spacing:.055em}
.brand__wordmark small{margin-top:6px;color:#666666;font-size:.48rem;font-weight:800;letter-spacing:.17em}
.footer-logo{display:inline-flex;align-items:center;gap:14px;margin-bottom:24px}
.footer-logo .brand__mark{width:64px;height:64px;flex-basis:64px;box-shadow:0 6px 22px rgba(0,0,0,.22)}
.footer-logo .brand__wordmark strong{color:#fff;font-size:1.52rem}
.footer-logo .brand__wordmark small{color:#aebdca}
.hero__media video{object-position:center center}
@media(max-width:1180px){.brand__mark{width:50px;height:50px;flex-basis:50px}.brand__wordmark strong{font-size:1.18rem}.brand__wordmark small{font-size:.4rem;letter-spacing:.13em}}
@media(max-width:700px){.brand{gap:9px}.brand__mark{width:47px;height:47px;flex-basis:47px}.brand__wordmark strong{font-size:1.08rem}.brand__wordmark small{display:none}.footer-logo .brand__wordmark small{display:block;font-size:.39rem}}
@media(max-width:420px){.brand__wordmark strong{font-size:.98rem;letter-spacing:.035em}}
