/*--------------------------------------------------------------
  PT. BERLIAN SAKTI — Corporate Infrastructure Design System
  Ink #0E1116 · Brand Blue #0B2082 · Signal Orange #E76610 · Paper #F7F7F7
--------------------------------------------------------------*/

:root {
  /* Surfaces */
  --ink:        #0E1116;
  --ink-800:    #13171A;
  --ink-700:    #1B2026;
  --ink-600:    #2A3038;
  --paper:      #F7F7F7;
  --cream:      #F4F3EF;
  --white:      #FFFFFF;

  /* Brand */
  --blue:       #0B2082;
  --blue-700:   #17309E;
  --blue-600:   #2B45C4;
  --accent:     #E76610;
  --accent-600: #CE560A;
  --accent-200: #FFD9BD;
  --red:        #C30914;

  /* Text */
  --fg:         #0B0D10;
  --fg-soft:    #40464F;
  --fg-mute:    #86868B;
  --on-dark:    #F4F3EF;
  --on-dark-mute: rgba(244, 243, 239, .60);

  /* Lines */
  --line:       rgba(11, 13, 16, .10);
  --line-soft:  rgba(11, 13, 16, .06);
  --line-dark:  rgba(244, 243, 239, .14);

  /* Type */
  --font-head: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shape & motion */
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --shadow-sm:  0 1px 2px rgba(11, 13, 16, .05), 0 4px 14px -8px rgba(11, 13, 16, .12);
  --shadow-md:  0 18px 48px -20px rgba(11, 13, 16, .24);
  --shadow-lg:  0 40px 90px -30px rgba(11, 13, 16, .38);
  --ease:       cubic-bezier(.22, .61, .21, 1);
  --dur:        .5s;

  --container:  1320px;
  --gutter:     clamp(1.15rem, 4vw, 2.75rem);
  --header-h:   74px;
}

/*----------------------------------------------
  Reset & base
----------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--fg-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--fg);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.032em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -.02em; line-height: 1.2; }
h4 { font-size: 1rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; color: var(--fg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff;
  padding: .75rem 1.25rem; z-index: 999; font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.screen-reader-text {
  position: absolute !important;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden;
  white-space: nowrap;
}

/*----------------------------------------------
  Layout primitives
----------------------------------------------*/
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.container--narrow { max-width: 880px; }

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--ink   { background: var(--ink); color: var(--on-dark-mute); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: var(--on-dark); }
.section--ink p { color: var(--on-dark-mute); }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--fg-mute);
  margin: 0 0 1.4rem;
}
.section--ink .eyebrow { color: rgba(244, 243, 239, .55); }

.section-head { max-width: 780px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 .dim { color: var(--fg-mute); }
.section--ink .section-head h2 .dim { color: rgba(244, 243, 239, .45); }
.section-head p { max-width: 54ch; color: var(--fg-soft); font-size: 1rem; }
.section--ink .section-head p { color: var(--on-dark-mute); }

.lead { font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.55; }

/*----------------------------------------------
  Buttons
----------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .72rem 1.35rem;
  border-radius: 999px;
  font-size: .875rem; font-weight: 500;
  letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); }

.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: var(--ink-700); }

.btn--outline { border-color: var(--line); color: var(--fg); background: transparent; }
.btn--outline:hover { border-color: var(--fg); background: var(--fg); color: var(--white); }

.btn--ghost { border-color: var(--line-dark); color: var(--on-dark); background: transparent; }
.btn--ghost:hover { background: rgba(244, 243, 239, .10); border-color: rgba(244, 243, 239, .30); }

.btn--lg { padding: .9rem 1.7rem; font-size: .9375rem; }
.btn--sm { padding: .5rem 1rem; font-size: .8125rem; }

/* Text link with sliding arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 500; color: var(--fg);
  border-bottom: 1px solid var(--line);
  padding-bottom: .25rem;
  transition: gap .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.arrow-link svg { width: 15px; height: 15px; }
.arrow-link:hover { gap: .85rem; border-color: var(--accent); color: var(--accent); }
.section--ink .arrow-link { color: var(--on-dark); border-color: var(--line-dark); }
.section--ink .arrow-link:hover { color: var(--accent); border-color: var(--accent); }

/*----------------------------------------------
  Header — dark floating bar with centred brand
----------------------------------------------*/
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--header-h);
  background: rgba(14, 17, 22, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(14, 17, 22, .96);
  border-bottom-color: var(--line-dark);
}
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.header-left, .header-right { display: flex; align-items: center; gap: .5rem; }
.header-right { justify-content: flex-end; }

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  justify-self: center;
  color: var(--on-dark);
  font-family: var(--font-head);
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -.03em;
  line-height: 1;
}
.brand-logo { max-height: 40px; width: auto; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text .bt-name { font-size: 1.0625rem; }
.brand-text .bt-sub {
  font-size: .5rem; font-weight: 500; letter-spacing: .28em;
  color: rgba(244, 243, 239, .55); text-transform: uppercase;
}

/* Icon buttons in the header rail */
.hbtn {
  width: 38px; height: 38px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--on-dark);
  transition: background .3s var(--ease);
}
.hbtn:hover { background: rgba(244, 243, 239, .10); }
.hbtn svg { width: 18px; height: 18px; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 38px; padding: 0 .9rem;
  border-radius: 999px;
  color: var(--on-dark); font-size: .8125rem; font-weight: 500;
  transition: background .3s var(--ease);
}
.nav-toggle:hover { background: rgba(244, 243, 239, .10); }
.nav-toggle .bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle .bars span {
  display: block; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
body.nav-open .nav-toggle .bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle .bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav-toggle .label-close { display: none; }
body.nav-open .nav-toggle .label-open { display: none; }
body.nav-open .nav-toggle .label-close { display: inline; }

.header-cta { display: inline-flex; }

/*----------------------------------------------
  Full-screen overlay navigation
----------------------------------------------*/
.nav-overlay {
  position: fixed; inset: 0; z-index: 190;
  background: var(--ink);
  padding: calc(var(--header-h) + clamp(1.5rem, 5vh, 4rem)) 0 3rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; transform: none; }
body.nav-open { overflow: hidden; }

.nav-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.primary-nav > ul { display: grid; gap: .15rem; }
.primary-nav > ul > li > a {
  display: flex; align-items: baseline; gap: .9rem;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4.2vw, 2.9rem);
  font-weight: 600; letter-spacing: -.035em; line-height: 1.15;
  color: var(--on-dark);
  padding: .2rem 0;
  transition: color .3s var(--ease), transform .4s var(--ease);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a { color: var(--accent); transform: translateX(10px); }

/* Second level = compact link cluster under its parent */
.primary-nav .sub-menu {
  display: flex; flex-wrap: wrap; gap: .4rem .5rem;
  margin: .35rem 0 1rem;
  max-width: 46ch;
}
.primary-nav .sub-menu a {
  display: inline-block;
  font-size: .8125rem; color: var(--on-dark-mute);
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: .3rem .8rem;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.primary-nav .sub-menu a:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); }

.nav-aside { display: grid; gap: 1.75rem; align-content: start; padding-top: .5rem; }
.nav-aside h4 {
  font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244, 243, 239, .45); margin: 0 0 .7rem;
}
.nav-aside a { color: var(--on-dark-mute); transition: color .3s var(--ease); }
.nav-aside a:hover { color: var(--accent); }
.nav-aside ul { display: grid; gap: .45rem; font-size: .875rem; }
.nav-aside .nav-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.nav-aside .nav-contact svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--accent); }

.nav-search { display: flex; gap: .5rem; }
.nav-search input[type="search"] {
  flex: 1; min-width: 0;
  background: transparent; color: var(--on-dark);
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: .6rem 1rem; font: inherit; font-size: .875rem;
}
.nav-search input::placeholder { color: rgba(244, 243, 239, .40); }
.nav-search input:focus { outline: none; border-color: var(--accent); }

@media (max-width: 860px) {
  .nav-grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: center; }
}

/*----------------------------------------------
  Hero — near-black, oversized statement
----------------------------------------------*/
.hero {
  position: relative;
  background: var(--ink-800);
  color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(4rem, 11vh, 8rem)) 0 clamp(3rem, 7vh, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(231, 102, 16, .16) 0%, transparent 58%),
    linear-gradient(180deg, rgba(14, 17, 22, .55) 0%, rgba(14, 17, 22, .80) 55%, var(--ink-800) 100%);
}

.hero h1 {
  color: var(--on-dark);
  max-width: 17ch;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -.035em;
  line-height: 1.02;
}
.hero h1 .dim { color: rgba(244, 243, 239, .42); }

.hero-claims {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem;
  font-size: .875rem; color: var(--on-dark-mute);
  max-width: 82ch; margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
}
.hero-claims li { display: flex; align-items: center; gap: 1.1rem; }
.hero-claims li + li::before {
  content: ""; width: 1px; height: 12px; background: var(--line-dark); flex: none;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.scroll-hint {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .75rem; color: rgba(244, 243, 239, .45);
}
.scroll-hint .line {
  display: block; width: 40px; height: 1px; background: var(--line-dark);
  position: relative; overflow: hidden;
}
.scroll-hint .line::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: var(--accent);
  animation: hintSlide 2.4s var(--ease) infinite;
}
@keyframes hintSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/*----------------------------------------------
  Capability cards — asymmetric grid
----------------------------------------------*/
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 1.4vw, 1.125rem);
}
.cap-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  min-height: clamp(250px, 30vw, 340px);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cap-card h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); margin: 0 0 .5rem; letter-spacing: -.028em; }
.cap-card p { font-size: .875rem; margin: 0; max-width: 34ch; }
.cap-body { margin-top: auto; padding-top: 1.5rem; }
.cap-card .arrow-link { margin-top: 1.1rem; }

.cap-card--accent { background: var(--accent); color: #fff; }
.cap-card--accent h3 { color: #fff; }
.cap-card--accent p  { color: rgba(255, 255, 255, .88); }
.cap-card--accent .arrow-link { color: #fff; border-color: rgba(255, 255, 255, .38); }
.cap-card--accent .arrow-link:hover { color: #fff; border-color: #fff; }

.cap-card--ink { background: var(--ink); color: var(--on-dark-mute); }
.cap-card--ink h3 { color: var(--on-dark); }
.cap-card--ink .arrow-link { color: var(--on-dark); border-color: var(--line-dark); }

.cap-card--blue { background: var(--blue); color: rgba(255, 255, 255, .82); }
.cap-card--blue h3 { color: #fff; }
.cap-card--blue .arrow-link { color: #fff; border-color: rgba(255, 255, 255, .34); }
.cap-card--blue .arrow-link:hover { color: #fff; border-color: #fff; }

.cap-card--media { padding: 0; background: var(--ink-700); justify-content: flex-end; }
.cap-card--media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap-card--media .media-body {
  position: relative; z-index: 1; width: 100%;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: linear-gradient(180deg, transparent, rgba(14, 17, 22, .90));
  color: rgba(244, 243, 239, .78);
}
.cap-card--media h3 { color: #fff; }
.cap-card--media .arrow-link { color: #fff; border-color: rgba(255, 255, 255, .34); }

.cap-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.cap-ico { width: 34px; height: 34px; opacity: .92; flex: none; }
.cap-ico svg { width: 100%; height: 100%; }
.cap-num { font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .14em; opacity: .62; }

@media (max-width: 1024px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .cap-grid { grid-template-columns: 1fr; } }

/*----------------------------------------------
  Split feature (story / case study)
----------------------------------------------*/
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--wide-left { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.split-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--ink-700);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .tag {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(14, 17, 22, .82); color: var(--on-dark);
  backdrop-filter: blur(8px);
  font-size: .75rem; padding: .45rem .85rem; border-radius: 999px;
}
@media (max-width: 860px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

.metric-list { display: grid; gap: .8rem; margin: 1.6rem 0 2rem; }
.metric-list li {
  display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: baseline;
  font-size: .9375rem; line-height: 1.5;
  padding-bottom: .8rem; border-bottom: 1px solid var(--line);
}
.section--ink .metric-list li { border-color: var(--line-dark); }
.metric-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.metric-list .m-key {
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 600;
  color: var(--accent); white-space: nowrap;
}

/*----------------------------------------------
  Stat strip
----------------------------------------------*/
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.section--ink .stat-strip { border-color: var(--line-dark); }
.stat .num {
  display: flex; align-items: baseline; gap: 1px;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 600; letter-spacing: -.04em; line-height: 1;
  color: var(--fg);
}
.section--ink .stat .num { color: var(--on-dark); }
.stat .suffix { color: var(--accent); }
.stat .label { display: block; margin-top: .6rem; font-size: .8125rem; color: var(--fg-mute); max-width: 24ch; }
.section--ink .stat .label { color: rgba(244, 243, 239, .55); }

/*----------------------------------------------
  Numbered delivery stages
----------------------------------------------*/
.stages {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.section--ink .stages { background: var(--line-dark); border-color: var(--line-dark); }
.stage {
  background: var(--white);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  display: flex; flex-direction: column; gap: .65rem;
  transition: background .4s var(--ease);
}
.section--ink .stage { background: var(--ink); }
.stage:hover { background: var(--cream); }
.section--ink .stage:hover { background: var(--ink-700); }
.stage .s-num { font-family: var(--font-mono); font-size: .75rem; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.stage h3 { margin: 0; font-size: 1.0625rem; }
.stage .s-figure {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600;
  letter-spacing: -.04em; line-height: 1; color: var(--fg);
  margin-top: auto; padding-top: 1.1rem;
}
.section--ink .stage .s-figure { color: var(--on-dark); }
.stage p { font-size: .8125rem; margin: 0; color: var(--fg-mute); }
.section--ink .stage p { color: rgba(244, 243, 239, .55); }

@media (max-width: 900px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stages { grid-template-columns: 1fr; } }

/*----------------------------------------------
  Certification marquee
----------------------------------------------*/
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  background: var(--white);
  --marquee-dur: 44s;
}
.marquee--ink { background: var(--ink); border-color: var(--line-dark); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-dur) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > span {
  display: inline-flex; align-items: center; gap: .55rem;
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
  font-size: .8125rem; font-weight: 500; color: var(--fg-soft); white-space: nowrap;
}
.marquee--ink .marquee-track > span { color: rgba(244, 243, 239, .72); }
.marquee-track > span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/*----------------------------------------------
  Two-panel selector (Maintenance / Logistics)
----------------------------------------------*/
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.4vw, 1.125rem); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.duo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.8vw, 2.4rem);
  display: flex; flex-direction: column;
  transition: border-color .4s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.duo-card:hover { border-color: var(--fg); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.duo-card .d-ico { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1.25rem; }
.duo-card h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); margin: 0 0 .6rem; }
.duo-card p { font-size: .9375rem; color: var(--fg-soft); }
.duo-list { display: grid; gap: .5rem; margin: 1.25rem 0 1.75rem; }
.duo-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; color: var(--fg-soft); }
.duo-list svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--accent); }
.duo-card .arrow-link { margin-top: auto; align-self: flex-start; }

/*----------------------------------------------
  Service / project / post cards
----------------------------------------------*/
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.post-card .thumb { display: block; aspect-ratio: 3 / 2; background: var(--cream); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .thumb--contain { display: grid; place-items: center; padding: 1.25rem; }
.post-card .thumb--contain img { object-fit: contain; }
.post-card .body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card .date {
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-mute);
}
.post-card h3 { margin: 0; font-size: 1.0625rem; line-height: 1.25; }
.post-card h3 a { transition: color .3s var(--ease); }
.post-card:hover h3 a { color: var(--accent); }
.post-card p { font-size: .875rem; color: var(--fg-mute); margin: 0; }
.post-card .card-foot { margin-top: auto; padding-top: 1rem; }

/* Placeholder tile when no featured image is set */
.ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--cream); }
.ph svg { width: 42px; height: 42px; color: var(--fg-mute); opacity: .5; }
.ph--1 { background: #EFEFEA; } .ph--2 { background: #E9EAF2; }
.ph--3 { background: #F3E8DF; } .ph--4 { background: #E6E9EC; }
.ph--5 { background: #F0EDE6; } .ph--6 { background: #E8EDEA; }

/* Client logo wall */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.logo-wall li {
  background: var(--white); aspect-ratio: 16 / 9;
  display: grid; place-items: center; padding: 1.1rem;
}
.logo-wall img { max-height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .4s var(--ease), opacity .4s var(--ease); }
.logo-wall li:hover img { filter: none; opacity: 1; }
.logo-wall .logo-text { font-size: .8125rem; font-weight: 500; color: var(--fg-mute); text-align: center; line-height: 1.3; }

/*----------------------------------------------
  Coverage / offices
----------------------------------------------*/
.coverage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .coverage { grid-template-columns: 1fr; } }
.office-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.section--ink .office-list { background: var(--line-dark); border-color: var(--line-dark); }
.office {
  background: var(--white); padding: 1.4rem 1.6rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
}
.section--ink .office { background: var(--ink); }
.office svg { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.office h4 { margin: 0 0 .3rem; font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute); }
.section--ink .office h4 { color: rgba(244, 243, 239, .5); }
.office p { margin: 0; font-size: .9375rem; color: var(--fg); line-height: 1.45; }
.section--ink .office p { color: var(--on-dark); }

/*----------------------------------------------
  CTA band
----------------------------------------------*/
.cta-band {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: end;
}
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; align-items: start; } }
.cta-band h2 { color: var(--on-dark); margin: 0; max-width: 18ch; }
.cta-band .cta-sub { color: rgba(244, 243, 239, .55); font-size: 1rem; margin: .9rem 0 0; max-width: 42ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/*----------------------------------------------
  Inner page hero
----------------------------------------------*/
.page-hero {
  background: var(--ink-800); color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(3rem, 7vh, 5.5rem)) 0 clamp(2.5rem, 5vh, 4rem);
}
.page-hero h1 { color: var(--on-dark); margin: 0; max-width: 20ch; }
.page-hero .crumb {
  display: block; font-size: .75rem; color: rgba(244, 243, 239, .5); margin-bottom: 1.1rem;
}
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero .lead { color: var(--on-dark-mute); max-width: 60ch; margin: 1.1rem 0 0; }

/* Term / category filter chips */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.chips a {
  display: inline-block; padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: .8125rem; color: var(--fg-soft);
  transition: all .3s var(--ease);
}
.chips a:hover, .chips a.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

/*----------------------------------------------
  Entry content (WYSIWYG)
----------------------------------------------*/
.entry-content { max-width: 74ch; font-size: 1rem; line-height: 1.7; color: var(--fg-soft); }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.25em; }
.entry-content h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); margin-top: 1.9em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--accent); }
.entry-content blockquote {
  border-left: 2px solid var(--accent); padding-left: 1.25rem; margin-left: 0;
  font-size: 1.0625rem; color: var(--fg);
}
.entry-content img, .entry-content figure { border-radius: var(--radius); }
.entry-content figcaption { font-size: .8125rem; color: var(--fg-mute); margin-top: .6rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.entry-content th, .entry-content td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { font-weight: 600; color: var(--fg); }
.entry-content code { font-family: var(--font-mono); font-size: .875em; background: var(--cream); padding: .15em .4em; border-radius: 4px; }
.entry-content pre { background: var(--ink); color: var(--on-dark); padding: 1.25rem; border-radius: var(--radius); overflow-x: auto; }
.entry-content pre code { background: none; padding: 0; color: inherit; }

.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .entry-layout { grid-template-columns: 1fr; } }
.entry-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.5rem; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; background: var(--white); }
.aside-card h4 { margin: 0 0 .8rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-mute); font-weight: 500; }
.aside-card ul { display: grid; gap: .5rem; font-size: .875rem; }
.aside-card li { display: flex; gap: .55rem; align-items: flex-start; }
.aside-card svg { width: 14px; height: 14px; flex: none; margin-top: 4px; color: var(--accent); }

/*----------------------------------------------
  Forms, pagination, comments
----------------------------------------------*/
input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="tel"], textarea, select {
  width: 100%; font: inherit; font-size: .9375rem;
  padding: .7rem .95rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--fg);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input[type="submit"], .wp-block-search__button, button[type="submit"] {
  width: auto; background: var(--accent); color: #fff; border: 0;
  padding: .72rem 1.35rem; border-radius: 999px; font-weight: 500; cursor: pointer;
}

.pagination { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: clamp(2rem, 4vw, 3rem); }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px;
  padding-inline: .6rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: .875rem; color: var(--fg-soft);
  transition: all .3s var(--ease);
}
.pagination .page-numbers:hover, .pagination .current { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

.comments-area { margin-top: 3rem; max-width: 74ch; }
.comment-list { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.comment-list .comment-body { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--white); }
.comment-list .avatar { border-radius: 50%; }

/*----------------------------------------------
  Footer
----------------------------------------------*/
.site-footer { background: var(--ink); color: var(--on-dark-mute); padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 1000px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .brand { justify-self: start; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .875rem; color: var(--on-dark-mute); max-width: 40ch; }
.footer-social { display: flex; gap: .5rem; margin-top: 1.4rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line-dark);
  display: grid; place-items: center; color: var(--on-dark-mute);
  transition: all .3s var(--ease);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(244, 243, 239, .45); margin: 0 0 1rem;
}
.footer-col ul { display: grid; gap: .55rem; font-size: .875rem; }
.footer-col a { color: var(--on-dark-mute); transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.45; }
.footer-contact svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--accent); }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.75rem; font-size: .8125rem; color: rgba(244, 243, 239, .45);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a:hover { color: var(--accent); }

/*----------------------------------------------
  Scroll reveal
----------------------------------------------*/
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-l { transform: translateX(-22px); }
.reveal-r { transform: translateX(22px); }
.no-js .reveal { opacity: 1; transform: none; }

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

/*----------------------------------------------
  Utilities
----------------------------------------------*/
.u-center { text-align: center; }
.u-mt-0 { margin-top: 0; }
.u-mb-0 { margin-bottom: 0; }
.u-flex-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.25rem; }

/* Block editor alignment support */
.alignwide  { width: min(1240px, 100%); margin-inline: auto; }
.alignfull  { width: 100%; }
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text { font-size: .8125rem; color: var(--fg-mute); }

/* Elementor / Gutenberg full-width containers keep the theme gutter */
.entry-content > .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }

@media print {
  .site-header, .nav-overlay, .site-footer, .cta-band, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Stacked claim strip on narrow screens — drop the dividers so no line
   begins with a stray rule. */
@media (max-width: 760px) {
  .hero-claims { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .hero-claims li + li::before { display: none; }
}
