/* =========================================================
   YJ Capital: stylesheet
   Palette: deep navy / ivory / muted gold
   ========================================================= */

:root {
  --navy-900: #0b1422;
  --navy-800: #0d1726;
  --navy-700: #15233a;
  --navy-600: #1f3150;
  --ivory: #f7f3ec;
  --ivory-2: #efe9de;
  --stone: #e8e1d4;
  --ink: #1a2230;
  --ink-soft: #4a5263;
  --gold: #b08d57;
  --gold-light: #c9ab7a;
  --gold-dark: #7a5c30;
  --line-dark: rgba(26, 34, 48, 0.14);
  --line-light: rgba(247, 243, 236, 0.16);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(5rem, 11vw, 9.5rem);
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.25em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.9rem, 7vw, 5.75rem); font-weight: 400; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 400; }
h3 { font-size: 1.6rem; }
em { font-style: italic; }
::selection { background: var(--gold-light); color: var(--navy-900); }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--gold); color: var(--navy-900); padding: 0.6rem 1rem; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Shared typography bits ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.4rem;
}
.section-navy .eyebrow, .hero .eyebrow { color: var(--gold-light); }

.rule { width: 64px; height: 1px; background: var(--gold); margin: 1.8rem 0 0; }
.rule-center { margin-left: auto; margin-right: auto; }

.lead { font-family: var(--serif); font-size: clamp(1.45rem, 2.3vw, 1.85rem); line-height: 1.4; font-weight: 400; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1.05rem 2rem; border: 1px solid transparent; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  border-radius: 0;
}
.btn-gold { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.btn-gold:hover { background: transparent; color: var(--gold-light); border-color: var(--gold-light); }
.btn-ghost { color: var(--ivory); border-color: var(--line-light); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

.text-link {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dark); border-bottom: 1px solid transparent; transition: border-color .3s;
}
.text-link:hover { border-bottom-color: var(--gold-dark); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--ivory);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 20, 34, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--line-light);
  --header-h: 70px;
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 0.85rem; color: var(--ivory); }
.monogram { width: 42px; height: 42px; color: var(--gold-light); flex: none; }
.monogram-text { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: 0.5px; fill: var(--ivory); }
.brand-name {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
}
.brand-name span { color: var(--gold-light); font-weight: 400; }

.site-nav ul { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.site-nav a {
  position: relative;
  font-size: 0.74rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(247, 243, 236, 0.82); transition: color .3s; padding: 0.4rem 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ivory); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav .nav-cta { border: 1px solid rgba(201, 171, 122, 0.55); padding: 0.6rem 1.15rem; color: var(--gold-light); }
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--ivory);
}
.nav-toggle-bar {
  position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle-bar:nth-of-type(2) { top: 18px; }
.nav-toggle-bar:nth-of-type(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
  color: var(--ivory);
  padding: calc(var(--header-h) + 4rem) 0 7rem;
}
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; }
.hero::after { /* subtle grain-free vignette at bottom */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(11, 20, 34, 0.6));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 20ch; margin-bottom: 0.45em; }
.hero h1 em { color: var(--gold-light); font-weight: 400; }
.hero-lede { max-width: 36rem; font-size: 1.125rem; color: rgba(247, 243, 236, 0.76); margin-bottom: 2.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: 2.25rem; transform: translateX(-50%);
  width: 1px; height: 56px; background: var(--line-light); overflow: hidden;
}
.scroll-cue span {
  position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-light);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { top: -40%; } 100% { top: 100%; } }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; position: relative; }
.section-ivory { background: var(--ivory); }
.section-stone { background: var(--ivory-2); }
.section-navy { background: var(--navy-800); color: var(--ivory); }
.section-navy h2, .section-navy h3 { color: var(--ivory); }

.section-ivory + .section-ivory,
.section-stone + .section-ivory,
.section-ivory + .section-stone { border-top: 1px solid var(--line-dark); }

.section-head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 4.75rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-intro { margin-top: 1.75rem; color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.split-body p { color: var(--ink-soft); }
.split-body .lead { color: var(--ink); margin-bottom: 1.4em; }

.pull-quote {
  margin: 2.75rem 0 0; padding: 2rem 0 0; border-top: 1px solid var(--line-dark);
}
.pull-quote p {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.45;
  color: var(--gold-dark); margin: 0;
}

/* ---------- Approach pillars ---------- */
.section-navy { background:
  radial-gradient(ellipse at 15% 0%, rgba(42, 61, 92, 0.45), transparent 55%),
  var(--navy-800); }
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
}
.pillar {
  padding: 2.75rem 2rem 1rem;
  border-left: 1px solid var(--line-light);
}
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar-num {
  display: block; font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.2em; color: var(--gold-light); margin-bottom: 1.6rem;
}
.pillar h3 { font-size: 1.65rem; margin-bottom: 0.8rem; }
.pillar p { color: rgba(247, 243, 236, 0.7); font-size: 0.98rem; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
  background: #fbf9f4; border: 1px solid var(--line-dark); padding: 2.75rem 2.25rem 2.25rem;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative;
}
.service::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.service:hover { border-color: rgba(176, 141, 87, 0.5); transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(13, 23, 38, 0.35); }
.service:hover::before { transform: scaleX(1); }
.service-icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 2rem; stroke-width: 1; }
.service-icon * { stroke-width: 1; }
.service h3 { font-size: 1.75rem; }
.service p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.fine-note { margin: 2.5rem 0 0; font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.member { text-align: center; padding: 0 0.5rem; }
.member-portrait {
  aspect-ratio: 4 / 5; margin-bottom: 1.75rem; position: relative; overflow: hidden;
  background:
    linear-gradient(155deg, rgba(201, 171, 122, 0.18), transparent 45%),
    linear-gradient(200deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center;
}
.member-portrait::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201, 171, 122, 0.35);
}
.member-portrait span {
  font-family: var(--serif); font-size: 3rem; letter-spacing: 0.08em; color: rgba(201, 171, 122, 0.55);
}
.member h3 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.member-title { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 1rem; }
.member-bio { font-size: 0.95rem; color: var(--ink-soft); max-width: 22rem; margin: 0 auto; }

/* ---------- Insights ---------- */
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
.insight { display: flex; flex-direction: column; }
.insight-art { aspect-ratio: 16 / 10; margin-bottom: 1.6rem; position: relative; overflow: hidden; }
.insight-art::after { content: ""; position: absolute; inset: 0; transition: opacity .5s; background: rgba(11,20,34,0); }
.insight:hover .insight-art::after { background: rgba(11,20,34,0.08); }
.art-1 {
  background:
    repeating-radial-gradient(circle at 80% 20%, transparent 0 22px, rgba(201,171,122,0.28) 22px 23px),
    linear-gradient(140deg, var(--navy-700), var(--navy-900));
}
.art-2 {
  background:
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(201,171,122,0.22) 26px 27px),
    linear-gradient(200deg, #2a3a55, var(--navy-900));
}
.art-3 {
  background:
    radial-gradient(circle at 30% 70%, rgba(201,171,122,0.35), transparent 40%),
    radial-gradient(circle at 75% 30%, rgba(247,243,236,0.10), transparent 45%),
    linear-gradient(160deg, #1d2c45, var(--navy-900));
}
.insight-meta { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.9rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.insight h3 { font-size: 1.55rem; line-height: 1.2; }
.insight h3 a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.insight h3 a:hover { background-size: 100% 1px; }
.insight-body > p:not(.insight-meta) { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Contact ---------- */
#contact .split { grid-template-columns: 5fr 6fr; }
.contact-copy { margin-top: 1.75rem; color: rgba(247, 243, 236, 0.72); }
.contact-details { margin: 2.5rem 0 0; display: grid; gap: 1.4rem; }
.contact-details div { border-top: 1px solid var(--line-light); padding-top: 1.1rem; }
.contact-details dt { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.2rem; }
.contact-details dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; color: var(--ivory); }
.contact-details a { border-bottom: 1px solid rgba(201,171,122,0.4); transition: border-color .3s, color .3s; }
.contact-details a:hover { color: var(--gold-light); border-color: var(--gold-light); }

.contact-form {
  border: 1px solid var(--line-light); padding: clamp(1.75rem, 4vw, 3rem);
  background: rgba(247, 243, 236, 0.025);
}
.field { margin-bottom: 1.6rem; }
.field label { display: block; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(247,243,236,0.7); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ivory);
  background: transparent; border: 0; border-bottom: 1px solid rgba(247,243,236,0.28);
  padding: 0.6rem 0; border-radius: 0; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-light) 50%), linear-gradient(135deg, var(--gold-light) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.5rem; cursor: pointer;
}
.field select option { color: var(--ink); background: var(--ivory); }
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold-light); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--gold-light); }
.field.has-error input, .field.has-error textarea { border-bottom-color: #d9876f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { margin-top: 0.5rem; }
.form-status { min-height: 1.5em; margin: 1rem 0 0; font-size: 0.9rem; color: var(--gold-light); }
.form-note { font-size: 0.78rem; color: rgba(247,243,236,0.62); margin: 0.25rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(247,243,236,0.7); padding: 5rem 0 2.5rem; border-top: 1px solid var(--line-light); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.footer-links a { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; transition: color .3s; }
.footer-links a:hover { color: var(--gold-light); }
.disclaimer { padding: 2.5rem 0; max-width: 62rem; }
.disclaimer p { font-size: 0.8rem; line-height: 1.7; color: rgba(247,243,236,0.62); margin-bottom: 1em; }
.disclaimer strong { color: rgba(247,243,236,0.75); font-weight: 500; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.75rem; border-top: 1px solid var(--line-light); font-size: 0.78rem; letter-spacing: 0.06em; }
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Scroll fade-in (only when JS is available) ---------- */
.js .fade-in { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .fade-in.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade-in { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; top: 30%; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); border-top: 0; }
  .pillar, .pillar:first-child, .pillar:last-child { padding: 2.5rem 2rem 1.25rem 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .pillar:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line-light); padding-right: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    background: var(--navy-900);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 1.75rem; text-align: center; }
  .site-nav a { font-family: var(--serif); font-size: 1.9rem; letter-spacing: 0.04em; text-transform: none; color: var(--ivory); }
  .site-nav .nav-cta { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.9rem 1.6rem; margin-top: 0.75rem; display: inline-block; }
  .brand { position: relative; z-index: 2; }
  body.nav-open { overflow: hidden; }

  .split, #contact .split { grid-template-columns: 1fr; }
  .services, .insights { grid-template-columns: 1fr; }
  .insights { gap: 2.75rem; }
  .insight { flex-direction: row; gap: 2rem; align-items: flex-start; }
  .insight-art { flex: 0 0 40%; margin-bottom: 0; }
  .team { gap: 1.5rem; }
  .member-portrait span { font-size: 2.2rem; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 1.1rem; letter-spacing: 0.18em; }
  .monogram { width: 36px; height: 36px; }
  .hero { padding-bottom: 6rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child, .pillar:last-child, .pillar:nth-child(even) { padding: 2.25rem 0 1rem; border-left: 0; }
  .service { padding: 2.25rem 1.6rem 1.9rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .team { grid-template-columns: 1fr; max-width: 20rem; margin: 0 auto; gap: 3rem; }
  .member-portrait { aspect-ratio: 5 / 4; }
  .insight { flex-direction: column; gap: 0; }
  .insight-art { flex: none; width: 100%; margin-bottom: 1.6rem; }
}

/* backdrop-filter creates a containing block for fixed children; disable it while the mobile menu is open */
body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--navy-900); }
