/* DNG Partners — static site styles
   Zero-runtime JS. Webfonts self-referenced from Google Fonts (CSP updated in _headers).
   Brand: boutique Singapore C-level advisory. Navy + warm gold, heraldic crest,
   editorial serif (Spectral) over a precise grotesk (Archivo), thin gold rule system. */

:root {
  --ink: #14213d;            /* deep navy — headings, brand ground */
  --ink-2: #1c2c4f;          /* lifted navy */
  --ink-3: #24386b;          /* navy accents */
  --ink-soft: #404a60;       /* body text */
  --muted: #6c7488;          /* secondary text */
  --gold: #c8961e;           /* warm gold — accents, rules */
  --gold-bright: #d9a83a;    /* gold on navy */
  --gold-dark: #946c12;      /* gold link text on light (AA) */
  --line: #e7e3d8;           /* warm hairline */
  --line-2: #d8d2c2;         /* stronger hairline */
  --paper: #ffffff;
  --paper-warm: #faf7f0;     /* warm cream — alt sections */
  --paper-deep: #f3efe4;
  --bg-ink: #111c33;
  --maxw: 1140px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, 0.05);
  --shadow: 0 1px 3px rgba(20, 33, 61, 0.06), 0 10px 30px rgba(20, 33, 61, 0.07);
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.7rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.15em; }

a { color: var(--gold-dark); text-decoration: none; }
a:hover, a:focus { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

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

img { max-width: 100%; height: auto; }

/* ---- Eyebrow (shared label system) ---- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* ---- Layout primitives ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 96px 0; }
.section--alt { background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 64ch; margin-bottom: 8px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---- Header / nav ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.3) blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img { height: 30px; width: auto; display: block; }
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 9px 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  position: relative;
}
.nav-links a:hover, .nav-links a:focus {
  background: var(--paper-warm);
  color: var(--ink);
  text-decoration: none;
}
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 2px;
  background: var(--gold);
}

/* ---- Hero (editorial split) ---- */
.hero {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(200, 150, 30, 0.16), transparent 60%),
    linear-gradient(155deg, #16284a 0%, var(--ink) 52%, #0f1a30 100%);
  color: #e9edf6;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 7px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 0;
  align-items: stretch;
  padding-top: 92px;
  padding-bottom: 96px;
  position: relative;
  z-index: 1;
}
.hero-mark {
  padding-right: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.hero-mark img { width: min(260px, 100%); height: auto; }
.hero-tag {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #aebbd4;
  margin: 0;
  line-height: 1.7;
  font-weight: 500;
}
.hero-lede {
  padding-left: 56px;
  border-left: 1px solid rgba(200, 150, 30, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-lede .eyebrow { color: var(--gold-bright); }
.hero-lede .eyebrow::before { background: var(--gold-bright); }
.hero h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(2.5rem, 4.8vw, 3.9rem);
  letter-spacing: -0.018em;
  max-width: 16ch;
  margin-bottom: 0.4em;
}
.hero-sub {
  font-size: 1.2rem;
  color: #c3cde0;
  max-width: 50ch;
  margin-bottom: 2em;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn--primary { background: var(--gold); color: #1a1303; }
.btn--primary:hover, .btn--primary:focus {
  background: var(--gold-bright); color: #1a1303; text-decoration: none; transform: translateY(-1px);
}
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--ghost:hover, .btn--ghost:focus { background: rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none; border-color: rgba(255,255,255,0.7); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover, .btn--dark:focus { background: var(--ink-2); color: #fff; text-decoration: none; transform: translateY(-1px); }

/* ---- Page header (interior pages) ---- */
.page-head {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  padding: 84px 0 64px;
  position: relative;
}
.page-head::before {
  content: "";
  position: absolute;
  left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 18%, transparent 18%);
}
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 4px; }

/* ---- Content prose ---- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.6em; color: var(--ink); }
.prose ol, .prose ul { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--gold); }

.lead {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
}
.lead--sans { font-family: var(--sans); font-size: 1.18rem; line-height: 1.6; }

/* lead-in link with arrow */
.go-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.01em;
}
.go-link:hover, .go-link:focus { color: var(--ink); text-decoration: none; gap: 12px; }

/* ---- Services / feature grid ---- */
.grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 44px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  background: var(--paper);
  padding: 36px 34px;
  position: relative;
  transition: background-color 0.2s ease;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; height: 3px; width: 0;
  background: var(--gold);
  transition: width 0.25s ease;
}
.card:hover { background: var(--paper-warm); }
.card:hover::before { width: 100%; }
.card .card-no {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.card h3 { margin-top: 0; color: var(--ink); margin-bottom: 0.5em; }
.card p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.65; }

/* ---- Team block ---- */
.team {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-top: 40px;
  flex-wrap: wrap;
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.team .avatar {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(160deg, var(--ink-3), var(--ink));
  box-shadow: 0 0 0 1px var(--line), 0 0 0 5px var(--paper), 0 0 0 6px rgba(200,150,30,0.55);
}
.team .who { flex: 1 1 320px; }
.team .who h3 { margin-bottom: 2px; font-size: 1.5rem; }
.team .who h3 a { color: var(--ink); }
.team .who h3 a:hover { color: var(--gold-dark); text-decoration: none; }
.team .role {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin: 6px 0 1em;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  gap: 56px;
  grid-template-columns: 0.9fr 1.1fr;
  margin-top: 8px;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.field { display: block; margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 150, 30, 0.18);
}
.contact-detail { font-size: 1.08rem; }
.contact-detail a { font-weight: 600; }
.contact-card {
  background: var(--ink);
  color: #cdd6e8;
  border-radius: var(--radius);
  padding: 36px;
}
.contact-card h2 { color: #fff; }
.contact-card a { color: var(--gold-bright); }
.contact-card a:hover { color: #fff; }

/* ---- Profile links ---- */
.profile-links {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.profile-links a {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.profile-links a:hover, .profile-links a:focus {
  border-color: var(--gold);
  background: var(--paper-warm);
  text-decoration: none;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-ink);
  color: #9aa6c0;
  padding: 64px 0 48px;
  border-top: 3px solid var(--gold);
}
.site-footer .footer-mark img { height: 30px; width: auto; margin-bottom: 22px; }
.site-footer a { color: #cdd6e8; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 12px 26px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.footer-links a { font-family: var(--sans); font-size: 0.92rem; font-weight: 500; }
.footer-copy { font-size: 0.85rem; color: #7783a0; margin: 22px 0 0; flex-basis: 100%; }

/* ---- Profile (team detail) ---- */
.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
.profile-figure { margin: 0; position: sticky; top: 110px; }
.profile-figure img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
}
.profile-figure figcaption {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--gold);
  font-weight: 600;
}
@media (max-width: 760px) {
  .profile-layout { grid-template-columns: 1fr; gap: 32px; }
  .profile-figure { position: static; max-width: 220px; }
}

/* ---- Utilities ---- */
.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;
}

/* ---- Entrance polish (CSS only, reduced-motion safe) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .hero-mark { padding-right: 0; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid rgba(200,150,30,0.4); flex-direction: row; align-items: center; gap: 28px; }
  .hero-mark img { width: 180px; }
  .hero-lede { padding-left: 0; border-left: 0; }
  .section { padding: 68px 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero-mark { flex-direction: column; align-items: flex-start; }
  .nav { min-height: 64px; }
}

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