/* ==========================================================================
   Kord Asia Pte. Ltd. — Single-page corporate site
   Palette: deep navy / charcoal / warm white / soft grey / restrained gold
   ========================================================================== */

:root {
  --navy-900: #081627;
  --navy-800: #0A1B2E;
  --navy-700: #10253D;
  --ink: #1C2530;
  --ink-soft: #333E4B;
  --slate: #5B6675;
  --slate-light: #8A94A1;
  --warm-white: #FAF8F3;
  --soft-grey: #F0EDE4;
  --line: #E3DED1;
  --line-dark: rgba(255, 255, 255, 0.12);
  --gold: #C0A268;          /* accent on dark */
  --gold-deep: #9A7B3F;     /* accent on light */
  --gold-ink: #6E5626;      /* small text on light */
  --gold-btn: #C9A962;
  --gold-btn-hover: #D9C084;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 76px;
  --radius: 14px;
  --shadow-card: 0 1px 2px rgba(16, 32, 51, 0.05), 0 14px 34px -18px rgba(16, 32, 51, 0.18);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.18; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(192, 162, 104, 0.35); }

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 32px);
  padding-right: clamp(20px, 4vw, 32px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--navy-800);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.25s;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--gold); }

h2 {
  font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.6rem);
  color: var(--navy-800);
  max-width: 720px;
}
.section-dark h2 { color: #F4F1E9; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold-btn);
  color: var(--navy-900);
  box-shadow: 0 10px 26px -12px rgba(201, 169, 98, 0.55);
}
.btn-gold:hover { background: var(--gold-btn-hover); }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #EDEAE2;
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: #EDEAE2;
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }

.btn-lg { padding: 17px 36px; font-size: 16px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(250, 248, 243, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(16, 32, 51, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #F4F1E9;
  transition: color 0.35s;
}
.site-nav.scrolled .brand { color: var(--navy-800); }
.brand-mark { flex: none; }
.brand-word {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-dot { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 30px; }

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(244, 241, 233, 0.82);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transition: right 0.35s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-link:hover, .nav-link.is-active { color: var(--gold); }
.site-nav.scrolled .nav-link { color: var(--ink-soft); }
.site-nav.scrolled .nav-link:hover,
.site-nav.scrolled .nav-link.is-active { color: var(--gold-deep); }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy-900);
  background: var(--gold-btn);
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.3s;
}
.nav-cta:hover { background: var(--gold-btn-hover); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  height: 1.6px;
  width: 100%;
  background: #F4F1E9;
  transition: transform 0.35s var(--ease-out), background 0.35s;
}
.site-nav.scrolled .nav-toggle span { background: var(--navy-800); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.3px) rotate(-45deg); }

.mobile-panel {
  display: none;
  flex-direction: column;
  padding: 8px clamp(20px, 4vw, 32px) 26px;
  background: rgba(250, 248, 243, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.mobile-panel.open { display: flex; }
.m-link {
  padding: 13px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.m-link:last-child { border-bottom: none; }
.m-cta { color: var(--gold-deep); font-weight: 600; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  background: var(--navy-800);
  color: #F4F1E9;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1100px 600px at 78% 32%, rgba(192, 162, 104, 0.09), transparent 62%),
    radial-gradient(900px 700px at 12% 88%, rgba(31, 74, 112, 0.35), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 78px 78px, 78px 78px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-title {
  font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4rem);
  font-weight: 500;
  color: #FAF8F3;
  max-width: 15ch;
}

.hero-sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(1.02rem, 0.97rem + 0.3vw, 1.15rem);
  line-height: 1.75;
  color: #B9C2CC;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero-art svg { width: 100%; height: auto; }

.route {
  stroke-dasharray: 4 9;
  animation: routeFlow 7s linear infinite;
}
@keyframes routeFlow { to { stroke-dashoffset: -260; } }

.hub-pulse {
  fill: none;
  stroke-width: 1.4;
  animation: hubPulse 3.2s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes hubPulse {
  0%   { transform: scale(0.55); opacity: 0.9; }
  70%  { transform: scale(2.1);  opacity: 0; }
  100% { transform: scale(2.1);  opacity: 0; }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.4px solid rgba(244, 241, 233, 0.35);
  border-radius: 999px;
  transition: border-color 0.3s;
}
.scroll-hint:hover { border-color: var(--gold); }
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollDot 2.2s var(--ease-out) infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { padding: clamp(90px, 11vw, 140px) 0; scroll-margin-top: calc(var(--nav-h) - 10px); }
.section-tint { background: var(--soft-grey); }
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.about-copy p {
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.13rem);
  color: var(--ink-soft);
}
.about-points li {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.about-points li:last-child { border-bottom: 1px solid var(--line); }
.about-points svg { flex: none; margin-top: 3px; }
.about-points strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 3px;
}
.about-points span { font-size: 15px; color: var(--slate); }

/* ---------- Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  padding: 38px 32px 34px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, border-color 0.45s, opacity 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(154, 123, 63, 0.45);
  box-shadow: 0 2px 4px rgba(16, 32, 51, 0.05), 0 26px 48px -22px rgba(16, 32, 51, 0.28);
}
.card-num {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--slate-light);
}
.card-icon { margin-bottom: 24px; }
.card h3 {
  font-size: 21px;
  color: var(--navy-800);
  margin-bottom: 12px;
}
.card p { font-size: 15px; color: var(--slate); }

.services-note {
  margin-top: 44px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  font-style: italic;
  color: var(--gold-ink);
  text-align: center;
}

/* ---------- Approach ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 30px;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.step::after {
  content: "";
  position: absolute;
  top: -3.5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-deep);
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.step h3 {
  font-size: 20px;
  color: var(--navy-800);
  margin-bottom: 10px;
}
.step p { font-size: 14.5px; color: var(--slate); }

/* ---------- Why Kord Asia ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 40px;
}
.why-item {
  padding: 28px 30px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.why-item h3 {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 19px;
  color: var(--navy-800);
  margin-bottom: 10px;
}
.why-mark {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--gold-deep);
  transform: rotate(45deg);
}
.why-item p { font-size: 15px; color: var(--slate); }
.why-closing {
  margin-top: 48px;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.55;
  color: var(--navy-800);
}

/* ---------- Regional coverage (dark) ---------- */
.section-dark { background: var(--navy-800); color: #C6CDD5; }
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.coverage-text {
  margin: 22px 0 34px;
  max-width: 48ch;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.1rem);
  line-height: 1.8;
  color: #AEB7C1;
}

.coverage-map {
  position: relative;
  aspect-ratio: 4 / 3;
}
.coverage-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.map-node {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #A9B7C6;
}
.map-node::after {
  content: attr(data-city);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(198, 205, 213, 0.65);
  white-space: nowrap;
}
.map-node.is-hub {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--gold);
}
.map-node.is-hub::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.4px solid rgba(192, 162, 104, 0.55);
  animation: hubPulse 3.2s ease-out infinite;
}
.map-node.is-hub::after {
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Contact ---------- */
.section-contact { border-top: 1px solid var(--line); }
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner h2 { margin-left: auto; margin-right: auto; }
.contact-text {
  margin: 24px auto 38px;
  max-width: 54ch;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.1rem);
  color: var(--slate);
}
.contact-mail { margin-top: 26px; }
.contact-mail a {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 1.9rem);
  color: var(--navy-800);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.3s;
}
.contact-mail a:hover { color: var(--gold-deep); }
.contact-note {
  margin-top: 26px;
  font-size: 14px;
  color: var(--slate-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: #8D98A5;
  padding: 56px 0 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 19px;
  color: #EDEAE2;
  margin-bottom: 6px;
}
.footer-tag { font-size: 13.5px; }
.footer-contact { text-align: right; }
.footer-contact a {
  display: inline-block;
  font-size: 15px;
  color: #C6CDD5;
  text-decoration: none;
  border-bottom: 1px solid rgba(192, 162, 104, 0.5);
  padding-bottom: 2px;
  transition: color 0.3s;
}
.footer-contact a:hover { color: var(--gold); }
.footer-legal {
  margin-top: 12px;
  font-size: 13px;
  color: #6E7887;
}
.legal-link {
  background: none;
  border: none;
  padding: 2px 4px;
  font-size: 13px;
  color: #8D98A5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.legal-link:hover { color: var(--gold); }
.footer-copy {
  width: 100%;
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 12.5px;
  color: #6E7887;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 22, 39, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}
.modal.open { opacity: 1; }
.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: min(78vh, 720px);
  overflow-y: auto;
  padding: clamp(30px, 5vw, 48px);
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(8, 22, 39, 0.6);
  transform: translateY(16px);
  transition: transform 0.35s var(--ease-out);
}
.modal.open .modal-card { transform: none; }

.modal-card h3 {
  font-size: 26px;
  color: var(--navy-800);
  margin-bottom: 18px;
}
.modal-card p { font-size: 14.5px; color: var(--slate); }
.modal-card a { color: var(--gold-deep); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--soft-grey);
  color: var(--ink);
  transition: background 0.3s, color 0.3s;
}
.modal-close:hover { background: var(--navy-800); color: #fff; }

body.modal-open { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 8px auto 0; }
  .hero-title { max-width: 20ch; }
  .steps { grid-template-columns: 1fr 1fr; gap: 34px 26px; }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .about-grid, .coverage-grid { grid-template-columns: 1fr; }
  .coverage-map { max-width: 520px; margin: 0 auto; width: 100%; }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding-bottom: 80px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .scroll-hint { display: none; }
  .map-node::after { display: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
