/* ============================================================
   NOBLE BRIDGE RESOURCE — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,700;1,700&family=Manrope:wght@400;500;600;700&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --blue:       #263B91;
  --green:      #02B150;
  --white:      #FFFFFF;
  --off-white:  #F7F8FC;
  --ink:        #1A1A2E;
  --muted:      #6B7280;
  --border:     #E2E8F0;
  --shadow-sm:  0 2px 8px rgba(38, 59, 145, 0.08);
  --shadow-md:  0 4px 20px rgba(38, 59, 145, 0.14);
  --shadow-lg:  0 10px 40px rgba(38, 59, 145, 0.18);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  --max-w:  1200px;
  --nav-h:  76px;
  --radius: 8px;
}

/* ---------- CJK typography ----------
   Manrope and Cormorant Garamond carry no CJK glyphs, so the Japanese and
   Chinese editions pair them with Noto. Latin characters still render in the
   brand faces; CJK characters fall through to Noto in the same stack. */
html[lang="ja"] {
  --font-display: 'Noto Serif JP', 'Cormorant Garamond', serif;
  --font-body:    'Manrope', 'Noto Sans JP', system-ui, sans-serif;
}
html[lang^="zh"] {
  --font-display: 'Noto Serif SC', 'Cormorant Garamond', serif;
  --font-body:    'Manrope', 'Noto Sans SC', system-ui, sans-serif;
}
/* Garamond's italic + x-height boost do not apply to CJK serif faces:
   synthesized obliques look broken and the metrics already match the body. */
html[lang="ja"] .highlight-phrase,
html[lang^="zh"] .highlight-phrase {
  font-style: normal;
  font-size: 1em;
  line-height: 1.35;
}
/* CJK has no descenders to protect and wraps at any character. */
html[lang="ja"] .hero-line,
html[lang^="zh"] .hero-line { white-space: normal; }

/* Indonesian phrases run noticeably longer than their English counterparts,
   so ease the hero display size to keep the three fixed lines from overflowing. */
html[lang="id"] .hero-headline { font-size: clamp(2.05rem, 2.95vw, 3.25rem); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
address { font-style: normal; }

/* ---------- Typography Helpers ---------- */
/* All headings use Manrope. Highlighted phrases inside use .highlight-phrase for Garamond. */
.display-xl {
  font-family: var(--font-body);
  font-size: clamp(2.42rem, 3.53vw, 3.91rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.display-md {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Cormorant Garamond italic gradient — used on key phrases within headings.
   Font size is boosted so Garamond's lighter x-height visually matches Manrope's. */
.highlight-phrase {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.22em;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 68px 0; }
.bg-off-white { background: var(--off-white); }
.bg-blue { background: var(--blue); }

/* ---------- Scroll Animations ---------- */
/* Base reveal: soft fade-up. Modifiers below change the direction/style. */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.animate.is-visible {
  opacity: 1;
  transform: none;
}
.animate[data-delay="1"] { transition-delay: 0.10s; }
.animate[data-delay="2"] { transition-delay: 0.20s; }
.animate[data-delay="3"] { transition-delay: 0.30s; }
.animate[data-delay="4"] { transition-delay: 0.40s; }

/* Directional variants — for two-column sections (text slides in from a side) */
.animate.anim-left  { transform: translateX(-28px); }
.animate.anim-right { transform: translateX(28px); }
/* Higher specificity so the revealed state wins over the directional offset */
.animate.anim-left.is-visible,
.animate.anim-right.is-visible { transform: none; }

/* Image "unveil" — clip + gentle scale settle, minimal opacity so it reads
   as the photo developing rather than a second fade. */
.animate.anim-img {
  opacity: 1;
  transform: scale(1.06);
  clip-path: inset(0 0 12% 0);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate.anim-img.is-visible {
  transform: scale(1);
  clip-path: inset(0 0 0 0);
}

/* ---------- Reduced-motion: opacity-only, no transforms or looping motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .animate,
  .animate.anim-left,
  .animate.anim-right,
  .animate.anim-img {
    transform: none;
    clip-path: none;
    transition: opacity 0.4s ease;
  }
  .hero-headline .hero-line,
  body.is-loaded .hero-headline .hero-line { transform: none; transition: none; }
  .hero-reveal { transform: none; transition: opacity 0.4s ease; }
  .slide { transition: opacity 0.4s ease; }
  .slide.active img { animation: none; transform: scale(1.001); }
  .slideshow-dot.active::after { animation: none; width: 100%; }
  .career-ig-btn { animation: none; }
}

/* ---------- Image Placeholder ---------- */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: #EAF0FB;
  border: 2px dashed var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  line-height: 1.55;
}

/* ---------- Buttons — Rounded rectangle + top-left dark → bottom-right light gradient ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
}

/* Dark top-left → light bottom-right gradient */
.btn-primary {
  background: linear-gradient(135deg, #1a2d7a 0%, #263B91 40%, #4B72F5 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 16px rgba(38, 59, 145, 0.42),
              0 1px 4px rgba(0, 0, 0, 0.12);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #142268 0%, #1e3080 40%, #3D62E8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(38, 59, 145, 0.52),
              0 3px 8px rgba(0, 0, 0, 0.14);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  box-shadow: 0 2px 8px rgba(38, 59, 145, 0.1);
}
.btn-ghost:hover {
  background: linear-gradient(135deg, #1a2d7a 0%, #263B91 40%, #4B72F5 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(38, 59, 145, 0.38);
  transform: translateY(-1px);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}
.btn-ghost-white:hover {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

/* ---------- Section Headers ---------- */
.section-header { margin-bottom: 56px; }
.section-header .label { display: block; margin-bottom: 12px; }
.section-header h2 { color: var(--ink); }
.section-header p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 540px;
  font-size: 1rem;
  line-height: 1.78;
}
.section-header.centered { text-align: center; }
.section-header.centered p { margin-left: auto; margin-right: auto; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 48px;
}

/* Logo: mark icon + wordmark text side by side */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-mark {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.nav-wordmark {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: auto; flex-shrink: 0; }

/* ---------- Language switcher ---------- */
.lang-switch {
  position: relative;
  flex-shrink: 0;
  /* .nav-inner carries a 48px gap; pull the switcher nearer the CTA button */
  margin-right: -26px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--blue); background: rgba(38, 59, 145, 0.06); }
.lang-btn svg { flex-shrink: 0; }
.lang-caret { transition: transform 0.25s ease; }
.lang-switch.open .lang-btn { color: var(--blue); }
.lang-switch.open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 184px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 210;
}
.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.lang-menu a:hover { background: var(--off-white); color: var(--blue); }
.lang-menu a[aria-current="true"] { color: var(--blue); font-weight: 700; }
.lang-code { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; }
.lang-menu a[aria-current="true"] .lang-code { color: var(--blue); }


/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 6px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px 32px 28px;
  flex-direction: column;
  gap: 0;
  z-index: 199;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile a:hover { color: var(--blue); }
.nav-mobile .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ============================================================
   HERO — Split Layout
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55% 45%;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 12px) 48px 64px 80px;
}
.hero-left .label { margin-bottom: 16px; }
.hero-left h1 { margin-bottom: 24px; color: var(--ink); }
/* Force exact 3-line break on desktop; allow reflow on mobile */
.hero-line {
  display: block;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .hero-line { white-space: normal; }
}

/* ---------- Hero load choreography (masked line-rise + staggered fade) ---------- */
/* Padding + matching negative margin gives glyph descenders room inside the
   clip without shifting layout. */
.hero-line-mask {
  display: block;
  overflow: hidden;
  padding: 0.08em 0.05em;
  margin: -0.08em -0.05em;
}
.hero-headline .hero-line {
  transform: translateY(110%);
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hero-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
/* Revealed once JS sets body.is-loaded (one frame after load) */
body.is-loaded .hero-headline .hero-line { transform: translateY(0); }
body.is-loaded .hero-reveal { opacity: 1; transform: none; }
/* Stagger: label → lines rising → paragraph → CTAs */
.hero-reveal[data-seq="1"]           { transition-delay: 0.05s; }
.hero-headline .hero-line[data-seq="1"] { transition-delay: 0.15s; }
.hero-headline .hero-line[data-seq="2"] { transition-delay: 0.29s; }
.hero-headline .hero-line[data-seq="3"] { transition-delay: 0.43s; }
.hero-reveal[data-seq="4"]           { transition-delay: 0.60s; }
.hero-reveal[data-seq="5"]           { transition-delay: 0.72s; }

/* Rotating globe emoji beside "to the World" */
.hero-globe-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.hero-globe {
  display: inline-block;
  font-size: 0.88em;
  line-height: 1;
  vertical-align: middle;
  flex-shrink: 0;
  user-select: none;
}
.hero-left > p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Slideshow */
.hero-right {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.slideshow {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active { opacity: 1; }
/* Ken Burns — slow one-direction drift on the visible slide only */
.slide img { transform: scale(1.001); }
.slide.active img {
  animation: kenburns var(--slide-duration, 4800ms) ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.001); }
  to   { transform: scale(1.07); }
}
.slide .img-placeholder {
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  border: none;
  border-left: 3px dashed var(--blue);
  font-size: 0.8rem;
  background: #DDE6F5;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slideshow-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.slideshow-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 4px;
  background: rgba(38, 59, 145, 0.28);
  border: none;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}
/* Active dot becomes a track that fills like a progress bar over the slide duration */
.slideshow-dot.active {
  width: 28px;
  background: rgba(38, 59, 145, 0.28);
}
.slideshow-dot.active::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--blue);
  border-radius: inherit;
  animation: dotfill var(--slide-duration, 4800ms) linear forwards;
}
@keyframes dotfill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + 52px);
  padding-bottom: 52px;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.page-hero-green {
  background: linear-gradient(to top left, rgba(2,177,80,0.18) 0%, rgba(2,177,80,0.06) 50%, #ffffff 100%);
}
.page-hero .breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: var(--blue); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { color: var(--ink); margin-bottom: 12px; }
.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.75;
}

/* ============================================================
   ABOUT TEASER
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .label { margin-bottom: 12px; display: block; }
.about-text h2 { margin-bottom: 20px; color: var(--ink); }
.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}
.about-text .btn { margin-top: 12px; }
.about-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.about-img .img-placeholder { height: 100%; min-height: unset; }
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   VISION & MISSION
   ============================================================ */
.visi-misi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.visi-misi-card {
  padding: 44px 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.visi-misi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--green));
  border-radius: 2px 0 0 2px;
}
.visi-misi-card .label { margin-bottom: 14px; display: block; }
.visi-misi-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
  line-height: 1.35;
}
.visi-misi-card p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.78;
}

/* ============================================================
   WHY NOBLE BRIDGE — Pillar Cards
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar-card {
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.pillar-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(38,59,145,0.1), rgba(2,177,80,0.12));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.6rem;
}
.pillar-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--blue);
}
.pillar-card p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.72;
}

/* ============================================================
   COMMODITIES GRID — Home Preview
   ============================================================ */
.commodities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.commodity-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.commodity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.commodity-thumb { aspect-ratio: 1 / 1; overflow: hidden; }
.commodity-thumb .img-placeholder {
  height: 100%;
  min-height: unset;
  border-radius: 0;
  border: none;
  border-bottom: 2px dashed var(--blue);
  font-size: 0.66rem;
  background: #DDE6F5;
}
.commodity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.commodity-card:hover .commodity-thumb img { transform: scale(1.05); }
.commodity-info { padding: 12px 14px 14px; }
.commodity-info .en {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
}
.commodity-info .id {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.commodities-footer { text-align: center; margin-top: 44px; }

/* ============================================================
   HOW WE WORK — Process Steps
   ============================================================ */
.process-wrap { position: relative; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}
.process-connector {
  position: absolute;
  top: 27px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 2px;
}
.process-step { text-align: center; padding: 0 32px; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d47a8, var(--blue));
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 18px rgba(38, 59, 145, 0.35);
}
.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.68;
}

/* ============================================================
   CTA BANNER — Blue with tiled logo watermark
   ============================================================ */
.cta-banner {
  background: var(--blue);
  padding: 72px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../Brand Visual/NB Mark.png');
  background-repeat: repeat;
  background-size: 110px auto;
  opacity: 0.06;
  filter: brightness(0) invert(1);
  z-index: 0;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner .label { color: var(--green); display: block; margin-bottom: 14px; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 500px;
  margin: 0 auto 40px;
  font-size: 1.02rem;
  line-height: 1.78;
}

/* ============================================================
   LEGAL PAGES (Terms & Privacy)
   ============================================================ */
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 40px 0 12px; }
.legal-body p { color: var(--ink); line-height: 1.8; margin-bottom: 16px; }
.legal-body ul { margin: 0 0 16px 20px; }
.legal-body ul li { line-height: 1.8; color: var(--ink); margin-bottom: 6px; }
.legal-body a { color: var(--blue); }
.legal-body a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER — White with green gradient
   ============================================================ */
.footer {
  background: linear-gradient(160deg, #ffffff 0%, rgba(2, 177, 80, 0.06) 60%, rgba(38, 59, 145, 0.04) 100%);
  border-top: 1px solid rgba(2, 177, 80, 0.18);
  color: var(--muted);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

/* Footer logo: mark + wordmark inline */
.footer-logo-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-mark {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.footer-wordmark {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--muted);
  max-width: 300px;
}
.footer-brand address {
  font-size: 0.84rem;
  margin-top: 18px;
  line-height: 1.85;
  color: var(--muted);
}
.footer-col h4 {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col li { margin-bottom: 10px; }
.footer-col li a {
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 6px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-bottom .accent { color: var(--green); font-weight: 600; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--muted); font-size: 0.8rem; text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--blue); }

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.product-thumb .img-placeholder {
  height: 100%;
  min-height: unset;
  border-radius: 0;
  border: none;
  border-bottom: 2px dashed var(--blue);
  font-size: 0.76rem;
  background: #DDE6F5;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-body { padding: 18px; }
.product-body .en-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}
.product-body .id-name {
  font-size: 0.83rem;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.product-body .origin {
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.product-body p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}
.product-body .inquire-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.product-body .inquire-link:hover { gap: 10px; }

/* ============================================================
   CAREERS PAGE
   ============================================================ */
.culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.culture-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.culture-img .img-placeholder { height: 100%; min-height: unset; }
.culture-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
}
.value-item::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.perk-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.perk-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.perk-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.perk-card h3 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.perk-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.62; }

/* Accordion */
.accordion-list { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  text-align: left;
  cursor: pointer;
  background: none;
  transition: background 0.2s;
}
.accordion-header:hover { background: var(--off-white); }
.accordion-meta { display: flex; gap: 16px; margin-top: 4px; }
.accordion-meta span {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.accordion-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.accordion-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(38, 59, 145, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.3s, background 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  background: var(--blue);
  color: var(--white);
}
.accordion-body {
  display: none;
  padding: 0 28px 28px;
}
.accordion-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 14px;
}
.accordion-body ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}
.accordion-body ul li {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.62;
}
.accordion-body .apply-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.9rem;
}
.accordion-body .apply-link:hover { text-decoration: underline; }
.accordion-item.open .accordion-body { display: block; }

.career-full-img { position: relative; width: 100%; overflow: hidden; max-height: 350px; }
.career-full-img img { width: 100%; height: 350px; object-fit: cover; display: block; }
.career-ig-btn {
  position: absolute;
  bottom: 13%;
  left: 7%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: ig-pulse 2.6s ease-in-out 1.2s infinite;
}
@keyframes ig-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(38,59,145,0.45); }
  50%       { transform: scale(1.045); box-shadow: 0 0 0 10px rgba(38,59,145,0); }
}
.culture-text-only { max-width: 680px; }
/* Hold the heading on one line only where there is room for it. */
@media (min-width: 1025px) {
  .culture-text h2 { white-space: nowrap; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(38, 59, 145, 0.1);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #dc2626; }
.form-error {
  font-size: 0.76rem;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}
.form-error.show { display: block; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-label-hint { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  /* Keep each item only as tall as its own content, so a two-line label next
     to a one-line label does not push its checkbox off-centre. */
  align-items: start;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 0;
}
/* Custom checkbox — empty rounded box that fills with a checkmark when selected */
.check-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  margin: 0;
  align-self: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.check-item input[type="checkbox"]:hover { border-color: var(--blue); }
.check-item input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue);
}
/* Checkmark drawn inside the box */
.check-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-item input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
/* Highlight the chosen item */
.check-item:has(input:checked) { color: var(--blue); font-weight: 600; }
.checklist-error { border-color: #dc2626; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; }
.form-success {
  display: none;
  padding: 16px 20px;
  background: rgba(2, 177, 80, 0.08);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: #016830;
  font-size: 0.88rem;
  margin-top: 16px;
  line-height: 1.6;
}
.form-success.show { display: block; }

.contact-info-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  margin-bottom: 24px;
}
.contact-info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}
.info-item:last-child { margin-bottom: 0; }
.info-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.info-item h4 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}
.info-item p, .info-item a {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.65;
}
.info-item a:hover { color: var(--blue); text-decoration: underline; }
.map-area { border-radius: 10px; overflow: hidden; }
.map-area .img-placeholder { min-height: 220px; border-radius: 0; }
#noble-bridge-map { width: 100%; height: 280px; border-radius: 10px; z-index: 0; }
.map-cta { margin-top: 14px; }
.map-cta a { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.map-cta a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  section { padding: 52px 0; }
  .container { padding: 0 24px; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; margin-left: 0; }
  .nav-inner { gap: 0; }

  /* Switcher stays in the bar, sitting just left of the hamburger */
  .lang-switch { margin-left: auto; margin-right: 2px; }
  .lang-btn { padding: 8px; gap: 5px; font-size: 0.8rem; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: calc(var(--nav-h) + 24px) 24px 40px; order: 1; }
  .hero-right { order: 2; min-height: 380px; position: relative; }
  .slideshow { position: absolute; }

  .about-grid,
  .culture-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img,
  .culture-img { aspect-ratio: 16 / 9; }

  .visi-misi-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; gap: 20px; }
  .process-steps { grid-template-columns: 1fr; gap: 40px; }
  .process-connector { display: none; }

  .commodities-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  section { padding: 44px 0; }
  .container { padding: 0 20px; }

  /* The footer nav duplicates the mobile drawer menu, so drop it on phones.
     Order in .footer-grid: 1 brand, 2 navigation, 3 contact. */
  .footer-grid > .footer-col:nth-child(2) { display: none; }

  /* The hero is written as exactly three lines. At larger sizes each line
     overflows and breaks again, orphaning a word ("Finest", "Bumi"), so scale
     it to the viewport until every written line fits on one physical line.
     The lang="id" selector is repeated here because the desktop Indonesian
     override outranks a bare .hero-left h1. */
  .hero-left h1,
  html[lang="id"] .hero-headline { font-size: clamp(1.4rem, 7.1vw, 1.95rem); }
  /* Safety net: if a line still wraps on an unusually narrow screen, split it
     evenly rather than leaving a single word stranded. */
  .hero-line { text-wrap: balance; }
  .hero-left > p { font-size: 0.97rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
  .hero-right { min-height: 280px; }

  .commodities-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* Stack the perk cards, each laid out as: icon | title over description */
  .perks-grid { grid-template-columns: 1fr; gap: 12px; }
  .perk-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    align-items: start;
    text-align: left;
    padding: 20px;
  }
  .perk-icon {
    grid-row: 1 / span 2;
    font-size: 1.7rem;
    line-height: 1;
    margin-bottom: 0;
  }
  .perk-card h3 { margin-bottom: 5px; }
  .perk-card:hover { transform: none; }

  /* The wide desktop banner crops badly on phones, so show the taller
     variant (served via <picture>) at its natural height instead. */
  .career-full-img { max-height: none; }
  .career-full-img img { height: auto; }

  /* Trim the overlay button to roughly 60% of its previous width */
  .career-ig-btn {
    max-width: 60%;
    padding: 9px 14px;
    gap: 7px;
    font-size: 0.7rem;
    line-height: 1.35;
    text-align: left;
    border-radius: 8px;
  }
  .career-ig-btn svg { width: 13px; height: 13px; }
  /* Break the label at the chosen point instead of wherever it happens to fit */
  .career-ig-btn .ig-label { display: flex; flex-direction: column; }

  /* Compact numbered cards: badge on the left, title over description on the
     right. Replaces the tall centred column so the section scrolls less. */
  .process-steps { grid-template-columns: 1fr; gap: 18px; }
  .process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: start;
    text-align: left;
    padding: 0;
  }
  .step-num {
    grid-row: 1 / span 2;
    width: 38px; height: 38px;
    font-size: 0.92rem;
    margin: 0;
  }
  .process-step h3 { font-size: 0.97rem; margin-bottom: 5px; }
  .process-step p { font-size: 0.85rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  /* Two columns (3 left, 3 right) rather than one tall list */
  .values-list { grid-template-columns: 1fr 1fr; gap: 11px 12px; margin-top: 20px; }
  .value-item { font-size: 0.82rem; gap: 8px; }
  .value-item::before { width: 7px; height: 7px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { gap: 40px; }
  .section-header { margin-bottom: 36px; }
  .cta-banner { padding: 52px 20px; }
  .accordion-header { padding: 18px 20px; }
  .accordion-body { padding: 0 20px 20px; }
  .visi-misi-card { padding: 32px 28px; }
}

/* ============================================================
   MOBILE MOTION — lift-in reveals with a sequential cascade.
   Guarded on no-preference so it can never override the
   reduced-motion rules declared earlier in this file.
   ============================================================ */
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  /* Sideways travel reads awkwardly on a narrow screen, so everything lifts. */
  .animate,
  .animate.anim-left,
  .animate.anim-right {
    transform: translateY(22px) scale(0.985);
    transition-duration: 0.66s;
  }
  .animate.is-visible,
  .animate.anim-left.is-visible,
  .animate.anim-right.is-visible { transform: none; }

  .animate.anim-img { transform: scale(1.05); clip-path: inset(0 0 14% 0); }
  .animate.anim-img.is-visible { transform: scale(1); clip-path: inset(0 0 0 0); }

  /* Stacked cards arrive one after another instead of all at once. */
  .process-steps > .process-step:nth-child(2),
  .perks-grid > .perk-card:nth-child(2) { transition-delay: 0.09s; }
  .process-steps > .process-step:nth-child(3),
  .perks-grid > .perk-card:nth-child(3) { transition-delay: 0.17s; }
  .perks-grid > .perk-card:nth-child(4) { transition-delay: 0.25s; }

  /* The number badge settles in just after its card, with a slight overshoot. */
  .process-step .step-num {
    transform: scale(0.82);
    transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) 0.08s;
  }
  .process-step.is-visible .step-num { transform: scale(1); }
}
