/* =========================================================
   JACE CORPORATION — Design System
   Global Resource Trading — corporate website stylesheet
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand colors */
  --navy: #0B2342;
  --navy-600: #0f2c52;
  --navy-700: #142f5c;
  --charcoal: #252A30;
  --bg-warm: #F7F6F2;
  --white: #FFFFFF;
  --gold: #C49A4A;
  --gold-dark: #A67F3B;
  --gray-metal: #9AA0A6;
  --line: rgba(11, 35, 66, 0.14);
  --line-soft: rgba(11, 35, 66, 0.08);
  --line-on-dark: rgba(255, 255, 255, 0.18);
  --text-body: #3B3F45;
  --text-muted: #6B7178;

  /* Typography */
  --font-sans: 'Manrope', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', 'Noto Serif KR', Georgia, serif;

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4rem;
  --sp-8: 6rem;
  --sp-9: 8rem;

  /* Layout */
  --container-w: 1240px;
  --header-h: 100px;
  --header-h-scrolled: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-warm);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Typography ---------- */
h1, .h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
}
h2, .h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--navy);
}
h3, .h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  line-height: 1.3;
  color: var(--navy);
}
.eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow--onDark { color: var(--gold); }
.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 46em;
}
.body-text { font-size: 1rem; color: var(--text-body); line-height: 1.75; max-width: 42em; }
.small-caps {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
@media (max-width: 640px) {
  .container { padding: 0 var(--sp-4); }
}
.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-7) 0; }
.section--navy { background: var(--navy); color: rgba(255,255,255,0.88); }
.section--navy h2, .section--navy h1, .section--navy h3 { color: var(--white); }
.section--charcoal { background: var(--charcoal); color: rgba(255,255,255,0.86); }
.section--charcoal h2, .section--charcoal h1 { color: var(--white); }
.section--white { background: var(--white); }
.section--bordered { border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--sp-6); min-width: 0; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.section-head { max-width: 46em; margin-bottom: var(--sp-6); }
.section-head--between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.95em 1.7em;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-700); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline--onDark { color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline--onDark:hover { background: var(--white); color: var(--navy); }
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.btn-text:hover { border-color: var(--navy); }
.btn-text--onDark { color: var(--white); border-color: var(--line-on-dark); }
.btn-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height .25s ease;
}
.site-header.is-scrolled .header-inner { height: var(--header-h-scrolled); }

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.brand img.brand-mark {
  height: 52px;
  width: 52px;
  transition: height .25s ease, width .25s ease;
}
.site-header.is-scrolled .brand img.brand-mark { height: 40px; width: 40px; }
.brand img.brand-symbol {
  height: 58px;
  width: auto;
  transition: height .25s ease;
}
.site-header.is-scrolled .brand img.brand-symbol { height: 44px; }
.brand-word {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1;
}
.brand-sub {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-top: 4px;
}
.brand-divider {
  width: 1px;
  height: 38px;
  background: var(--line);
  margin: 0 var(--sp-3);
}
.brand-descriptor {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  max-width: 8em;
  line-height: 1.3;
}

.nav-desktop { display: flex; align-items: center; gap: var(--sp-6); }
.nav-links { display: flex; gap: var(--sp-5); }
.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right .2s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--navy); }

.header-cta { display: flex; align-items: center; gap: var(--sp-4); }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.lang-switch a { color: var(--text-muted); }
.lang-switch a.is-active { color: var(--navy); border-bottom: 1px solid var(--gold); }
.lang-switch a:hover { color: var(--navy); }
@media (max-width: 980px) { .lang-switch { display: none; } }
.mobile-lang-switch {
  display: flex; gap: var(--sp-3); padding: 0 var(--sp-5) var(--sp-4);
  font-size: 0.9rem; font-weight: 700;
}
.mobile-lang-switch a { color: var(--text-muted); }
.mobile-lang-switch a.is-active { color: var(--navy); border-bottom: 1px solid var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); }

@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .brand-descriptor, .brand-divider { display: none; }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--sp-4);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav-close { background: none; border: none; font-size: 1.6rem; color: var(--navy); line-height: 1; padding: var(--sp-2); }
.mobile-nav-links { padding: var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-1); }
.mobile-nav-links a {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--navy);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav-cta { padding: 0 var(--sp-5) var(--sp-6); margin-top: auto; }
.mobile-nav-cta .btn { width: 100%; justify-content: center; }

/* ---------- Media Placeholder (documentary-photography placeholder) ----------
   Flat solid fields only — no color gradients or glow effects, per brand rule.
   A thin gold corner frame + caption stand in for real photography until
   documentary images are supplied. */
.media {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: var(--ar, 4 / 3);
  isolation: isolate;
}
.media::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 30px);
}
.media::after {
  content: '';
  position: absolute;
  left: var(--sp-3); top: var(--sp-3); right: var(--sp-3); bottom: var(--sp-3);
  border: 1px solid rgba(196,154,74,0.35);
  pointer-events: none;
}
.media .media-caption {
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-4);
  right: var(--sp-4);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: rgba(255,255,255,0.82);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.media .media-caption::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.media--photo::before { display: none; }
.media--photo img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.media--warm { background: var(--charcoal); }
.media--light { background: #E7E4DC; }
.media--light::before { opacity: 0.5; background-image: repeating-linear-gradient(115deg, rgba(11,35,66,0.05) 0px, rgba(11,35,66,0.05) 1px, transparent 1px, transparent 30px); }
.media--light::after { border-color: rgba(196,154,74,0.5); }
.media--light .media-caption { color: rgba(37,42,48,0.7); }
.media--light .media-caption::before { background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  border-bottom: 1px solid rgba(196,154,74,0.4);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(8,24,48,0.72);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--sp-9) 0 var(--sp-7);
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); margin: var(--sp-3) 0 var(--sp-4); max-width: 16em; }
.hero .lede { color: rgba(255,255,255,0.86); margin-bottom: var(--sp-5); font-size: 1.28rem; line-height: 1.6; max-width: 40em; }
.hero-tags {
  margin-top: var(--sp-6);
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border-top: 1px solid var(--line-on-dark);
  padding-top: var(--sp-4);
}

/* ---------- Page Hero (interior pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-8) 0 var(--sp-7);
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: var(--white); margin-top: var(--sp-3); }
.page-hero .lede { color: rgba(255,255,255,0.78); margin-top: var(--sp-4); }
.breadcrumb {
  display: flex; gap: 0.5em; align-items: center;
  font-size: 0.9rem; color: rgba(255,255,255,0.55);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Editorial Split (Who We Are) ---------- */
.editorial-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-8);
  align-items: center;
  min-width: 0;
}
.editorial-split > * { min-width: 0; }
.editorial-split.reverse { direction: rtl; }
.editorial-split.reverse > * { direction: ltr; }
@media (max-width: 900px) {
  .editorial-split { grid-template-columns: 1fr; gap: var(--sp-6); }
}
.editorial-split h2 { margin: var(--sp-3) 0 var(--sp-4); }

/* ---------- Process Steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.process.on-dark { border-top-color: var(--line-on-dark); }
@media (max-width: 900px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
}
.process-step {
  padding: var(--sp-6) var(--sp-5);
  border-right: 1px solid var(--line);
}
.process.on-dark .process-step { border-right-color: var(--line-on-dark); }
.process-step:last-child { border-right: none; }
@media (max-width: 900px) {
  .process-step:nth-child(2n) { border-right: none; }
}
@media (max-width: 560px) {
  .process-step { border-right: none !important; border-bottom: 1px solid var(--line); }
  .process.on-dark .process-step { border-bottom-color: var(--line-on-dark); }
  .process-step:last-child { border-bottom: none; }
}
.process-step .step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-3);
}
.process.on-dark .step-num { color: var(--gold); }
.process-step h3 { margin: 0 0 var(--sp-3); font-size: 1.5rem; }
.process-step p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }
.process.on-dark .process-step p { color: rgba(255,255,255,0.7); }

/* ---------- Material Category Rows ---------- */
.material-row {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: var(--sp-7);
  padding: var(--sp-7) 0;
  border-top: 1px solid var(--line);
}
.material-row:last-child { padding-bottom: 0; }
@media (max-width: 860px) {
  .material-row { grid-template-columns: 1fr; gap: var(--sp-4); }
}
.material-row .cat-label { color: var(--text-muted); margin-top: var(--sp-2); max-width: 30em; }
.material-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2) var(--sp-6);
}
@media (max-width: 560px) { .material-list { grid-template-columns: 1fr; } }
.material-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.98rem;
}
.material-list li a { display: flex; justify-content: space-between; width: 100%; gap: var(--sp-3); }
.material-list li a:hover { color: var(--navy); }
.material-list .arrow { color: var(--gold-dark); flex: none; }

.brand-identity-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--sp-7);
  align-items: center;
}
@media (max-width: 860px) {
  .brand-identity-row { grid-template-columns: 220px 1fr; }
}
@media (max-width: 640px) {
  .brand-identity-row { grid-template-columns: 1fr; }
  .brand-identity-row img { width: 200px; height: 200px; margin: 0 auto; }
}

/* ---------- Cards (used sparingly) ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: var(--sp-5);
}

/* ---------- Spec Table (Featured Product) ---------- */
.spec-table { border-top: 1px solid var(--line); margin-top: var(--sp-3); }
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 560px) { .spec-row { grid-template-columns: 1fr; gap: 4px; } }
.spec-row dt {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.spec-row dd { margin: 0; font-size: 0.98rem; color: var(--text-body); }
.spec-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: var(--sp-3);
  font-style: italic;
}

/* ---------- Verification Stepper ---------- */
.stepper {
  display: flex;
  flex-direction: column;
  max-width: 640px;
}
.stepper-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  position: relative;
}
.stepper-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px; top: 30px; bottom: 0;
  width: 1px;
  background: var(--line-on-dark);
}
.stepper-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 700; color: var(--gold);
  flex: none;
}
.stepper-item h4 { color: var(--white); font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.stepper-item p { color: rgba(255,255,255,0.65); font-size: 1rem; margin: 0; }
.tool-tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-6); }
.tool-tag {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em;
  border: 1px solid var(--line-on-dark); color: rgba(255,255,255,0.75);
  padding: 0.5em 0.9em;
}

/* ---------- Network flow diagram (abstract, minimalist — no literal map/globe) ---------- */
.network-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-6);
  align-items: center;
  padding: var(--sp-7) 0;
}
@media (max-width: 860px) {
  .network-flow { grid-template-columns: 1fr; text-align: center; }
}
.network-col { display: flex; flex-direction: column; gap: var(--sp-2); }
.network-col.align-end { align-items: flex-end; }
@media (max-width: 860px) { .network-col.align-end { align-items: center; } }
.network-col-label {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: var(--sp-2);
}
.region-chip {
  display: inline-block;
  border: 1px solid var(--line-on-dark);
  padding: 0.6em 1.1em;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.85);
  width: fit-content;
}
@media (max-width: 860px) { .region-chip { margin: 0 auto; } }
.network-hub {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  text-align: center;
}
.hub-line { width: 1px; height: 34px; background: var(--gold); }
.hub-line--h { display: none; }
.hub-node {
  width: 128px; height: 128px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
}
.hub-node .small-caps { color: var(--gold); }
.hub-node .hub-title { font-family: var(--font-serif); font-size: 1.3rem; color: var(--white); }
.hub-arrow { color: var(--gold); font-size: 1.4rem; }

/* ---------- Buyer/Seller Split ---------- */
.bs-split { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .bs-split { grid-template-columns: 1fr; } }
.bs-panel {
  padding: var(--sp-8) var(--sp-6);
  border-top: 1px solid var(--line-on-dark);
}
.bs-panel:first-child { border-right: 1px solid var(--line-on-dark); }
@media (max-width: 860px) { .bs-panel:first-child { border-right: none; border-bottom: 1px solid var(--line-on-dark); } }
.bs-panel .small-caps { color: var(--gold); }
.bs-panel h3 { color: var(--white); font-size: clamp(1.5rem,2.4vw,2rem); margin: var(--sp-2) 0 var(--sp-3); }
.bs-panel p { color: rgba(255,255,255,0.7); margin-bottom: var(--sp-5); max-width: 34em; }

/* ---------- Why JACE ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.principle {
  padding: var(--sp-6) var(--sp-5);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principle .step-num { color: var(--gold-dark); font-family: var(--font-serif); }
.principle h3 { margin: var(--sp-3) 0 var(--sp-2); font-size: 1.15rem; }
.principle p { color: var(--text-muted); font-size: 1rem; }

/* ---------- Insights / Article cards ---------- */
.insight-list { display: flex; flex-direction: column; }
.insight-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: var(--sp-4);
  align-items: baseline;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) { .insight-item { grid-template-columns: 1fr; gap: 6px; } }
.insight-item .cat { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); }
.insight-item h3 { font-size: 1.1rem; font-weight: 600; }
.insight-item a:hover h3 { color: var(--gold-dark); }
.insight-item .meta { font-size: 0.9rem; color: var(--text-muted); white-space: nowrap; }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 900px) { .insight-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .insight-grid { grid-template-columns: 1fr; } }
.insight-card .cat { color: var(--gold-dark); }
.insight-card h3 { margin: var(--sp-2) 0 var(--sp-2); }
.insight-card p { color: var(--text-muted); font-size: 1rem; }
.tag-filter { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.tag-filter a {
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.6em 1em; border: 1px solid var(--line); color: var(--text-muted);
}
.tag-filter a.is-active, .tag-filter a:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Article page ---------- */
.article-head { max-width: 42em; margin: 0 auto; text-align: left; }
.article-meta { display: flex; gap: var(--sp-3); align-items: center; color: var(--text-muted); font-size: 0.95rem; margin-top: var(--sp-3); }
.article-body { max-width: 42em; margin: 0 auto; }
.article-body p { margin-bottom: var(--sp-4); font-size: 1.05rem; line-height: 1.85; color: var(--text-body); }
.article-body h2 { font-size: 1.5rem; margin: var(--sp-7) 0 var(--sp-3); }
.article-body h3 { font-size: 1.2rem; margin: var(--sp-6) 0 var(--sp-2); }
.article-body ul { margin: 0 0 var(--sp-4); padding-left: 1.2em; list-style: disc; }
.article-body li { margin-bottom: 0.5em; line-height: 1.7; }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: var(--sp-4);
  margin: var(--sp-6) 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
}
.article-related { max-width: 42em; margin: var(--sp-8) auto 0; border-top: 1px solid var(--line); padding-top: var(--sp-5); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-5); min-width: 0; }
.form-grid > * { min-width: 0; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5em; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy);
}
.field .opt { color: var(--text-muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.85em 1em;
  font-size: 0.98rem;
  color: var(--text-body);
  border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: var(--sp-3);
  border-top: 1px solid var(--line-soft);
  padding-top: var(--sp-3);
}
.form-actions { margin-top: var(--sp-5); display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.form-success {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  padding: var(--sp-6);
  text-align: center;
}
.form-success.is-visible { display: block; }
.form-success h3 { margin-bottom: var(--sp-2); }
.form-success p { color: var(--text-muted); }
form.is-submitted .form-fields-wrap { display: none; }

/* ---------- Review notice ---------- */
.review-notice {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid var(--line);
  padding: var(--sp-2) var(--sp-3);
  width: fit-content;
}

/* ---------- Verified badge (future functionality, clearly unverified state) ---------- */
.verify-list { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }
.verify-list li { display: flex; gap: 0.7em; align-items: flex-start; font-size: 1rem; color: var(--text-muted); }
.verify-list li::before { content: '—'; color: var(--gold-dark); flex: none; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: flex;
  gap: var(--sp-8);
  flex-wrap: wrap;
  padding-top: var(--sp-6);
  margin-top: var(--sp-6);
  border-top: 1px solid var(--line-on-dark);
}
.stat .stat-num { font-family: var(--font-serif); font-size: 2rem; color: var(--gold); }
.stat .stat-label { font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ---------- Chat Widget ---------- */
.chat-toggle {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 120;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(196,154,74,0.5);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(11,35,66,0.28);
  transition: background-color .2s ease, transform .15s ease;
}
.chat-toggle:hover { background: var(--navy-700); }
.chat-toggle:active { transform: scale(0.96); }
.chat-toggle svg { width: 26px; height: 26px; }
.chat-toggle .chat-icon-close { display: none; }
.chat-toggle.is-open .chat-icon-chat { display: none; }
.chat-toggle.is-open .chat-icon-close { display: block; }
@media (max-width: 720px) {
  .chat-toggle { bottom: 92px; right: var(--sp-4); }
}

.chat-panel {
  position: fixed;
  right: var(--sp-5);
  bottom: calc(var(--sp-5) + 76px);
  z-index: 119;
  width: 340px;
  max-width: calc(100vw - 2 * var(--sp-4));
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(11,35,66,0.22);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.chat-panel.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (max-width: 720px) {
  .chat-panel { bottom: 156px; right: var(--sp-4); }
}
.chat-panel-header {
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-4);
}
.chat-panel-header .brand-word { color: var(--white); font-size: 1.1rem; }
.chat-panel-header p { margin-top: 4px; font-size: 0.82rem; color: rgba(255,255,255,0.65); }
.chat-panel-body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-height: 280px;
  overflow-y: auto;
  background: var(--bg-warm);
}
.chat-msg {
  max-width: 85%;
  padding: 0.7em 0.9em;
  font-size: 0.92rem;
  line-height: 1.5;
  border-radius: 3px;
}
.chat-msg--bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--text-body);
}
.chat-msg--user {
  align-self: flex-end;
  background: var(--navy);
  color: var(--white);
}
.chat-panel-footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-3);
  display: flex;
  gap: var(--sp-2);
}
.chat-panel-footer input {
  flex: 1;
  border: 1px solid var(--line);
  padding: 0.65em 0.8em;
  font-size: 0.92rem;
  border-radius: 2px;
}
.chat-panel-footer input:focus { outline: none; border-color: var(--navy); }
.chat-panel-footer button {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 0 var(--sp-4);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 2px;
}
.chat-panel-footer button:hover { background: var(--navy-700); }
.chat-panel-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  padding: 0 var(--sp-4) var(--sp-3);
  background: var(--bg-warm);
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--navy);
  padding: var(--sp-3) var(--sp-4);
  display: none;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.15);
}
.sticky-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 720px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.72); padding: var(--sp-8) 0 var(--sp-5); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); padding-bottom: var(--sp-7); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-logo-badge {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
}
.footer-logo { width: 88px; height: 88px; display: block; }
.footer-brand .brand-word { color: var(--white); }
.footer-brand .brand-descriptor { color: rgba(255,255,255,0.55); }
.footer-tagline { margin-top: var(--sp-4); font-family: var(--font-serif); font-size: 1.05rem; color: var(--gold); max-width: 20em; }
.footer-col h4 {
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: var(--sp-3);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65em; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--line-on-dark);
  padding-top: var(--sp-5);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
}
.footer-est { display: flex; align-items: center; gap: 0.9em; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; }
.footer-est-name { color: var(--white); font-weight: 600; }
.footer-est-dot { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.footer-copy { text-align: center; letter-spacing: 0.02em; }
.footer-legal { display: flex; gap: var(--sp-4); justify-content: flex-end; }
@media (max-width: 860px) {
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-legal { justify-content: center; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: var(--sp-1); } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white); padding: 1em 1.4em; z-index: 999;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* Visually hidden but accessible */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Trade references carousel ---------- */
.ref-stage { position: relative; }
.ref-slide { display: none; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: var(--sp-7); align-items: center; }
.ref-slide.is-active { display: grid; animation: refFade 0.6s ease; }
@keyframes refFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ref-doc {
  display: block; background: var(--bg-warm); padding: var(--sp-3);
  border: 1px solid rgba(196,154,74,0.55); cursor: zoom-in; max-width: 520px; justify-self: center;
}
.ref-doc img { display: block; width: 100%; height: auto; box-shadow: 0 1px 0 var(--line); }
.ref-count { font-family: var(--font-serif); font-size: 1.1rem; color: var(--text-muted); margin-bottom: var(--sp-2); }
.ref-count span { color: var(--gold-dark); font-size: 1.6rem; }
.ref-info h2 { margin: var(--sp-2) 0 var(--sp-4); }
.ref-controls { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-6); max-width: 620px; }
.ref-btn {
  width: 48px; height: 48px; flex: none; border: 1px solid var(--line); background: transparent;
  color: var(--navy); font-size: 1.1rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.ref-btn:hover, .ref-btn:focus-visible { background: var(--navy); color: var(--white); border-color: var(--navy); }
.ref-progress { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.ref-progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); }
.ref-thumbs { display: grid; grid-template-columns: repeat(9, 1fr); gap: var(--sp-2); margin-top: var(--sp-5); }
.ref-thumb { padding: 0; border: 1px solid var(--line); background: var(--bg-warm); cursor: pointer; opacity: 0.55; transition: opacity .2s, border-color .2s; }
.ref-thumb img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.ref-thumb:hover, .ref-thumb.is-active { opacity: 1; }
.ref-thumb.is-active { border-color: var(--gold); }
.ref-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,24,48,0.92); display: flex; align-items: center; justify-content: center; padding: var(--sp-4); overflow: auto; }
.ref-lightbox[hidden] { display: none; }
.ref-lightbox img { max-width: min(900px, 100%); max-height: 94vh; height: auto; background: #fff; }
.ref-lightbox-close { position: fixed; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }
@media (max-width: 900px) {
  .ref-slide.is-active { grid-template-columns: 1fr; gap: var(--sp-5); }
  .ref-thumbs { grid-template-columns: repeat(5, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .ref-slide.is-active { animation: none; } }
.principles--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .principles--3 { grid-template-columns: 1fr; } }

/* ---------- Header fit fixes ---------- */
.nav-links a, .lang-switch, .lang-switch a, .header-cta .btn { white-space: nowrap; }
.nav-desktop { gap: var(--sp-5); }
.nav-links { gap: var(--sp-4); }
.site-header .brand-descriptor, .site-header .brand-divider { display: none; }
@media (max-width: 1260px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}
address.footer-legal { font-style: normal; text-align: right; display: block; }
@media (max-width: 860px) { address.footer-legal { text-align: center; } }

/* ---------- Home: material photo tiles ---------- */
.material-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-7); }
.material-tile { display: block; color: inherit; }
.mt-img { display: block; aspect-ratio: 4/5; overflow: hidden; border: 1px solid var(--line); background: var(--bg-warm); }
.mt-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.material-tile:hover .mt-img img { transform: scale(1.04); }
.mt-name { display: block; margin-top: var(--sp-3); font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); }
.mt-sub { display: block; margin-top: 4px; font-size: 1rem; color: var(--text-muted); }
@media (max-width: 900px) { .material-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Who We Are copy ---------- */
.who-triplet { margin: var(--sp-5) 0; padding-left: var(--sp-4); border-left: 2px solid var(--gold); font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.6; font-weight: 600; color: var(--navy); }
.who-closing { margin-top: var(--sp-5); font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.6; color: var(--navy); }
.who-sign { margin-top: var(--sp-4); font-size: 1rem; color: var(--text-muted); line-height: 1.5; }
.who-sign strong { color: var(--navy); }

/* Fixed header: compaction must not shift page layout (prevents scroll flicker) */
html { scroll-padding-top: var(--header-h-scrolled); overflow-anchor: none; }
body { padding-top: var(--header-h); overflow-anchor: none; }

/* Language switch visible in the header bar on mobile / tablet */
.header-lang { display: none; align-items: center; gap: 0.45em; margin-left: auto; margin-right: var(--sp-3); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-muted); white-space: nowrap; }
.header-lang a { color: var(--text-muted); padding: 6px 2px; }
.header-lang a.is-active { color: var(--navy); border-bottom: 2px solid var(--gold); }
@media (max-width: 1260px) { .header-lang { display: flex; } }
