/* =========================================================
   yjcapital: stylesheet
   Black / near-white, with the logo green as the single accent.
   ========================================================= */

:root {
  --black: #0b0b0b;
  --black-2: #121212;
  --paper: #f5f5f3;
  --ink: #0b0b0b;
  --ink-soft: #55565a;
  --ink-faint: #8a8b90;
  --on-dark: #f5f5f3;
  --on-dark-soft: rgba(245, 245, 243, 0.66);
  --on-dark-faint: rgba(245, 245, 243, 0.52);
  --accent: #00d632;        /* logo green: decorative squares, rules, accents on dark */
  --line: rgba(11, 11, 11, 0.12);
  --line-dark: rgba(245, 245, 243, 0.12);

  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
svg { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.25em; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
::selection { background: var(--accent); color: var(--black); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* Pure #00D632 is only 1.8:1 on the off-white, so focus rings on light sections are ink-black (19:1) with a green halo. */
.section :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 6px var(--accent); }

.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(--accent); color: var(--black); 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); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; color: var(--on-dark); }
.logo { height: 28px; width: auto; aspect-ratio: 1116 / 285; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--on-dark);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header.is-scrolled {
  height: 62px;
  background: rgba(11, 11, 11, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-nav ul { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.site-nav a {
  font-size: 0.875rem; font-weight: 400; color: var(--on-dark-soft);
  padding: 0.35rem 0; position: relative; transition: color .3s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--on-dark); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 88vh; min-height: 88svh;
  display: flex; align-items: flex-end;
  background: var(--black); color: var(--on-dark);
  padding: calc(var(--header-h) + 5rem) 0 clamp(4.5rem, 10vw, 8rem);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(245,245,243,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245,245,243,0.07) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 78% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 78% 30%, #000 0%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--on-dark-soft); margin-bottom: 1.75rem;
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
/* Separator square: identical size to the leading .eyebrow::before marker; equal spacing on both sides (flex gap + symmetric margin). */
.sep { display: block; width: 8px; height: 8px; background: var(--accent); flex: none; margin: 0 0.375rem; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 500; letter-spacing: -0.045em; line-height: 1.02;
  max-width: 15ch; margin-bottom: 2rem;
}
.dot {
  display: inline-block; width: 0.16em; height: 0.16em; background: var(--accent);
  margin-left: 0.06em; vertical-align: baseline;
}
.hero-lede { max-width: 38rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 300; color: var(--on-dark-soft); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section-rule .container > .section-head { border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
#approach { padding-top: 0; }
.label {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-faint);
  margin: 0 0 1.25rem; display: flex; align-items: center; gap: 0.75rem;
}
.label::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }

.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.split-head h2 { max-width: 12ch; }
.split-body { padding-top: 2.4rem; }
.split-body p { color: var(--ink-soft); font-size: 1.125rem; }
.split-body p:last-child { margin-bottom: 0; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.point { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.point-num { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8125rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 2.25rem; }
.point-num::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.point h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.point p { font-size: 0.975rem; color: var(--ink-soft); margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--black); color: var(--on-dark); padding: clamp(4.5rem, 9vw, 7rem) 0; }
.contact-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.contact .label { color: var(--on-dark-faint); margin: 0; }
.contact-email {
  font-size: clamp(1.6rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  padding-bottom: 0.15em; transition: background-size .5s var(--ease);
  overflow-wrap: anywhere;
}
.contact-email:hover, .contact-email:focus-visible { background-size: 100% 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--on-dark-faint); padding: 0 0 3rem; }
.footer-top { border-top: 1px solid var(--line-dark); padding-top: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.logo-footer { height: 20px; }
.copyright { margin: 0; font-size: 0.8125rem; }
.disclaimer { font-size: 0.78rem; line-height: 1.7; max-width: 60rem; margin: 0; }

/* ---------- Links ---------- */
.text-link { color: var(--on-dark); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.text-link:hover { color: #fff; border-bottom-width: 2px; }

/* ---------- 404 ---------- */
.hero-404 { min-height: 100vh; min-height: 100svh; align-items: center; }
.page-404 { background: var(--black); }
.brand-404 { display: flex; width: max-content; margin-bottom: 4rem; }
.brand-404 .logo { height: 30px; }
.hero-404 h1 { max-width: none; font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1.25rem; }
.hero-404 .hero-lede { margin-bottom: 2rem; }

/* ---------- Fade-in on scroll (only with JS) ---------- */
.js .fade-in { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s 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; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .points { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .split { grid-template-columns: 1fr; }
  .split-body { padding-top: 0; }
  .split-head h2 { max-width: 16ch; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .logo { height: 22px; }
  .site-header.is-scrolled { height: 56px; }
  .site-nav ul { gap: 1.1rem; }
  .site-nav a { font-size: 0.8125rem; }
  .hero { min-height: 78svh; }
  .hero-grid { background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 90% 60% at 70% 20%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 90% 60% at 70% 20%, #000 0%, transparent 75%); }
  .points { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .point-num { margin-bottom: 1.25rem; }
  .split-body p { font-size: 1.05rem; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
