/* NGMP Group */

:root {
  --ink: #23283C;
  --blue: #44536F;
  --text: #2B3042;
  --meta: #6E7484;
  --white: #FFFFFF;
  --rule: #DEE2E8;
  --stone: #EDE9E1;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 17px; }

body {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

body.fade-in { opacity: 0; transition: opacity 500ms ease-in; }
body.fade-in.loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  body.fade-in { opacity: 1; transition: none; }
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.25rem); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); }

a { color: inherit; text-decoration: none; }
main a { color: var(--blue); }
a:hover { font-style: italic; }
a.lockup:hover, a.plain-hover:hover { font-style: normal; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Header ---------- */

.site-header { background: var(--white); }
.site-header .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}
.site-header--line { border-bottom: 1px solid var(--rule); }
.lockup { line-height: 1; }
.lockup .lockup-name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.01em; }
.lockup .lockup-name span { font-weight: 400; }
.site-nav { display: flex; gap: clamp(1rem, 2.6vw, 2rem); flex-wrap: wrap; align-items: baseline; }
.site-nav a { font-size: 0.88rem; }
.site-nav a[aria-current="page"] { font-style: italic; }
.site-nav .nav-mail { color: var(--meta); }

/* Overlay header (home) */
.site-header--overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 4;
  background: transparent;
  color: #FFFFFF;
  text-shadow: 0 1px 12px rgba(10, 14, 22, 0.45);
}
.site-header--overlay .site-nav .nav-mail { color: rgba(255, 255, 255, 0.85); }

/* ---------- Masthead carousel (home) ---------- */

.masthead {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  background: #0F141E;
  overflow: hidden;
}
.masthead img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms ease;
}
.masthead img.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .masthead img { transition: none; }
}
.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 30, 0.28);
  z-index: 1;
}
.masthead-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(1.5rem, 6vw, 3rem);
  opacity: 0;
  transition: opacity 1400ms ease;
}
.masthead-caption.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .masthead-caption { transition: none; }
}
.masthead-caption p {
  color: #FFFFFF;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1.45;
  max-width: 28em;
  text-shadow: 0 1px 18px rgba(10, 14, 22, 0.5);
  text-wrap: balance;
}
.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.triptych img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
@media (max-width: 640px) { .triptych { grid-template-columns: 1fr; } }
.masthead .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Statement (home) ---------- */

.statement { padding: clamp(2.75rem, 5.5vw, 4rem) 0; }
.statement-line {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 36em;
}
.statement .links { margin-top: 1.5rem; display: flex; gap: 1.75rem; font-size: 0.92rem; }

/* ---------- Page scaffolding ---------- */

.page-head { padding: clamp(2.75rem, 5.5vw, 4.25rem) 0 clamp(1.75rem, 3.5vw, 2.5rem); }
.page-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.2; }
.page-head .lead { margin-top: 0.9rem; max-width: 34em; font-size: 1.05rem; }
.rule { border: 0; border-top: 1px solid var(--rule); }

.prose { max-width: 36em; }
.prose p + p { margin-top: 1rem; }

.kicker {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- The Group page ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(2.25rem, 5.5vw, 5rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.75rem, 5.5vw, 4.25rem);
}
.facts { font-size: 0.92rem; background: var(--stone); padding: 1.5rem 1.5rem 0.5rem; }
.facts div { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--meta); }
.facts dd { margin-top: 0.2rem; }

.how { counter-reset: how; max-width: 40em; }
.how > li {
  list-style: none;
  counter-increment: how;
  padding: 1.3rem 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.9rem;
}
.how > li::before { content: counter(how, upper-roman) "."; font-size: 1rem; color: var(--blue); }
.how h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.how p { font-size: 0.95rem; }

.img-band { display: block; width: 100%; height: clamp(200px, 30vw, 380px); object-fit: cover; }

/* ---------- Portfolio page ---------- */

.venture-entry { padding: clamp(2rem, 4vw, 3rem) 0; }
.venture-entry .meta { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--meta); margin-bottom: 0.5rem; }
.venture-entry h2 { font-size: 1.5rem; }
.venture-entry .prose { margin-top: 0.8rem; }
.venture-entry .visit { display: inline-block; margin-top: 1rem; font-size: 0.95rem; }

.venture-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.fact-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.fact-table th, .fact-table td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.fact-table th {
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--meta);
  padding-right: 1.25rem;
  white-space: nowrap;
  width: 1%;
}
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: 0; }

.areas { list-style: none; columns: 2; column-gap: clamp(2rem, 5vw, 4rem); max-width: 58rem; }
.areas li { break-inside: avoid; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.areas li .note { display: block; font-size: 0.9rem; color: var(--meta); margin-top: 0.1rem; }

.disclosure {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.25rem 1.5rem;
  background: var(--stone);
  font-size: 0.92rem;
  max-width: 40em;
}

/* ---------- Leadership page ---------- */

.director {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: clamp(1.75rem, 4.5vw, 4rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--rule);
}
.director:first-of-type { border-top: 0; }
.director img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 5 / 5.8;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.03);
}
.director h2 { font-size: 1.4rem; }
.director .role { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--meta); margin: 0.35rem 0 1rem; }
.director .prose { font-size: 0.98rem; }

/* ---------- Contact page ---------- */

.contact-block { padding-bottom: clamp(2.75rem, 5.5vw, 4.25rem); }
.contact-email {
  display: inline-block;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--blue);
  margin-top: 1.4rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.2rem;
}
.contact-note { font-size: 0.92rem; color: var(--meta); margin-top: 1.5rem; max-width: 34em; }

/* ---------- Footer ---------- */

.site-footer {
  background: #1B1C1E;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.site-footer.flush { margin-top: 0; }
.site-footer .container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.site-footer .footer-name { font-weight: 600; font-size: 1rem; color: #FFFFFF; }
.site-footer .footer-name span { font-weight: 400; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer .copy { color: rgba(255, 255, 255, 0.6); }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .split, .director, .venture-grid { grid-template-columns: 1fr; }
  .areas { columns: 1; }
  .site-nav .nav-mail { display: none; }
  .site-header .container { padding-top: 1rem; padding-bottom: 1rem; }
  .site-nav { gap: 1rem 1.25rem; }
  .site-nav a { font-size: 0.92rem; padding: 0.15rem 0; }
  .masthead-caption p { font-size: 1.25rem; }
  .facts { margin-top: 0.5rem; }
  .director img { max-width: 100%; aspect-ratio: 5 / 5.2; }
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
  }
  .site-footer nav { gap: 1.25rem; }
}
