/* Matthew Stark, CUSP | Executive EHS Portfolio */
* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; background-color: #0B1220; color: #E8ECF4; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Nav */
.ms-nav { position: fixed; top: 0; left: 0; width: 100%; padding: 24px 0; border-bottom: 1px solid rgba(217,179,0,0.18); background-color: #0B1220; z-index: 1000; }
.ms-nav-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 32px; }
.ms-nav-logo { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: #E8ECF4; text-decoration: none; }
.ms-nav-links { display: flex; gap: 28px; align-items: center; }
.ms-nav-link { color: #9AA5B8; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.5px; }
.ms-nav-cta { color: #D9B300; border: 1px solid #D9B300; border-radius: 4px; padding: 8px 18px; font-weight: 700; letter-spacing: 1px; font-size: 12px; }
@media (max-width: 767px) { .ms-nav-links { gap: 14px; } .ms-nav-link { font-size: 12px; } }

/* Page header (subpages) */
.ms-page-hero-spacer { width: 100%; padding: 160px 32px 48px; background-color: #0B1220; text-align: center; }
.ms-page-title { font-family: Georgia, 'Times New Roman', serif; font-size: 44px; font-weight: 700; color: #F5F0E4; margin: 0; }

/* Hero (home) */
.ms-hero { position: relative; width: 100%; min-height: 780px; padding: 96px 0; background-color: #0B1220; background-image: radial-gradient(circle at 15% 20%, rgba(74,111,165,0.08), transparent 55%); overflow: hidden; }
.ms-hero-inner { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; min-height: 560px; max-width: 680px; padding-left: 64px; padding-right: 32px; }
.ms-hero-photo-wrap { position: absolute; top: 0; right: 0; width: 44vw; height: 100%; overflow: hidden; z-index: 3; }
.ms-hero-photo-wrap::before { content: ""; position: absolute; top: 0; left: 0; width: 280px; height: 100%; background-image: linear-gradient(to right, rgba(11,18,32,1) 0%, rgba(11,18,32,0.88) 20%, rgba(11,18,32,0.55) 50%, rgba(11,18,32,0.15) 80%, rgba(11,18,32,0) 100%); z-index: 2; }
.ms-hero-photo-wrap::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(to bottom, rgba(11,18,32,0.35) 0%, rgba(11,18,32,0) 15%, rgba(11,18,32,0) 80%, rgba(11,18,32,0.45) 100%); z-index: 2; }
.ms-hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.ms-hero-kicker { font-size: 14px; font-weight: 700; letter-spacing: 3px; color: #D9B300; margin-bottom: 22px; }
.ms-hero-kicker::before { content: ""; display: inline-block; width: 36px; height: 2px; background-color: #D9B300; margin-right: 12px; vertical-align: middle; }
.ms-hero-title { font-family: Georgia, 'Times New Roman', serif; font-size: 76px; font-weight: 700; line-height: 1.05; margin: 0 0 28px; color: #F5F0E4; letter-spacing: -1px; }
.ms-accent-text { color: #D9B300; }
.ms-hero-subtitle { font-size: 20px; line-height: 1.65; color: #9AA5B8; max-width: 100%; margin: 0 0 44px; }
.ms-hero-ctas { display: flex; gap: 16px; position: relative; }
.ms-btn { padding: 14px 30px; border-radius: 4px; text-decoration: none; font-size: 15px; font-weight: 600; display: inline-block; border: none; cursor: pointer; font-family: inherit; }
.ms-btn-primary { background-color: #D9B300; color: #0B1220; box-shadow: 0 8px 24px rgba(217,179,0,0.25); }
.ms-btn-secondary { background-color: transparent; color: #E8ECF4; border: 1px solid rgba(232,236,244,0.10); }

/* Hero stat strip */
.ms-hero-stats { position: relative; z-index: 5; width: 100%; margin-top: 56px; }
.ms-hero-stats-inner { max-width: 680px; padding: 28px 24px 28px 64px; display: flex; flex-wrap: wrap; row-gap: 24px; }
.ms-hero-stat { flex: 0 0 45%; padding-right: 16px; }
.ms-hero-stat-num { font-family: Georgia, 'Times New Roman', serif; font-size: 34px; font-weight: 700; color: #D9B300; line-height: 1; margin-bottom: 8px; }
.ms-hero-stat-label { font-size: 13px; letter-spacing: 0.5px; color: #9AA5B8; line-height: 1.4; }

/* Contact dropdown (home hero) */
.ms-contact-dd3 { position: relative; display: inline-block; }
.ms-contact-toggle3 { cursor: pointer; background-color: transparent; color: #E8ECF4; border: 1px solid rgba(232,236,244,0.10); padding: 14px 30px; border-radius: 4px; font-size: 15px; font-weight: 600; font-family: inherit; }
.ms-contact-panel3 { position: absolute; top: calc(100% + 8px); left: 0; background-color: #111A2E; border: 1px solid rgba(217,179,0,0.25); border-radius: 6px; padding: 12px; display: none; flex-direction: column; gap: 10px; min-width: 240px; box-shadow: 0 8px 24px rgba(0,0,0,0.35); z-index: 50; }
.ms-contact-panel3.open { display: flex; }
.ms-contact-panel-link3 { color: #E8ECF4; text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 4px; display: block; background: none; border: none; text-align: left; width: 100%; cursor: pointer; font-family: inherit; }
.ms-contact-panel-link3:hover { background-color: rgba(217,179,0,0.10); }

/* Sections */
.ms-section { width: 100%; padding: 88px 0; background-color: #0B1220; scroll-margin-top: 96px; }
.ms-section-alt { background-color: #111A2E; }
.ms-container { max-width: 900px; margin: 0 auto; padding: 0 32px; }
.ms-container-wide { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.ms-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.3px; color: #D9B300; margin-bottom: 16px; font-style: italic; }
.ms-eyebrow-center { text-align: center; }
.ms-h2 { font-size: 32px; font-weight: 700; line-height: 1.3; color: #F2ECDD; margin: 0 0 40px; max-width: 760px; }
.ms-h2-center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 767px) { .ms-h2 { font-size: 26px; } }

/* About */
.ms-about-lede { font-size: 19px; line-height: 1.75; color: #C7CEDB; max-width: 760px; margin: 0; }
.ms-about-lede-strong { color: #F2ECDD; font-weight: 600; }
.ms-solution-list { display: flex; flex-direction: column; gap: 36px; margin-top: 16px; }
.ms-solution-block { border-left: 3px solid #D9B300; padding-left: 28px; }
.ms-solution-q { font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-style: italic; color: #F2ECDD; margin: 0 0 10px; }
.ms-solution-a { font-size: 16px; line-height: 1.7; color: #9AA5B8; margin: 0; }
.ms-about-close { text-align: center; }
.ms-about-close-text { font-family: Georgia, 'Times New Roman', serif; font-size: 26px; font-style: italic; color: #F2ECDD; max-width: 780px; margin: 0 auto; line-height: 1.5; }

/* Achievements / stats grid */
.ms-achieve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.ms-achieve-card { background-color: #111A2E; border-left: 3px solid #D9B300; padding: 28px 28px 28px 24px; }
.ms-achieve-num { font-family: Georgia, 'Times New Roman', serif; font-size: 36px; font-weight: 700; color: #D9B300; margin-bottom: 12px; }
.ms-achieve-label { font-size: 15px; line-height: 1.55; color: #9AA5B8; }
@media (max-width: 991px) { .ms-achieve-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .ms-achieve-grid { grid-template-columns: 1fr; } }

/* Achievement image cards (with 4-corner frame) */
.ms-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 16px; }
.ms-photo-card-title { font-size: 18px; font-weight: 700; color: #F2ECDD; margin: 18px 0 8px; }
.ms-photo-card-desc { font-size: 15px; line-height: 1.6; color: #9AA5B8; margin: 0; }
.ms-framed-photo { position: relative; padding: 14px; }
.ms-framed-photo img { width: 100%; height: 260px; object-fit: cover; }
.ms-framed-photo::before, .ms-framed-photo::after,
.ms-framed-photo .corner-tl, .ms-framed-photo .corner-br { position: absolute; width: 28px; height: 28px; border-color: #D9B300; }
.ms-framed-photo::before { content: ""; top: 0; left: 0; border-top: 2px solid #D9B300; border-left: 2px solid #D9B300; }
.ms-framed-photo::after { content: ""; bottom: 0; right: 0; border-bottom: 2px solid #D9B300; border-right: 2px solid #D9B300; }
@media (max-width: 767px) { .ms-photo-grid { grid-template-columns: 1fr; } }

/* Projects */
.ms-project-list { display: flex; flex-direction: column; gap: 36px; }
.ms-project { border-left: 3px solid #D9B300; padding-left: 24px; }
.ms-project-title { font-size: 20px; font-weight: 700; color: #E8ECF4; margin: 0 0 6px; }
.ms-project-meta { font-size: 13px; font-weight: 600; letter-spacing: 0.5px; color: #4A6FA5; margin-bottom: 12px; text-transform: uppercase; }
.ms-project-body { font-size: 16px; line-height: 1.65; color: #9AA5B8; margin: 0; }

/* Quotes */
.ms-quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.ms-quote { background-color: #111A2E; border: 1px solid rgba(217,179,0,0.10); border-left: 3px solid #D9B300; border-radius: 8px; padding: 30px 28px; margin: 0; }
.ms-quote-text { font-size: 16px; line-height: 1.65; color: #C7CEDB; font-style: italic; margin: 0 0 18px; }
.ms-quote-attr { font-size: 13px; line-height: 1.5; color: #9AA5B8; font-style: normal; font-weight: 600; }
@media (max-width: 767px) { .ms-quote-grid { grid-template-columns: 1fr; } }

/* Career timeline & credentials */
.ms-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 16px; }
.ms-subhead { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; color: #D9B300; margin: 0 0 24px; text-transform: uppercase; }
.ms-tl-item { border-bottom: 1px solid rgba(232,236,244,0.08); padding: 14px 0; }
.ms-tl-date { font-size: 13px; font-weight: 600; color: #4A6FA5; margin-bottom: 4px; }
.ms-tl-role { font-size: 15px; color: #E8ECF4; line-height: 1.4; }
.ms-cred-group { margin-bottom: 22px; }
.ms-cred-cat { font-size: 13px; font-weight: 700; color: #E8ECF4; margin-bottom: 6px; }
.ms-cred-item { font-size: 14px; line-height: 1.55; color: #9AA5B8; }
@media (max-width: 991px) { .ms-two-col { grid-template-columns: 1fr; gap: 40px; } }

/* Work banners */
.ms-work-banner { position: relative; width: 100%; height: 480px; background-size: cover; background-position: center; }
.ms-work-banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(11,18,32,0.55); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 32px; }
.ms-work-banner-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: #D9B300; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.85); }
.ms-work-banner-title { font-family: Georgia, 'Times New Roman', serif; font-size: 32px; font-weight: 700; color: #F5F0E4; max-width: 760px; line-height: 1.3; text-shadow: 0 2px 12px rgba(0,0,0,0.85); }
@media (max-width: 767px) { .ms-work-banner { height: 320px; } .ms-work-banner-title { font-size: 22px; } }

/* Documents */
.ms-docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 16px; }
.ms-doc-card { background-color: #111A2E; border-top: 3px solid #D9B300; padding: 28px; display: flex; flex-direction: column; }
.ms-doc-title { font-size: 18px; font-weight: 700; color: #F2ECDD; margin: 0 0 8px; }
.ms-doc-desc { font-size: 14px; line-height: 1.55; color: #9AA5B8; margin-bottom: 20px; flex-grow: 1; }
.ms-doc-btn { align-self: flex-start; padding: 10px 22px; border-radius: 4px; background-color: #D9B300; color: #0B1220; text-decoration: none; font-size: 14px; font-weight: 600; }
@media (max-width: 767px) { .ms-docs-grid { grid-template-columns: 1fr; } }

/* Contact */
.ms-contact { text-align: center; }
.ms-contact-sub { font-size: 17px; color: #9AA5B8; max-width: 560px; margin: 0 auto 36px; }
.ms-contact-btn-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.ms-cbtn-primary, .ms-cbtn-outline { display: flex; min-width: 200px; padding: 16px 28px; justify-content: center; align-items: center; border-radius: 6px; font-size: 15px; font-weight: 600; text-decoration: none; }
.ms-cbtn-primary { background-color: #D9B300; color: #0B1220; box-shadow: 0 8px 24px rgba(217,179,0,0.20); }
.ms-cbtn-outline { background-color: #111A2E; color: #E8ECF4; border: 1px solid rgba(217,179,0,0.30); }
.ms-form-wrap { max-width: 560px; margin: 48px auto 80px; text-align: left; }
.ms-form-input { width: 100%; background-color: #111A2E; border: 1px solid rgba(217,179,0,0.20); border-radius: 4px; color: #E8ECF4; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; box-sizing: border-box; font-family: inherit; }
.ms-form-submit { background-color: #D9B300; color: #0B1220; font-weight: 700; font-size: 14px; padding: 13px 28px; border-radius: 4px; border: none; width: 100%; cursor: pointer; font-family: inherit; }
.ms-form-status { margin-top: 16px; font-size: 15px; font-weight: 600; text-align: center; padding: 14px; border-radius: 6px; display: none; }
.ms-form-status.success { color: #7CDB8A; background-color: rgba(124,219,138,0.12); display: block; }
.ms-form-status.error { color: #E37B7B; background-color: rgba(227,123,123,0.12); display: block; }

/* Footer */
.ms-footer { border-top: 1px solid rgba(232,236,244,0.08); padding: 32px 0; margin-top: 0; text-align: center; font-size: 13px; color: #6B7688; }
@media (max-width: 767px) { .ms-hero-title { font-size: 40px; } .ms-hero-subtitle { font-size: 16px; } .ms-hero-stat-num { font-size: 26px; } }
