/* NDG Capital — site styles */

@font-face { font-family: "NDG Serif"; src: url("fonts/ndg-serif-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "NDG Serif"; src: url("fonts/ndg-serif-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "NDG Sans"; src: url("fonts/ndg-sans-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "NDG Sans"; src: url("fonts/ndg-sans-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --green: #1F3D2F;
  --green-hover: #2F5F3A;
  --cream: #EFE8D8;
  --copper: #E3A87C;
  --paper: #FCFBF8;
  --ink: #2A302B;
  --muted: #545D57;
  --rule: #D2D8CF;
  --hairline: #DCE1D8;
  --field: #A9B3A7;
  --legal: #C3C6B8;
  --placeholder: #DDE2DA;
  --serif: "NDG Serif", "Times New Roman", Times, serif;
  --sans: "NDG Sans", Calibri, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(24px, 8.33vw, 120px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-hover); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--cream); color: var(--green);
  font-weight: 700; text-decoration: none; border-radius: 2px;
}
.skip:focus { top: 16px; }

/* ---------- Wordmark ---------- */
.lockup {
  display: inline-flex; flex-direction: column; align-items: stretch; gap: 7px;
  color: inherit; text-decoration: none;
}
.lockup:hover { color: inherit; }
.lockup__rule { display: block; height: 1.5px; background: currentColor; }
.lockup__word {
  display: block; padding-top: 4px;
  font-family: var(--serif); line-height: 0.8; letter-spacing: 0.02em;
  white-space: nowrap; text-align: center;
}
.lockup__big { font-size: 40px; }
.lockup__small { font-size: 33px; }
.lockup__desc {
  display: block; margin-right: -0.28em;
  font-weight: 700; font-size: 11px; letter-spacing: 0.28em;
  text-align: center; white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 32px;
}
.site-header--dark { color: var(--cream); padding-block: 36px; }
.site-header--light { color: var(--green); }
.header-rule { border-bottom: 1px solid var(--hairline); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.nav { display: flex; align-items: center; gap: 40px; font-size: 17px; }
.nav a { padding: 10px 0; text-decoration: none; }
.site-header--dark .nav a { color: var(--cream); }
.site-header--light .nav a { color: var(--ink); }
.site-header--light .nav a[aria-current="page"] { color: var(--green); }
.nav a[aria-current="page"] { padding-bottom: 8px; border-bottom: 2px solid currentColor; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav a[aria-current="page"]:hover { text-decoration: none; }
.nav .nav__lang { padding-left: 40px; border-left: 1px solid; }
.site-header--dark .nav .nav__lang { border-color: rgba(239, 232, 216, 0.35); }
.site-header--light .nav .nav__lang { border-color: #C9D0C5; }

.lang-short, .menu-btn { display: none; }
.lang-short {
  align-items: center; min-height: 44px; padding: 0 10px;
  color: inherit; text-decoration: none; font-size: 16px;
}
.menu-btn {
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; color: inherit;
  border: 1px solid currentColor; border-radius: 2px; cursor: pointer;
}
.menu-btn svg { width: 20px; height: 14px; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  font-family: inherit; font-weight: 700; font-size: 18px; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
}
.btn--cream { background: var(--cream); color: var(--green); }
.btn--cream:hover { background: #FFFFFF; color: var(--green); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(239, 232, 216, 0.6); }
.btn--ghost:hover { color: var(--cream); border-color: var(--cream); background: rgba(239, 232, 216, 0.08); }
.btn--green { background: var(--green); color: var(--paper); }
.btn--green:hover { background: var(--green-hover); color: var(--paper); }

/* ---------- Home hero (fills the first screen) ---------- */
.hero {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  background: var(--green); color: var(--cream);
}
.hero__body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 44px;
  padding-block: 48px 72px;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 72px); line-height: 1.05; letter-spacing: -0.005em;
}
.hero h1 em { font-style: italic; color: var(--copper); }
.hero__intro { margin: 0; max-width: 760px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.55; }

/* ---------- Interior pages ---------- */
.page-intro { padding-block: clamp(64px, 7.8vw, 112px) clamp(48px, 6.1vw, 88px); }
.page-title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -0.005em;
  color: var(--green);
}
.statement { display: flex; flex-direction: column; gap: 22px; margin-top: 40px; }
.statement p {
  margin: 0;
  font-family: var(--serif); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45;
  color: var(--green);
}

.rows { padding-bottom: clamp(72px, 8.9vw, 128px); }
.row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 48px;
  padding-block: 48px 56px;
  border-top: 1.5px solid var(--green);
}
.row:last-child { border-bottom: 1.5px solid var(--green); }
.row h2 {
  grid-column: span 5; margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 2.8vw, 40px); line-height: 1.12; color: var(--green);
}
.row p { grid-column: 6 / span 7; margin: 0; font-size: 21px; line-height: 1.6; }

/* Team */
.team {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 48px;
  align-items: start;
  padding-bottom: clamp(72px, 8.9vw, 128px);
}
.portrait { grid-column: span 3; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--placeholder); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait--placeholder { display: flex; align-items: flex-end; padding: 20px; font-size: 15px; color: #3F4842; }
.bio {
  grid-column: 4 / span 9;
  display: flex; flex-direction: column; gap: 22px;
  padding-top: 28px; border-top: 1.5px solid var(--green);
}
.bio__name {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 3.3vw, 48px); line-height: 1.1; color: var(--green);
}
.bio__role { margin: 6px 0 0; font-size: 19px; line-height: 1.5; color: var(--muted); }
.bio p { margin: 0; font-size: 20px; line-height: 1.6; }

/* Contact */
.contact {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 48px;
  align-items: start;
  padding-bottom: clamp(72px, 8.9vw, 128px);
}
.contact__email { grid-column: span 5; padding-top: 28px; border-top: 1.5px solid var(--green); }
.contact__email a {
  font-family: var(--serif); font-size: 22px; line-height: 1.3;
  text-underline-offset: 5px; text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.form {
  grid-column: 7 / span 6;
  display: flex; flex-direction: column; gap: 22px;
  padding-top: 28px; border-top: 1.5px solid var(--green);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 16px; font-weight: 700; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  font-family: inherit; font-size: 18px; color: var(--ink);
  background: #FFFFFF; border: 1px solid var(--field); border-radius: 2px;
}
.field input { height: 50px; padding: 0 14px; }
.field textarea { min-height: 170px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid var(--green); outline-offset: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__note { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Policy pages */
.prose { max-width: 780px; padding-bottom: clamp(72px, 8.9vw, 128px); }
.prose .lede { margin: 0 0 8px; font-size: 22px; line-height: 1.55; }
.prose .updated { margin: 0 0 16px; font-size: 16px; color: var(--muted); }
.prose h2 {
  margin: 48px 0 12px; padding-top: 24px; border-top: 1px solid var(--rule);
  font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--green);
}
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 1.25em; }
.prose li { margin: 0 0 8px; padding-left: 4px; }
.prose li::marker { color: var(--green); }

/* Thank-you and 404 */
.notice { padding-bottom: clamp(72px, 8.9vw, 128px); }
.notice p { margin: 0 0 32px; max-width: 700px; font-size: 22px; line-height: 1.55; }

/* ---------- Closing band and footer ---------- */
.green-end { background: var(--green); color: var(--cream); }
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-block: 72px;
}
.cta h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.1vw, 44px); line-height: 1.1;
}
.site-footer { border-top: 1px solid rgba(239, 232, 216, 0.25); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; padding-top: 56px; }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 56px; font-size: 16px; line-height: 1.6; }
.footer__label { margin: 0 0 6px; font-weight: 700; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer__cols a { color: var(--cream); text-decoration: none; }
.footer__cols a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.legal { max-width: 1040px; margin: 44px 0 0; padding-bottom: 48px; font-size: 14px; line-height: 1.6; color: var(--legal); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  .site-header, .site-header--dark { padding-block: 20px; }
  .lockup { gap: 5px; }
  .lockup__rule { height: 1px; }
  .lockup__word { padding-top: 3px; }
  .lockup__big { font-size: 29px; }
  .lockup__small { font-size: 24px; }
  .lockup__desc { letter-spacing: 0.14em; margin-right: -0.14em; }

  .lang-short, .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; top: 100%; z-index: 20;
    left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--gutter) 16px; font-size: 19px;
    box-shadow: 0 16px 24px rgba(20, 35, 27, 0.12);
  }
  .site-header.is-open .nav { display: flex; }
  .site-header--dark .nav { background: var(--green); }
  .site-header--light .nav { background: var(--paper); border-bottom: 1px solid var(--hairline); }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(127, 140, 130, 0.35); }
  .nav a[aria-current="page"] { padding-bottom: 12px; border-bottom: 1px solid rgba(127, 140, 130, 0.35); font-weight: 700; }
  .nav .nav__lang { display: none; }

  .row, .team, .contact { display: flex; flex-direction: column; }
  .row { gap: 12px; padding-block: 32px 40px; }
  .row p { font-size: 19px; }
  .team { gap: 36px; }
  .portrait { width: min(260px, 100%); }
  .contact { gap: 44px; }
  .contact__email, .form { width: 100%; }

  .cta { flex-direction: column; align-items: stretch; padding-block: 56px; }
  .footer__top { flex-direction: column; gap: 36px; padding-top: 40px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__cols a { display: inline-flex; min-height: 40px; align-items: center; }
  .footer__cols ul { gap: 0; }
  .legal { margin-top: 28px; padding-bottom: 36px; }
}

@media (max-width: 600px) {
  body { font-size: 18px; }
  .hero__body { gap: 26px; padding-block: 24px 48px; }
  .hero .btns { flex-direction: column; gap: 12px; }
  .hero .btn, .cta .btn { width: 100%; min-height: 52px; }
  .statement { margin-top: 28px; }
  .prose .lede, .notice p { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
