/* MSD Venture Holdings — standalone production build.
   Source of truth: approved Framer Home page (v4.2 final). */

@font-face {
  font-family: "Mattone";
  src: url("../fonts/Mattone-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --foundation: rgb(14, 16, 17);
  --deep: rgb(19, 22, 21);
  --ink: rgb(20, 30, 26);
  --text: rgb(245, 241, 232);
  --text-2: rgb(201, 205, 200);
  --text-3: rgb(185, 199, 190);
  --sage: rgb(150, 186, 158);
  --accent: rgb(38, 94, 64);
  --copper: #BE7D52;
  --display: "Mattone", "Inter", "Helvetica Neue", sans-serif;
  --body: "Inter", "Helvetica Neue", sans-serif;
  --inner-max: 1008px;
  --pad-x: 56px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--foundation);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

section[id] { scroll-margin-top: 72px; }

.inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  position: relative;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--foundation);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
}

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.nav-links a:hover { opacity: 1; color: var(--sage); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 24px;
  background: var(--foundation);
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(244, 240, 232, 0.08);
}

/* ---------- Shared type ---------- */

.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sage);
}

.title-lg, .title-xl, .hero-title {
  font-family: var(--display);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.title-lg { font-size: 58px; line-height: 1; letter-spacing: -1.2px; }
.title-xl { font-size: 72px; line-height: 1; letter-spacing: -1.2px; }

.body-lg, .body-xl {
  color: var(--text-2);
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.body-lg { font-size: 18px; max-width: 760px; }
.body-xl { font-size: 19px; max-width: 820px; }

.sage { color: var(--sage); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  padding: 132px var(--pad-x) 92px;
  background: linear-gradient(180deg, rgb(14,16,17) 0%, rgb(14,18,16) 55%, rgb(16,24,20) 100%);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13,16,14,0.97) 0%, rgba(13,16,14,0.88) 36%, rgba(13,16,14,0.55) 64%, rgba(14,18,16,0.26) 100%);
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(16,24,20,0) 0%, rgba(16,24,20,0.96) 100%);
}

.hero-inner { position: relative; }

.hero-title {
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -1.6px;
  max-width: 900px;
  margin: 0 0 44px;
}

.hero-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-copy {
  margin: 0;
  max-width: 630px;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  color: var(--text-2);
}

.hero-actions { display: flex; gap: 14px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.3, 1.2, 0.4, 1), background-color 0.25s ease;
}

.btn .arrow { font-size: 12px; }

.btn-ghost {
  background: rgba(244, 240, 232, 0.06);
  border: 1px solid rgba(244, 240, 232, 0.30);
}
.btn-ghost:hover { background: rgba(244, 240, 232, 0.12); }

.btn-solid { background: var(--accent); border: 1px solid transparent; }
.btn-solid:hover { transform: translateY(-2px); }

/* ---------- What We Do ---------- */

.what-we-do {
  padding: 132px 0 132px;
  background: linear-gradient(180deg, rgb(16,24,20) 0%, rgb(14,16,17) 72%);
}

.what-we-do .inner { padding: 0 var(--pad-x); max-width: calc(var(--inner-max) + 2 * var(--pad-x)); }

.section-intro { max-width: 760px; margin-bottom: 56px; }

.what-we-do .title-lg { font-size: 60px; margin-bottom: 26px; }

/* ---------- Mission ---------- */

.mission {
  padding: 132px var(--pad-x);
  background: linear-gradient(170deg, rgb(19,40,29) 0%, rgb(13,22,17) 100%);
}

.mission .title-xl { margin-bottom: 34px; max-width: 900px; }

/* ---------- Our Focus ---------- */

.our-focus { padding: 132px var(--pad-x); background: var(--foundation); }

.focus-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.focus-title-group { max-width: 640px; }

.focus-detail {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
  max-width: 220px;
  line-height: 1.5;
}

.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.focus-card {
  border-radius: 20px;
  border: 1px solid rgba(244, 240, 232, 0.10);
  background: linear-gradient(160deg, rgb(26,32,29) 0%, rgb(18,23,21) 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 18px 40px -14px rgba(5,9,7,0.55);
  padding: 36px;
  transition: transform 0.35s cubic-bezier(0.3, 1.2, 0.4, 1);
}

.focus-card:hover { transform: translateY(-4px); }

.focus-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -0.3px;
  color: rgb(244, 240, 232);
  margin: 0 0 16px;
}

.focus-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgb(201, 205, 200);
}

/* ---------- About ---------- */

.about { padding: 132px var(--pad-x); background: var(--deep); }

.about-inner {
  display: flex;
  gap: 80px;
  justify-content: center;
}

.about-heading, .about-copy { max-width: 464px; flex: 1 1 0; }

.about-copy {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  color: var(--text-2);
}

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

.contact { padding: 100px 64px 0; background: var(--ink); }

.contact .inner { max-width: 992px; }

.contact-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 72px;
  flex-wrap: wrap;
  padding-bottom: 44px;
}

.contact .title-lg { font-size: 54px; margin-bottom: 20px; }

.contact-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 380px;
}

.contact-card {
  width: 380px;
  max-width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(244, 240, 232, 0.10);
  background: linear-gradient(160deg, rgb(26,32,29) 0%, rgb(18,23,21) 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 18px 40px -14px rgba(5,9,7,0.55);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.35s cubic-bezier(0.3, 1.2, 0.4, 1);
}

.contact-card:hover { transform: translateY(-4px); }

.contact-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sage);
}

.contact-email {
  font-size: 16px;
  color: rgb(246, 244, 239);
  text-decoration: none;
}
.contact-email:hover { color: var(--sage); }

.contact-action {
  font-size: 14px;
  font-weight: 500;
  color: var(--sage);
  text-decoration: none;
}
.contact-action:hover { text-decoration: underline; }

.footer {
  border-top: 1px solid rgba(244, 240, 232, 0.14);
  padding: 28px 0 44px;
}

.footer-brand {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.footer-line {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--text-3);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease-out, transform 0.55s cubic-bezier(0.25, 1.1, 0.4, 1);
}

.reveal.revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .focus-card, .contact-card { transition: none; }
  .focus-card:hover, .contact-card:hover, .btn-solid:hover { transform: none; }
}

/* ---------- Tablet (<=1199px) ---------- */

@media (max-width: 1199.98px) {
  .hero-title { font-size: 56px; }
  .title-xl { font-size: 54px; }
  .hero-scrim {
    background: linear-gradient(100deg, rgba(13,16,14,0.97) 0%, rgba(13,16,14,0.90) 42%, rgba(13,16,14,0.62) 70%, rgba(14,18,16,0.32) 100%);
  }
}

/* ---------- Phone (<=809px) ---------- */

@media (max-width: 809.98px) {
  :root { --pad-x: 24px; }

  .nav-inner { padding: 22px 24px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu.open { display: flex; }

  .hero { padding-top: 96px; padding-bottom: 72px; }
  .hero-title { font-size: 32px; line-height: 1.06; letter-spacing: -0.6px; }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(13,16,14,0.93) 0%, rgba(13,16,14,0.80) 55%, rgba(14,18,16,0.55) 100%);
  }
  .hero-copy { font-size: 16px; }
  .hero-detail { flex-direction: column; align-items: flex-start; gap: 24px; }

  .what-we-do, .mission, .our-focus, .about { padding-top: 88px; padding-bottom: 88px; }
  .what-we-do .title-lg { font-size: 38px; }
  .title-lg { font-size: 36px; letter-spacing: -0.6px; line-height: 1.04; }
  .title-xl { font-size: 30px; line-height: 1.08; letter-spacing: -0.5px; }
  .contact .title-lg { font-size: 40px; }
  .body-lg { font-size: 16px; }
  .body-xl { font-size: 17px; }

  .focus-grid { grid-template-columns: 1fr; }
  .about-inner { flex-direction: column; gap: 32px; }
  .about-heading, .about-copy { max-width: 100%; }

  .contact { padding-left: 24px; padding-right: 24px; padding-top: 72px; }
  .contact-content { gap: 36px; }
  .contact-card { width: 100%; }
}

/* ---------- Pillar deck ---------- */

.deck-wrap { position: relative; width: 100%; overflow-x: clip; }

.deck-runway { position: relative; width: 100%; }

.deck-stage {
  position: sticky;
  height: min(86vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

.deck-card {
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: min(880px, 92%);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(244,240,230,0.055) 0%, rgba(244,240,230,0) 42%),
    radial-gradient(110% 100% at 92% 100%, rgba(190,125,82,0.07) 0%, rgba(190,125,82,0) 48%),
    linear-gradient(158deg, #1C2320 0%, #151B18 52%, #101411 100%);
  border: 1px solid rgba(244,240,232,0.09);
  box-shadow:
    inset 0 1px 0 rgba(244,240,232,0.10),
    0 2px 6px rgba(0,0,0,0.45),
    0 14px 30px -10px rgba(0,0,0,0.5),
    0 52px 96px -24px rgba(5,9,7,0.72);
  overflow: hidden;
  will-change: transform, opacity;
  opacity: 0;
}

.deck-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 45%;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 66%, rgba(0,0,0,0.92) 90%);
  mask-image: linear-gradient(100deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 66%, rgba(0,0,0,0.92) 90%);
  pointer-events: none;
}

.deck-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(92deg, rgba(15,19,16,0.88) 0%, rgba(15,19,16,0.42) 48%, rgba(15,19,16,0) 72%);
  pointer-events: none;
}

.deck-label {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--copper);
}

.deck-title {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.8px;
  color: #F2EDE3;
}

.deck-tag {
  position: relative;
  z-index: 2;
  margin: 16px 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #96B89C;
}

.deck-body {
  position: relative;
  z-index: 2;
  margin: 14px 0 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: #C8CCC6;
}

.deck-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  background-size: 160px 160px;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.deck-dim {
  position: absolute;
  inset: 0;
  background: #070A08;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s linear;
}

/* flow / still modes */

.deck-flow .deck-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.deck-flow .deck-card {
  position: relative;
  left: auto;
  right: auto;
  margin: 0;
  width: 100%;
  transform: translate3d(0, 26px, 0);
  transition: transform 0.65s cubic-bezier(0.22, 1.12, 0.32, 1), opacity 0.5s ease-out;
}

.deck-flow .deck-card:nth-child(1) { transform: translate3d(0, 26px, 0) rotate(-1.2deg); }
.deck-flow .deck-card:nth-child(2) { transform: translate3d(0, 26px, 0) rotate(1.2deg); }

.deck-flow .deck-card.deck-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .deck-flow .deck-card { transition: none; transform: none; opacity: 1; }
}
