/* ==========================================================================
   Gliese Management Pte Ltd — Global Stylesheet
   Design system: ink / paper / brass — editorial precision for a
   portfolio-stewardship firm. Signature motif: drafting corner-marks
   and blueprint gridlines, echoing the building drawings and ledgers
   this firm actually works from.
   ========================================================================== */

@font-face {
  font-family: 'BankGothic Md BT';
  src: url('../assets/fonts/bank%20gothic%20medium%20bt.ttf') format('truetype'),
       url('../assets/fonts/Bank%20Gothic%20Medium.otf') format('opentype');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Ink — primary dark surface & headline text */
  --ink:        #14191e;
  --ink-800:    #1c232a;
  --ink-700:    #262f37;
  /* Paper — warm surfaces */
  --paper:      #f6f2e8;
  --stone:      #ece4d1;
  /* Brass — the one accent, used with restraint */
  --brass:      #a9812f;
  --brass-light:#c9a667;
  --brass-dim:  #8a6a26;
  /* Text */
  --slate:      #5b6169;
  --slate-soft: #7a8088;
  /* Lines */
  --line:       #ddd4bd;
  --line-dark:  rgba(246, 242, 232, 0.14);
  --white:      #ffffff;

  --radius:   2px;
  --shadow:    0 1px 2px rgba(20, 25, 30, 0.05);
  --shadow-lg: 0 18px 44px rgba(20, 25, 30, 0.16);
  --wrap:     1180px;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Archivo', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-mono:    'Space Mono', 'SFMono-Regular', Consolas, monospace;

  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink); line-height: 1.15; margin: 0 0 .5em;
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); }
h3 { font-size: 1.28rem; font-weight: 600; font-family: var(--font-body); letter-spacing: -0.005em; }
p  { margin: 0 0 1rem; color: var(--slate); }
a  { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; }
.section--soft { background: var(--stone); }
.section__head { max-width: 700px; margin: 0 auto 60px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 3px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  color: var(--brass-dim); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brass); display: inline-block; }
.lead { font-size: 1.12rem; color: var(--slate); }

/* Drafting rule — small load-in flourish under eyebrows in hero blocks ---- */
.rule {
  width: 56px; height: 2px; background: var(--brass); transform-origin: left;
  margin: 4px 0 22px; animation: growRule .7s .25s var(--ease) both;
}
@keyframes growRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .rule { animation: none; } }

/* Buttons — sharp corners, drafting corner-marks on hover/focus ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius); font-weight: 700; font-size: .92rem;
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1.2px;
  cursor: pointer; border: 1.5px solid transparent; transition: .25s ease; text-decoration: none;
}
.btn::before, .btn::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-style: solid; border-color: var(--brass-light);
  border-width: 0; opacity: 0; transition: opacity .25s ease, inset .25s ease; pointer-events: none;
}
.btn::before { top: -6px; left: -6px; border-top-width: 2px; border-left-width: 2px; }
.btn::after  { bottom: -6px; right: -6px; border-bottom-width: 2px; border-right-width: 2px; }
.btn:hover::before, .btn:hover::after,
.btn:focus-visible::before, .btn:focus-visible::after { opacity: 1; }
.btn:hover, .btn:focus-visible { text-decoration: none; transform: translateY(-1px); }

.btn--primary { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.btn--primary:hover { background: var(--brass-light); border-color: var(--brass-light); }
.btn--ghost { border-color: rgba(246,242,232,.4); color: var(--paper); }
.btn--ghost:hover { background: rgba(246,242,232,.08); border-color: rgba(246,242,232,.7); }
.btn--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--dark:hover { background: var(--ink-700); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:focus-visible { transform: none; }
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(246,242,232,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 52px; width: auto; }
.brand__name {
  font-family: var(--font-display); font-weight: 500; font-style: normal;
  color: var(--ink); font-size: 1.28rem; line-height: 1;
  letter-spacing: 3px; white-space: nowrap; text-transform: uppercase;
}
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--ink); font-weight: 600; padding: 10px 16px; font-size: .88rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.nav__links a:hover { color: var(--brass-dim); text-decoration: none; }
.nav__links a.active { color: var(--brass-dim); border-bottom: 1.5px solid var(--brass); }
.nav__cta { margin-left: 10px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* Hero ---------------------------------------------------------------------
   Deep ink surface with a fine blueprint gridline watermark — the
   drafting-table backdrop for everything the firm manages.           ---- */
.hero {
  position: relative; color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 40%, transparent 85%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 480px at 82% -10%, rgba(169,129,47,.16), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__inner { padding: 104px 0 112px; max-width: 660px; }
.hero__inner > * { animation: riseIn .8s var(--ease) both; }
.hero__inner > *:nth-child(2) { animation-delay: .08s; }
.hero__inner > *:nth-child(3) { animation-delay: .16s; }
.hero__inner > *:nth-child(4) { animation-delay: .24s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__inner > * { animation: none; }
}
.hero h1 { color: var(--paper); }
.hero p { color: rgba(246,242,232,.72); font-size: 1.16rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero--page .hero__inner { padding: 78px 0; text-align: center; margin: 0 auto; max-width: 720px; }
.hero--page .rule { margin-left: auto; margin-right: auto; }
.hero--page p { margin-left: auto; margin-right: auto; }
.breadcrumb { color: rgba(246,242,232,.55); font-size: .82rem; margin-bottom: 16px; font-family: var(--font-mono); letter-spacing: .5px; text-transform: uppercase; }
.breadcrumb a { color: rgba(246,242,232,.8); }

/* Ledger stat strip --------------------------------------------------------
   Read like an entry in a portfolio ledger rather than a marketing
   stat-card grid: hairline rules, tabular mono figures.               ---- */
.stats {
  display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { flex: 1; text-align: center; padding: 40px 20px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 26%; bottom: 26%; width: 1px; background: var(--line);
}
.stat__num { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.stat__num span { color: var(--brass); }
.stat__label { color: var(--slate); font-size: .78rem; margin-top: 8px; text-transform: uppercase; letter-spacing: 1.6px; font-family: var(--font-mono); }

/* Cards / grid -------------------------------------------------------------
   Bordered drafting-sheet panels, not soft SaaS cards. Corner marks
   draw in on hover like registration marks on a blueprint.           ---- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--paper);
  padding: 40px 34px; transition: .3s ease; height: 100%;
}
.card::before, .card::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-style: solid; border-color: var(--brass);
  border-width: 0; opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.card::after  { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.card:hover { background: var(--white); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card__fig {
  display: block; font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--brass-dim); margin-bottom: 14px;
}
.card__icon {
  width: 52px; height: 52px; border: 1px solid var(--brass); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--ink); margin-bottom: 22px; background: transparent;
}
.card__icon svg { width: 24px; height: 24px; stroke-width: 1.4; }
.card h3 { margin-bottom: 0; padding-bottom: 12px; position: relative; }
.card h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--brass); }
.card p { margin: 14px 0 0; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; color: var(--brass-dim); font-size: .92rem; }
.card__link:hover { color: var(--ink); }

/* Split / feature ----------------------------------------------------------
   Illustration panels are line-drawings on paper — the icons already
   use stroke="currentColor", so this is a pure re-skin.              ---- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.media {
  position: relative; border: 1px solid var(--line); overflow: hidden;
  min-height: 340px; background: var(--stone);
  display: grid; place-items: center; color: var(--ink);
}
.media::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .5;
}
.media::after {
  content: ""; position: absolute; width: 16px; height: 16px; top: 14px; left: 14px;
  border-top: 2px solid var(--brass); border-left: 2px solid var(--brass);
}
.media svg { position: relative; z-index: 1; width: 110px; height: 110px; opacity: .92; stroke-width: 1.2; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { position: relative; padding: 9px 0 9px 32px; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 1.5px; background: var(--brass);
}
.check-list li strong { font-weight: 700; }

/* Service detail blocks ----------------------------------------------------- */
.svc { scroll-margin-top: 110px; }
.svc + .svc { margin-top: 4px; }
.svc__tag {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  color: var(--brass-dim); font-weight: 700; font-size: .76rem; letter-spacing: 1.6px;
  text-transform: uppercase; margin-bottom: 16px;
}
.svc__tag::before { content: ""; width: 22px; height: 1px; background: var(--brass); display: inline-block; }

/* CTA band -------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper); border-top: 1px solid var(--brass-dim);
  padding: 64px 56px; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 30%, transparent 85%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(246,242,232,.72); max-width: 560px; margin: 0 auto 26px; }

/* Contact ------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item__icon {
  flex: 0 0 auto; width: 46px; height: 46px; border: 1px solid var(--brass); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--ink); background: transparent;
}
.info-item h4 { margin: 0 0 3px; font-family: var(--font-body); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .8px; }
.info-item p, .info-item a { margin: 0; color: var(--slate); font-family: var(--font-mono); font-size: .92rem; }
.info-item a:hover { color: var(--brass-dim); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--paper); transition: .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brass); background: var(--white);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .84rem; color: var(--slate); margin-top: 12px; font-family: var(--font-mono); }
.map-embed { border: 1px solid var(--line); width: 100%; height: 320px; border-radius: var(--radius);
  filter: grayscale(.55) sepia(.16) contrast(1.05) brightness(.98); }

/* Footer --------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(246,242,232,.66); padding: 68px 0 30px; border-top: 1px solid var(--brass-dim); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; }
.site-footer h4 { color: var(--paper); font-family: var(--font-mono); font-size: .8rem; margin-bottom: 18px; letter-spacing: 1.6px; text-transform: uppercase; }
.site-footer a { color: rgba(246,242,232,.66); }
.site-footer a:hover { color: var(--brass-light); }
.footer-brand img { height: 84px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: rgba(246,242,232,.5); max-width: 320px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; font-family: var(--font-mono); font-size: .88rem; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .8rem; font-family: var(--font-mono); letter-spacing: .3px; color: rgba(246,242,232,.45);
}

/* Reveal animation ----------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { flex-wrap: wrap; }
  .stat { flex: 1 1 50%; }
  .stat:nth-child(3)::before { display: none; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .brand img { height: 42px; }
  .brand__name { font-size: 1rem; letter-spacing: 1.5px; }
  .nav__links {
    position: absolute; top: 92px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; gap: 2px;
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 8px; }
  .nav__cta { margin: 8px 0 0; }
  .section { padding: 64px 0; }
  .cta-band { padding: 44px 26px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat { flex: 1 1 100%; }
  .stat::before, .stat + .stat::before { display: none; }
  .stat + .stat { border-top: 1px solid var(--line); }
}
@media (max-width: 400px) {
  .brand__name { display: none; }
}
